-
1. Re: change button action on flash skin template
megaTiagoNunes Producs. Aug 15, 2014 2:31 PM (in response to beiguy)Do you mean this?
button.addEventListener(MouseEvent.CLICK, button_function);
function button_function(event:MouseEvent):void
{
video.stop();
this.gotoAndStop(DesiredFrame:int);
}
-
2. Re: change button action on flash skin template
beiguy Aug 15, 2014 2:55 PM (in response to megaTiagoNunes Producs.)Thanks for the response, Tiago.
Yes it would seem that script would do to job. But where does it get entered?
When I look in the cell of the actions for the template I see things like "set up linkages", where a graphic is anchored, height and width, and so on. But where is the script, for example, for telling the play/pause button what to do? Or the volume slider or anything else?
Is it embedded in a way I can't get to it? Thanks again!
-
3. Re: change button action on flash skin template
megaTiagoNunes Producs. Aug 16, 2014 1:20 PM (in response to beiguy)What is the name of the template model you're using?
Do not translate it, just tell me the original name in the original language you're using.
-
4. Re: change button action on flash skin template
beiguy Aug 16, 2014 1:59 PM (in response to megaTiagoNunes Producs.)It's named "SkinOverPlayStopSeekCaptionVol.swf".
-
5. Re: change button action on flash skin template
megaTiagoNunes Producs. Aug 16, 2014 2:11 PM (in response to beiguy)Do you want to create a button or refer the event and function to an existing button?
-
6. Re: change button action on flash skin template
beiguy Aug 16, 2014 2:16 PM (in response to megaTiagoNunes Producs.)I'm trying to change the "stop" button to a "menu" button that takes the user back to frame 01 where there's a menu of available videos. Only using one scene. I've able to change the button's icon to a text that says "menu" and make it bigger. Just looking to change it from stopping the video playback to doing a bit of navigation.
-
7. Re: change button action on flash skin template
megaTiagoNunes Producs. Aug 16, 2014 2:34 PM (in response to beiguy)I didn't even know that was possible, but it appears like the AS script is embedded, I do not think it is hidden. I searched in every single class, they're all as default / empty. Also searched in frames within the MCs, and of course, in the main timeline.
However, if you use the script I gave you, it still works as you want it to.
stop_mc.addEventListener(MouseEvent.CLICK, button_function);
function button_function(event:MouseEvent):void
{
this.gotoAndStop(2); //Change to the menu's frame
}

