actionscript-3

Need help with changing text with combobox state change

I have one text box and one combobox. I want it such that when someone changes the combobox value, the text should change in the text field. priceText is the name of text box My code is below; it's not working: var comboFar:ComboBox = new ComboBox(); addChild(comboFar); var items2:Array = [ {label:"Arizona", data:"87.97"}, {label:"C...

How do I get my Flash CS4 buttons to direct the user to another URL?

My apologies if this has been fully addressed before, but I've read through several other threads and still can't seem to get my file to work. My actionscript code is at the bottom of this message. I created it using instructions from the Adobe website: http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63...

Web service actionscript error

Hello, I am new to Flex and needed some help setting up Web service client. I have a web service of method: public String printEchoStr(String str); I am facing problem while creating action script to call this service. I am getting error: 1067: Implicit coercion of a value of type String to an unrelated type generated.webservices...

AS3 xml loop shows many times

I have this simple code to play with xml var testXML:XML = <family> <father name1="tom" age="5" ></father> <mother name1="tomylee" age="55" ></mother> <sister name1="sister1" age="35" ></sister> </family>; for each(var element:XML in testXML.element...

How to dynamically change comboboxes value based on other combobox in AS3 flash

I have one xml file like below <tree> <branch1><node1/><node2/><node3/><branch1> <brach2><node1/><node2/><node3/><branch1> <branch3><node1/><node2/><node3/><branch1> <branch4><node1/><node2/><node3/><branch1> </tree> I have one combobox which is populated with branch1 branch2 branch3 Now i want that when branch 1 is selected then ...

Is it possible to get specific node's children in XML AS3 Flash

I have xml files with many children and then further more children. like <level1> <child id=1 > <nodes....> </child1> <child id=2 > <nodes....> </child1> <child id=3 > <nodes....> </child1> <child id=4 > <nodes....> </child1> </level1> Is it possible to get the children nodes of child with id = 1 in AS3 ...

Flex uncontinuous linechart?

Is there a way to break the line in a line-chart, if the gap between 2 values on the x axis is bigger then a given value? For example there are 20 values but the first 13 are close to each other on the x axis and should be connected with a line, but the other 7 are a bit far from these and should be connected with another line. The type ...

what is different betwen .ipa and .app format in using iphone ?

i tried Adobe flash professional cs5 based to develop iphone application in windows os but when i publish it's out will be .ipa format , so is it working properly in iphone ? so could u know about ipa and app please explain me . And also is it possible to develop iphone application in Adobe flash professional cs5 and how can we get .app ...

How to mask image with another image in ActionScript 3.0

Hi Gurus, my issue is this, my users import an image with FileReference and I need to mask it and then send it to server. My problem is this: I'm be able do keep the filereference event and transfer the image data into my canvas. I'm be able to send to server the result of masking. But I'm NOT be able to mask the image that my users...

Seek Bar in Flash

Hello, I have created a flash movie in AS3, I wanted to have a seek bar [or a Back and Forward button] to move my movie forward/backward. Any ideas on how to get this done? Help appreciated! Thanks ...

is Adobe flash professional cs5 mac projector (.app) and iphone application (.app) same or not ?

i tried to developed iphone application using adobe flash professional cs5 in windows so i bought iphone digital certification and etc , when i move to app store they asked app format application so i tried to publish as app format using adobe flash cs5 . But i don’t know is it same? but it also publish ipa format .( App store support ip...

AS3 / Java - Socket Connection from live Flash to local java

Hey guys, I'm trying to get a live flash that lives on a webserver to talk to a local java server, that will live on the clients PC. I'm trying to achieve this with a socket connection. (port 6000) Now, at first flash was able to connect, but it just sends <policy-file-request/>. After this nothing happens. Now, some people at Kirupa...

Multi layer alpha image slideshow. AS3 right tool for the job?

Hi All, I need to build a portfolio for a photographer and am trying to figure out the best approach. I could use some suggestions here! REQS: 3 layers of images (groups) with a parallaxe like effect, meaning: trough gaps in top layer you see the second and through that the third layer. subsequent layers appear incrementally small...

How to do a comet long pulling with ActionScript3?

I want to load data from my web server, I want it be the AJAX/Comet way, my web-server long holds the request, response it until something happened. Thus, I wrote some as3 code like this: private function load(): void { var request:URLRequest = new URLRequest(url); var variables:URLVariables = new URLVariables(); ...

How can I make superscripts in Flex RichTextEditor?

Component: mx.controls.RichTextEditor Platform: Flex 4 Player: Flash 10 Scenarios: A user selects text a clicks a button that I can easily add to the RichTextEditor. The selected text becomes superscripted (or subscripted). A user clicks the button and future text is superscripted until the button is clicked again. The most funda...

Is it possible to show the download progress of a flash file?

I know how to setup a preloader and I have that working. But when I debug the flash application and simulate a download, it has a blank background until a few seconds have passed. I know it is "downloading" the swf file and I'm wondering if I can show a progress bar for that, or do I need to have the swf file as small as possible and pr...

Checkbox Images in List

It seems like it should be a simple concept. I need a vertical list. This list has an image with a checkbox and pathname of that image underneath it. The user should be able to check the checkboxes of the images they want to appear in their "shopping cart". The images, checkbox label, and list are populated by an XmlList. How can I do th...

Memory usage in Flash / Flex / AS3

I'm having some trouble with memory management in a flash app. Memory usage grows quite a bit, and I've tracked it down to the way I load assets. I embed several raster images in a class Embedded, like this [Embed(source="/home/gabriel/text_hard.jpg")] public static var ASSET_text_hard_DOT_jpg : Class; I then instance the assets this...

ActionScript Negating a Number

i'd like to negate a number and would like to know if there's a built in method that will convert a negative number to a positive OR a positive into a negative, depending on the number. i know about Math.abs(), but that only seems to convert negative into positive. is there a method that will do both? ...

Looking for ideas on automatically arranging a set of objects (furniture) in a virtual room in AS3

First of all, I don't want to visually arrange 3D models dragging them with the mouse, all I want is: Given a room of certain dimensions (L,W,H) and given a set of elements like beds, chairs, etc (with L,W,H dimensions, of course) I want to automatically arrange those elements to take advantage of the space as much as I can. So I want ...