Jump to content
Search Community

Novice question #1

ngrinchenko test
Moderator Tag

Recommended Posts

i am using Flash MX 2004 to practice the code, so i am trying to figure out how to tweak it to work in AS2.

it does not seem to work.

i am fine with Tweening Basics engine, but as soon i move onto work with Plug in Explorer i get error messages in Flash.

Here is the code which was generated by Plug in Explorer:

 

import com.greensock.*;

import com.greensock.easing.*;

 

TweenMax.to(mc, 1, {dropShadowFilter:{color:0xff0000, alpha:1, blurX:12, blurY:12, distance:12}});

 

Here is the code which i modified to try to make it work for AS2:

 

 

import com.greensock.*;

import com.greensock.easing.*;

 

import com.greensock.plugins.*;

 

TweenPlugin.activate([DropShadowFilterPlugin]);

 

TweenLite.to(dot_mc, 1, {dropShadowFilter:{color:0xff0000, _alpha:55, _blurX:12, _blurY:12, _distance:12}});

 

 

to cover the basics, yes the "com" folder for tweenLite AS2 is in the same folder as the flash working file

Link to comment
Share on other sites

Filters weren't added to Flash until Flash 8.

 

Mx2004 doesn't support them. That is why the code won't work.

 

You should be okay with doing basic tweens, but there have been many additions to the AS2 language and Flash player since 2004.

Link to comment
Share on other sites

I suggest u visit here :- http://www.krazl.com/blog/index.php/pag ... developer/

Flash Player version

================

http://www.adobe.com/support/flashplayer/downloads.html

 

Flash Develop (IF you dont have money to buy CS5.. this is an alternative)

========================

http://www.flashdevelop.org

 

 

Flex SDK (if you love opensource, you’ll love this)

==========================================

http://opensource.adobe.com/wiki/displa ... k/Flex+SDK

 

FlashPlayer_10_sa_debug.exe

==========================

Download this as a developer debug tools (instead of using browser)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...