randomFrame = random(50+1); gotoAndStop(randomFrame); trace(this._currentFrame);
Category: Programming
Open a PDF file from Flash
//open in a new window getURL(“http://www.mywebsite.com/mypdf.pdf”,”_blank”); //open in the same window getURL(“http://www.mywebsite.com/mypdf.pdf”,”_top”); //open in a frame getURL(“http://www.mywebsite.com/mypdf.pdf”,”_frameName”);
Creating a Function 101 Basic function
//declare your function and function name: traceFunction = function(parameterPassed){ //what do you want the function to do? trace(parameterPassed); //end your function }; //Lets make it work traceFunction(“Hello Earth”)
Random Number Specifying Variable
//random(#) randomLimit = 60 myRandomNumber = random(randomLimit); trace(myRandomNumber)
Get a Random Number
//random(#) myRandomNumber = random(60); trace(myRandomNumber)
Creating a “mailto” link
//code inside a Button onRelease(){ getURL(“mailto:helmut@humanletterstudios.com”) } //Code On Timeline myButton.onRelease = function(){ getURL(“mailto:helmut@humanletterstudios.com”) };
Creating a Web Link
//code inside a Button onRelease(){ getURL(“http://www.humanletterstudios.com”,”_blank”) } //Code On Timeline myButton.onRelease = function(){ getURL(“http://www.humanletterstudios.com”,”_blank”); };
Creating HTML Links
This Tutorial goes to GlowintheDark, his question was: u know like on a web site how can i link another website so when they click it automaticaly takes them there? Ok, this is really easy all you have to use is the <a> </a> tag. Let me give you an example so you can understand […]
PHP Test
Hi . You are years old.