AS3 Simple Menu

Flash No Comments »

You will need tweenlite for this to work.

You can set the menu items via an array and disable the current button that is pressed.
if you want you can set the URLS in an array and have the selected button pull the URL from your array, right now it’s not being set to do that.

but it would go something like this.

var links:Array = new Array(“link1″,”link2″,”link3″);
then in setNav Function change the URLRequest to
navigateToURL (new URLRequest(links[thisOne]),”_blank”);

import com.greensock.*;
import com.greensock.plugins.*;
import com.greensock.easing.*;
import com.greensock.OverwriteManager;
import flash.display.MovieClip;


var btns:Array = new Array(“home”,”away”,”long”,”about”,”links”,”bio”);
//var links:Array = new Array(“link1″,”link2″,”link3″);
var xPos:Number = 1;
var yPos:Number = 40;
var distance:Number = 1;
var delayBtn:Number = .1
Read the rest of this entry »

Change Color for Multiple Flash Items

Flash No Comments »

Change colors for multiple items in your flash file, textField, movieClips, whatever.

//change color for multiple items
var newColor:Number = 0xDAE2EE;
mcChange = [mc_1, mc_2, mc_3, mc_4, mc_5];//or add text field textField
for (i=0; i<mcChange.length; i++) {
var mainColor:Color = new Color(mcChange[i]);

Remove Multiple Characters or Words from a String

Flash, images No Comments »

So you want to remove multiple characters or words from a string, here’s a simple way to get job done. ActionScript 2.0

var myString:String = “noe noeone chicago”;
var dontNeed:String = “noe ,?,-,:,/,’,&”;
var myArray:Array = new Array();
myArray = dontNeed.split(“,”);
trace(“character or words not needed : “+myArray);
for (i=0; i<myArray.length; i++) {
//remove unwanted characters
newString = myString.split(myArray[i]).join(“”);
myString = newString;

Fill Flash stage with bitmap image

Flash No Comments »

Want to fill your flash stage area with a tiled image? You can fill your background with just a few lines of code.

First download the Image below (or use your own image) import to your library in flash. Right click on the image and select “properties” and click on “Export for ActionScript” under identifer type in “bg” then click “ok” to close the screen.
Read the rest of this entry »

Flash Custom Right Click Menu

Flash No Comments »

Ever wanted to change the menu when a user right clicks (control Click for Mac) on a flash file on the browser. Set this code to your first keyframe and your done, change the links to what ever you like. You can use this for the user to navigate your content as well, a seperate navigation.

Read the rest of this entry »

Flash Full Screen

Flash 3 Comments »

Have you ever wanted to make your flash file full screen aka 100% on a browser window with out scaling your content. Filling the background with a tile with in flash. Well this will be my first full tutorial so we’ll see how it goes.

Read the rest of this entry »

Flash Loader Component issue with I.E.

Flash 1 Comment »

I don’t know if anyone else has ran into the same problem I did in the past, when using the Flash Loader Component. The component works fine except in I.E. when using the component with a loader it does not track the loading progress or an image does not scale scale to fit. I looked for a solution from Macromedia / Adobe and came out empty handed.

here is a link to a fix, it works great, and has saved me a lot of headaches.

visit my other website here >> noeone
Entries RSS Comments RSS Log in