Helmut Granda
learning through interaction
learning through interaction
Aug 18th
So I am trying to figure out the following piece of code:
ActionScript:
<pre>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 world”);
}
public static function main(createdBy:MovieClip)
{
var app = new Application(createdBy);
}
}; // end of class</pre>
found here:
http://www.osflash.org/pipermail/osflash_osflash.org/2005-August/002165.html
So far I have [...]
Feb 28th
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 load the Child movie [...]
Sep 9th
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!!!!!!!!!!!!!!!!!!!
Sep 2nd
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!
Sep 2nd
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 the link and [...]
Aug 20th
value= int((number)*100)/100;
//Usage
value= int((31.987654)*100)/100;
trace(value)
Jun 23rd
//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();
/*
Usage:
Create 4 MC give instance names or
mc_One, mc_Two, mc_Three, mc_Four
Crate one more and give instance name
of landingArea.
Place script on frame 1 and drag and drop
mc_One – Four
To [...]
Jun 18th
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);
}
}
Jun 6th
on (release) {
if ((firstname != “”) && (lastname != “”)
&& (email != “”)){;
[...]
May 7th
value= int((number)*100)/100;
//Usage
value= int((31.987654)*100)/100;
trace(value)