Re: [Flashcoders] simple code- should work but is not.
Thanks for all your help. i put the wineback_btn in the first frame and set the _visible to false and that works. yeah, wasn't sure if this problem belonged in flashcoders. will send to flashnewbies next time. thanks for helping regardless. On 4/3/07, Merrill, Jason <[EMAIL PROTECTED]> wrote: I would move this to the Flashnewbies list, but your problem is in the wine_mc there is no wineback_btn in the first frame, thus Flash can't find it to assign the onPress. In fact, I don't see wineback_btn anywhere in wine_mc - only in the library. Jason Merrill Bank of America GT&O Learning & Leadership Development eTools & Multimedia Team >>-Original Message- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] On Behalf >>Of Thomas Collins >>Sent: Tuesday, April 03, 2007 2:35 PM >>To: flashcoders@chattyfig.figleaf.com >>Subject: [Flashcoders] simple code- should work but is not. >> >>Hi all, >> >>this is my first post on flashcoders. i think this is a >>simple fix and everything is basic, so i can't figure out why >>it isn't working. >> >>my code on the root timeline in the actions layer (frame 21) >>is simply: >> >> ** stop(); >> >>wine_mc.wineback_btn.onPress = function() { >> trace("hello"); >>} >> >>might anyone know why my "wineback_btn" is not registering >>the "onPress"? >> >>i know for sure that my playhead reaches frame 21 where the code is. >> instance names are specified. >> >>any help would be much appreciated. >> >>thanks in advance. >> >>i've uploaded the .fla in case you want to take a closer look. >> >>http://download.yousendit.com/73F37C700CEE66C5 >>___ >>Flashcoders@chattyfig.figleaf.com >>To change your subscription options or search the archive: >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >>Brought to you by Fig Leaf Software >>Premier Authorized Adobe Consulting and Training >>http://www.figleaf.com http://training.figleaf.com >> ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] simple code- should work but is not.
On frame 21, trace("wine back btn:"+wine_mc.wineback_btn); This will tell you 1) If the playhead actually DOES reach frame 21 2) If the button in question is actually where you think it is. Frequently simple problems like this are because you've forgotten to put a symbol where you thought you put it, or because you have the wrong scope. --- Thomas Collins <[EMAIL PROTECTED]> wrote: > Hi all, > > this is my first post on flashcoders. i think this > is a simple fix and > everything is basic, so i can't figure out why it > isn't working. > > my code on the root timeline in the actions layer > (frame 21) is simply: > > ** stop(); > > wine_mc.wineback_btn.onPress = function() { >trace("hello"); > } > > might anyone know why my "wineback_btn" is not > registering the "onPress"? > > i know for sure that my playhead reaches frame 21 > where the code is. > instance names are specified. > > any help would be much appreciated. > > thanks in advance. > > i've uploaded the .fla in case you want to take a > closer look. > > http://download.yousendit.com/73F37C700CEE66C5 > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the > archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > TV dinner still cooling? Check out "Tonight's Picks" on Yahoo! TV. http://tv.yahoo.com/ ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] simple code- should work but is not.
On Apr 3, 2007, at 2:34 PM, Thomas Collins wrote: might anyone know why my "wineback_btn" is not registering the "onPress"? i know for sure that my playhead reaches frame 21 where the code is. instance names are specified Are you disabling trace during publishing? That's what I'd check first ... check out your publish settings first. - jon ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] simple code- should work but is not.
I would move this to the Flashnewbies list, but your problem is in the wine_mc there is no wineback_btn in the first frame, thus Flash can't find it to assign the onPress. In fact, I don't see wineback_btn anywhere in wine_mc - only in the library. Jason Merrill Bank of America GT&O Learning & Leadership Development eTools & Multimedia Team >>-Original Message- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] On Behalf >>Of Thomas Collins >>Sent: Tuesday, April 03, 2007 2:35 PM >>To: flashcoders@chattyfig.figleaf.com >>Subject: [Flashcoders] simple code- should work but is not. >> >>Hi all, >> >>this is my first post on flashcoders. i think this is a >>simple fix and everything is basic, so i can't figure out why >>it isn't working. >> >>my code on the root timeline in the actions layer (frame 21) >>is simply: >> >> ** stop(); >> >>wine_mc.wineback_btn.onPress = function() { >> trace("hello"); >>} >> >>might anyone know why my "wineback_btn" is not registering >>the "onPress"? >> >>i know for sure that my playhead reaches frame 21 where the code is. >> instance names are specified. >> >>any help would be much appreciated. >> >>thanks in advance. >> >>i've uploaded the .fla in case you want to take a closer look. >> >>http://download.yousendit.com/73F37C700CEE66C5 >>___ >>Flashcoders@chattyfig.figleaf.com >>To change your subscription options or search the archive: >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >>Brought to you by Fig Leaf Software >>Premier Authorized Adobe Consulting and Training >>http://www.figleaf.com http://training.figleaf.com >> ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] simple code- should work but is not.
Hi all, this is my first post on flashcoders. i think this is a simple fix and everything is basic, so i can't figure out why it isn't working. my code on the root timeline in the actions layer (frame 21) is simply: ** stop(); wine_mc.wineback_btn.onPress = function() { trace("hello"); } might anyone know why my "wineback_btn" is not registering the "onPress"? i know for sure that my playhead reaches frame 21 where the code is. instance names are specified. any help would be much appreciated. thanks in advance. i've uploaded the .fla in case you want to take a closer look. http://download.yousendit.com/73F37C700CEE66C5 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com