getURL in Flash..
- Started
- Last post
- 12 Responses
- Blaytont
I'm using the getURL command on a button in Flash to open a new email window. I have the subject and body working ok, but I want to put a link into the body..can't seem to find a way to do that? HREF is not working. Here's the code I'm using:
on (release) {
getURL("mailto:FriendsName@Frien... you want for a subject line")+"&body="+escape("Body copy..."));
}anybody?
- uan0
try http://pastebin.com/ to post your code
- akoni0
as3 or as2?
if you are using as3 its navigateToURL with URLRequest
- Blaytont0
I'm using as2
- nroberton0
Yes, it's now navigateToURL in as3. Here's the example in the docs:
http://livedocs.adobe.com/flex/2…
- nroberton0
Oh, in as2 you are correct to use getURL.
Try simplifying it until the escape is unnecessary, and then add back in what you need until you find what's breaking.
- dbloc0
getURL("mailto:email@email.com&s...
- Blaytont0
so how do I get a link into the body?
- have you worked with AS before?alicetheblue
- not much..I'm a newbeeeBlaytont
- Make another layer on top for as.
Locate your button on its layer in the timeline. Click on it. Insert keyframe on the as layer. In the Properties windwow enter the codealicetheblue - a new keyframe on the "as" layer and enter your code in the Properties windowalicetheblue
- Maybe go to Lynda.com and do some tuts. Its a start of a brand new world :-)alicetheblue
- alicetheblue0
do you have an extra )
?
- Blaytont0
I don't think so...
- after copy...."));alicetheblue
- no, that is closing the first (. so he doesn't have an extra)
if that makes sense hahalvl_13 - i still see an extra on from his first post?alicetheblue
- "one"alicetheblue
- alicetheblue0
on (release) {
getURL("mailto:info@whoever.com...
}
- 93simon0
use escape codes: http://pastebin.com/m6fdaa242