Hi all!
I need to send some pretty long strings from a flash application to a PHP page, and of course I want to compress it to reduce the traffic load to/from the server. How can I compress the string in an effective way and easily decompress it in PHP?
As it looks now, we're leaning towards standard zip file transfer, but the function...
In Actionscript 3 I see that if I press the "8" key (from the numpad) I got the result of keyCode of the numpad key "8", but when I disable the "Num Lock" and press the numpad key "8", the event I receive the keyCode of the Up Arrow key...
How to difference between the keys of the numpad (with Num Lock disabled) and the original keys, s...
I recently found a method (ByteArray.clear()) that FlexBuilder complains is possibly undefined; however, the method is in fact documented in the Flex LiveDocs. It must have been added in a later version of the SDK than I have installed. I'm not asking about this particular method, but I'm giving it as an example of the documentation is...
Hi,
I need a way to copy the content of one movie clip (with many frames) into another dynamically using as3.
This is how I tried to do it:
var table:Table = new Table(); //A custom class that extends MovieClip.
var swf:MovieClip = this.content.swf; //The movie clip I want to copy from.
for (var z:int = 0; z < swf.totalFrames; z++) //...
I'm trying to port a library from Java into AS3, and I'm down to the MD5 function. I'm using the MD5 library found as part of the project here: http://code.google.com/p/as3crypto/.
I'm getting the length correct, and about half of the values are correct. The ironic thing is the correct values are in the correct spot as well. Only the ne...
This was my initial structure:
main.swf -> child.swf
Main loads various child swfs. I am dispatching events from the child swfs, and main is listening for the events. Everything was working great.
Then, I added a preloader swf, so now the structure is:
loader.swf -> main.swf -> child.swf
I did not change the relationship between main...
Right now, this code
var gridArray:Array = [[],[],[],[],[],[]];
gridArray[0][0] = new gridProperties;
//gridProperties has gridX and gridY i.e. gridArray[0][0].gridX
function clearGridSquare(gridSquare:gridProperties):void
{
gridSquare = null;
}
function test():void
{
clearGridSquare(gridArray[0][0]);
trace (gridArray[0][0]);
}
prod...
Am developing a video player in as3 , everything is fine, but finally i got a prob in basic itself.
Question is How to specify the path to loading xml into flash. FOr example
urlreq.load("hostname/filename");
instead of host name i have to specify my physical path infact i should. so how to specify this.
means i have to load a xml f...
hi, i open up .fla file, but when i click window->action, there is not actionscript inside it. may i know where else can i check the .fla file is importing .as file. where to check it in flash cs3?
...
I am dispatching events from a child to a parent swf. It was working properly, until I used a preloader swf to load the parent, then the parent stopped getting events from the child. I get this error now:
TypeError: Error #1034: Type Coercion failed: cannot convert com.company.events::MyCustomEvent@22494251 to com.company.events.MyCusto...
Hi,
is there a way to create a class inside the main .fla file of a flash application?
If I try to define a class directly in the action layer of the .fla, I get the error: "classes must not be nested".
Alternatively, if I try to define a package and the class inside, I get "packages must not be nested".
I know I can reference an ex...
may i know in order to use these 2 class in my actionscript. I need to use "adobe air and flex" ? can my plain actionscript3 use these files? please elaborate
...
Is there any workaround to allow actionscript3 write to file system without adobe air?
The reason is because, in order to use adobe air, each of the web visitors will need to install add-on air run-time and that is tedious. Most of the users will have flash plug-in and not Adobe Air.
...
Has anyone had any experience using Adobe Air to create BitTorrent application?
Is there presently any reference on this?
Please provide as much information as possible.
...
1.i dont have iphone, so may i know does iphone come with pre-installed flash lite 2.0 or above? if answer is Not, if a web page that embed flash lite app. can it prompt user of iphone to install flash lite easily ?
2. where can i get list of phones that support flash lite 2.0 and above?
...
So I am trying to make these "Buttons" in my image gallery have some sort of rollover effect (text change color) , also instead of saying "Linus0", "Linus1", "Linus2", I would like to assign each one its own label. Am I able to do this with an array? Also - what am I doing wrong thats making it think there are six images total? There ar...
This pretty simple drawing command creates a traced red rectangle 11x11 pixels:
_sp.graphics.lineStyle( 1, 0xFF0000, 1, true, LineScaleMode.NORMAL, CapsStyle.NONE, JointStyle.MITER, 3 );
_sp.graphics.drawRect( 10, 10, 10, 10 );
What is the secret to making it 10x10 pixels?
If I fill a rectangle with the same drawRect parameters it tu...
I'm working on making a SWF application accessible for visually impaired people who use JAWS or Windows Eyes. I installed both JAWS and Windows Eyes demo versions.
When running my swf (locally) in a browser on a html page, Capabilities.hasAccessibility turns out true, but Accessibility.active turns out false, every time - even when che...
Hi i have TextField in as3 in that i assigning the html value like
var TFhtmlText:String = <span class='Header'>The value need to be 25 percentage \n and percentage be 50 percent.</span>
txtField.htmlText = TFhtmlText;
from the above i need line break after 25 percentage for that i used <br/> but i got unwanted spaces between line ...
my fla file setting
version: adobe air 1.0
actionscript 3.0
i able to compile without problem and when i load the swf file in browser, if my actionscript included this line "import flash.filesystem.File". My flash just show up "blank" . no error in flashlog. if i removed this line, my swf file able to run. what is wrong?
...