Flash User Group in Hawaii ?

Flash User Group Here in Honolulu?

I just send the application to start a Flash User Group here in Hawaii.

I have joined many other groups, but they never offered recordings of their meetings, and so I was never able to participate in the discussions. I am hoping that something like this can happen here in Hawaii, there is a strong Multimedia presents here, and so I am hopeful.

I hope to have a place where people interested in flash, and the flash platform can hang out, meet and talk about flash and learn about flash and actionscript, and what direction flash is going.

I can see creating a place for designers as well as developers!

Now I am not too advanced, but I would love for this to work out, I think that it would be wonderful to have here in Hawaii.

Linking buttons in AS 3

Since this is just a movie for a button, make the stage 100 px by 35 px, as we don’t need any more room that that for this button.

Create a Layer, called “visuals” this is where all the visuals will go, and will be the layer for the button.

drag a button on the the stage(window>common libraries>buttons) pick any button you like, and place it on the stage that you just created. If you double click the button, you can get into the movie clip so that you can create new text on the button. In the button movie clip you will see many layers, but you want to concentrate on the text layer. On this text layer, double click on the text on the button, and change the text. This is not necessary at all, but I doubt you want your button to say “Enter.” However, there are situations for this.

Give the button an instance name “visit_btn”

The reason why you want to use this instance name is so that you can communicate the button with actionscript.

create a new layer called “actions”, this is where all your actionsctipt you go. To get to the actions panel right click on this layer, and picks actions, or go to Window>Actions

Type the following code in the actions window


visit_btn.addEventListener(MouseEvent.CLICK, visit);

function visit(e:MouseEvent):void {

	var request:URLRequest=new URLRequest("http://hfug.net");

 	navigateToURL(request, "_self");

}

Here is my completed swf

[kml_flashembed fversion=”9.0.0″ movie=”http://hfug.net/wp-content/uploads/2010/03/myButton.swf” targetclass=”flashmovie” publishmethod=”static” width=”100″ height=”35″]

Get Adobe Flash player

[/kml_flashembed]

If you are un sure about any of this, please leave a comment, so I can help you through this. This post was motivated from a friend that says linking in actionscript 3 takes too much code, but as you can see it is straight forward, and very easy.

Color Code final working!

Here is a simple actionscript 3.0 preloader to demostrate that the code with color hightlighting is finally working!

I am using CodeColorer This is a great plugin, which allows you to color your code, provides links to the docs for keywords, and also allows lin numbers.


stop();



this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);

this.loaderInfo.addEventListener(Event.COMPLETE, onComplete);



function onProgress(e:ProgressEvent):void{

	var loaded:Number = e.target.bytesLoaded;

	var total:Number = e.target.bytesTotal;

	var pct:Number = loaded/total;

	loader_mc.scaleX = pct;

	loaded_txt.text = "Loading... " + (Math.round(pct * 100)) + "%";

}



function onComplete(e:Event):void{

	nextFrame();

}

Foundation ColdFusion 8 for Flash CS4

Foundation ColdFusion 8 for Flash is the only book on the market that teaches designers and developers alike how to combine these two powerhouse programs to create dynamic Web sites and Rich Internet Applications (RIAs). This book covers the latest version of these two programs. It is a must have for Flash professional who want to extend their skills to cover the complete cycle of Web design.

Continue reading “Foundation ColdFusion 8 for Flash CS4”