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
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
 
When You Register, These Ads Go Away!
     
Reply     « Reply to Action Script 2.0 external moviclip & Stage Resize
 

Thread Tools

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

vB 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.10956 seconds with 13 queries