actionscript

Can A Flex Application Detect It's Own URL?

Let's say I had a flex application (Web, not Air), that was meant for Mass Distribution, to be included like a plug-in of sorts, at various websites. Is there any way for a particular instance of the SWF to detect it's own URL while it's running? If so, can you point me in the right direction of which ActionScript command I might googl...

Hash values not matching (possibly encoding-related?)

Hi folks, I'm sending a value from my front-end (Flex) to the back end (Oracle) along with a hash on the value. From my front-end, I'm using the as3corelib library from Google Code to compute a HMAC hash value using the SHA1 algorithm: com.adobe.crypto.HMAC.hash(mySecret, myMessage, com.adobe.crypto.SHA1); At the back-end, I'm using...

Actionscript and querystring issue.

Currently in Flash I am trying to pull in a value based on the querystring. Example.. Html code: myVideo.swf?video=ThreeGuysOneBall.flv Flash code: _textbox1.text = video; This works in the main flash actionscript, but I need the querystring in a class constructor that I created. How can I pass the querystring to a separated out ...

Flex4 addElement problem or something wrong with creationComplete event!?

Hi. I am using the new Flex4 Spark stuff but I'm stuck at an awful problem. Let me explain a bit of the situation first. I have a container (mx:Canvas) in which I do addElement() of one type instances (DocumentWindow). The document window class is supposed to be the holder for a view according to the type of the document. The DocumentWin...

wierd sandbox violation

I receive the following message when i start writing something inside a textField: *** Security Sandbox Violation *** SecurityDomain 'http :// localhost/crossdomain.xml' tried to access incompatible context 'file:///C|/.../Login.swf' I don't see a reason for that message, but it seems that this message is thrown when i do Key.isDown (...

gotoandplay detect the end of and begin playing another section of the timeline

I have a series of sections in the timeline and I'd like to use gotoandplay. How do I begin playback of another section of the timeline. Is there a way to detect the end of gotoandplay? for example: 3 objects and 6 frames. each object has a animate in frame and an opposity animate out frame. At each frame the user can pick any of the ...

PHP, Actionscript Object Oriented Programming Design Pattern....

Hi guys... I was wondering how to do the PHP OOP design pattern for real life application. I wish someone can share their learning experience with me. I am particular interested in PHP and actionscript. Most of the books I could find in the book store are only basic PHP (or AS3) programming. I appreciate any help. Thanks! Please do no...

ExternalInterface w/External FLV Player

I am curious if anyone knows of a way I can set my .SWF external FLV player to call a JavaScript function once the flv is ready/buffered for playback? Everything I have tried thus far has not worked...Any help would be greatly appreciated! ...

AS3 trace w/out newline

For diagnostic purposes, I want to print a matrix (an array of arrays). To do this with a loop means executing a trace command multiple times, whichto my understandingprecludes the possibility of printing multiple table cells to a single row. (When coding trace(x); trace(y);, a line break falls between x and y.) What can I do? ...

Build and run FlexUnit from the command line

I am building an app using ActionScript3 with Flash Builder 4 as my IDE. The IDE supports a unit testing framework called "FlexUnit". I can build and run tests within the IDE, no problem. After much pain and suffering I figured out how to build the unit tests as a swf from the command line. I can point a browser or flash player at ...

In ActionScript, what character does "\t" represent?

In ActionScript, what character does "\t" represent? I can see it in some ActionScript And was wondering what character it really was. ...

Passing a parameter from flex main to a flex(4) component with data binding

I have a main mxml file (flex4) and want to pass a parameter (user_name) to a component in a directory called components. When I run the program, the user_name is NOT being sent from the main to the component file. (Interestingly, if you make the component visible, you can see the parameter has been passed) New to flex/actionscript and...

set array to hold images verses text, flash actionscript

Hi, the following flash actionscript below stores letters and numbers into an array and displays them randomly in a flash movie as "falling text" down the screen. I'd like to modify this script so I can have the array store multiple images verses letters and numbers. source: http://www.flashcomponents.net/tutorials/letter_and_number_r...

How to create simple swap effect with fade-in/fade-out?

How to create simple swap effect with fade-in/fade-out? ...

how can I access the elements of this xml in Actionscript 3?

Hi, I had no problem working with xml in cumbersome AS2, but apparently it's menat to be easier in AS£, however I'm having a problem getting the data from this piece. Basically I need to be able to access the id & src. any help appreciated Thanks ...

How to pause in the middle of the function?

How to pause in the middle of the function? ...

Is it possible to use closures in AS2 like in Javascript?

I am wondering if it is possible to create a closure in ActionScript2 like it is possible in Javascript. This doesn't work: var util = function(){ var init = function(){ trace(this + ': util'); // i want to know this thing works! var myUtils = new MyAS2Utils(); // load some stuff var url = myUtils.getURLInSomeReall...

Loading a swf named in xml into a parent swf in Actionscript 3

Hi, OK, I have a situation where I use loadvars to load an xml file, which has the address of 2 swf's on the server. I can trace the xml items so know they are loading. So I'm trying to load the swf's but am running into problems. First problem, the swf always gives an error when I publish from flash, "TypeError: Error #2007: Paramet...

Accessing/Scope problem in actionscript 3 with loading xml

OK, it's probably easiest now to explain my problem like this, I am able to write the name of my xml file that needs to be loaded to a dynamic textfield on the stage, however, I don't seem to be able to access it after this and strip the necessary data from it, here's my code: var tf:TextField = new TextField(); tf.autoSize=TextFieldAut...

Improved bitmap filtering in actionscript/flex

I'm looking for actionscript implementation of bitmap filtering which is better than standard one. With enabled smoothing standard filtering looks good, but in case of non-uniform transformation (non-uniform scale, skew) bitmap smoothing breaks down. Does anybody know how to fix the problem? ...