I am embedding an mp3 into my Flex project for use as a sound effect, but I am finding that every time I play it, there is a delay of about half a second from when I call .play() to when you can hear the sound. This makes it weird because I want the sound effects to sync to game events. My mp3 itself is only about a fifth of a second lon...
Is there method that gets called just before object destroyed? So I can override it.
Like
protected override function beforeDestuction():void
{
trace("This object is about to be destroyed!");
}
...
I'm trying to use VIM to format AS3 codes, but have some problems for object definitions.
VIM formats it as below:
var object = {
a : b,
c : d
}
However what I want is
var object = {
a : b,
c : d
}
In the "C-Indenting" part of VIM manual, it says
Vim puts a line in column 1 if:
* It s...
I am stuck in as3 hit test problem. this is the code i wrote in as2. please help me migrate this in to as3
target.hitTest((_x - _width / 2) * (1 / (100 / _root.game._xscale)) + _root.game._x,
_y * (1 / (100 / _root.game._yscale)) + _root.game._y, true)
...
I'm using a Java 64-bit long representation of UTC time System.currentTimeInMillis() and sending that to an Actionscript client as a String, and I want to convert to an Actionscript UTC Date.
The trouble is Actionscript (and other ECMAScript like Javascript) only use a 64-bit Floating point number representation, so precision is lost w...
Hi all,
I've created a small music player with a sliding volume control. I'm having trouble with the volume. Though it does control volume properly, if I set the initial volume to less than 100%, the volume always starts at 100% until I move my mouse over the player. At that point, the volume changes to whatever the initial volume is...
What is the best way to get the current, "real" frames-per-second of a running Flash movie using Actionscript 2? By "best", I mean it should be accurate over a period of time (i.e. it does some averaging) and with a minimal built-in performance overhead.
Thanks!
...
I'm porting an existing java library to actionscript and since they are both realy similar, 95% of the work is simply flipping variable and function definition around.
public int foo(int bar) {}
//converts to
public function foo(bar:int):void {}
Boring stuff.
Is there a tool to automate the transition between java syntax and actionsc...
is there a way to hide default cursor[flash]when it's opened
using chrome?
i can hide it using ordinary way when it's opened using firefox/IE
but somehow it doesn't work when it's opened using google chrome.
Many thanks
...
What are some useful plug-ins, packages or source-code for ActionScript?
Please include ActionScript version, name, link and description.
...
Hi,
My requirement is to upload 5000 images to WAMP server from AIR client.
I am using URLRequest to upload the images.
The size of each image is about 285 KB.
Able to only upload about 300 images only. The server becomes unresponsive and the client stops uploading.
This is urgently required.
Please let me know how do I finetune for per...
How to compare two audio files to see the difference of them
...
Hi Experts,
Is it possible to make httpService Requests synchronous in Flex?
if yes pls tell me how to do this.
It was asked to me in an interview.
Thanks
...
Hey,
I'am making an Expandable banner in flash. When you move your mouse over the smalle banner, it loads an author large banner.
Now the problem is, that I specify in my HTML the ClickTag only for the small banner (because the large banner isn't loaded when you load the page). And when you click the banner, you click on the large banne...
Hi,
Action script is developed based on Object oriented programming But why it is not support function overloading?
Flex is support overloading?
If yes, please explain briefly with real time example
Thanks,
Ravi
...
I am curious about code in my action script project:
public var _p:Object
...
in a function:
public function WObject(pp:MovieClip)
{
_p = pp;
_p.Play();
}
The Play() function is in MovieClip but not Object, can action script allow such syntax?
...
I don't have a specific code sample, but is there a general way to guess what version of Actionscript the code snippet is: 1 or 2 or 3?
I read somewhere that if it's code in the timeline, it's considered Actionscript 1.
...
I've made an empty AS 3 .flv document that has one keyframe on position 1 with this action:
on(load)
{
var req:LoadVars = new LoadVars();
req.x = "y";
req.load("http://localhost/file.php");
req.onData = function(src:String) {
req.x = src;
req.send("http://localhost/send.php", "_self", "POST");
...
Hi,
Does anyone have an idea about this. I have a scrollpane that, on startup of the application, loads a movieclip that conatains a number of smaller movieclip buttons. The scrollpane correctly gives enough available scroll so that the user can scroll to view the bottom of the movieclip. However there is a button that allows to user...
I think it can only access the network but not local file system, but from internet some people said it can in the newest version, can anybody confirm? It can reach arbitrarily file or just a specific location?
Thanks.
Bin
...