Is there any way for me to define implicit or explicit type conversions in ActionScript?
For instance, I want to define a conversion such that Array can cast into MyClass implicitly. If not, an explicit cast would be useful. I know I can always pass it into my constructor, but I am dealing with semantics here, and I am most interested...
i have many objects of the same custom class, and another many objects of another custom class. i would like to create a switch statement to determine from which of the classes the object belongs. the following code doesn't compile, so i'm not sure if this is possible. is the only alternative to use if statements?
function mouseClick...
I am currently trying to implement basic speech recognition in AS3. I need this to be completely client side, as such I can't access powerful server-side speech recognition tools. The idea I had was to detect syllables in a word, and use that to determine the word spoken. I am aware that this will grealty limit the capacities for recogni...
Hi, I have a big problem and I don't know what else to do to solve it, I know that I can call netconnection methods from FMS like
//FMS code
application.onConnect = function(client){
// Accept the client before you define a function.
this.acceptConnection(client);
// Alternately, you could define this meth...
Hi
I've built a few gallery applications using AMFPHP (remoting).
Now I'm faced with another project with existing database functionality already completed in .NET (.aspx).
Can anyone tell me what the differences are in creating an image gallery with webservices vs remoting?
And is their a recommended 3rd party webervices package? I'd p...
I'm searching Adobe's documentation and cannot find it. Specifically, I'm looking for SecurityError #'s and descriptions for the SecurityError class documented here.
http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/SecurityError.html#SecurityError%28%29
...
Out of the box, Flash CS4/AS3 doesn’t seem to support the soft hyphen / discretionary hyphen (­ / U+00AD). Is there some trick to getting it to work, or is it simply not there?
...
Only the number and alphabet is allowed to be contained in the input string, return true or false.
function is_valid(str:String):Boolean {
}
My implementation is dumb, as I want to iterate each character.
Input: akjd8899kdjfj2kj return: true
Input: kjd^kdjf^%%$ return: false
...
I'm pulling my hair out with this one.
How do I set which Flash Player to use when running a project?
...
Just wanted to aovid reinventing wheels, I want the date and time picker, I know there is already a date only picker inside flash builder.
BTW: i am using flash builder 4
...
Hi
Am struggling to find the right as3 code to resize an image once it is dynamically called into the stage and placed in a MC.
I am loading using:
var myLoader :Loader = new Loader();
mc.addChild(myLoader);
var url :URLRequest = new URLRequest("myimage.jpg");
myLoader .load(url );
The stage will eventually open up into fullscreen ...
Hi all,
I want to create a list of progress bars and update the list accordingly.
I have group data in an Array as
<mx:Array id="arr">
<mx:Object label="Group One" min="0" max="200" currentValue="60" />
<mx:Object label="Group Two" min="0" max="300" currentValue="50" />
</mx:Array>
The values in the array object in...
1) var x1:X = new X();
2) var x2:X = new X();
...
3) x1.z = new SWFLoader(...);
...
4) x2.z = x1.z;
5) x1.z = null
6) x1 = null;
The last statement is useless because statement 4 guarantees that x1 and anything else it contains will never ever be garbage collected as long as x2.z exists. Does anyone else think this is bizarre? This ...
A very simple case:
There's a Flash EXE projector
There's a XML file in the folder relative to the projector, data/menu.xml
Application is launched on a Windows XP box
On one of the XP machines XML fails to load over some awkward reason. In most environments it works fine. The same app runs well on all Macs tested.
Any ideas?
...
i'm pretty confused over the following issue and would be grateful for some clarity.
generally, how i work involves designing all of my graphics in Flash Authoring, converting them to Sprite symbols by changing the base class to flash.display.Sprite, give my instances names and finally export them to ActionScript.
the approach actually...
i'm currently using a dictionary to associate a boolean to my (non-dynamic) sprites, but i would like to know if there is a smarter way of doing this? i could just use MovieClips to assign my properties instead of Sprites since MovieClips are dynamic, but i will not be using any of the MovieClip properties or functions so it comes down ...
I've looked for the solution to my problem on SO, Google and Bing, but to no avail.
NB This is regarding AS3/CS5 on Windows 7 Pro x64.
I have a SWF that loads another SWF in AS3.
Yesterday morning it was working fine.
Then I made a bunch of changes to another SWF, completely separate, and to some XML content files and the next time...
Hi everyone!
I was just wondering what are the pros and cons of using embedded images instead of dynamic loading? Because when making games on pure AS3 (without Flash IDE), its a pain to manually embed all the assets needed... That makes your code sloppy, besides you don't have control to automatically change the hud, for example, by on...
I'm a Java/C++ programmer by trade and I'm looking to expand my horizons in terms of computer languages in order to make myself more employable.
Flash, Actionscript 3 and Adobe AIR seem like they are useful things to learn and I was wondering what would be the easiest way of getting an introduction to them?
Do I need to get hold of a s...
I am using red5 9 with FP 10. in my player, after i pause a video and resume, the video buffer empties after about 40 seconds and never fills up again. i see that on the server, the stream is still reporting to send data.
...