all groups > flash actionscript > march 2005 >
You're in the

flash actionscript

group:

2 simple questions, please help!


Re: 2 simple questions, please help! esandi
3/19/2005 6:05:46 PM
flash actionscript:
[quoted text, click to view]
2 simple questions, please help! Lotjeneedshelp
3/19/2005 8:48:50 PM
Can anyone please help me with this?

I'm new to actionscripting, so please don't use terms..:)

I know that I have to start with this:

on (release) {
}

but what, in these 2 cases, to type between the brackets?

Sorry it this is a dumb question... and thanks heaps in advance...

;)
Re: 2 simple questions, please help! mat
3/20/2005 2:33:12 PM
[quoted text, click to view]

What 2 cases?
Re: 2 simple questions, please help! html in flash
3/20/2005 2:57:32 PM
for the email case, what you do for code is this for the actionscript on the
button:
on(release) {
(preferable tab)getURL("url of website","_self");
}

for more information on the target (_self), use the little reference book icon
in the actions panel. Hope his helps for the first case.
Re: 2 simple questions, please help! Lotjeneedshelp
3/20/2005 6:49:01 PM
Originally posted by: Newsgroup User
What 2 cases?
What are you trying to do?


Sorry, I only typed my actual questions in the subtitle/summary part of my
post..:)

What I want to do is:

1. Make a button an email link
2. Make a button open a .pdf format file in a new window (with a fitted size
if possible)

I know how to make a button and that the actionscripting has to start with
on (release) {
}

But I don't know what to type between the 2 brackets... can you help me out?

Thanks..:)


Re: 2 simple questions, please help! Lotjeneedshelp
3/20/2005 6:53:08 PM
Originally posted by: html in flash
for the email case, what you do for code is this for the actionscript on the
button:
on(release) {
(preferable tab)getURL("url of website","_self");
}

for more information on the target (_self), use the little reference book icon
in the actions panel. Hope his helps for the first case.


Thanks so much for your reply! However, I don't underdtand how "getUR("url of
website","_self") can be an email link..? I just want to do the flash
equivalent of the "mailto:blablah@hotmail.com" thing.. isn't that possible?

Maybe you meant what you wrote is usable for my other problem, the pdf. file?
And what did you mean by 'preferable tab'?

Sorry...:(
Re: 2 simple questions, please help! kglad
3/21/2005 2:19:15 AM
on (release){
getURL ("mailto:" +recipient+ "?cc=" + cc + "&subject=" + subject + "&body="
+body)
}

http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_15695

and to open a pdf file i think you'll need to use some javascript and the
fscommand() unless this is a projector file and you can use fscommand() alone.
Re: 2 simple questions, please help! Lotjeneedshelp
3/22/2005 1:01:32 PM
Thanks everyone! kglad, the emaillink was a piece of cake after your help:)

What do you mean by 'projector file'? It must be the language barrier... ;)
anyway, I think javascript would be to complicated for me so I;m interested in
the simle way. Of it is so much more simple to just have the pic load as a
bitmap in a new window, maybe that's a better idea?

Anyway, thanks heaps everyone.

Lotte

Re: 2 simple questions, please help! steamboy
3/22/2005 2:42:44 PM
To open a pdf file, you can use the getURL command again. on (release){ getURL
('myPDF.pdf','blank') } I've found that it doesn't work if you just test the
movie in flash, but if you run it from a browser, the pdf should open fine.
Owen
AddThis Social Bookmark Button