Flash mc question
- Started
- Last post
- 14 Responses
- kbags
I've got a movie clip (instance: "content") on my main timeline. Inside that movie clip, i've got another movie clip (joint) containing another movie clip (loader2).
To recap, hierarchy goes like this:
content>joint>loader2>joint.swfSo in "content" I call an external .swf using:
joint.loader2.loadMovie("joint.s...Great, it loads and looks pretty.
BUT...joint.swf has a slider and animation that aren't working. Can anyone please tell me why?
Thanks in advance!
- kbags0
Okay...
FREE original music (entire .mp3 album) for whoever has the answer, courtesy of DJ Skidmarks!!!
- jmteow0
My guess is, that there's a linkage issue within joint.swf. Are the linkages within the code relative or absolute?
- kbags0
Hmmm...linkage, right-o. Let's look-see.
which mc do i need to check the linkages of? the parent (joint) or the child (joint.swf)?
- tkmeister0
probably the link problem.
if you are using _root. then make sure it's referring to the right place.
- kbags0
i wasn't using _root, but when i add in "_root.content..." the problem remains the same.
- kbags0
jmteow and tk, your responses are appreciated. You've got email...might be mistaken for spam.
- tkmeister0
got it. so what was the problem?
- kbags0
Looking at the loaded .swf, all of the drag functionality calls "_root..." which at this point I am assuming is incorrectly directing to the parent file's root?
There's a ton of code that does this...is there an easy way to specify that it's supposed to point to the joint.swf root and not the parent file root?
- jmteow0
Try this:
In your loaded .swf's FLA file, use
this._lockroot = true;
on the main stage.
Re-Export it, and try again.
- kbags0
jmteow, THANK YOU, THANK YOU, THANK YOU!!!!!!!!!!!!!! YOU JUST SAVED MY DAY!!!!!!
THANKS A MILLION, AND ENJOY THE MUSIC, GUYS!!!!!!!!!!!!!!!!!!
- jmteow0
Re-reading what I wrote, I realized I may have been a bit confusing (since I wrote some terrible English).
In the joint.fla file type:
this._lockroot = true;
in the actionscript of your main stage.
When you re-export it, and load it back into your main swf, the _root commands in your loaded swf should refer to its own movie, instead of the main timeline.
- jmteow0
oh okay, no worries. :)
- kbags0
NO, SERIOUSLY IN THAT ALL CAPS KIND OF WAY...YOU RULE.
- tkmeister0
_lockroot=true;
ha, that's so much easier. i didn't know you can do that.