I have a bitmap loaded in flash, for a 2D game. The bitmap represents a character and is rotating when the user uses the A (left) or D (right) keys. The problem I have is that the border of the image becomes ugly while rotating, you can see "pixels" (you can always see pixels, but I hope you understand what I mean).
How can I fix this i...
Is it possible to send an array from Flash (AS3) to JavaScript using an ExternalInterface call?
I currently am calling a function multiple times from a 'for each' loop inside Flash but it goes too fast for the JavaScript to keep up.
My idea is to create an array of the attributes, pass that to the JavaScript function and then to loop...
I am currently in the process of porting game code from PC to flash, and it was done in C.
There are many extern variables and functions, and they are all spanned across multiple files.
Is there an easy way to keep the filenames as it is (just replacing .C with .as), but putting them all into a single class called Externals?
If I put a...
I'm trying to use callLater with FlexUnit v0.9:
public function testCallLater():void {
Application.application.callLater( addAsync(function():void {
assertTrue(true);
}, 1000));
}
but when it runs I get this error:
ArgumentError: Error #1063: Argument count mismatch on flexunit.framework::AsyncTestHelper/handleEvent(). Ex...
Loading images into Flex (size < 100kb) causes IE7 memory increase by a megabyte per image. What's going on here? Here is the code I have -- this for each image:
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_Error, Retry);//retry it
loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
...
I'm trying to capture the ENTER event of a TextInput like so:
a_txt.addEventListener(fl.events.ComponentEvent.ENTER, aEnter);
function aEnter(ComponentEvent):void
{
//...
}
There's probably something in these docs
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/controls/TextInput.html#event:enter
which I don't quite...
I've got the following code from another question on SO to track the changing value of a counter.
package com.my.functions
{
import flash.events.Event;
import flash.events.EventDispatcher;
public class counterWithListener extends EventDispatcher
{
public static const VALUE_CHANGED:String = 'counter_changed';
...
In Flex Builder, when I create an .as file in a non-actionscript/flex project, the code hinting doesn't seem to work.
Is there a way to get code hinting to work when working on a .as file that's not part of an ActionScript/MXML project?
UPDATE:
The Outline functionality also doesn't seem to work in the same situation. It would be nice...
i have a problem getting tween max, do you download it free to your computer or do one have to buy it? currently am doing a site school project and i do need tween max and the others. guys i hope u don't mind hooking me up with this information; my project is in due on friday.....i need aid guys
thanks
...
In Actionscript, the Unix timestamp in milliseconds is obtainable like this:
public static function getTimeStamp():uint
{
var now:Date = new Date();
return now.getTime();
}
The doc clearly states the following:
getTime():Number Returns the number of
milliseconds since midnight January 1,
1970, universa...
When I have an object, removing all references to it is enough to sign it up for the garbage collector, atleast that's what I heard. Eg.:
removeChild(object);
object = null;
I'm still a bit confused though, because does this mean that the event listeners made inside this object's instance are also automatically removed? Or is there an...
I have a List component that has drop-in CheckBox itemEditor that also serves as the itemRenderer. It displays each item as a simple CheckBox with a label.
However, the itemEditEnd Event does not get triggered until I click on something outside of the List. I want it triggered once the CheckBox is checked or unchecked.
I was thinking o...
I am dynamically adding labels to a form and I would like to set some of them to be bold. I can;t seem to find an easy way to make a label bold in ActionScript. It is very easy to do in MXML. I would think that it would simply be an attribute that is set. How do you make a label bold?
...
I'm working with an array in AS3, which is sparse by default. I make an array and add a value to it at a given position. I nullify it's contents at that index. It retains that index value, but nullifies the contents. The issue is that the length still traces the same. Is there a way to actually remove that index without modifying any of ...
Hi all,
I have already googled and read a lot of different topics relating to this problem, but still cant solve mine.
I have this dynamic text field in a movieclip, and I embeded upper case, lower case and numbers. I exported that
movieclip, then used it in my class and it's loading data from xml.
However, after I embedded the bold fo...
After asking "Do certain characters take more bytes than others?", I figured out that I'd need to set the character encoding set when receiving and sending data with a socket connection in Actionscript / Flex 3.
Now I've been trying to find out how to do this, however there doesn't seem to be such property available. Is there any specia...
I have a swf which, for some reason, has four RemoteObjects pointing to the same ChannelId, but they are listing that channel as being at two different spots. In four of the five RemoteObjects, everything behaves as expected, but in the fourth (WidgetService), the version on dev is switching from dev.context.root to loc.context.root. T...
I have a MovieClip with and image inside that I can drag, resize and rotate.
I'm creating a little thumbview, so the user can se how it will look. This is essentially a small version of the main MovieClip.
How can I clone the MovieClip into a smaller one, so that when I drag, rotate or resize the image in the main MovieClip the small o...
How to pass information in this flow:
Flash(AS3) -> PHP, using XML -> Database(mysql)
Can anyone write a simple code for that?
Thanks.
...
In actionscript 3 I want to apply a special effect which will render my flat 2d layout into a radial form.
Is there a way to achieve such an effect with existing features or should that be developed first by using alchemy?
External Example:
...