# Can you guys help me convert this AS 1.0 code to AS2.0?

**URL:** <https://forum.kirupa.com/t/can-you-guys-help-me-convert-this-as-1-0-code-to-as2-0/222042>\
**Category:** Uncategorized\
**Created:** [April 10, 2007, 12:04pm UTC](https://forum.kirupa.com/t/can-you-guys-help-me-convert-this-as-1-0-code-to-as2-0/222042 "2007-04-10T12:04:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vthok](https://avatars.discourse-cdn.com/v4/letter/v/f05b48/32.png) [@vthok](https://forum.kirupa.com/u/vthok)\
**Post date:** [April 10, 2007, 12:04pm UTC](https://forum.kirupa.com/t/can-you-guys-help-me-convert-this-as-1-0-code-to-as2-0/222042/1 "2007-04-10T12:04:49Z")

</div>

I came across this source code for a Photobrowser that uses xml and php. I want to modify it a bit for a website I am doing (my first one!).

However, I want to make use of some of the Flash Player 8 filters and AS 2.0 updates and therefore need to “update” the code to be compliant.

First I am just trying to get the code to work under the new Flash 8 environment. I went into my Publish Settings and changed from Flash Player 6 to FP 8 and from AS 1.0 to AS2.0. I then exported the movie and I got errors about Math.easeinquad\* etc not being found. So now I am use Fuse to call these functions.

My “modified” source is in: [http://filebox.vt.edu/~gyanez/gallery/](http://filebox.vt.edu/~gyanez/gallery/)

galleryframe1.txt is the AS code on frame 1 of main timeline and galleryframe2.txt is the AS code on frame 2 of main timeline (that is all that exists in the .fla. There is nothing on the stage, etc).

Here are the “changes” I made:

Commented out this in frame1:

Math.easeInQuad = function(t, b, c, d) {  
return c\*(t /= d)_t+b;  
};  
Math.easeOutQuad = function(t, b, c, d) {  
return -c_(t /= d)\*(t-2)+b;  
};

and I made these changes in frame2:

Added this:

import com.mosesSupposes.fuse.\*;  
ZigoEngine.register(PennerEasing);

& changed Math.easeinquad, etc to PennerEasing.easeinquad, etc.

But when I run the fla my pictures dont flip anymore…

Here is what it should do based on orginial:

[http://www.mustardlab.com/developer/test/new/](http://www.mustardlab.com/developer/test/new/)

Any help you guys can give me would be super appreciated. Thanks again.
