actionscript-3

AS3 Core Lib and Adobe Air update frameowork conflicts

Hello i am working on an Adobe air html/ajax application in which i need as3Core lib and Air update framework. Update framework work only if I remove as3Corelib from my code. But they both are essential for my project. Btw i am using only JpegEncoder from as3Core lib. Thanks For reading :) ...

number with sign in combobox dataprovider

Hi, I am trying to display country codes(+91, +60, +01) in the combobox. Although the dataprovider(array) contains + sign but is removed. I am not getting how to show it with sign. <mx:Array id="countryArray"> <mx:Object label="India" data="+91" /> <mx:Object label="Malaysia" data="+60" /> <mx:Object label="Usa" data="+01" /> </mx:...

Images do not load at first time in my swf but the second time they are shown when the bowser refresh??

i have written classes in as3... my swf works fine locally but at live link, images do not load or shown first time but when you refresh the browser again they are loaded and shown.. i know they comes in cache but what is happening first time.. you can clear your browser cache and check the problem happens each time when it is not in ca...

Flicker, orkut, picasa API for Flex? Need API?Please help?

hello, I have to work on one new project, there we have to provide an option to download images from any website like, Orkut, picasa etc, so that the user, can view his/her pictures any time and his/her images are accessible any time, so i heard of APIs, that we developer can use. i hope u r getting me, i saw tour de flex, there are f...

how can I make windowless flash projector without a 3rd party application?

i'm trying to finish an educational cdrom done in flash, how can i make a window less projector, or position the window on the center of the screen without a 3rd party software? ...

ActionScript Accessing Functions/Vars From Outside Of Class

how can i call public functions or vars of a sprite class from another class (or frame script)? i keep getting 1061: Call to a possibly undefined method getSide through a reference with static type flash.display:Sprite. //Framescript var a:Sprite = new customRect(); addChild(a); a.getSide(); //.as file package { import flash.display.S...

ActionScript Clean Up

i want to deallocate a spriteClass from memory and remove it from the display list. when the spriteClass is instantiated, it creates some of it's own sprites with new tweens and tween events and add them as children. i understand that the tween events must be removed in order for the spritClass to become available for garbage collectio...

actionscript 3.0 garbage collection with casalib ?

I would love to see an actual example how to use the casalib-garbage-collection. I used the destroy method like in the description: casa-lib description If I have a Loader in a Subclass, do I also have to use the CasaLibLoader? Do I have still to care about all Instances/Eventlisteners to do proper garbage collection? If yes, whats the ...

No mic activity with setLoopBack set to false - AS3

Trying to figure out why setloopback needs to be set to true for microphone activity to be detected. The problem is the echo feedback when using a macbook with a built in mic. If anyone has some ideas about this let me know. Right now I'm experimenting with toggling gain, depending on activity to simulate echo reduction. Not optimal...

MYSQL accentuated characters é display as %E9

Hi guys, I'm pushing data from as3 to MSQL through a little php script! My problem is that all my accentuated characters are displayed as weird iso characters. Example : é is displayed %E9 Obvisously the collation of my field is set to utf8_general_ci Even when I try to INSERT the data from a simple php script without as3, I get the...

Setting button width with fx:Style

I have 4 buttons, all of them have the same width. <s:Button id="btn1" width="{btnWidth}" /> <s:Button id="btn2" width="{btnWidth}" /> <s:Button id="btn3" width="{btnWidth}" /> <s:Button id="btn4" width="{btnWidth}" /> Is it possible to set their width with Style, something like this: s|Button{ width: btnWidth; } I tried it, bu...

As3 & PHP URLEncoding problem!

Hi everyone, I'm stuck with a stupid problem of encoding. My problem is that all my accentuated characters are displayed as weird iso characters. Example : é is displayed %E9 I send a string to my php file : XMLLoader.load(new URLRequest(online+"/query.php?Query=" + q)); XMLLoader.addEventListener(Event.COMPLETE,XMLLoaded); When I...

Passing Variables

Hello, Can you please give me some leads into passing variables from a HTML(or)ASP.NET file to Flash Action Script 3 file. Please Help. Thanks ...

as3 custom functions

hi, i'm new to AS3. how do i go about executing a custom function n number of times and then executing another function n number of times repeatedly? eg. function firstOne():void { } function secondOne():void { } i need firstOne() executed say 3 times and then secondOne() 3 times and then firstOne 3 times again and so on. i'm trying...

how much time it will take to learn action script 3 in flash

I know php mysql , javascript , jquery very well. I have never touced flash. Now have to do website in complete flash with action scripting. Keeping flash animation and scripting separate. How much time it will take for me to build e,g 1)Simple page with 1 column layout like , header , navigation bar , content. 2)The navigation items ...

IE popup an "object doesent support this propety o method" when using ExternalInterface.call

hi, i"m getting nuts in here. everytime i try to do even an ExternalInterface.call('alert','abc'); (which will work on every browser) i get an object doesent support this propety or method after the alert appears. it even happens in the HTML generated by flash without me touching it... there is any solution?! thanks! ...

Flex 4 - Highlight keywords in a block of text using TextLine

I have a search and results page that I would like to highlight the keywords that were searched for, in the text of the results. It was suggested that I use TextLine for this, but I am having trouble figuring out how to make it work. I started a simple, compilable dummy application and was hoping someone could give me some tips on how to...

Is there a way to convert a swf to an .abc file?

I'm looking for a way, preferably a command-line utility, to pump out an .abc file for a compiled swf. I've looked into asc.jar, but so far it seems like it can only accept classes, not compiled swfs. Anybody know of a good way to do this? The end-goal of this process is to use Zwetan's RedTamarin project to run describeType on some sp...

How to display node name in Action script 3 xml

My xml is like below <rat> <to>tt</to> <from>ggg</from> <heading>hhhhh</heading> <body>jjj</body> </rat> My AS3 code is var example:XML = new XML(event.target.data); _label.text = example[0].rat[0][nodeName]; addChild(_label); I want to display the data like to = tt from = ggg how can i do that ...

How to add list box in action script 3

I want to add simple list/combo box with action script 3 . but i have not found anything in internet. Can anyone give me sough rough idea with some dummy values thanks ...