Results 1 to 4 of 4
Thread: Link to URL stopping snow effect
Hybrid View
-
October 11th, 2010, 07:28 AM #12Registered User
postsLink to URL stopping snow effect
I urgently need help.
I am using the downloaded snow effect from the following link.
http://www.kirupa.com/developer/flas...s3_cs4_pg1.htm
I want to add a link to the movie:
I use this:
But it stops the snow - and I'm not sure that the links work either.Code:var link:URLRequest = new URLRequest (“www.myurl.com”); button_mc.addEventListener(MouseEvent.CLICK, gooo); function gooo(event:MouseEvent):void { navigateToURL(link); }
Can anyone help?
Thanks in advance.
-
October 11th, 2010, 09:40 AM #2
keep in mind that you are adding code to button_mc and at least from a visual inspection I can't see the button so I presume you added it.
What your doing should not stop the snow.
Just for my personal curiosity can you try this instead:
the basic information on navigateToURL can be found here:PHP Code:var link:URLRequest = new URLRequest ('www.google.com');
button_mc.addEventListener(MouseEvent.CLICK, gooo);
function gooo(event:MouseEvent):void {
navigateToURL(link, "_blank");
}
http://help.adobe.com/en_US/AS3LCR/F...navigateToURL()Last edited by Shaedo; October 11th, 2010 at 09:46 AM.
-
October 11th, 2010, 11:01 AM #32Registered User
posts
-
October 11th, 2010, 12:25 PM #4
I think the key phrase from the live docs (link previously provided) is:
"In the stand-alone player, you can either specify a new ("_blank") window or a named window. The other values don't apply."
So my interpretation is that the default value (null) does not work in the stand-alone player (that's the one your testing your code in).
Another way of putting this is that to run it in your compiler/stand-alone player you must have "_blank" as your second parameter/argument.Last edited by Shaedo; October 11th, 2010 at 12:28 PM.

Reply With Quote


Bookmarks