actionscript

Cannot access arrayCollection's children in datagrid

Hi Guys, I've got a Flex 3 application with an HTTPService returning an Atom feed. I catch the result from it and store it in an arrayCollection which is then the provider of my Datagrid. I have no problem accessing the data from the "first-level" of my Array, but cannot go under it. Not very clear, so here is some code: My XML [part o...

ExternalInterface.call causing error in IE

Hi, I have a menu screen that for various reasons consists of a number of buttons as separate flash movies. When a button inside these movies is clicked, it is supposed to call a javascript function to move to the appropriate page. It works fine in firefox, but is currently failing in IE7. I don't have an IE6 handy to test on. This is th...

Drawing an Interactive Diagram.

My boss wants to draw the local network and then, if you click on one of the computers or roll the mouse over one, he wants to see stuff like RAM, CPU, OS, etc. This has to be done in a browser, more specifically, the intranet's wiki. One of my coworkers suggested using flash (I am a complete noob but I assume ActionScript is what would...

What is the best way to handle refreshing a localConnection between AS3 and AS2 swfs using SWFBridge? (load, unload, load again)

I have an AS2 swf that is hosted by an AS3 swf and they connect using SWFBridge. During the course of things i need to unload the AS2 swf and reload it. Therefore I assume I need to re-establish the SWFBridge connection. But when I try to reopen the connection it doesnt appear to work. Heres what I have - AS3 Code: var myBridge:SWFBri...

What are the difference between Java, C++ and ActionScript3.0 in regards to OOP?

In a pure programming context (such as structural & OOP), what are the main differences that you find (or must be careful not to be confuse) between Java/C++ and ActionScript? Any other notable or important differences are also welcome. ...

A bug in CSS identifiers for AS3?

I'm not sure if it's a bug, but is there any way to target the "class" or "id" identifier to style heading tags (h1 to h6) using ActionScript 3.0 CSS? It works fine with all the other tags. eg.: <p class="style1">text</p> // I can use .style1 or p in the CSS <h1 class="style2">text</h1> // I can't use .style2 in the CSS, only h1 ...

Flex: Draw on different frames of a MovieClip

How can I used ActionScript to draw on different frames of a movie clip. That is, make it so that movieClip.gotoAndStop(0); will show something different to movieClip.gotoAndStop(1); ...

Flash dynamic input box @ and " symbol issue

Hello, Having a very strange issue with a few creative banners. On some computers when you type in an input box for an email field instead of the @ symbol you get the " symbol. It is almost as though the keyboard has the wrong language set. This isn't the case though, they are all se to UK. I'm thinking it could be an issue with embedd...

How can I float a movieclip over a textarea to make it appear like it's part of the text?

Take a look at this demo, how do they accomplish the Inline Changes feature? To me it looks like they are floating a movieclip over the textarea. What I can't figure out is how they anchored the movieclip to stay in the correct position. If you type something before the movieclip it moves position along with the text, the movieclips ev...

Syncing Frames to Audio and channel.position Acuracy

Calling channel.position on an ENTER_FRAME event, I notice that it's not being updated every frame, but it looks more like every frame and a half. var sound:Sound = new Sound(new URLRequest('music.mp3')); var channel:SoundChannel = sound.play(); // assume the sound is completely, // totally, 100...

How to build only upon saving in FDT?

Is it possible to set up FDT so that it only builds the workspace when I save (as opposed to constantly or manually) like it does in Flash Builder (previously Flex Builder) and if so, how? ...

Get MXML and ActionScript Classes out of swf

Hi there I want to know how secure Flex is. Is there a possibility to generate the source out of the swf-file? I mean for example if I have my Actionscript and MXML files and compile them to a swf, can I get the source back out of the swf file? With kind regards Sebastian ...

How do I get the response from an HTTP request on error?

I tried using both HTTPService and URLRequest/URLLoader. But I can't figure out how to get either the response output or the response headers in case of a server error(like 500). Some help would be really appreciated. ...

Get XML by Post method from Webservice in Flex

Hello there, I created a servlet in java that will give me a xml response when called protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/xml; charset=utf-8"); // Set the servlet's ...

Screenshot of stage

Is it possible to take a screenshot (dump image) of the Stage and save it to my web server? ...

How to split text by lines

Flex 3. I created a TextArea object. Then I typed some text in it. Then i got this text useing TextArea.text property. How can I split text I got by lines and convert it to the array of strings? ...

int(blah) giving different answer from (blah) as int.

Newbie ActionScript 3 question: why does (Math.sqrt((r * r - (r - i) * (r - i)) as Number) * 2) as int give me a different result from int(Math.sqrt((r * r - (r - i) * (r - i)) as Number) * 2) ...

How can I control the depth (layer position) of a Flash Video?

I would like to place a video object above one movieClip instance ("mc"), but below another movieClip instance ("mc_top"). I instantiated the _root.flashVid object by dragging a "New Video..." from the Library to the stage, and giving it the instance name "flashVid". I create mc, then paint a blue box, then I create mc_top, and paint...

Know when a hyperlink within a Text Field is clicked?

In Flash, is there any event when the user clicks a hyperlink in a TextField? ...

In Flash, what's the difference between the SWF header FPS and the Stage FPS?

In ActionScript, what's the difference between the SWF header FPS and the Stage FPS? From what I understand, the Stage FPS is initially copied from the SWF header FPS, but is that all the header FPS is for? Can it ever override the Stage FPS? Just to clarify, I set the header FPS using the SWF metadata tag - [SWF(frameRate="60")] - and ...