Flash Problem
- Started
- Last post
- 6 Responses
- MIJA
Here it goes...
I've got multiple external .swf's that load into the main timeline. In one instance I have one .swf with a number of button movieclips that load another .swf to a level above itself.
the Problem:
the actions (rollOver and what not) in the movie that loads on top are not working and all of the buttons that are covered up still work. I don't want the bottom swf active and the top one should be.Any ideas?
Anyone?
- unfittoprint0
#1 hopefully you're an action layer onRollOver function targeting your button instances [rollover actions directly on mc/buttons are deprecated and can be a source of conflict]
#2 you could target that bottom level/mc and use a blank event for it, while setting the useHandCursor to false to disable all the inner button actions. Enable them when needed by deleting that same blank event...
- MIJA0
Actually I've found a bit of workaround on the issue for the lower level interference, but I still can't get the any of the actions in the top layer to work. It's damn frustrating.
- unfittoprint0
u should try to trace() the problem...
one of the most usual problems with loading swfs is that one tends to forget the new parent child hierarchy. Using _root is one of them.... I prefer to use something like this._parent._parent [for example].
That way you can preserve your actions while allowing this modular interaction between external swfs....
- MIJA0
as always you are the solution to any flash problem I have. I mistakenly used _root when I built the external swf's. silly error. I couldn't figure out how to disable acitions on lower levels so what I did is change the properties of that movieclip to be 1 pixel by 1 pixel when the movie is loaded on top of it. clumsy, but it works wonders.
- unfittoprint0
good to hear that.
in the beggining my workaround to stop "lower" level buttons was to have a huge transparent movie over that same level...
- CyBrainX0
You can always use the lockroot function to let all the _root references in your loaded movie still work.
Also, always avoid having buttons over buttons.
Also, Unfit has saved my ass quite a few times over the last year.