Flash! Help!

It’s in AS2 (silly) and it won’t work in a different file. Any ideas? I’m guessing not.. it even looks disgusting so i’m guessing no one will read this. πŸ˜€Β 

What’s the difference with this:Β 

var particleCounter:Number = 0;
var currentEffect:String = “particle_smoke_clear”;
function doTrail(container:MovieClip, targetX:Number, targetY:Number, type:String):Void
{
var _particle:MovieClip = container.attachMovie(type, type + particleCounter, particleCounter);
_particle._x = targetX + random(4)-8;
_particle._y = targetY + random(4)-8;
_particle._rotation = random(360);
var randomScale = random(50)+50;
_particle._xscale = randomScale;
_particle._yscale = randomScale;
_particle.speed = random(4)+2;
updateAfterEvent();
_particle.onEnterFrame = function ()
{
this._y -= this.speed;

this._xscale += this.speed;
this._yscale += this.speed;
this._alpha -= this.speed;
if(this._alpha <= 0)
{
delete this.onEnterFrame;
removeMovieClip(this);
}
}
particleCounter++
if(particleCounter > 200)
{
particleCounter = 0;
}
}
_root.onEnterFrame = function():Void
{
doTrail(_root, _xmouse, _ymouse, currentEffect);
}

one_btn.onRelease = function(){
currentEffect = “particle_smoke_black”;
}
two_btn.onRelease = function(){
currentEffect = “particle_smoke_clear”;
}

Β 

and this:Β 

var particleCounter:Number = 0;
var currentEffect:String = “particle_smoke_clear”;
function doTrail(container:MovieClip, targetX:Number, targetY:Number, type:String):Void
{
var _particle:MovieClip = container.attachMovie(type, type + particleCounter, particleCounter);
_particle._x = targetX + random(4)-8;
_particle._y = targetY + random(4)-8;
_particle._rotation = random(360);
var randomScale = random(50)+50;
_particle._xscale = randomScale;
_particle._yscale = randomScale;
_particle.speed = random(4)+2;
updateAfterEvent();
_particle.onEnterFrame = function ()
{
this._y -= this.speed;

this._xscale += this.speed;
this._yscale += this.speed;
this._alpha -= this.speed;
if(this._alpha <= 0)
{
delete this.onEnterFrame;
removeMovieClip(this);
}
}
particleCounter++
if(particleCounter > 200)
{
particleCounter = 0;
}
}
_root.onEnterFrame = function():Void
{
doTrail(_root, _xmouse, _ymouse, currentEffect);
}

one_btn.onRelease = function(){
currentEffect = “particle_smoke_black”;
}
two_btn.onRelease = function(){
currentEffect = “particle_smoke_clear”;
}

Β 

Nothing!! So why?!Β 

Β 

Goodbye. πŸ™‚

Advertisements
This entry was posted in Blog. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s