Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

attach movie

Status
Not open for further replies.

z35

Programmer
Dec 21, 2001
206
US
heeeeeeelp!!!!

i just finished my movie. with a lot of trial and error. it works fine offline.

i attach several movies...and i use _x _y to tell it exactly where to attach. it works perfectly offline. i loaded it and the movie clips are not attaching in the right loaction.

please help.


notice what happens after design#9 under "wall units"
 
i see. my main movie is on level 0 and the attached movies are on level 1.

offline it is ok.
but when i change the attached movies to level 0, their positioning seems to be ok.

is there a way to get the positioning to work online using level 1??

 
Try...

_level1._x = 100;
_level1._y = 150;

Than an offset from the top-left corner of the main movie.
Change the values till you get positioned to your liking! Regards,

oldman3.gif
 
let me ask you one crucial question.

if i attach a movie to level 1
and then attach another movie later to level 1, movie2 replaces movie 1 right?

please say yes...or i'm in trouble
 
is it ok to use the _x _y from the "properties" catagory.

if not, maybe that is the problem.
 
the problem seems to be ONLY when i attach to the _root from within a mc.
 
i figured it out!!!
you have to use "tell target"
 
tellTarget is deprecated, and although it still works, the dot syntax will work as well, and is much less typing. Regards,

oldman3.gif
 
then how do you do it...it still doesn't work.

i am not able to position an attached mc on the main stage when the actionscript is inside an mc.

there has to be a way to do this.
 
If it worked with tellTarget, it should also work with the dot syntax.
But post the tellTarget code you used and worked! Regards,

oldman3.gif
 
unfortunately the tellTarget didn't work.

i thought i got it to work on a test sample, but i deleted that sample because i was sure i figured it out and when i tried it on my real movie, it didn't work.

i'm confused...something is still wrong. i can't find any documentation on this in "flash help" either.
 
I've never really used attachmovie stuff or looked into it,
but I could look at your files, if you e-mail them to me.
They've probably changed since you sent me the first ones. Regards,

oldman3.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top