FORUMS: list search recent posts

I can't create a button link

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
lmenstudio
I can't create a button link
on Dec 20, 2007 at 2:53:10 pm

I have Flash MX (there's no number) and I work in a Mac G5 OS 10.4. I can do character animations in flash but suck at active scripts. I can't make a button link to a URL.


I imported the button graphic and put it on it own layer, made it a symbol/button. I went to action scripts and Operations/Actions/Browser-Network and selected Get Url. I put the script in, but when I run the movie the linked page doesn't open. The curser turns to a hand when it goes over the button graphic but the linking part doesnt work.

ACTION SCRIPT: getURL(http://www.little-men.com/3D_stroke_01.html,"_blank");

ERROR MESSAGE:
Symbol=theTextMC, Layer=Layer 2, Frame=1: Line 1: ')' or ',' expected
getURL(http://www.little-men.com/3D_stroke_01.html,"_blank");

Would you know what I'm doing wrong?

Thanks for your help.


Trace Burroughs

TEL: 203-544-8708


Tracy Burroughs
Little Men Entertainment
little-men.com/LME.html


Return to posts index

Sean Hellwig
Re: I can't create a button link
on Dec 20, 2007 at 7:57:09 pm

What layer are you putting the actionscript on? try clicking on the button in the stage (so that it is selected), then open up the actionscript window and enter in this.

on (release) {
getURL("http://www.little-men.com/3D_stroke_01.html","_blank");
}


"I'm in the business of making sh*t happen"


Return to posts index

lmenstudio
Re: I can't create a button link
on Dec 20, 2007 at 8:54:04 pm

Sean,

Thanks for getting back to me and your help. It still doesn't work. The action script is on the same later as the button. Which is the top layer. There are 2 other layers below it.The only way I could select the button as you suggested was to lock the layers then select all. If I tried to just click on it ,it was all frozen and nothing got selected. By selecting all I could se e the square bounding box of each item and by locking off the other 2 layers and selecting all, the button layer was selected.

Trace


Return to posts index


Sean Hellwig
Re: I can't create a button link
on Dec 20, 2007 at 10:09:01 pm

perhaps you could email me your fla file, or post it somewhere for me to download.

"I'm in the business of making sh*t happen"


Return to posts index

lmenstudio
Re: I can't create a button link
on Dec 20, 2007 at 11:41:42 pm

I'll email you the file, that would be great!

what is your email address?

Tracy


Return to posts index

Sean Hellwig
Re: I can't create a button link
on Dec 21, 2007 at 1:52:39 am

Check your email :)

"I'm in the business of making sh*t happen"


Return to posts index


lmenstudio
Re: I can't create a button link
on Dec 21, 2007 at 2:20:09 am

Sean,

I got your email and sent you the fla.

Thanks


Return to posts index

George Socka
Re: I can't create a button link
on Dec 21, 2007 at 1:38:22 am

You are missing a few bits bit - turn on the script assistant. try:

on (release) {
getURL("http://ww.torontoboatshow.com", target="_blank");
}

not ethe on (release) { ..}

as well as the word target="..."

the script assitant makes it easy to do this by just filling in the blanks. If it wont turn on, delete all of your script.

and no - the boat show is not my site but I doing a video for an exhibitor

George Socka
BeachDigital
ww.beachdigital.com


Return to posts index

lmenstudio
Re: I can't create a button link
on Dec 21, 2007 at 2:16:35 am

George,

Thanks so much for helping me out. Your changes enabled the button to open the browser on clicking it but not to the page specified.

My browser default page is google and that's what it opens up to.

Trace


Return to posts index


lmenstudio
Re: I can't create a button link
on Dec 21, 2007 at 2:19:21 am

George,

I forgot to add, that I can't find script assist in the menu.

Trae


Return to posts index

George Socka
Re: I can't create a button link
on Dec 21, 2007 at 2:28:20 am

The script assist thing is on the upper right of the action script window - in Flash 8 and CS3 - pretty sure it was there in MX as well - maybe not :-(

As to why its not going to the website - do you have this loaded on a webserver, or just on your computer? If you are running it locally, then you may have security issues - are you on a Mac? then all bets are off - but that code snippet came from a flash banner I just created for the top of http://www.thenyc.com which works like a charm.

George Socka
BeachDigital
ww.beachdigital.com target="_blank"


Return to posts index

lmenstudio
Re: I can't create a button link
on Dec 21, 2007 at 2:50:04 am

You were right about the security issue. The flash player settings were set to not allow communication to outside sites.
It works fine now. Thanks for taking the time to work on this.

Trace


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]