I wonder if there is a function in ActionScript that can let me trace a bitmap file on the fly though scripting: something like myimg.TraceBitmap(), instead of having me to open a *.fla and work it there.
There is no native method to vectorize, but I found a package online that might worth a try.
Have you tried this one?
http://coreyoneil.com/portfolio/index.php?project=6
Rob
Im presuming that you mean like the illustrator function to turn a bitmap into a vector? in which case I pretty sure there isnt such a function to run on the fly.
Related
I have created an AIR Native Extension wherein, I have created a reusable Loader object on the AS3 side. I then pass this Loader object to the ANE to load whatever loadable file I want to load into the Loader. This works, as expected.
I would like to create the reusable Loader on the C side of the ANE. My understanding is that the FRESetContextActionScriptData() and FREGetContextActionScriptData() functions allows me to create and store AS3 FREObject variables on the C side.
I have been trying to implement these functions on the C side and and unable to wrap my head around how to do so. The Adobe help is insufficient and does not help in any way. I have tried to search for these two words with no success. Can someone throw some light on how these functions are used?
Thanks in advance.
I am trying to do a simple drawing app in Flash Professional CC. By simple, I just mean something that allows the user to click down and draw and mouseup- stop drawing.
I've been following this tutorial: https://www.youtube.com/watch?v=OXdphAAH1mQ
However, on the line:
... _root._xmouse, _root._ymouse
I get an error which says that it's undefined... I tried mouseX as well, which also didn't work.
I assume it's because I'm using Professional CC so it may be a different version of AS. Does anyone have any tips on how I can get a drawing app working on Prof CC?
_root._xmouse, _root._ymouse It's an AS2. As you could see in Tutorial, he also creates AS2 project. I'm not sure, that you can create AS2 project in Flach CC. As far as I can see, there is no option to create ActionScript 2. Here is AS3 Drawing App tutorial;
I have this flash game that I've been working on that works out of the browser, and I'm looking to get it to save it's progress.
I've seen multiple flash games that have accomplished this, and It appears as though they've done this client-side, and I'd like to do the same.
My game consists of 1 mxml file and a number of .as files and I compile it from the command line using flex sdk.
What do I have to do to be able to save save my game's data?
As others have mentioned, SharedObject is the tool you'll use for this.
The basics of this are to initialize a reference to a SharedObject using its static method .getLocal() first:
var mySaveData:SharedObject = SharedObject.getLocal("SomeSaveName");
The String given to this method should not contain spaces.
Once you've done this, you'll be able to use mySaveData.data, which is basically a simple object that you can attach properties to on the fly (it's dynamic):
mySaveData.data.levelsComplete = 2;
Once you've done this, you'll be able to reference that value later on using the same process:
trace( mySaveData.data.levelsComplete );
For simple stuff you can use SharedObject
One way is to use flash's SharedObject to save values in to a 'flash cookie' on the client. Example can be found here: Actionscript 3 saving currentframe location to local hard drive?
Hey there quick question,
The auto-completion in FD started to do something weird.
Usually when you type
var position:Point
FD simply had the game.geom path in the Imports.
In one of my class when I type that it autocomplete with
var position:flash.geom.Point
everywhere. And does the same with the Rectangle class.
I had that kind of behavior when there was two classes with the same name (ambiguous call) but I don't have that problem here.
If someone have an idea ?
Many thanks
EDIT
Found the issue ...
I had a variable called "flash"
var flash:Blink;
So ambiguous call indeed.
I have had this happen once when I added a swc to my project which had the same classes as the sdk which was setup for Flash Develop.
I would make sure you are not referencing any other swc or sdk which may have duplicates of these classes.
Failing that I'd probably backup my user settings and do a reinstall.
If one creates an ActionScript only project in Flash builder, one can set things like stage size and framerate as metadata like this
[SWF(width='400', height='300', backgroundColor='#ffffff', frameRate='30')]
as described here: http://www.adrianparr.com/?p=36
I wanted to ask what other settings i can set using such metadata? is there somewhere a complete list?
See Adobe's documentation:
http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf680e1-7ffe.html