Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 12-03-2006, 06:18 PM   #1
firdosh
Registered User
 
Join Date: Dec 2004
Posts: 146
Default Distortion Effects Package use in Actionscript 3 only project

If you havent checked out the Ditortion Effects its at
http://weblogs.macromedia.com/auhlma...istor.cfm#more

Some real cool stuff.

I had emailed Alex about this package and he said that you can use it in a Actionscript 3 only project but I am not sure since it extends a few mx classes.

import mx.core.Container;
import mx.core.ContainerCreationPolicy;
import mx.core.IFlexDisplayObject;
import mx.core.UIComponent;
import mx.core.mx_internal;
import mx.effects.Tween;
import mx.effects.effectClasses.TweenEffectInstance;

So tried setting up the AS3 project
Code:
package {
	import flash.display.Sprite;
	import com.adobe.ac.mxeffects.CubeRotate;		
	import com.adobe.ac.mxeffects.DistortionConstants;
	import flash.display.Shape;
	import mx.core.mx_internal;

	use namespace mx_internal;

	[SWF(width="800", height="600")]
	public class WebSiteEffects extends Sprite
	{
		public function WebSiteEffects()
		{
			
			var redRect:Shape=new Shape();
			redRect.graphics.lineStyle(0,0,1,true);
			redRect.graphics.beginFill(0xff0000,1);
			redRect.graphics.drawRect(10,10,200,200);
			redRect.graphics.endFill();
			this.addChild(redRect);
			
			var grRect:Shape=new Shape();
			grRect.graphics.lineStyle(0,0,1,true);
			grRect.graphics.beginFill(0x0000ff,1);
			grRect.graphics.drawRect(250,250,200,200);
			grRect.graphics.endFill();
			this.addChild(grRect);
			
			var e : CubeRotate;						
			e = new CubeRotate( redRect );
			e.siblings = [redRect];
			e.direction = DistortionConstants.LEFT;		
			e.duration = 1000;
			e.play();
			
		
		}
	}
}
And these are the compile time errors I get

Severity Description Resource In Folder Location Creation Time Id
2 Unable to resolve a class for ResourceBundle: core. WebSiteEffects December 3, 2006 2:25:28 PM 601
2 Unable to resolve a class for ResourceBundle: core. WebSiteEffects December 3, 2006 2:25:28 PM 602
2 Unable to resolve a class for ResourceBundle: core. WebSiteEffects December 3, 2006 2:25:28 PM 603
2 Unable to resolve a class for ResourceBundle: core. WebSiteEffects December 3, 2006 2:25:28 PM 604
2 Unable to resolve a class for ResourceBundle: effects. WebSiteEffects December 3, 2006 2:25:28 PM 605
2 Unable to resolve a class for ResourceBundle: skins. WebSiteEffects December 3, 2006 2:25:28 PM 606





thanks
cheers
firdosh

Last edited by firdosh; 12-03-2006 at 06:27 PM.
firdosh is offline   Reply With Quote
Old 12-03-2006, 06:31 PM   #2
Flash Gordon
rather be programming
 
Flash Gordon's Avatar
 
Join Date: Feb 2005
Location: City of Angels
Posts: 10,140
Default

Are you asking if this can be done is AS 2.0?
__________________
trace("Good bye Flash.") Log.i(TAG, "Hello Droid");
Flash Gordon is offline   Reply With Quote
Old 12-03-2006, 07:39 PM   #3
firdosh
Registered User
 
Join Date: Dec 2004
Posts: 146
Default

No, I am trying to use the existing classes with an AS3 only project
firdosh is offline   Reply With Quote
Old 12-04-2006, 07:34 AM   #4
Tink
Addict
 
Tink's Avatar
 
Join Date: Nov 2001
Location: London
Posts: 2,128
Default

it requires the Flex framework i would have thought
Tink is offline   Reply With Quote
Old 12-04-2006, 02:41 PM   #5
firdosh
Registered User
 
Join Date: Dec 2004
Posts: 146
Default

so I cant just use it in an AS3 only project right ??
firdosh is offline   Reply With Quote
Old 12-05-2006, 06:18 PM   #6
firdosh
Registered User
 
Join Date: Dec 2004
Posts: 146
Default

I got an email from Alex Uhlmann saying that

the current distortion effects are AS3 only. You can use them in AS and MXML

but the base DitortionTwen class extends

mx.effects.effectClasses.TweenEffectInstance;

so this shouldnt work in an AS3 only project right ? or am I gettign this all wrong ?

firdosh
firdosh is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ActionScript Learning StormStrikes Other Flash General Questions 12 03-04-2004 03:28 AM
Can any effects like glass distortion, pixelate be done via actionscript?? chochosan ActionScript 1.0 (and below) 1 04-01-2003 11:15 PM
Flash Actionscript Project Management bimal ActionScript 1.0 (and below) 2 03-13-2003 03:23 AM
New Project Lucremonkey Projects and Positions 5 04-04-2002 03:18 PM


All times are GMT. The time now is 04:01 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.