액션스크립트3.0
페이지 정보
본문
액션스크립트3.0 소개 및 특징 액션스크립트 Actionscript3.0 TUTORIAL TUTORIAL
구독하시면 강의정보 를 확인할수 있습니다.
RAIN SOUNDS 소나기 TV : package {
import flash.display.MovieClip;
import flash.display.BitmapData;
import flash.display.Bitmap;
import flash.geom.Rectangle;
import flash.geom.Point;
import flash.geom.Matrix;
import flash.filters.ConvolutionFilter;
import flash.geom.ColorTransform;
import flash.filters.DisplacementMapFilter;
import flash.utils.Timer;
import flash.events.TimerEvent;
class RainMaker {
private var __scope:MovieClip;
private var __clip:MovieClip;
private var __sourceBitmap:BitmapData;
private var __bitmap1:BitmapData;
private var __bitmap2:BitmapData;
private var __buffer:BitmapData;
private var __outputImage:BitmapData;
private var __bounds:Rectangle;
private var __origin:Point;
private var __matrix:Matrix;
private var __matrix2:Matrix;
private var __wave:ConvolutionFilter;
private var __damp:ColorTransform;
private var __water:DisplacementMapFilter;
private var __surface:BitmapData;
private var __fillcolour:int = 128;
private var __xPos:int;
private var __yPos:int;
private var __lastx:int;
private var __lasty:int;
//Movieclips
private var cloneClip_mc:MovieClip;
function RainMaker(scope:MovieClip, clip:MovieClip) {
__scope = scope;
__clip = clip;
draw();
}
private function draw():void {
cloneClip_mc = new MovieClip();
__scope.addChild(cloneClip_mc);
var bitmapImage:BitmapData = new BitmapData(__clip.width, __clip.height, false, 0);
bitmapImage.draw(__clip);
__surface = bitmapImage;
__clip.visible = false;
__bitmap1 = new BitmapData(__clip.width, __clip.height, false, __fillcolour);
__bitmap2 = new BitmapData(__clip.width, __clip.height, false, __fillcolour);
__sourceBitmap = new BitmapData(__clip.width, __clip.height, false, __fillcolour);
__buffer = new BitmapData(__clip.width, __clip.height, false, __fillcolour);
__outputImage = new BitmapData(__clip.width, __clip.height, true, __fillcolour);
__bounds = new Rectangle(0, 0, __clip.width, __clip.height);
__origin = new Point();
__matrix = new Matrix();
__matrix2 = new Matrix();
__matrix2.a = __matrix2.d = 2;
__wave = new ConvolutionFilter(3, 3, [1, 1, 1, 1, 1, 1, 1, 1, 1], 9, 0);
__damp = new ColorTransform(0, 0, 0.99609374, 1, 0, 0, 2, 0);
__water = new DisplacementMapFilter(__bitmap2, __origin, 4, 4, 32, 32, "ignore");
var bm:Bitmap=new Bitmap(__outputImage);
cloneClip_mc.addChild(bm);
var __waterTimer:Timer = new Timer(10);
__waterTimer.addEventListener('timer', turnOnWater);
__waterTimer.start();
var myTimer:Timer = new Timer(150);
myTimer.addEventListener('timer', waterEffect);
myTimer.start();
}
private function fitsArea():Boolean {
var curX = __xPos;
var curY = __yPos;
if ((curX < __clip.width) && (curY < __clip.height)) {
return true;
} else {
return false;
}
}
private function waterEffect(ev:Object):void {
if (isNaN(__xPos)) {
__xPos = 0;
__yPos = 0;
} else {
if (fitsArea()) {
__xPos = Math.random()*__clip.width;
__yPos = Math.random()*__clip.height;
} else {
__xPos = 0;
__yPos = 0;
}
}
__lastx = __xPos;
__lasty = __yPos;
}
private function turnOnWater(ev:Object):void {
var curX = __xPos / 2;
var curY = __yPos / 2;
if ((__lasty != curY) || (__lastx != curX)) {
__sourceBitmap.setPixel(curX + 1, curY, 16777215);
__sourceBitmap.setPixel(curX - 1, curY, 16777215);
__sourceBitmap.setPixel(curX, curY + 1, 16777215);
__sourceBitmap.setPixel(curX, curY - 1, 16777215);
__sourceBitmap.setPixel(curX, curY, 16777215);
}
__lastx = curX;
__lasty = curY;
__bitmap1.applyFilter(__sourceBitmap, __bounds, __origin, __wave);
__bitmap1.draw(__bitmap1, __matrix, null, "add");
__bitmap1.draw(__buffer, __matrix, null, "difference");
__bitmap1.draw(__bitmap1, __matrix, __damp);
__bitmap2.draw(__bitmap1, __matrix2, null, null, null, true);
__outputImage.applyFilter(__surface, new Rectangle(0, 0, __clip.width,
__clip.height), __origin, __water);
__buffer = __sourceBitmap;
__sourceBitmap = __bitmap1.clone();
}
}
}
액션스크립트 2.0인데요 3.0으로 바꿔주실수 있나요? 공임비는 당연히 드리겠습니다.
Adobe Animate: Choosing Platform Type / HTML5 canvas or ActionScript 3.0
One of the first things an animator needs to do with Animate CC is choose a platform type. HTML5 canvas or ActionScript 3.0?
BUILD FUN PROJECTS WITH ANIMATE
Join my premium Animate CC for Everyone course FREE for 2 Months!
Sign up for Animate CC for Everyone: https://skl.sh/34sr40L
- 6 hours of Hands-On Animate CC Training
- Loads of FLA source files
- Written Instructions
- 2 Months Free Access to thousands of SkillShare classes
Gustavo de Castro : Very good work!
Dani Allen : I'm a noobie taking a college course for Animation and working on a project for class. I had a hard time trying to decide which format I should use and this helped me out immensely. Thank you very much!
Michael A : Hi Carl. I was a Flash developer in 2010 on through 2014. I had the fortunate luck to discover GSAP the GreenSock Animation Platform and they produced a library for AS2 and later AS3 which you can actually still get though they are no longer maintained. Because GSAP additionally produced a GSAP JavaScript version which allowed crazy flash like control over the DOM HTML Objects. So I got a few more years doing HTML5 Banners, Expandable etc. What was cool about GSAP in either AS3 or Javascript versions is that they have a Timeline and Tween set of code. GSAP allowed me to work outside of the IDE Timeline use and to simply use Adobe Flash / Animate to create SWFs or HTML5s using the same GSAP Libraries. It was certainly much easier to animate with GSAP then AS3 code or GSAP over straight up JavaScript methods. The library could make rotations and get the degrees with out the more complicated AS3 requests.
Why am I here today? Because Video as you pointed out, is killer in Social Media. And as I love to animate with Animate CC, video is often much better than the Canvas element, sometimes even in HTML. Unless of course you need interactivity. But I'm here today as I need to create Videos but DON'T want to use ActionScript but rather Javascript. I am having to create promotions in either HTML5 or Video.
Now you pointed out that when you choose certain presets in Animate CC, they will switch to HTML5 Canvas or ActionScript 3. I want to use JavaScript. I'm wondering when I add the Javascript library to an Animate CC document, I don't think it allows you to export to Video. I suspect that I can't use an URL to load the library but rather need to import the library. Then I can use GSAP's Javascript library to to forego the timeline and use code to animate but for the purpose of creating Video. You may already know the answer. I'm in the process of figuring that out.
The Social Media Booster : FLASH Conspiracy, Apple need to control the market with AppStore and the Shadow Government needed to have an open source to track and spy your data, Flash was packaged so Flash was the best Solution for Security and privacy ...So its a Conspiracy theory of mass control.
Kelvin KMS : I am very happy I am not the one still love Flash AS3. I love Flash is because it is easy to design UI and write AS3 code to interact users. I never learn Javascript. Because it is so hard to learn, and performance is poor !! I want Flash AS3 still alive and able to run Google Chrome browser !!!
Randy Shifflett : Thanks for your help and quick response. Randy
Randy Shifflett : Good presentation. I have one question you might help me answer. I created an education website (virtualjamestown.org) that includes some flash files. The no longer work of course. How can I convert these files to html5 canvas and upload the result to my website w. o. any interruption in service? Do I need a java script programmer? I don't have those skills. Thanks for any help you can offer. My email: shifflet@vt.edu.
Level C : So what happens with all the AS and Flash code on the internet? Does it just get deactivated lmao?
Sanna Lahti : I am just starting. I know hardly anything about making animations. Anyhow, I am creating my products that I am going to sell, and one step forward is marketing – from that, I have zero experience also. But, I decided to create an animation for FB and other social media. I have Creative Clouds, so I decided to start to learn how to use Animate.
I wonder why I did not do animations before? This is fun! The imagination just starts to fly! Also, instantly you start to see the world in different eyes. When I see a dog, I ponder, how would I make its movements look like... This is not learning only technics, this is learning about life, movements, face expressions etc.!
I know nothing about Flash etc. things, so this video was VERY informative and helpful to me in all ways. Thank you very much!
ihssancanımtürk : I think that even though Flash swf files are dead now in our web platforms, swf files could be very useful for desktop applications if used within other programming languages like Csharp or python, as their interactivity and smooth animations cannot be compared with other applications or programming languages, except sometimes Java scripts of course ...
누구라도 쉽게 배우는 액션스크립트 3.0 입문
고도몰 쇼핑몰 동영상 강좌
구독하시면 강의정보 를 확인할수 있습니다.
RAIN SOUNDS 소나기 TV : package {
import flash.display.MovieClip;
import flash.display.BitmapData;
import flash.display.Bitmap;
import flash.geom.Rectangle;
import flash.geom.Point;
import flash.geom.Matrix;
import flash.filters.ConvolutionFilter;
import flash.geom.ColorTransform;
import flash.filters.DisplacementMapFilter;
import flash.utils.Timer;
import flash.events.TimerEvent;
class RainMaker {
private var __scope:MovieClip;
private var __clip:MovieClip;
private var __sourceBitmap:BitmapData;
private var __bitmap1:BitmapData;
private var __bitmap2:BitmapData;
private var __buffer:BitmapData;
private var __outputImage:BitmapData;
private var __bounds:Rectangle;
private var __origin:Point;
private var __matrix:Matrix;
private var __matrix2:Matrix;
private var __wave:ConvolutionFilter;
private var __damp:ColorTransform;
private var __water:DisplacementMapFilter;
private var __surface:BitmapData;
private var __fillcolour:int = 128;
private var __xPos:int;
private var __yPos:int;
private var __lastx:int;
private var __lasty:int;
//Movieclips
private var cloneClip_mc:MovieClip;
function RainMaker(scope:MovieClip, clip:MovieClip) {
__scope = scope;
__clip = clip;
draw();
}
private function draw():void {
cloneClip_mc = new MovieClip();
__scope.addChild(cloneClip_mc);
var bitmapImage:BitmapData = new BitmapData(__clip.width, __clip.height, false, 0);
bitmapImage.draw(__clip);
__surface = bitmapImage;
__clip.visible = false;
__bitmap1 = new BitmapData(__clip.width, __clip.height, false, __fillcolour);
__bitmap2 = new BitmapData(__clip.width, __clip.height, false, __fillcolour);
__sourceBitmap = new BitmapData(__clip.width, __clip.height, false, __fillcolour);
__buffer = new BitmapData(__clip.width, __clip.height, false, __fillcolour);
__outputImage = new BitmapData(__clip.width, __clip.height, true, __fillcolour);
__bounds = new Rectangle(0, 0, __clip.width, __clip.height);
__origin = new Point();
__matrix = new Matrix();
__matrix2 = new Matrix();
__matrix2.a = __matrix2.d = 2;
__wave = new ConvolutionFilter(3, 3, [1, 1, 1, 1, 1, 1, 1, 1, 1], 9, 0);
__damp = new ColorTransform(0, 0, 0.99609374, 1, 0, 0, 2, 0);
__water = new DisplacementMapFilter(__bitmap2, __origin, 4, 4, 32, 32, "ignore");
var bm:Bitmap=new Bitmap(__outputImage);
cloneClip_mc.addChild(bm);
var __waterTimer:Timer = new Timer(10);
__waterTimer.addEventListener('timer', turnOnWater);
__waterTimer.start();
var myTimer:Timer = new Timer(150);
myTimer.addEventListener('timer', waterEffect);
myTimer.start();
}
private function fitsArea():Boolean {
var curX = __xPos;
var curY = __yPos;
if ((curX < __clip.width) && (curY < __clip.height)) {
return true;
} else {
return false;
}
}
private function waterEffect(ev:Object):void {
if (isNaN(__xPos)) {
__xPos = 0;
__yPos = 0;
} else {
if (fitsArea()) {
__xPos = Math.random()*__clip.width;
__yPos = Math.random()*__clip.height;
} else {
__xPos = 0;
__yPos = 0;
}
}
__lastx = __xPos;
__lasty = __yPos;
}
private function turnOnWater(ev:Object):void {
var curX = __xPos / 2;
var curY = __yPos / 2;
if ((__lasty != curY) || (__lastx != curX)) {
__sourceBitmap.setPixel(curX + 1, curY, 16777215);
__sourceBitmap.setPixel(curX - 1, curY, 16777215);
__sourceBitmap.setPixel(curX, curY + 1, 16777215);
__sourceBitmap.setPixel(curX, curY - 1, 16777215);
__sourceBitmap.setPixel(curX, curY, 16777215);
}
__lastx = curX;
__lasty = curY;
__bitmap1.applyFilter(__sourceBitmap, __bounds, __origin, __wave);
__bitmap1.draw(__bitmap1, __matrix, null, "add");
__bitmap1.draw(__buffer, __matrix, null, "difference");
__bitmap1.draw(__bitmap1, __matrix, __damp);
__bitmap2.draw(__bitmap1, __matrix2, null, null, null, true);
__outputImage.applyFilter(__surface, new Rectangle(0, 0, __clip.width,
__clip.height), __origin, __water);
__buffer = __sourceBitmap;
__sourceBitmap = __bitmap1.clone();
}
}
}
액션스크립트 2.0인데요 3.0으로 바꿔주실수 있나요? 공임비는 당연히 드리겠습니다.
Adobe Animate: Choosing Platform Type / HTML5 canvas or ActionScript 3.0
One of the first things an animator needs to do with Animate CC is choose a platform type. HTML5 canvas or ActionScript 3.0?
BUILD FUN PROJECTS WITH ANIMATE
Join my premium Animate CC for Everyone course FREE for 2 Months!
Sign up for Animate CC for Everyone: https://skl.sh/34sr40L
- 6 hours of Hands-On Animate CC Training
- Loads of FLA source files
- Written Instructions
- 2 Months Free Access to thousands of SkillShare classes
Gustavo de Castro : Very good work!
Dani Allen : I'm a noobie taking a college course for Animation and working on a project for class. I had a hard time trying to decide which format I should use and this helped me out immensely. Thank you very much!
Michael A : Hi Carl. I was a Flash developer in 2010 on through 2014. I had the fortunate luck to discover GSAP the GreenSock Animation Platform and they produced a library for AS2 and later AS3 which you can actually still get though they are no longer maintained. Because GSAP additionally produced a GSAP JavaScript version which allowed crazy flash like control over the DOM HTML Objects. So I got a few more years doing HTML5 Banners, Expandable etc. What was cool about GSAP in either AS3 or Javascript versions is that they have a Timeline and Tween set of code. GSAP allowed me to work outside of the IDE Timeline use and to simply use Adobe Flash / Animate to create SWFs or HTML5s using the same GSAP Libraries. It was certainly much easier to animate with GSAP then AS3 code or GSAP over straight up JavaScript methods. The library could make rotations and get the degrees with out the more complicated AS3 requests.
Why am I here today? Because Video as you pointed out, is killer in Social Media. And as I love to animate with Animate CC, video is often much better than the Canvas element, sometimes even in HTML. Unless of course you need interactivity. But I'm here today as I need to create Videos but DON'T want to use ActionScript but rather Javascript. I am having to create promotions in either HTML5 or Video.
Now you pointed out that when you choose certain presets in Animate CC, they will switch to HTML5 Canvas or ActionScript 3. I want to use JavaScript. I'm wondering when I add the Javascript library to an Animate CC document, I don't think it allows you to export to Video. I suspect that I can't use an URL to load the library but rather need to import the library. Then I can use GSAP's Javascript library to to forego the timeline and use code to animate but for the purpose of creating Video. You may already know the answer. I'm in the process of figuring that out.
The Social Media Booster : FLASH Conspiracy, Apple need to control the market with AppStore and the Shadow Government needed to have an open source to track and spy your data, Flash was packaged so Flash was the best Solution for Security and privacy ...So its a Conspiracy theory of mass control.
Kelvin KMS : I am very happy I am not the one still love Flash AS3. I love Flash is because it is easy to design UI and write AS3 code to interact users. I never learn Javascript. Because it is so hard to learn, and performance is poor !! I want Flash AS3 still alive and able to run Google Chrome browser !!!
Randy Shifflett : Thanks for your help and quick response. Randy
Randy Shifflett : Good presentation. I have one question you might help me answer. I created an education website (virtualjamestown.org) that includes some flash files. The no longer work of course. How can I convert these files to html5 canvas and upload the result to my website w. o. any interruption in service? Do I need a java script programmer? I don't have those skills. Thanks for any help you can offer. My email: shifflet@vt.edu.
Level C : So what happens with all the AS and Flash code on the internet? Does it just get deactivated lmao?
Sanna Lahti : I am just starting. I know hardly anything about making animations. Anyhow, I am creating my products that I am going to sell, and one step forward is marketing – from that, I have zero experience also. But, I decided to create an animation for FB and other social media. I have Creative Clouds, so I decided to start to learn how to use Animate.
I wonder why I did not do animations before? This is fun! The imagination just starts to fly! Also, instantly you start to see the world in different eyes. When I see a dog, I ponder, how would I make its movements look like... This is not learning only technics, this is learning about life, movements, face expressions etc.!
I know nothing about Flash etc. things, so this video was VERY informative and helpful to me in all ways. Thank you very much!
ihssancanımtürk : I think that even though Flash swf files are dead now in our web platforms, swf files could be very useful for desktop applications if used within other programming languages like Csharp or python, as their interactivity and smooth animations cannot be compared with other applications or programming languages, except sometimes Java scripts of course ...
누구라도 쉽게 배우는 액션스크립트 3.0 입문
고도몰 쇼핑몰 동영상 강좌
댓글목록
등록된 댓글이 없습니다.