actionscript

Customizing Flex Charts

Hi guys, I am wondering if it is possible to customize Flex Chart to have grids like in this example: http://imglink.ru/show-image.php?id=bfcb5a0c5bbcfc20f3f21ef764ed79e7 Thank you in advance! ...

A custom clip to run while flex application loads itself

Dear friends, Whenever a swf is loaded a custom movie is shown (by default a rotating circle), is there some way where I can have my custom movie to play there. If you have any idea in this regard, then please help. Thanks in advance. Ashine. ...

Understanding OOP in Actionscript

A.as : public class A { public function getFunction():Function { return function():void { if(this is C) { trace("C"); } else { trace("not C"); } } } public function func1():void { var internalFunc:Function = getFunction(); internalFunc(); } } B.as : public c...

Load picture from XML [actionscript 2]

I'm creating a picture gallery in actionscript 2. In order for people to easily create/modify galleries, I have actionscript read in file information through XML. However I have one problem I can't get around. I'm having trouble loading the picture into a movieclip, then being able to change the properties of that movieclip (change _x, _...

problem with textField.htmlText and apostrophe (')

Apostrophe is shown in textField.htmlText as &apos (which is not a valid html encoding of apostrophe), intead of &#39. How can i change it? ...

Resize Image with Scroller causing 1502 exception

Description: I'm loading an image inside of a border container and when i zoom out, the scroll bars disappear as expected. Now when I resize the image to exceed the boundaries of the boarder container I receive the exception below. I believe the exception is thrown when the scroll bars are reactivating but i could be wrong. Has anyone se...

Help about ActionScript socket communication with .Net

I'm using ActionScript to connect to a C# socket server. In the client (ActionScript), I use the following to send data: var socket:Socket = new Socket("localhost", 8080); socket.writeUTF("hello"); socket.flush(); In the server (C# 4.0), I use this: server = new TcpListener(IPAddress.Any, 8080); server.Start(); TcpClient client = ser...

Get a static property from class in actionscript

I have this class package somePackage { public class SomeClass { public static const FOO: SomeClass = new SomeClass("0"); public static const BAR: SomeClass = new SomeClass("1"); } } I want to be able to get those static property given it's name. Example: public static function getProperty(propertyNam...

Set Selection in AS3

How do I get Set Selection to work in a text field. I have a text field inside a movieclip and a button with a click listener on it. When it clicks I want it to select all the text inside. This is what I have so far, I hope you can help. send.addEventListener(MouseEvent.CLICK, function() { panel.tweet.selectable = true; stage.f...

How do I get the position of a swf generated from an fla file that had a larger stage?

I have assets in external swfs which I load. I would like to know the exact size of the stage and the position of the asset in the fla that created it. If I try to ask the resulting MovieClip for it's size, it turns out it gives me the size when it is trimmed down to the tightest box around the non-transparent pixels. Looking at the c...

Not receiving an event fired from an .AS class

I have 2 files, 1 to dispatch the event and 1 to receive it (of course in addition to the event class itself). I've done this before with both dispatching and receiving files being mxml, but this time the dispatching file is an actionscript class, and it's not working this time. Is it different for actionscript classes? Here's a dumbed...

Handle VerifyError: Error #1014 when loading swfs using AS3

We are making a system that has a main swf for the application, and loads separate tools from separate swfs -- there will be versioning issues in the future since the separate swfs are coming from a cms (especially now since we're still developing, but also in the future when other developers might create an incompatible tool). I'm tryin...

Difference between Array and Array Collection in Flex

Dear friends, While making my choice b/n Array and Arraycollection I get confused why whould I use one and why not another. I have read the theory in langref but apart from that is there some general advantages/disadvantages of one over the another that you have learned from your experience. Thanks in advance. ...

Debugging Dictionary in eclipse flash builder plugin

I've noticed that when debugging using the eclipse flash builder plugin, one cannot drill in to the key set / values of a flash.utils.Dictionary in the Variables view. Even after selecting the "Show Logical Structure" button. Does anyone else run into this issue? Is there anyway I could see the see all of the keys / values when debugg...

Accessing a java method in a flex object

Assume I have the following java class public class Square { private Long id; private double sideLength; public void setSideLength(double sideLength) { this.sideLength = sideLength; } public double getSideLength() { return this.sideLength; } public double getArea() { return sid...

in flex 4 using action script how to check whether callResponder receive any result or not

I am trying to developed one flex 4 appliction using action script 3.0 and php. In which on button click i want to check whether the callRespoder receive any result or not from php function ,but it's not working as actally as i want.It's work only on when i click on the button twice. flex Application code: <?xml version="1.0" encoding...

Create objects(movieclips) in execution time on Flash (AS2 or AS3)

I have a movie clip who is only a square, i need to copy it on the flash stage a number of times (dinamic). How can i do this in execution time, i know AS2, so i prefer a solution in AS2. Thanks for you help! ...

URLStream and unicode

Hi, I am trying to send info using USLStream from flash client to JAVA server. Some of the info is Chinese so i have to use Unicode. How can i do that? now the Unicode info retrieved in the server is corrupted. ...

Flex access variable from one component into another

I have a main application which has an int variable declared. I want to access this variable in another component which is present in another package. How can I do this? Main.mxml (default package) <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" ...

actionscript text not appearing when embed font is set to true.

I added a custom class for a custom font in the flash project library. Now when i try to embed the font and use it from actionscript , the text is not getting visible. There is no error being thrown. Here is my code. var tabfont:Font = new tabHeaderFont(); var format:TextFormat = new TextFormat(); format.font = tabfont.fontName; ta...