Web Design Web Design Forum
Registration is free! Here you can view your subscribed threads, work with private messages and edit your profile and preferences Calendar Find other members Frequently Asked Questions Search
Home Web Design

Convenient web based access to our favorite web design Usenet groups

web design reviews

This is Interesting: Free Magazines for Graphics designers and webmasters  





  Last Thread  Next Thread
Author
Thread Post New Thread   

How To Re-position Loaded SWF
 

snurg




quote this post edit post

IP Loged report this post

Old Post  02-20-06 - 08:26 AM  
I have a Flash app main screen that is
1024 x 768 and I have a an empty movie clip
where I want to load SWFs

My loaded SWF is much smaller about
300 x 400 and it comes in on the upper
left of the screen

I want it re-positioned in the middle right
How do I do this?

thank you
Code is below.....

//create empty Movie Clip for UI selections
onLoad = function()
{
_root.createEmptyMovieClip("UI_mc", 1);
}

//buttons load movie clips//
about_btn.onPress = function()
{
loadMovie("ABOUTSTRETCH.swf", "UI_mc");
}
:confused;



Post Follow-Up to this message ]
Re: How To Re-position Loaded SWF
 

Rob Dillon *TMM*




quote this post edit post

IP Loged report this post

Old Post  02-20-06 - 08:26 AM  
If you don't give a new movie clip a location, it will be located at the
upper left corner of the stage, at point 0,0. You just need to give the
new clip a new value for the _x and _y properties.

onLoad = function()
{
_root.createEmptyMovieClip("UI_mc", 1);
UI_mc._x = 300;
UI_mc._y = 400;
}

Set the _x and _y values as you like.

--
Rob
_______
Rob Dillon
Team Macromedia
http://www.ddg-designs.com
412-243-9119

http://www.macromedia.com/software/trial/


Post Follow-Up to this message ]
Sponsored Links
 





All times are GMT. The time now is 06:01 AM. Post New Thread   
  Previous Last Thread   Next Thread next
Flash Site Design archive | Show Printable Version | Email this Page | Subscribe to this Thread

Popular forums

Adobe Photoshop forum Macromedia Flash Web Site Design
Dreamweaver FrontPage forum
JavaScript Forum XML forum
Style Sheets VRML
Forum Jump:
Rate This Thread:

 

XML RSS Feed web design latest articles Syndicate our forum via XML or simple JavaScript

Web Design archive  Database administration help  


Top Home  -  Register  -  Control Panel   -  Memberlist  -  Calendar  -  Faq  -  Search Top