catalini
asked on
insert script in flash button
i need to insert this script into a flash button... how can i do it?
thanks
<!-- BEGIN -->
<script language="JavaScript" src="http://www.pippo.it/live/js/status_image.php?base_url=http://www.pippo.it/live&l=tuns&x=1&deptid=2&text=test"></script>
<!-- END -->
thanks
<!-- BEGIN -->
<script language="JavaScript" src="http://www.pippo.it/live/js/status_image.php?base_url=http://www.pippo.it/live&l=tuns&x=1&deptid=2&text=test"></script>
<!-- END -->
or you could parse it in a query string on the url
as in
getURL("http://www.pippo.it/live/js/status_image.php?l=tuns&x=1&deptid=2&text=test", "GET");
and you could rather put the code on the timeline rather than attaching it directly on the button, considered good practise.
buttonname.onRelease = function() {
paste code here, whichever option you decide to go with;
}
as in
getURL("http://www.pippo.it/live/js/status_image.php?l=tuns&x=1&deptid=2&text=test", "GET");
and you could rather put the code on the timeline rather than attaching it directly on the button, considered good practise.
buttonname.onRelease = function() {
paste code here, whichever option you decide to go with;
}
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
did anything here help?
please comment on what has been posted - thanks:)
billystyx
please comment on what has been posted - thanks:)
billystyx
on(release){
l=tuns;
x=1;
deptid=2;
text=test;
//variable value need to be enclosed in quotes unless they are variables themselves
getURL("http://www.pippo.it/live/js/status_image.php","GET");//or post, depending on how you want it sent, and if you want to go to that page.
}
Billystyx