actionscript

Proxy script in PHP to circumvent missing crossdomain.xml - missing minor tweaks

Hello, 1st the background - so that you see, that I'm not trying anything malicious: I have a flash app in the russian social network vkontakte.ru which displays user avatars. Until now my .swf file has been hosted at their domain, so that fetching and scaling avatars worked well. Now I'd like to switch my app to an iframe-type, so th...

Datagrid, getting and setting individual cell values

Hi, I have Flex 4 DataGrid, what I would like to do is when an cell has been edited, I would then like to walk through the values of that column and preform math on the values, eg I want to total up certain values. 1) How do I reference individual values of a specific column so that I may set them. 2) How do I then set those values or ...

AS2 - Controlling a tween from outside a function

Hi everyone. I'm working in Actionscript 2, and I am trying to do something that seems to be basic. Basically, i've defined a Tween object within a function, and i want to control that tween from another function. What's the best way of doing this? This is the basic way i have the code set up currently: // Define the function with m...

Persistent MP3 player using SharedObject

I'm trying to create a persistent MP3 player using SharedObject. Initially I tried using frames and while it worked, frames suck so I continued looking into it. I came to find out about Flash's SharedObject. It seems easy enough but I can't nail down the logic correctly. I've attached a sample .fla for anyone interested to look at. I ne...

how to export array (array collection) data into an html table or text file

Hey all, I have an array collection of strings and integers (which I have displayed in a data grid) and I am wondering if it is possible to export the array collection into an html table? or even a text file for the user to download I found some pages that had an export to .xls files but I want to stray away from that for now. Thanks i...

Can we use Flash Player to play video stream from other media server(rather than FMS)

I am curious, is it possible to play video stream from non-adobe(or homebrew server), in the newest flash player(10). It looks like the VideoPlayer only plays the stream from FMS? Is it the business model of Adobe? ...

Is there limit on concurrent netstreams for FMS?

Can I play two flv from FMS at the same time with actionscript? Anyone tried this? ...

Is possible that make and save a .swf file?

I want to create a clip dynamically (for example with createEmptyMovieClip) and after assign object and motion to it, save or export it as a .swf file. Is it possible? ...

Custom Contextmenu seems to only work when video isn't loaded [Custom Spark Videoplayer]

I'm making a custom spark videoplayer including a custom contextmenu: The problem is :if video fails to load or i just don't input any source, my Custom menu works perfectly. But i rather show some video with my player but with a source/input my contextmenu just doesn't react or work! making my contextmenu: private function initContex...

Forcing screen updates for a ProgressBar attached to an URLLoader or slowing it down

I have a ProgressBar in MANUAL mode responding an URLLoader's progress events that seems to get drawn far less frequently than I would like. If I debug the app, I can see many events firing from the URLLoader yet it seems that the ProgressBar is being re-drawn at some random and slow rate. Now if this was my own code (URLLoader is a ...

Parsing a large CSV file, dealing with commas and quotes

I need to load in a large CSV file (>1MB) and parse it. Generally this is quite easy to do by splitting first on linebreaks and then commas. The problem is though that some entries contain Strings that include their own commas. When this spreadsheet is converted to CSV, the lines containing commas are wrapped in quotes. I've written a ...

reading contents of remote html pages with flash actionScript

Hi, I need help writing actionScript code. I'm not an actionScript developer and have been trying to get this to work for hours. The requirement is a script that receives a parameter via javascript. The parameter is a url for a remote html web page. The script needs to load the contents of that html page into a string variable and then c...

copy/paste text in Flash with formatting

Hi - in ActionScript-2 is there any way the html text can be copied and pasted without formatting loss. Thanks, Yogesh ...

How do I return a text server-response to Uploadify on completed upload?

This is a bit of an premature post, because I'm still grokking the code. But I've looked for a day, and I suspect it's something simple I'm missing about the Actionscript environment. Goal: I have Uploadify uploading to the Rails server. When the file gets uploaded to the server, it gets renamed. I want to respond with the new filepa...

Do uints change in memory size?

Do uints take different amounts of memory depending on their value? Or does each uint take the same amount of memory regardless of it's value? ...

Problem loading Bytearray into XML object. (Flex 4)

I get Index out of bounds when trying to readObject on my Byte array into the XML object. private var fr:FileReference; private var data:ByteArray = new ByteArray(); [Bindable] private var dataXML:XML = new XML(); ... public function onLoadComplete(e:Event):void { trace("Load Complete"); data = fr.data...

How To Make Flash Button of PNG Visible Area?

Hello. I'm trying to know if there's a way in ActionScript 3 to load a PNG image and make some sort of button or sensible area applicable only for the visible area of that PNG?? Maybe there's a simple way to define a polygonal area on execution time, I mean, dynamically and make it sensible to mouse events?? Thanks! ...

Air 2.0 native process run multiple applications

After I could execute more than one VLC media player at the same time, am I able to close specific process/VLC instead of all at once? If possible, please guide me. ...

AS3 removing MovieClips in an array

Anybody any ideas on how to remove children from stage using AS3 if I store the reference to the objects in an array and they exist in different locations i.e they are not all children of the same parent? SomeArray.push(this); ...

What is the best standard style for a toString implementation?

We have a lot of objects for which we like to implement a simple toString to output attributes of the object. Some of these attributes may be complex objects themselves. Is there any standard, or simply just a best practice for a style? I'm thinking something like: [SimpleClassName] { prop1:value, prop2:value } In which case a nest...