actionscript-3

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...

Differences in actionscript 3 authoring tools

What are the various feature differences between different as3 authoring tools like: FlashDevelop,FDT,Flash builder? ref link ...

flash as3 unicode support

Hi, Can i load my own language as text in as3 textarea or labels from xml or from database. I want to display tamil in flash swf or in AIR APP. how can i do it? ...

Blogger Posting IOError in Flex

I am using this API with Flex4 with Windows7 operating system. I am able to login and also to get the list of my blogs. but when I tried to post any new post on my blog. bloggerService.publishBlogPost(blog, post); I am getting following IOError: [Line 1, Column 124, element content] Malformed MIME type. I am unable to find what's go...

How to make a borderContainer to listen for scroll events?

Hi! There is my scenario: I have a BorderContainer that is contained by a Scroller. Question : How can i make my BorderContainer to listen for Scroler events? e.g. When i scroll down or up, or right or left, i want to change my BorderContainer's cordinates(x, y). Thank you! ...

Actionscript getBounds : what if the targetCoOrdinateSpace is not added to stage

I have two display objects dispObj1, dispObj2. dispObj2.stage is null. (i.e. it is not added to stage anyhow) What should be the output of dispObj1.getBounds(dispObj2)? Is it well defined, or could it be arbitrary? Once I got x of boundingRectangle close to 6710785, which I guess is a symptom of an integer overflow somewhere. But othe...

handle a time object from php in flex (parse it to a Date object)

I've got a php backend which delivers a time (e.g. '07:00:00'). This time is recognized as a string but I need it as a Date. So what I need is: Convert a string '07:00:00' to a Flex Date object. Is there a way to do this (without using regular expressions)? ...

How to execute CMD commands in flex using actionscript?

Hi, I would like to execute a CMD command from my flex application programmatically. Something like > mediaplayer.exe "mySong.mp3" I also tried using fscommand but was not successful. While googling I learnt that its not supported by AIR. I would like to know if there is any other alternative for executing the commands. Thanks... ...

Enter Frame does not detect hitTestObject precisely when tweenling

I have a function with Enter_Frame running and have it tween during the function. I know you could use object.y=object.y + 1 instead of the TweenLite i'm using now. But TweenLite gives the best effect I wanted. My problem now is, I wanted to remove the enter_frame function when its not collision each other. But when I traced hitTestObjec...

Can a local Flash application change channels and get video out of a TV Tunner card?

I need to show live television on a frame of my desktop application made with Flex. ...

Why radioButtonGroup doesn't set its numRadioButons instantaneously?

Hi! Here is my code: var x : int = 50; var group : RadioButtonGroup = new RadioButtonGroup(); for (var i : int = 0; i < 5; i++) { var rb : RadioButton = new RadioButton(); rb.id = i.toString(); rb.group = group; rb.label = i.toString(); ...

AS3 NetStatusEvent events not triggered

NetStatusEvent has only one type of event: NetStatusEvent.NET_STATUS; but it comes with many codes for various cases. Here they are, listed: http://bit.ly/ce3TvC However, a lot of them are not triggered for me. I know some are FMS specific but I'm talking about "NetStream.Play.Stop", "NetStream.Pause.Notify" or "NetStream.Unpause.Notif...

change font color of a part of text in TextArea

I am using actionsript 3 and flex 3.5. Is there any way to change the font color of a part of text in TextArea control without using "htmlText" property? For example I have a string "dog, cat, fish". I want to change the color of "cat" word to red. Is it possible to do? ...

package-level function is not working..

After I saw the methods in flash.utils package, I decided to make a try: // inside file Test.as package com.tests { internal function packageFunction() { } } But I got: A file found in a source-path 'Test' must have the same name as the class definition inside the file 'packageFunction'. packageFunction is a functio...

What is possible with XSS with Flashvars? How to prevent it?

Recently a client was concerned that their SWF was "insecure" because the XML path was coming from Flashvars. This seems to me to be something that isn't really a concern as the SWF is only displaying images / text and a few button links. I can understand how someone could path to the swf and add a remote XML path in to add javascript to...

Need Help with animation gallery in AS3

Hi Everyone, I been trying to create a gallery in Flash with different movie clips. Timeline -back button -next button -stop button -play button -Main Movie (these are inside Main Movie) --Animation 1 --Animation 2 --Animation 3 I have the animations set up in Main Movie with instance name and frame names like "Animation 1". ...

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 ...

Coded SWF Properties in Flash Builder 4

i want to add a SWF metadata tag to an ActionScript Project in Flash Builder 4, that denotes the default size and background color of the swf. i can do this in Flash Professional, but it doesn't work with ActionScript projects in FB4? can i not include this tag? i know i can set these properties in the properties panel, but i'd like t...

Hiding the content pane in a Flex Panel

I am writing an custom component in Flex 3.2 that extends the panel component. After a user performs a certain action I would like to hide the main content area in the Panel component, as well as the Control Bar if one is specified. Any ideas on how to do this? controlBar.visible does not seem to hide the control bar, and I don't know...