More Action Script:
In order to implement any action in Flash, it starts with a click of a button or a keyboard button.
The following code is used for developing this interactivity:
/* Mouse Click Event
Clicking on the specified symbol instance executes a function in which you can add your own custom code.
Instructions:
1. Add your custom code on a new line after the line that says "// Start your custom code" below.
The code will execute when the symbol instance is clicked.
*/
button_1.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler);
function fl_MouseClickHandler(event:MouseEvent):void
{
// Start your custom code
// This example code displays the words "Mouse clicked" in the Output panel.
trace("Mouse clicked");
// End your custom code
}
Online ideas about Instrumental Music Education and Technology Concepts and other topics related to integrating computer applications with musical instrument learning.
Sunday, October 24, 2010
PE_5
More ActionScript:
This time, I focused on the ability for a button to move from one frame to another on the timeline. In order to set up this interactivity, the following code must be implemented .
/* Click to Go to Frame and Stop
Clicking on the specified symbol instance moves the playhead to the specified frame in the timeline and stops the movie.
Can be used on the main timeline or on movie clip timelines.
Instructions:
1. Replace the number 5 in the code below with the frame number you would like the playhead to move to when the symbol instance is clicked.
*/
button_1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame);
function fl_ClickToGoToAndStopAtFrame(event:MouseEvent):void
{
gotoAndStop(5);
}
PE_4
Back to more study with Action Script. In considering the need for interactivity, I found the need to learn about buttons and how the scripting language works. In this specific instance I learned about the "Rollover" script command that allows for further buttons to be utilized in a network of interactivity.
button_1.addEventListener(MouseEvent.MOUSE_OVER, fl_MouseOverHandler);
function fl_MouseOverHandler(event:MouseEvent):void
The above script is the beginning of such interactivity
Sunday, October 17, 2010
PE3_Flash_Custom Presets
Not only can you use Motion Presets, I've learned you can make your own. After tweening your own custom animation, you can save that information as a custom keyframe. Overtime, I can see the value of building you own presets when you are doing repetitious work that you want to look a certain way but you don't want to rebuild it everytime. Very handy.
PE2_ Flash_Motion_Presets
I've never used motion presets before. Essentially it allows you to integrate prerendered transitions for any and all graphics you so choose. Very similar to imovie but much more open ended in that you have complete control over where the graphics are placed and how they move on screen. Very handy tools.
PE1_Flash
I'm learning more about Flash in my limited knowledge of masking and revealing shapes. Linda.com has been very helpful in providing tutorials for these types of projects.
I went ahead and made my own project to take the technique further into a series of blue wavy lines that appear in a sequential animated format. Now all I have to do is review how to tween....
I went ahead and made my own project to take the technique further into a series of blue wavy lines that appear in a sequential animated format. Now all I have to do is review how to tween....
Subscribe to:
Comments (Atom)





