Re: [Flashcoders] problem with dictonary on dynamic buttons

2009-09-04 Thread jonathan howe
Your dictionary is built off of that goto attribute but then you're passing in an instance of the object into the dictionary array. You have not assigned a name property to your assets. So when defining them you might also set the .name property to the @goto attribute. e.target as String will

RE: [Flashcoders] problem with dictonary on dynamic buttons

2009-09-04 Thread thomas horner
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of jonathan howe Sent: 04 September 2009 14:34 To: Flash Coders List Subject: Re: [Flashcoders] problem with dictonary on dynamic buttons Your dictionary is built off of that goto attribute but then you're passing in an instance of the object

Re: [Flashcoders] problem with dictonary on dynamic buttons

2009-09-04 Thread jonathan howe
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of jonathan howe Sent: 04 September 2009 14:34 To: Flash Coders List Subject: Re: [Flashcoders] problem with dictonary on dynamic buttons Your dictionary is built off of that goto attribute but then you're passing in an instance

[Flashcoders] problem with dictonary on dynamic buttons

2009-09-03 Thread thomas horner
ok i'm creating a dictionary to store the values contained by some sprites that im using as button but i keep getting term undefined when i click on the item in the output. //create dictionary to store data public var dict:Dictionary = new Dictionary(); for (var Wi:int=0; Wi len;