Re: [Flashcoders] addEventListener Problem

2010-03-02 Thread Susan Day
On Tue, Mar 2, 2010 at 9:58 AM, Susan Day wrote: > On Tue, Mar 2, 2010 at 9:47 AM, Geografiek wrote: > >> Hi Susan, >> >> Didn't you attach that url in DisplayPicLoaded in the line >> displayObject.url = myURLs[countRounds];? >> > > No. I attached jpgs. > > >> Error 1119 has to do with referring

Re: [Flashcoders] addEventListener Problem

2010-03-02 Thread Susan Day
On Tue, Mar 2, 2010 at 9:47 AM, Geografiek wrote: > Hi Susan, > Didn't you attach that url in DisplayPicLoaded in the line > displayObject.url = myURLs[countRounds];? > No. I attached jpgs. > Error 1119 has to do with referring to a non-existent property. Do you know > which? > Yes. url. >

Re: [Flashcoders] addEventListener Problem

2010-03-02 Thread Geografiek
Hi Susan, Didn't you attach that url in DisplayPicLoaded in the line displayObject.url = myURLs[countRounds];? Error 1119 has to do with referring to a non-existent property. Do you know which? Tracing is your friend here I would say. To be honest I don't know if the Navigate.to line is corre

Re: [Flashcoders] addEventListener Problem

2010-03-02 Thread Susan Day
On Tue, Mar 2, 2010 at 9:15 AM, Geografiek wrote: > Hi Susan, > In DisplayPicLoaded you add displayObject as a child of container. > So in navToURL you can reference it as e.currentTarget.displayObject > Half-way there. I now have this code: function DisplayPicLoaded(evt:Event):void { var conta

Re: [Flashcoders] addEventListener Problem

2010-03-02 Thread Geografiek
Hi Susan, In DisplayPicLoaded you add displayObject as a child of container. So in navToURL you can reference it as e.currentTarget.displayObject HTH Willem van den Goorbergh On 2-mrt-2010, at 13:59, Susan Day wrote: 2010/3/1 Beatrix Krümmer-Frau Did you check the spelling? Thank you all.

Re: [Flashcoders] addEventListener Problem

2010-03-02 Thread Susan Day
2010/3/1 Beatrix Krümmer-Frau > Did you check the spelling? > Thank you all. Yes, yesterday's lesson was brought to me by the letter 'N' lol. Today's lesson is different. Here's my code: function DisplayPicLoaded(evt:Event):void { var container:Sprite = new Sprite(); var myXArray:Array = new Ar

Re: [Flashcoders] addEventListener Problem

2010-03-01 Thread Nathan Mynarcik
Change your function to this: function navToURL(e:Event):void { trace(e.currentTarget); trace('hi'); } --Original Message-- From: Susan Day Sender: flashcoders-boun...@chattyfig.figleaf.com To: Flash Coders List ReplyTo: Flash Coders List Subject: [Flashcoders] addEventListener Problem

Re: [Flashcoders] addEventListener Problem

2010-03-01 Thread Beatrix Krümmer-Frau
Did you check the spelling? 1120: Access to undefined property NavToURL -> navToURL() Susan Day schrieb: Hi; I have the following code: function DisplayPicLoaded(evt:Event):void { var container:Sprite = new Sprite(); var myXArray:Array = new Array(10,176,342,508,674,840); var loaderInfo:Load

Re: [Flashcoders] addEventListener Problem

2010-03-01 Thread Todd Kerpelman
Flash is case-sensitive. Looks like your "NavToURL" in your addEventListener call should really be "navToURL" --T On Mon, Mar 1, 2010 at 10:50 AM, Susan Day wrote: > Hi; > I have the following code: > > function DisplayPicLoaded(evt:Event):void > { > var container:Sprite = new Sprite(); > var my

RE: [Flashcoders] addEventListener Problem

2010-03-01 Thread Cor
You made a typo: container.addEventListener(MouseEvent.CLICK, NavToURL); must be: container.addEventListener(MouseEvent.CLICK, navToURL); //lowercase nav -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf

RE: [Flashcoders] addEventListener Problem

2010-03-01 Thread Merrill, Jason
>>1120: Access to undefined property NavToURL Today's show was brought to you by the capital letter "N" vs. the lower-case letter "n". Jason Merrill Bank of America Global Learning Learning & Performance Solutions Join the Bank of America Flash Platform Community and visit our Instruction