Webmaster Forum

Go Back   Webmaster Forum > Webmaster Discussion Forums > Web Design and Graphics

Notices

Reply
 
LinkBack Thread Tools Display Modes
Old 05-01-2008, 04:41 AM   #1
New Member
 
Join Date: Apr 2008
Posts: 6
Credits: 0
online.education is on a distinguished road
Default ActionScript mouse events(?)

I am modifying a certain ActionScript / Flash and I want to do something upon mouse click event. I look at the code and I see this:

Code:
LButton.onPress = function() {
	startFlip (-1);
}
LButton.onReleaseOutside = function () {
	flipRelease();
}
LButton.onRelease = function () {
	flipRelease();
}
RButton.onPress = function() {
	startFlip (1);
}
RButton.onReleaseOutside = function () {
	flipRelease();
}
RButton.onRelease = function () {
	flipRelease();
}
How do I modify this? Do I add something like ...

Code:
LButton.onClick = function () {
...
}
Do I need to make a few clicks here and there inside Flash to write a function like this? How do I do this???

(I started using Flash only several days ago by the way. This is why I'm asking a very basic question.)
__________________
online.education
online.education is offline   Reply With Quote
Old 05-11-2008, 05:32 PM   #2
Regular Member
 
xhan's Avatar
 
Join Date: Apr 2008
Location: UK
Posts: 69
Credits: 2
xhan is on a distinguished road
Send a message via AIM to xhan Send a message via MSN to xhan Send a message via Yahoo to xhan
Default

onRelease is the same as a mouse click - essentially its saying after you release the mouse click do this. which is the same as onPress.
__________________
Blog | Portfolio

twitter
xhan is offline   Reply With Quote
Reply

Bookmarks

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

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



vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios