Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 04-16-2012, 06:29 AM   #1
inpen
Registered User
 
Join Date: Apr 2012
Posts: 6
Post Js & as

Hello ActionScript friends! My name is Ignacio, i'm from Argentina and i'm seeking for some help in the JS and AS field.

I have an assingment to do by tomorrow morning, and i'm a little stuck with this particular question.

Quote:
There is a Javascript function called “clickMe”, write out the ActionScript that would call the function “clickMe” in a button named “adButton”.
Could anyone help me please?
many thanks in advanced!
inpen is offline   Reply With Quote
Old 04-16-2012, 09:53 AM   #2
wvxvw
Holosuit User
 
wvxvw's Avatar
 
Join Date: Oct 2006
Location: Tel Aviv
Posts: 4,301
Send a message via ICQ to wvxvw
Default

You should look into ExternalInterface class, it's call() method in particular. Calling a JavaScript function would be:
ActionScript Code:
ExternalInterface.call("javaScriptFunction");
assuming in the JavaScript you have:
ActionScript Code:
function javaScriptFunction() { /* do stuff */ }
__________________
The .NET open source editor for Flash and web developers
*This would be my contribution to the project*
couchsurfing if you need it
wvxvw is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:52 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.