Re: [Flashcoders] nextFrame doesn't work

2011-11-14 Thread Paul Andrews
On 14/11/2011 10:15, tom rhodes wrote: is the playhead moving on a parent timeline? if you go to a keyframe in a parent timeline where there is a new instance of the MC you are manipulting then that cause cause you some problems. No, it wasn't moving. All fixed now through brute force. Even t

Re: [Flashcoders] nextFrame doesn't work

2011-11-14 Thread tom rhodes
is the playhead moving on a parent timeline? if you go to a keyframe in a parent timeline where there is a new instance of the MC you are manipulting then that cause cause you some problems. On 14 November 2011 10:53, Paul Andrews wrote: > On 14/11/2011 09:19, Karl DeSaulniers wrote: > >> Any lu

Re: [Flashcoders] nextFrame doesn't work

2011-11-14 Thread Paul Andrews
On 14/11/2011 09:19, Karl DeSaulniers wrote: Any luck with children? Well currently I'm restructuring the game to reduce the nesting and that solves the problem. There are twelve drag and drop targets and I've done two of them and for those, problem solved. I'm putting it down to being one

Re: [Flashcoders] nextFrame doesn't work

2011-11-14 Thread Karl DeSaulniers
Any luck with children? Try this code on your container MC. The first level (not the three deep). It may help you see the target it and possibly control it. for (var i:uint = 0; i < target_mc.numChildren; i++){ trace ('\t|\t ' +i+'.\t name:' + target_mc.getChildAt(i).name + '\t type:' + ty

Re: [Flashcoders] nextFrame doesn't work

2011-11-14 Thread Paul Andrews
On 14/11/2011 09:00, Karl DeSaulniers wrote: Hi Paul, Can you tell it instead of nextFrame to advance currentFrame+1? Yes, this was the original way of doing it. I have used currentFrame+1, specific frame number, frame label, inside enterframe event, outside enterframe event. The first drag

Re: [Flashcoders] nextFrame doesn't work

2011-11-14 Thread Karl DeSaulniers
Hi Paul, Can you tell it instead of nextFrame to advance currentFrame+1? IE: My AS3 is very rusty, so I may be corrected.. targetMC.addEventListener(Event.ENTER_FRAME, frameNumber); // or Event.DRAG ?? (Guessing on that one) function frameNumber(evt:Event):void { targetMC.gotoAndStop(

Re: [Flashcoders] nextFrame doesn't work

2011-11-14 Thread Henrik Andersson
Blame the timeline for losing track of it's instances. Or rather, blame yourself for messing with timeline instances so that the player loses track of them. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailma

[Flashcoders] nextFrame doesn't work

2011-11-13 Thread Paul Andrews
Well, of course nextFrame works, but only the first time around in an app I've been asked to look at (not my app). In this AS3 app targetting FP9, we have a bunch of nested movieclips. Interaction with the app involves dragging and dropping a movieclip to the right target then paging through a