Re: [Flashcoders] can't get e.target.data

2011-10-08 Thread John Polk
DeSaulniers Sent: zaterdag 8 oktober 2011 2:44 To: Flash List Subject: Re: [Flashcoders] can't get e.target.data Maybe set it to a var first? var data:String = e.target.data; var str:String = new String(data); HTH, Karl On Oct 7, 2011, at 2:23 PM, John Polk wrote: Here's a code snippet

Re: [Flashcoders] can't get e.target.data

2011-10-08 Thread John Polk
8 oktober 2011 2:44 To: Flash List Subject: Re: [Flashcoders] can't get e.target.data Maybe set it to a var first? var data:String = e.target.data; var str:String = new String(data); HTH, Karl On Oct 7, 2011, at 2:23 PM, John Polk wrote: Here's a code snippet:           var

Re: [Flashcoders] can't get e.target.data

2011-10-08 Thread John Polk
data:String = e.target.data; var str:String = new String(data); HTH, Karl On Oct 7, 2011, at 2:23 PM, John Polk wrote: Here's a code snippet:         var req:URLRequest = new URLRequest(siteUrl + store/ flash_store2.py?id= + id + pkg= + pkgID);         /*         var

[Flashcoders] can't get e.target.data

2011-10-07 Thread John Polk
Here's a code snippet:             var req:URLRequest = new URLRequest(siteUrl + store/flash_store2.py?id= + id + pkg= + pkgID);             /*             var variables:URLVariables = new URLVariables();             loader.dataFormat = URLLoaderDataFormat.VARIABLES;             req.method =

[Flashcoders] Caught In My Own Infinite Loop

2011-08-20 Thread John Polk
Hi; I have a class menu that calls another class submenu to instantiate a submenu of items when a menu item is rolled over. This process loops for as many sublevels exist. The problem comes when I want to destroy them. For example, if someone is at the first item of the second level and out

Re: [Flashcoders] Custom Event Question

2011-08-19 Thread John Polk
Hey, Jason: Check this out! http://www.tyz.nl/2010/03/22/temple-open-sourced/ Then if you d/l it, go to this: file:///Users/blahblahblah.../Downloads/templelibrary_2.9.1/doc/temple/ui/eventtunneling/EventTunneler.html This is an example about how to nest MultiStateButtons and how EventTunneling

Re: [Flashcoders] Custom Event Question

2011-08-16 Thread John Polk
this post first:  http://www.dehash.com/2010/03/07/as3-signals-bubbling-note/ You can do it, it's just not automatic. Jason Merrill Instructional Technology Architect II Bank of America  Global Learning ___ From: John Polk [mailto:j.pol...@yahoo.com] Sent: Monday, August

Re: [Flashcoders] Custom Event Question

2011-08-15 Thread John Polk
Hmmm. Why didn't anyone recommend Robert Penner's as3-signals? John From: John Polk j.pol...@yahoo.com To: John Polk j.pol...@yahoo.com; Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Sunday, August 14, 2011 7:03 PM Subject: Re: [Flashcoders] Custom

Re: [Flashcoders] Custom Event Question

2011-08-15 Thread John Polk
From: Merrill, Jason jason.merr...@bankofamerica.com To: John Polk j.pol...@yahoo.com; Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Monday, August 15, 2011 3:08 PM Subject: RE: [Flashcoders] Custom Event Question Yeah man, AS3Signals

Re: [Flashcoders] Simplify XML Call

2011-08-14 Thread John Polk
From: Taka Kojima t...@gigafied.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Sunday, August 14, 2011 4:24 AM Subject: Re: [Flashcoders] Simplify XML Call function getNumItems(level:int, xml:XML):int{ var levelXML:XML = xml.menu; for(var i:int = 0; i level; i ++){

[Flashcoders] Custom Event Question

2011-08-14 Thread John Polk
Hi; I have this code in the class dispatching the custom event:         private function progressHandler(e:LoaderEvent):void         {             dispatchEvent(new Event(e.target.progress));         } (This is from a greensock loaderEvent.) I have this pseudo-code from the class listening

Re: [Flashcoders] Custom Event Question

2011-08-14 Thread John Polk
From: John Polk j.pol...@yahoo.com To: Flash List flashcoders@chattyfig.figleaf.com Sent: Sunday, August 14, 2011 12:04 PM Subject: [Flashcoders] Custom Event Question I have figured out how to do this. It requires more than just dispatching a custom event

Re: [Flashcoders] Simplify XML Call

2011-08-13 Thread John Polk
From: Henrik Andersson he...@henke37.cjb.net To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Friday, August 12, 2011 1:43 PM Subject: Re: [Flashcoders] Simplify XML Call ActionScript 3 is a compiled language. There is no such thing as an eval function in as 3. Well, that's

Re: [Flashcoders] Simplify XML Call

2011-08-13 Thread John Polk
From: Henrik Andersson he...@henke37.cjb.net To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Saturday, August 13, 2011 3:37 PM Subject: Re: [Flashcoders] Simplify XML Call There is still no eval function. I know there is no eval fn. Jason Merrill earlier wrote: You just need

Re: [Flashcoders] Simplify XML Call

2011-08-12 Thread John Polk
I appreciate Ktu's efforts here; however, Merrill is right. I've written this:                         var j:String = xml.menu.item[whichItems[0]];             var k:String = new String();             var l:int = level;             while (l--)             {                 k += .item[whichItems[

[Flashcoders] Simplify XML Call

2011-08-11 Thread John Polk
Hi; I have this code:             switch (level)             {                 case 2:                     totalItems = xml.menu.item[whichItem].item.length();                     break;                 case 3:                     totalItems =