all groups > flash actionscript > april 2004 >
You're in the

flash actionscript

group:

Loaded SWF interaction problems!!


Loaded SWF interaction problems!! The dedicated lad
4/21/2004 10:34:44 PM
flash actionscript:
on my _root timeline of my main SWF file I have a movie clip called
leftOptions_mc.Within this I have another movieclip called contentHolder_mc
that loads a swf file containing menu options/buttons. I can get this to work
fine, the problem is getting the buttons within the loaded SWF to interact with
another movieclip on the _root timeline. The location of the contentHolder_mc
from the _root timeline is as follows:

this.leftOptions_mc.contentHolder_mc.

When you click a button from the loaded SWF file
(_root.leftOptions_mc.contentHolder_mc) I want this to send the playhead of a
movieClip on the _root timeline to a particluar frame.The location of the
movieclip I want to target from the loaded SWF file is this:

this._parent._parent.mainObject.

Please can someone help, I have tried every combo and nothing works. I can get
the buttons to effect other clips on the main timeline using this code placed
on the timline of the EXTERNAL SWF file that is loaded into the main movie:

this.test_btn.onPress = function(){
_level0.ball._x +=77
}

However, for some reason the following code will not work, what am I missing?

this.test_btn.onPress = function(){
_level0.mainObject.gotoAndStop("about")
}
Any help would be much appreciated!

Jason
Re: Loaded SWF interaction problems!! The dedicated lad
4/21/2004 11:02:33 PM
Ok, I have been doing it correctly as I have tested it on a few other movieclips without problems.

Question is, why won't it work on this particular movieClip??

Any ideas?

Thanks,

Bad Event? stonebrad
4/21/2004 11:04:44 PM
Its difficult to picture the thing without the file, but I'm almost completely
sure that the trouble is related with the event your using.

Try onRelease().

When you "press" the thing it won't go anywhere (I mean the timeline) because
you need to "release" it.

That's the poetry of Actionscript... (anyway...)
Re: Bad Event? The dedicated lad
4/22/2004 10:43:52 PM
Thanks m8, I'll check it out!

AddThis Social Bookmark Button