So I am trying to figure out the following piece of code: [as] in Application.as import Log; class Application { private var _log:Log; // force mtasc to compile Log.as function Application(createdBy) { // Re-assigment of _root to Application instance createdBy.__proto__ = this.__proto__; createdBy.__constructor__ = Application; this = createdBy; setup(); } public function setup() { TRACE(“hello […]
Category: FlashMX
Combo Box Fails to Load in Parent Movie
So I am here struggling for hours (at least it looked like it was hours!) trying to figure out why my combo box wasnt working. The Basic scenario is that I created a CB in a child movie for later being loaded to a parent movie. ->Parent –>Child < -with Combo Box Well, when you […]
Macromedia Flash MX 2004 Download
What everyone has been waiting for! Macromedia MX2004 It is ready for download. Not only flash but Dreamweaver, Coldfusion, Fireworks, Flash Professional 2004 and Flash 2004. For more details click here!!!!!!!!!!!!!!!!!!!
FlashMX AS2 Reference 2
This is another section you can read to understand AS2 A little better. This is a PDF file, so make sure you have the plug in to read it: JavaScript 2.0: Evolving a Language for Evolving Systems Read on friend!
FlashMX AS2
I saw this link posted in FlashCoders. For those of you who are interested in catching up with AS2 check out ECMAScript 4 Netscape Proposal. If you read through the document, to my understanding you will get a very good grip of what AS2 is all about. So, what are you waiting for? check out […]
Round to decimal point
value= int((number)*100)/100; //Usage value= int((31.987654)*100)/100; trace(value)
Drag and Drop
//Drag Function MovieClip.prototype.Press = function() { this.startDrag(); }; //Release Function MovieClip.prototype.Release = function() { this.stopDrag(); if(eval(this._droptarget) == landingArea) { this.enabled = false counter = counter + 1; trace(counter); if (counter == 4) { trace(“You Got Them All!”) }; }; }; MovieClip.prototype.Actions = function() { this.onPress = Press; this.onRelease = Release; }; mc_One.Actions(); mc_Two.Actions(); mc_Three.Actions(); mc_Four.Actions(); […]
Small Fader Function Flash MX
this.createEmptyMovieClip (“fader”,5); fader.onEnterFrame = function() { if (myobject._alpha >= 0) { trace(“fading:” + myobject._alpha); myobject._alpha -= 1; } else { trace(“end of faiding”) delete (this.onEnterFrame); } }
Action Script Test
on (release) { if ((firstname != “”) && (lastname != “”) && (email != “”)){; gotoAndPlay(“valid”); loadVariables (“URL”, “_root.form”, “POST”); trace(“valid”) }else{ gotoAndPlay(“invalid”); trace(“invalid”); } }
Rounding 2 Decimal Point
value= int((number)*100)/100; //Usage value= int((31.987654)*100)/100; trace(value)