This content has been marked as final. Show 5 replies
I'm hoping I understand what you're doing... I would probably do it all in one frame and just toggle the .visible property of the subcategory list after the first one has been clicked, but there's no rules about how you do it.
Without being sure, I think what you may have done is put a second "copy" of the category list on another keyframe, which replaces the previous instance. By taking away the second copy it should work. If that's not the case, then I'm stumped... otherwise read on.
So if you have the category list in its own layer, just have it in frame one, on frame 2 of the same layer have a frame but not a keyframe. This will mean the instance in frame one is still the same one when the playhead gets to frame 2.
And have the subCategory list on a separate layer, it appears on frame 2...
BTW the .getSelectedItem() method of the list reminds me of flash mx... is that the version you're using (curiosity only I don't think its relevant, because its obviously working).
I've tried your suggestions but no success :(. The action script layer is divided with two key frames, where the first part contains the code for the first frame and the second part for the second frame. I really don't have an idea what could be the problem.
OK, so I think now I understand... the new load for the second list is not being triggered.
To check this, try putting :
in your first frame.
The first time you run this it won't do anything because theXML1 doesn't exist yet until you get to frame 2. It should work afterwards I think
And you'll need to empty the subcategory list each time too... otherwise it'll just keep getting longer..
I've done it! But i have another solution all of the other did not work although my solution is not elegant.
Previously You've said to change the sequence of the code however the XML1 is in the actionscript layer and the gotoAndStop is in the on change listener in the actions of the categoryList in the second frame. I've used _root.gotoAndStop(66) which is a blank frame and in this frame im returning to _root.gotoAndStop(25); and it works perfectly.
Thanks very much for your help! I really appreciate it!