Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Flash (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 9th, 2006, 04:44 PM
Registered User
 
Join Date: Dec 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to serpicolugnut Send a message via Yahoo to serpicolugnut
Default Javascript call within Flash file

Hello -
I'm trying to execute a javascript command inside the getURL command inside of Flash.
The javascript command looks like this in the HTML:

Code:
<a href="javascript://" onclick="swapLayers('layer'); return false">Layer</a>
When I try to convert this to the getURL property like this:
Code:
getURL("javascript:onclick=swapLayers('layer'); return false");
...
I get a Syntax error. Does anybody have an idea on how to properly format the this js inside the getURL command?

Thanks

 
Old December 15th, 2006, 05:25 PM
Registered User
 
Join Date: Dec 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

See http://p2p.wrox.com/topic.asp?TOPIC_ID=53416






Similar Threads
Thread Thread Starter Forum Replies Last Post
Controlling Flash w/Javascript GreatRewards ASP.NET 2.0 Basics 5 May 21st, 2008 06:39 PM
javascript control over flash catchrohith Classic ASP Basics 0 November 8th, 2006 05:54 AM
JavaScript & Flash lmod Javascript 2 September 6th, 2005 10:18 AM
Prb with js function call inside flash using XSL schander10 XSLT 3 September 14th, 2004 07:33 AM
calling javascript from flash Adam H-W Flash (all versions) 2 March 17th, 2004 11:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.