Adobe Dreamweaver Forums



Last 10 THreads :         Spry Accordion (Last Post : Ken Ford - *ACE* - Replies : 3 - Views : 8 )           »          Event listener (Last Post : NedWebs - Replies : 1 - Views : 2 )           »          action script for button (Last Post : melanro - Replies : 4 - Views : 10 )           »          Problems with variables (Last Post : Rob Dillon - Replies : 1 - Views : 2 )           »          Trouble with SQL Query Tool on Leopard (Last Post : pdenlinger - Replies : 4 - Views : 5 )           »          Sefl-signed ssl certificate not possible? (Last Post : sysfor - Replies : 2 - Views : 8 )           »          Adding database RDS Login Dreamweaver 8 Coldfusion 8 (Last Post : Daverms - Replies : 3 - Views : 5 )           »          set width of adv. datagrid according to image width. (Last Post : Devsachin - Replies : 0 - Views : 1 )           »          Dreamweaver cs4 (Last Post : Murray *ACE* - Replies : 9 - Views : 10 )           »          Centering a site using layers in browser window (Last Post : Murray *ACE* - Replies : 3 - Views : 4 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Director
 
Tags: , ,



Reply
  #1 (permalink)  
Old 08-08-2008, 03:39 PM
Lee Cawley
 
Posts: n/a
Diggs:
Default Flash Button component

I have come across a problem with the Director documentation (there's a shocker
eh?) regarding Button component events that may be causing some confusion.

In the events section for the Button, it lists Button.click as the triggered
event. This is in fact incorrect and it is "onRelease" that gets triggered when
this button is pressed. Here is a sample snippet to help people on their way...

--Create the new object for the flash connection
myNewObject = newObject("Anything")

--Set the callBack for the sprite which has the button in it and specify the
Button event
--"onRelease" and the handler to be called in shockwave when the event is
triggered "#shockwaveHandler"
sprite(??).setCallBack(myNewObject, "onRelease" , #shockwaveHandler, me)

--Create the handler to handle that event
on shockwaveHandler me
--Put some code here to run when the Button is pressed
end



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-08-2008, 09:43 PM
Sean Wilson
 
Posts: n/a
Diggs:
Default Re: Flash Button component

Although the documentation is atrocious, and your "workaround" might
work, it is unnecessary. If the member.eventPassMode = #passNever
(default) then you can attach a behavior to the sprite that implements
an "on click" handler and this will fire:
--
on click me
put "mouseUp"
end
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 01:03 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk