Flash how to click over after 4 clicks
To get it to fire up the next click that will take you over to the website you still need what’s called a “counter”. Look through the code I’ve given you and apply only the lines that handle the counter.
//———— apply the sections below the best way you can and be sure to read through my comments as they will tell you where each section should be placed.
var nClickCount:int = 0; //initialize the counter first… don’t put it inside of a function.
// You will notice I took out the trace calls … I use a trace to indicate what is happening. I ran trace(nClickCount); immediately after the line nClickCount++; so I could find out the value of nClickCount each time the mouse button was clicked.
//The portion below is inside the the function that receives mouseUp event data
nClickCount++;
if(nClickCount==4){
var masURL:URLRequest = new URLRequest(“http://www.miamiadschool.com“);
navigateToURL(masURL);
}
//End of click over section
| Print article | This entry was posted by admin on October 26, 2009 at 7:35 am, and is filed under MAS - Flash 1, general. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |