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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

loadMovie rotates movie 90 degrees!? 1

Status
Not open for further replies.

HotMadras

Programmer
Apr 20, 2001
74
GB
I'm at the end of my tether with this. I've come to the conclusion that Flash actually follows some bizarre non-logic of its own when dealing with loaded movies. In this case I'm trying to load movie into an existing movie instance based on a filename I'm drawing from a database (which is generating problems of its own). For some reason, neither the position, size or rotation of the original movie is retained when the new one is loaded. It seems to be positioned roughly in the middle of the parent movie and rotated 90 degrees to the right. I've written some actionscript to resize it, because I know that the size of the movie is taken from the new movie and not the instance it's loaded into. I would have thought that something like rotation would stay the same though!

Can someone tell me what's going on? Incidentally, if someone could tell me how to pause an actionscript so that execution doesn't plunge onwards before my variables have been loaded, that would be great too.

I'm off round the office to look for someone I can safely hit.
 
Use
onClipEvent (data) {
}

to load the movie to be sure all your data is loaded.
 
make sure you are loading into an empty movie clip with width and height = 0
 
Thanks Tom, that did the trick, I was using the onClipEvent(EnterFrame) event before, which seemed to work vaguely. Your suggestion works much better.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top