[Flashcoders] Issue with movieClip.onRelease

2006-05-22 Thread Craig Stanford
Hello Everyone, I am experiencing a strange issue when I am trying to do an onRelease in the following code. All it does is cycle through the items in an XML file, then assign the data to labels, buttons etc. Everything works fine until I try to assign the URL. Even when I try to trace it out

Re: [Flashcoders] Issue with movieClip.onRelease

2006-05-22 Thread stacey
What version of flash are you using? YOu can try delegate to solve scoping issues but i kinda set it up in two ways as the comments suggest. Also, avoid references to root if possible. import mx.util.Delegate; function buildNav(p_content:Array):Void { for (var i:Number = 0;

Re: [Flashcoders] Issue with movieClip.onRelease

2006-05-22 Thread Ramon Miguel M. Tayag
Try tracing the _root.contentItems[1].jobUrl in the different steps of the program: when you create it, before you enter the onRelease defining part, etc. The problem must lie in referencing it. Note, however, that this code won't work (look at part 1): http://pastebin.com/732422 You'll need

Re: [Flashcoders] Issue with movieClip.onRelease

2006-05-22 Thread Craig Stanford
Hi guys, Thanks for your fast responses. Ramon, your solution worked and I can see the values of the URL inside the onRelease function when i trace it, however a browser wont launch when i click the button. Im not sure why. Any suggestions? CODE function buildNav():Void { var

Re: [Flashcoders] Issue with movieClip.onRelease

2006-05-22 Thread Craig Stanford
Actually its all good, some security issue in the browser itself. Thankyou very much! Craig. On 5/23/06, Craig Stanford [EMAIL PROTECTED] wrote: Hi guys, Thanks for your fast responses. Ramon, your solution worked and I can see the values of the URL inside the onRelease function when i