Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Action Script 2.0 external moviclip & Stage Resize
Old 12-29-2007, 02:17 AM Action Script 2.0 external moviclip & Stage Resize
Skilled Talker

Posts: 63
Name: Ryan E
Location: Windsor Ontario
Trades: 0
I have a logo that is being imported dynamically into a flash file.

when the logo loads i use this script to center the logo depending on the stage size and the logo size.

var center_x = (Stage.width/2)-(_level0.title_page.image_holder._width/2);
var center_y = (Stage.height/2)-(_level0.title_page.image_holder._height/2);
_level0.title_page.image_holder._x=center_x;
_level0.title_page.image_holder._y=center_y;

if the logo runs this center script above it doesnt play the motion tween. and the logo appears that is is at 10% opacity.

but if i remove the center script it plays the motion tween fine and
the logo fades in and then fade out after 5 seconds. but the logo is also not in the center of the movieclip.

if anyone has a solution or what the problem may be it would help a lot.

Thanks.
reyres is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to Action Script 2.0 external moviclip & Stage Resize
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.72801 seconds with 12 queries