flash

Getting started with text input and dynamic text fields with ActionScript 2.0 or 3.0

I know this is a simple question, but I haven't worked much with ActionScript... I know how to create a text input field with Flash. I can create it on the stage and give it an instance name. What is the code to capture the value of a text input field and display that value in a dynamic text field? How does this process differ between ...

Flash client XMLSocket not connecting to server.

I have a Flash client that I want to connect to a server. Both are using localhost and port 50000 so there shouldn't be any cross-domain problems. I also set Access Network Only in the publishing settings. When I call the XMLSocket connect, the server seems to get a new connection. But, the XMLSocket.onConnect callback is not called ...

embedding as3 fonts into a swf without flex?

Is there a way to create embedded "pure as3" swf fonts using compc (without the flex framework integration)? If I embed a font like this in my as3: package fonts { import flash.display.Sprite; import flash.text.Font; public class Helvetica extends Sprite { [Embed(source='Helvetica.otf', fontName='Helvetica')] public static ...

ActionScript 3.0: How to execute a function when a user enters text?

I have an input text box with the instance name of input_txt and a dynamic text field named output_txt. I'm trying to do something with the dynamic field when the user has entered text into the input field. So far, this is what I have: input_txt.addEventListener(TextEvent.TEXT_INPUT, update); function update(event:TextEvent):void { ...

Flex Combobox Binding Issues

In my application i used combobox and adding value using dataprovider like id="teamComboBox" dataProvider="{xml_teamcoupon.lastResult.coupon.teamcoupon_name} my xml like this <pick15> <coupon> <teamcoupon_id>1</teamcoupon_id> <teamcoupon_name>teamcoupon1</teamcoupon_name> coupon></pick15> so comobobox shows team coupon name . Bu...

calling a javascript function from flash

Greetings, I am trying to make my flash button to execute a javascript function. I already did alot of searching and came to a conclusion to use ExternalInterface.call. I also make the allowScriptAccess" to "always" but still it doesn't work. Here is my flash call: import flash.external.*; ...................... function rpress() { ...

Flash AS3 load file xml

Hello, I'm just trying to load an xml file witch can be anywere in the hdd, this is what I have done to browse it, but later when I'm trying to load the file it would only look in the same path of the swf file here is the code package { import flash.display.Sprite; import flash.events.; import flash.net.; public class carg...

.NET : How to Create thumbnail from flash

Is there any way where i can create a thumbnail image from a flash movie file(flv /swf) [NOT FROM A VIDEO File ] in ASP.NET ? Any samples of implementation ? ...

Showing content over a flash 9 swf?

Hi, I have a swf that requires flash 9, and I'm trying to show content over it. To facilitate this, I've set wmode to transparent. The problem is, this ONLY works when the user has flash 10 installed, and I really don't want to require flash 10 to view the content on the site I'm working on. When I pull up a div over the flash content wi...

Changing the highlight color of text in Flash with ActionScript 2.

I've got several input text fields, and my design requirement is to have gold text on a black background that, when highlighted, is black text on a gold background; however, Flash's default selected text highlight color scheme is white text on a black background and there is no way to change this. Does anyone have any workarounds that a...

Checking how much sharedObject space there is available

Title pretty much says it all. I'm wondering if there's a way to check the current size-limit on the users local hard-drive for sharedObject. ...

Accessing a piece of data quickly from a very large sharedObject-data

I'm caching really big amount of data on the users hard-drive using sharedObject, this data can be like 0.5GB. But I don't want to place the whole sharedObject in memory, and the data also needs to be accessed very fast. Should I split the data up into multiple sharedObjects, or do you think it wouldn't be a problem loading the whole thi...

Displaying huge, scrollable images in Image?

I'm trying to show image files (jpg, png, gif) that can be larger than the available display area. I've embedded an Image inside a cCanvas (to get scrolling), but the large images are not completely displayed. Very large images (e.g. 2480 x 3507) have the top or the top and bottom of the image clipped withing the scrolling Image. What ...

Custom Images for Items in a Flex Item List

Hi I want to have custom images with in a Flex List, so I want to have a selected image, hover image and normal image. I have tried many different ways I cannot seems to get it working. The closest I have got is to use a custom image renders with a button within the itemrender, even then -selectedUpSkin doesnt work, you can see it is ...

How to databinding between custom component in AIR application ?

In my Main application I used label (like id=firstname) so we can use in main used firstname.text for databinding. But I have created canves custom component and load in main application using viewstack. In canves custom component how can I Bind label(id=firstname). I tried: var username:string = firstname.text but not show undefine f...

how to take a snap shot from webcam with a flash interface on website?

How to write/implement a program which takes images(any format png,jpg) from webcam and save it as images? I need to implement that in webapplication, with Flash spport? is there any tutorial for how to build an application like this. ...

Flash : Impossible to see the actionscript code after a search

Hello everyone I have a problem with a fla. I search for a portion of action script code and when i click on the line of the result, i see an empty code window ! Have you ever had a similar problem ? I use flash cs3 but i don't know the version used to develop this fla. Is it possible to discover the version used ? Thanks by advance ...

Recording audio in flash

Hello all, in flash I know there is the flash.media.Video class. This class can capture video recording, here's its documentation: The Video class displays live or recorded video in an application without embedding the video in your SWF file. This class creates a Video object in an Adobe Flash or Adobe Flex interface that ...

How can pause / play emdeb sound in AS3 flash

hi . i am having a sound ,length of 1:30min. I embedded it into my swf and sync it with the frame. What i need is to pause and play this sound by my action script. how to do this ? Any ideas? ...

Does localConnection in flash player randomly fail sometimes?

I have two flash movies communicating with each other using localConnection, passing an object from swfA to swfB. This seems to work fine, but will occasional fail. The only information we have is that the status event is fired with a level of error, there is no other information. Once a connection has failed it will continue to do so...