Free2Code
The majority of forums are now only available as archives, which means posting/editing is disabled.

The Anything and Everything forum is still open.
 
Time: 2013-05-18, 04:47am
OnClick by flash button
Subject: OnClick by flash button  ·  Posted: 2004-04-27, 08:42pm
Rank: ? (1)
Member #: 15197
Hi,

My web site use some buttons for search activities: 'Search', 'Clear' and such.
Each button runs JS follow OnClick event.

For new graphical and functional capabilities I replaced those Input buttons with Flash (*.swf) buttons.
Result: It looks & fill as flash element but the OnClick event does not do anything.
I add to my function some alerts to see where the problem is but it does not work as well.

Do I have to change my JavaScript functions to support Flash button?

Pls. your assistance,

Tsiki

 
  Reply to this ·  Post link ·  Top
Subject: Re: OnClick by flash button  ·  Posted: 2004-05-03, 02:00pm
Rank: ? (900)
Member #: 3
lets see...
are you having javascript react to onclicks of your flash objects? if so, flash has actionscript that you can embed the code right in your flash swf. Let me know anymore. Perhaps we can take a look at your work, ect.

--bs0d | allsyntax.com
 
  Reply to this ·  Post link ·  Top
Subject: onClick by flash button  ·  Posted: 2004-07-22, 08:31am
Rank: Unregistered
 tsiki
Hi,

My web site use some buttons for search activities: 'Search', 'Clear' and such.
Each button runs JS follow OnClick event.

For new graphical and functional capabilities I replaced those Input buttons with Flash (*.swf) buttons.
Result: It looks & fill as flash element but the OnClick event does not do anything.
I add to my function some alerts to see where the problem is but it does not work as well.

Do I have to change my JavaScript functions to support Flash button?

Pls. your assistance,

Tsiki



=========

Probably you already solved your problem but I had the same problems when I tried to initiate a Javascript function at the onClick event of a flash button (swf).
Finally I got it working by using the onActivate event instead of the onClick event.
After the flash button was pressed the onActivate event initiated the javascript function and all worked fine.

Maybe if somebody encounters the same problems in future it can help them out
 
  Reply to this ·  Post link ·  Top
This post has been removed by a moderator (reason: genius)
 
  Top
Subject: Re: OnClick by flash button  ·  Posted: 2004-10-30, 05:53am
Rank: Unregistered
Where did you find this on Activate command at ?
 
  Reply to this ·  Post link ·  Top
Subject: Re: OnClick by flash button  ·  Posted: 2004-12-19, 06:05am
Rank: Unregistered
this anonymous coward bloke seems to be everywhere!



 
  Reply to this ·  Post link ·  Top
Subject: Re: OnClick by flash button  ·  Posted: 2004-12-30, 06:45pm
Rank: Unregistered
put onActivate in the object tag
 
  Reply to this ·  Post link ·  Top
Subject: Re: OnClick by flash button  ·  Posted: 2004-12-30, 06:46pm
Rank: Unregistered
use onActivate instead of onClick
 
  Reply to this ·  Post link ·  Top
Subject: Re: OnClick by flash button  ·  Posted: 2005-03-05, 07:23am
Rank: Unregistered
onActivate doesn't work in Mozilla browser (in IE works fine). Any other ideas??
 
  Reply to this ·  Post link ·  Top
Subject: Re: OnClick by flash button  ·  Posted: 2005-05-23, 04:44pm
Rank: Unregistered
hw do u create a clear or reset button in flash???
eg. clear everything inside text field...


thanks

 
  Reply to this ·  Post link ·  Top
Subject: Re: OnClick by flash button  ·  Posted: 2005-05-28, 02:19am
Rank: Unregistered
wankers
 
  Reply to this ·  Post link ·  Top

Pages: 1

Please login or register to post a reply.

Penguino AVR

Want to learn about robotics or microcontrollers?
Check out the Penguino AVR from our friends at
Icy Labs