Skip to main content
Inspiring
June 28, 2007
Answered

GetURL

  • June 28, 2007
  • 3 replies
  • 278 views
I can not believe this simple task is giving me such a hasle. I can't seem to figure out how to link to an external URL from within flash. Basically, I just want to open a new browser window with a certain webpage in it when a visitor clicks a button. How would I go about doing this in ActionScript 3?

Also, I am still having the troulbe of getting a global varible to work within Flash CS3...any ideas?
This topic has been closed for replies.
Correct answer WebmastaDj
Yep, found the answer about 5 mins after I posted it.

Also at: http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14192&sliceId=2

3 replies

WebmastaDjAuthorCorrect answer
Inspiring
June 28, 2007
Yep, found the answer about 5 mins after I posted it.

Also at: http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14192&sliceId=2
Participant
June 28, 2007
is AS3 use flash.net.navigateToURL

there is example code here:
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/net/package.html


Inspiring
June 28, 2007
WebmastaDj,

> I can not believe this simple task is giving me such a hasle.
> I can't seem to figure out how to link to an external URL
> from within flash.

Shouldn't be too hard, I agree. :)

> Basically, I just want to open a new browser window with
> a certain webpage in it when a visitor clicks a button. How
> would I go about doing this in ActionScript 3?

Well, you've got two goals, here: a) reponding to a button click, and
b) sending the browser to a new URL.

Let's see what code you've got so far, and I'll step you through were
you're stuck.

> Also, I am still having the troulbe of getting a global varible
> to work within Flash CS3...any ideas?

What do you mean by "global variable"?


David Stiller
Adobe Community Expert
Dev blog, http://www.quip.net/blog/
"Luck is the residue of good design."