Graphic Design Forum and Web Design Forum  

Go Back   Graphic Design Forum and Web Design Forum »Web Design Forum »Flash Forum

Notices

Flash Forum Flash Design and Actionscript Forum


Reply
 
LinkBack (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 25-03-2008, 05:20 AM
gospastic's Avatar
Pitfall II - Lost Caverns
 
Join Date: May 2007
Posts: 224
Default This AS does not work in players 7 upwards

Can any bright sparks suggest why this code only works in player 6 or below?

var grow = 2;

var speed = .50;

var elastic = .55;

movieclip.prototype.initScale = function() {
this.myScale = this._xscale;
};

Movieclip.prototype.elasticScale = function() {
if (this.over == true) {
this.theScale = this.theScale*speed+((this.myScale*_root.grow)-this._xscale)*elastic;
this._xscale = this._yscale += this.theScale;
} else {
this.theScale = this.theScale*speed+(this.myScale-this._xscale)*elastic;
this._xscale = this._yscale += this.theScale;
}
};


movieclip.prototype.onEnterFrameKiller = function() {
//trace("running");
if (this.x>70) {
delete this.onEnterFrame;
this.x = 0;
//trace("stopped");
}
++this.x;
};

movieclip.prototype.moveTheButts = function() {
this.x = 0;
this.onEnterFrame = function() {
this.elasticScale();
this.onEnterFrameKiller();
};
};
__________________
salt mustard vinegar pepper
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!RSS Share on Facebook Share This Article & VoteForum Netvibes Page
Reply With Quote
  #2 (permalink)  
Old 28-03-2008, 12:49 AM
Mack's Avatar
I own the flash design thread.
 
Join Date: May 2007
Location: RI, USA
Posts: 1,214
Default

where did you get the code from, your missing stuff.
__________________
"If at first you don't succeed, try again. Then quit. No use being a damn fool about it."
Mike McKenzie - Online Portfolio
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!RSS Share on Facebook Share This Article & VoteForum Netvibes Page
Reply With Quote
  #3 (permalink)  
Old 28-03-2008, 04:21 AM
gospastic's Avatar
Pitfall II - Lost Caverns
 
Join Date: May 2007
Posts: 224
Default

I got the code from another Flash designer, Andy Foulds. I am not really bothered about stuff missing, because it works perfectly in players 5 and 6 - just not in 7 8 and 9...
__________________
salt mustard vinegar pepper
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!RSS Share on Facebook Share This Article & VoteForum Netvibes Page
Reply With Quote
  #4 (permalink)  
Old 29-03-2008, 02:11 PM
Mack's Avatar
I own the flash design thread.
 
Join Date: May 2007
Location: RI, USA
Posts: 1,214
Default

The source you downloaded was written for As 1.0, you need to convert it to 2.0 for it to work in 7+
__________________
"If at first you don't succeed, try again. Then quit. No use being a damn fool about it."
Mike McKenzie - Online Portfolio
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!RSS Share on Facebook Share This Article & VoteForum Netvibes Page
Reply With Quote
  #5 (permalink)  
Old 29-03-2008, 03:48 PM
tommylogic's Avatar
Markup Validation Nazi
 
Join Date: Apr 2007
Location: USA
Posts: 3,538
Default

Quote:
Originally Posted by Mack View Post
The source you downloaded was written for As 1.0, you need to convert it to 2.0 for it to work in 7+
You own this thread
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!RSS Share on Facebook Share This Article & VoteForum Netvibes Page
Reply With Quote
  #6 (permalink)  
Old 29-03-2008, 04:12 PM
Mack's Avatar
I own the flash design thread.
 
Join Date: May 2007
Location: RI, USA
Posts: 1,214
Default

I own you!
__________________
"If at first you don't succeed, try again. Then quit. No use being a damn fool about it."
Mike McKenzie - Online Portfolio
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!RSS Share on Facebook Share This Article & VoteForum Netvibes Page
Reply With Quote
  #7 (permalink)  
Old 31-03-2008, 05:15 AM
gospastic's Avatar
Pitfall II - Lost Caverns
 
Join Date: May 2007
Posts: 224
Default

OK Mack thanks for that - I will see what I can do...
__________________
salt mustard vinegar pepper
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!RSS Share on Facebook Share This Article & VoteForum Netvibes Page
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
some of my work coloroutsidethelines! Graphic Design Showcase 1 03-02-2008 12:27 PM
If you need some work done then come to me! joe_2003 Advertising Forum 9 07-11-2007 12:09 AM
Looking for work streetkarp Advertising Forum 2 09-10-2007 11:50 AM
Ok Get To Work Toon Graphic Design Forum 3 26-05-2007 10:48 AM
3d work 3D_Guy General 3D Forum 17 05-01-2007 12:42 PM


All times are GMT. The time now is 07:47 AM.



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC5