To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here


A Flash Developer Resource Site

Go Back   Flash Kit Community Forums > Flash Help > Flash ActionScript

Reply
 
Thread Tools Search this Thread Display Modes
Old 10-05-2004, 05:02 PM   #1
jtdodge
Junior Member
 
Join Date: Feb 2004
Posts: 18
can't control the _x _y values

can't control the _x _y values with external swf using loadMovieNum***

ok i'm loading 2 swf files with loadMovieNum within there levels. when they show up i'm getting thrown off as to how to control there _x and _y values.

they are showing up at the top left registration point of the background.

i for some reason cannot figure this out.

please help me out.

jt

Last edited by jtdodge; 10-05-2004 at 05:27 PM.
jtdodge is offline   Reply With Quote
Old 10-05-2004, 05:54 PM   #2
jbum
Senior Member
 
jbum's Avatar
 
Join Date: Feb 2004
Location: Los Angeles
Posts: 2,920
If you change the _x and _y values immediately after calling loadMovie or loadMovieNum, it won't work, because when the movie loads, it will obliterate the values you set. You can work around this by using an additional container movie, and changing the _x, _y values of the container (which won't get obliterated).

e.g.

code:

_root.createEmptyMovieClip("cont_mc", 1);
cont_mc.loadmc = loadMovie("xxx.swf");
cont_mc.loadmc._x = 100; // this won't work
cont_mc._x = 100; // but this will
cont_mc._y = 200;

__________________
jbum is offline   Reply With Quote
Old 10-05-2004, 06:15 PM   #3
cancerinform
Mod
 
cancerinform's Avatar
 
Join Date: Mar 2002
Location: press the picture...
Posts: 12,120
this will also work:

_root.onEnterFrame = function(){
if (_level1 != undefined){
_level1._x = xvaluehere;
_level1._y = yvaluehere;
delete _root.onEnterFrame;
}
}

it needs only a flick of a second.
__________________

- The right of the People to create Flash movies shall not be infringed. -
| www.Flashscript.biz | Help a little girl, Ana, who has cancer. | Flashscript Biz Classes/Components | Flash-Model-View-Controller-Modul |
cancerinform is offline   Reply With Quote
Old 10-05-2004, 06:32 PM   #4
jtdodge
Junior Member
 
Join Date: Feb 2004
Posts: 18
thanks!!

you two were right on!
damn i never get bad info here!

thanx so much!

jt
jtdodge is offline   Reply With Quote
Reply

Go Back   Flash Kit Community Forums > Flash Help > Flash ActionScript

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump


All times are GMT -4. The time now is 10:59 PM.


internet.commerce
Be a Commerce Partner
 »  »  »  »  »  »  »
 »  »  »  »  »  »
 

    

Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.