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!

Problem with loadmovie 1

Status
Not open for further replies.

Themuppeteer

Programmer
Apr 4, 2001
449
BE
Hello,

when I do a loadmovie, I lose part of my functionality
and the clip expands outside the movieclip I load it in.
How can I make it fit into the rectangle (without changing the source),and why do I lose functionality.

to see what I mean, goto and click
LOADMOVIE PROBLEM directly under the title.

there ae 2 buttons there,the first will load it into the movievclip rectangle (with loss of functionality) the second
will load it into "this" wich is the complete clip,there you can see what it should do.

any explanation would be very welcome.
(all useful posts will get stars)

Greetz,

The Muppeteer.
themuppeteer@hotmail.com

Don't eat yellow snow...
 
If you load into a movieClip, thetime line of the movieClip you load INTO is erased, and the timeline of the SWF replaces it. As for boundaries - the boundary of the movieClip is defined by its contents, NOT the other way around. You can't load a SWF into a movieClip of a &quot;certain size&quot;, because as soon as you load the SWF into the clip the contents change, changing the boundaries too. If you want to limit the area in which your loaded SWF executes, you'll have to do it with movement limiters (i.e. check co-ordinateds of the square to be moved BEFORE you move it - if it is within a specified area (x > 0 < 100, y > 0 < 100) you go ahead an move it. If not, leave it alone). _____________________________________________________
Knowledge is attained only by seeking out that which is unknown
 
Do you know also why in the version where I load it into
a clip,only 1 of the cubes moves and if I load it on &quot;this&quot;,
it work fine ? Greetz,

The Muppeteer.
themuppeteer@hotmail.com

Don't eat yellow snow...
 
There might be a problem with your addressing. If you load into a movieClip, the _root timeline is shifted. Instead of the it being _root, it is now _root.container (where container is the clip you have loaded into). So your addressing might not point to the correct targets anymore.

When you loaded into &quot;this&quot;, you were really loading into _level0 (timelines replace each other, remember?), so _root in the loaded movie remains _root in the loaded version. _____________________________________________________
Knowledge is attained only by seeking out that which is unknown
 
Not a problem ... _____________________________________________________
Knowledge is attained only by seeking out that which is unknown
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top