Mouse scroll on IE disable after click on flash

April 16th, 2008

to resolve it. dont use Mouse.addListener.

Permalink

colvia @ 21:17:13

Leave a comment

CS3 - Illustrator to flash, 3D to path

March 2nd, 2008

Illustrator have a great plugin to turn lineart into 3D.
But that effect is not support in flash.

you can import as bitmap or break the 3D layer to path inside illustrator.

Here's how to do that.
in Illustrator,
1. Select the layer with 3D effect.
2. in Object menu, select expand Appearance.
3. import the ai file to flash again.

Permalink

colvia @ 16:17:31

Leave a comment

Developer's notes: getURL in as3.

December 18th, 2007

the actionscript 3 code snippet to getURL:

import flash.net.*;
navigateToURL(new URLRequest('http://www.google.com'),"_self");

Permalink

colvia @ 11:05:34

Leave a comment

Developer's notes: get flashvar in as3.

December 18th, 2007

the actionscript 3 code snippet to get flashvars:

var flashvars:Object = LoaderInfo(this.root.loaderInfo).parameters;
var xxx = flashvars['flashVariableName'];

Permalink

colvia @ 11:03:04

Leave a comment

coreAnimation, webView and flash

December 8th, 2007

just make a test on CALayer, webView with flash.
http://www.colvia.com/coreAnimation/

Safari transforms in 3D with perspective. But there are a white frame in the background. :(

Permalink

colvia @ 06:22:59

Leave a comment

convert Linear Gradient from Quartz2D to Flash.

September 18th, 2007

I just finish the conversion of Linear Gradient between HTML Canvas/Quartz2D and flash.

They use different filling system.
in Quartz, the gradient start from one point to another point.
then add each "color stop" by ratio and color.

flash use a gradient box. You may rotate the gradient box and translate it.
and it use 3 array to store color, alpha and ratio.

The source code is commit to http://ascanvas.googlecode.com/
I'll make it as Featured download after radical gradient completed.

the following code now compatible with firefox, safari and flash ascanvas.
var color1 = ctx.createLinearGradient(100,100,30,30);
color1.addColorStop(0,"#FFFFFF");
color1.addColorStop(0.1,"#0000FF");
color1.addColorStop(0.9,"#FF00FF");
color1.addColorStop(1,"#000000");
ctx.fillStyle = color1;

ctx.beginPath();
ctx.moveTo(0,0);
ctx.rect(0, 0, 200, 200)
ctx.closePath();
ctx.fill();

Permalink

colvia @ 13:58:42

Leave a comment

:: Next Page >>

May 2008
Mon Tue Wed Thu Fri Sat Sun
<<  <   >  >>
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  

Search

Linkblog

Misc

Syndicate this blog XML

What is RSS?

powered by
b2evolution