actionscript

Significance of : xmlns:mx="http://www.adobe.com/2006/mxml"

Dear Friends, I want to know a bit more about 'xmlns:mx="http://www.adobe.com/2006/mxml". Generally namespaces acts as the pointers to the component location, but I've always seen them directing resources within local directory structure. When 'xmlns:mx="http://www.adobe.com/2006/mxml"' is used than is a new connection is set with adob...

How to remove all event listeners in flex

Dear Friends, Is there some way where I can remove all event listeneres on my components all at once. Expecially when I dont have any prior knowledge of, what all listeners are being attached to my component. Thanks in advance. ...

How do I solve Error: [strict] Ignoring policy file at http://my.domain.com/crossdomain.xml due to bad Content-Type 'binary/octet-stream'?

This is an ActionScript 3 problem... I am hosting a swf on my.domainA and I am requesting a jpg from my.domainB ( of course I'm obsfucating the domain names ) the using this code: var request:URLRequest = new URLRequest(result.image); request.requestHeaders.push(header); var context:LoaderContext = new LoaderContext(true...

Does anyone know common programming conventions for Flex?

Does anyone know common programming conventions for Flex? ...

AddChild with Dynamic DispalyObject in Flex

I am pretty sure that this is totally what i need, however I can not get it to work for some reason. What i would like to do is call an arbitrary component that extends Canvas. Since there may be a variety of components named TestCanvasA, TestCanvasC, TestCanvasC which i won't know till run-time I figured this would be the way to go abou...

New to actionscript: need some help printing a board. [closed]

My program has three classes: let's say the top one is container, the middle one is board, and the bottom one is piece. In the container class, I have the following statement: addChild(board). In the board class, I have the following statement: addChild(piece). The board class changes multiple times during the course of the program, with...

Displaying time in Horizontal axis using actionscript.

I am having following action script which takes value from XML and display line graph. But i want Time as a X-axis(ie. horizontal axis) . help me. [Bindable] private var myXML:XML; private function httpService_fault(evt:FaultEvent):void { var title:String = evt.type + " (" + evt.fault.faultCode + ")";...

Static layers missing when loading a flash generated swf using swf loader in AIR

We have a Flash game which need to be loaded and played from an AIR app. using the swf loader, the game swf is loaded into the AIR app. But the static background layers of the swf are not appearing in the loaded game. Those graphical elements which are generated via action script only are appearing. When we are playing it independentl...

Server-side actionscript: 'Method not found' error on NetConnection

The 'client' property of NetConnection instances seems to behave differently on the server side. Say I have FMS apps A and B. Now I want to connect from B to A using NetConnection like this: var bClient = new NetConnection(); bClient.client = { foo:function(){ trace ('Foo called!') } } bClient.connect(APP_A_URI); App A accepts the cl...

How can I get a smooth text crawl using Flex?

I'm working on a standalone Flash application (written using Flex 3/ActionScript 3) that features a text crawl, like what you might see at the bottom of your TV when watching a cable news channel; it's a long narrow box that text moves across from right to left. I've implemented it by creating a Label element, populating it with text, a...

Concurrency and Networking in Flex and Actionscript

I am interested in making a RIA in Flex that will communicate with my server. The application will be downloading and uploading very often. It will need to be able to download hundreds of images over the course of its runtime. However, I have read that Flash does not support threading. Would this be a major problem if I want the UI to ...

Flex crazy issue

Hi guys I am trying to export the button symbol from Flash and publish swc file for Flex. I have successfully export 3 buttons which are playBtn, stopBtn, pauseBtn from flash and add swc file to my flex actionscript files. my code is: private var stopBt:stopBtn; private var playBt:playBtn; private var pauseBt:pauseBtn; privat...

How to debug in AS3 only project in Flex...?

Hi guys.. I am trying to build a AS3 only project in Flex....I have tried debug mode, but seems like it takes so long to compile....I can't use trace or check variables...Are there anyway to do debug?? Thanks for the help.. ...

Actionscript 3 Null Object Error Message

Hi guys.. I am building a AS3 only project and got runtime error that said "Cannot access a property or method of a null object reference." Here is my code: main.as public class videoMain extends Sprite{ private var videoPlayer:Player; public function videoMain (){ loadPlayer() loadProgres...

how to format input text into equation using action script 2.0

Hello every one, iam very new to action script.i have one problem. i have one input textbox.To enter 5x^2 ,key sequence used are "5" "x" "2" ie.,the characters must be formatted as it is being typed.I want to enter equations like "5x^2-4x-2".It should not allow other characters other than "x", using action script 2.0 .Please help me a...

Neperian Logarithm on ActionScript 2???

How do i calculate the neperian logarithm on AS2 ??? ...

Defined size doesn't corespond to real size on the screen

Hello, I've encountered curious problem, and I'm wondering what is wrong. When I define for example Sprite and I draw inside rectangle 20 x 20 px, then when measured on screen it have something like 33 x 33 px, while swf window which was defined as 400 x 300 corresponds to definition well. Where is the problem? ...

embedded button.swf does not fire CLICK event

i'm trying to embed a swf to my as3 flex project like this: [Embed(source = "../assets/next_button.swf")] [Bindable] protected var nextButtonClass:Class; protected var next_btn:MovieClip = next_btn = new nextButtonClass() as MovieClip; // ... next_btn.addEventListener(MouseEvent.CLICK, onAdChange); next_button.swf is as2 and created w...

Is there something like alert() of js in flash world?

I want some text to be displayed(visible for web browser), so it's not trace.. I'm new to this language,what's the easiest solution? ...

Actionscript to a webservice

I have actionscript function which needs to access a .net webservice, the webservice has a parameter (<List>), which is a collection of array objects, how to pass parameter from actionscript/flex for List object of a webservice. ...