Hey, got a quick noob questiona about a getURL command in Flash. If anyone can help out of the kindness of their heart, let me know, it's urgent. I'm on yahoo (capndan71) and aim (Isercle), the sooner the better. It's so simple, you expert Flashers will probably laugh. thanks!
Just will be faster to chat with someone about it IM'ing, instead of going back and forth posting or PM'ing.
OK, here's the question: I have a Flash file with a button that has a getURL action applied to it, to open a new URL in a new window. I've looked up several different tutorials on this, and it seems SOOOO simple, yet I can't get it to work! Wondering what I'm doing wrong... Urgent matter, I need to get this done very soon, so any help would be appreciated! Here's the simple code: on(release){ getURL("http://www.smggo.com", "_blank"); } I believe it's just a button I'm using, not a movieclip. I went to "Insert New Symbol", selected "button"... then I typed some text, and chose "Break apart" and changed the color. Then, I went back to Scene 1, and on the keyframe I chose to start making the button available, I dropped in the button I had just made. On that keyframe, I opened the Actions menu, and put in the code you see above. Can anyone help? I'm desperate!
I don't realy understand what you have done but you have to put this script on button (or MovieClip), NOT in a frame.
Well, I've gotten a little further... I did apply it to the button itself (not frame), and that seems to work better... but now, when the movie plays, there's only certain areas on the button (which is made up of text) that the cursor actually highlights the button... I tried putting a box with no fill or stroke over the text, but that doesn't seem to work either. Check it out: http://www.designumber18.com/cashflick/banners/sample_banners.html
if you double click on the button (to edit it), it comes up with what looks like 4 large frames at the top. The first one is what it looks like normally The 2nd is what it looks like when someone puts their mouse over it The 3rd is what it looks like when the mouse button is held down on it the 4th is the hit state (where people can click on it, but this doesn't show up, I usually put a shape around where I want them to be able to click, if it's text then a rectangle usually works.)
Twisted, that's exactly what I did, which is why I'm puzzled. On the "hit" state, that's where I put the rectangle (again, it was empty, no fill, no stroke), thinking that would make it easier to click on for the user. But when I play the movie, the cursor looks and acts like a text cursor when I'm over the text part of the button, and only functions correctly when I hover over the "blank" part of the button (the area of the rectangle that doesn't have text in it).
If it's empty then theres nothing there... Fill it with something. cause right now it only functions when you hover over the border of the rectangle. Don't worry no one will see what you fill it with.
Weird, I did what you said, I filled the box with solid white, and still got the same results... But, when I used the "Break Apart" command on all the text, essentially the same thing as "create outlines" in Illustrator, that fixed the problem. Doesn't seem like it should be that way, cuz now I can't edit the text, only can re-type it. But, it's a good enough fix for now. Thanks for your help!
hmmm. How did you have it? The text was inside the button? Shouldn't matter if it's broken appart or not...weird. Well if you get any other problems just hit me up. But it'd be easier if I could get the .fla to help next time.
Yeah, that would have been easier, probably. LOL... thanks for your help, I'll throw some green rep your way. As for the text, do you think it matters if the box is on top of the text, or vice-versa? I had the text on one layer, and the box on another layer above it. Oh well.