Be a Supporter!

need simple button help

  • 473 Views
  • 5 Replies
New Topic Respond to this Topic
AlmightyHans
AlmightyHans
  • Member since: Aug. 6, 2004
  • Offline.
Forum Stats
Moderator
Level 11
Filmmaker
need simple button help Mar. 21st, 2006 @ 04:51 PM Reply

what code do i use to get my button to open a new window here:

http://www.newground..m/portal/view/302313

when you click it. i use flash mx 2004...


BBS Signature
Paradox
Paradox
  • Member since: Jan. 28, 2006
  • Offline.
Forum Stats
Member
Level 29
Blank Slate
Response to need simple button help Mar. 21st, 2006 @ 04:56 PM Reply

What do you mean, a button in a Flash movie which opens a new IE/Firefox window?

AlmightyHans
AlmightyHans
  • Member since: Aug. 6, 2004
  • Offline.
Forum Stats
Moderator
Level 11
Filmmaker
Response to need simple button help Mar. 21st, 2006 @ 04:59 PM Reply

At 3/21/06 04:56 PM, -Paradox- wrote: What do you mean, a button in a Flash movie which opens a new IE/Firefox window?

i mean like...lets say this project is finished and posted on newgrunds...the cartoon im working on is part 3 i want a button that will be clickable (duh) and will open a new window to part 1 so you can see it... what code do i need for the button to open a new window and take me to the url, link, whatever you want to call it?


BBS Signature
TrueDarkness
TrueDarkness
  • Member since: Aug. 31, 2004
  • Offline.
Forum Stats
Member
Level 27
Blank Slate
Response to need simple button help Mar. 21st, 2006 @ 05:02 PM Reply

For urls you can use:

on(release){
getURL("http://www.yoursitehere.com/", "_blank")
}

and for loading the actual movie try somethign like

on(release){
_root.loadMovie("http://www.yourflashurlhe
re.com/")
}

Paradox
Paradox
  • Member since: Jan. 28, 2006
  • Offline.
Forum Stats
Member
Level 29
Blank Slate
Response to need simple button help Mar. 21st, 2006 @ 05:03 PM Reply

Just give the button this code:

on (release){
getURL("http://www.newgrounds.com/portal/v
iew/302313", "_blank");
}

K?

Paradox
Paradox
  • Member since: Jan. 28, 2006
  • Offline.
Forum Stats
Member
Level 29
Blank Slate
Response to need simple button help Mar. 21st, 2006 @ 05:29 PM Reply

At 3/21/06 05:03 PM, -Paradox- wrote: on (release){
getURL("http://www.newgrounds.com/portal/v
iew/302313", "_blank");
}

I don't know what happened there, but there is only three lines in the code, the third line of the code above actually is the end bit of line two.