flash

save movie clip as jpg using ASP/MS Access and display it back

Hi guys, I want to save the movie clip as a jpg. got few example which uses the Adobe JPEG Encoder class which converts the image to byteArray, and then pass the byteArray using PHP to display the image. But i could not find a example where ASP is used, also i want to store that image into a MS Access database. And then display back th...

How to save a toggle state that is created using a MovieClip in Flash. How to save state in variable and pass to PHP, and save to XML?

I have MovieClips on my Flash Stage that when clicked on--they toggle ON/OFF. My goal is that when a user clicks either ON/OFF--then leaves the flash website--another user can visit the site--and see that state of that MovieClip was either left ON/OFF. I would need a way that when a user toggles ON/OFF--that state is saved in a variabl...

Creating .as files with Adobe AIR

Is it possible to write text using Adobe AIR so that I can save it as an actionscript class file? I want to generate my own classes using air, I just have not found anything that explains how I can save say a text file as a .as file. ...

How does YouTube embedding work without a classid in the object tag?

A typical code fragment obtained from the YouTube embed feature looks like this: <object width="660" height="405"> <param name="movie" value="http://www.youtube.com/v/NWHfY_lvKIQ?fs=1&amp;amp;hl=en_GB&amp;amp;border=1"&gt;&lt;/param&gt; <param name="allowFullScreen" value="true"></param> <param name="allowscriptaccess" value="alwa...

Crossdomain.xml and iPad

As far as I understand, the crossdomain.xml file technique for crossdomain XHR is based on Flash. This settings on the server allows Javascript code from the client (using flash) to bypass the Same Origin Policy. I was wondering if that technique doesn't work any more in iPad devices (since they don't support Flash). Does this also impl...

Flash backup image

Hi guys, so I have a pretty big flash file on my homepage, which raises a few issues about what to do if the user doesn't have flash player installed on his/her PC. I would like to make sure that if the user has a old version of flash player, or doesn't have it at all, a backup image will display in place of the flash, how can I accompl...

ActionScript begginer, understanding for-each

Why this: for each (var dieListener:Object in dieListeners) { var f:Function = (dieListener as Function); f(); } ..doesn't work, if this: for (var i:int=0; i<dieListeners.length; i++) { var f:Function = (dieListeners.getItemAt(...

.NET webservices within AS3

I am aware that there is already some threads within the Q&A about this although nothing specific to my needs. I am trying to pass a SOAP header username and password yet can't find a way to achieve this. I have imported and am using the Flex SDK within Flash which supports WS but cant seem to implement the headers correctly. I am now co...

Flash Photo Album Creator

It's been a long time since I did anything in flash, and today, I just received an assignment to create a photo album creator (aka PAC) with a PHP/Mysql backend. It would be great if anyone can recommend off the shelf modules I can incorporate into my project. Any additional advice would be helpful. Here are the requirements for the ...

Action Script 3 - Unique URLs for images in gallery

Im currently working on a website and have a flash gallery up and running but would like to be able to link clients to a specific photo in a specific gallery. How would I go about coding this, because i know that it is possible but i cant figure out how. I am using Flash CS3 and AS3. ...

How can I force explorer to reload Flex page( swf embedded in HTML)?

Hi guys, I developed a flex website, the web explorer always caches swf file which embedded in HTML. Sometimes I make changes to the flex file, clients computer still view the previous version which stored in cache. How can I force client's web explorer to reload/refresh the swf file? Thanks ...

How to check collision in a drawn curve, instead of the Sprite's bound box

There are two Sprite's hit tests, one check the object (and have no precision on the curves) and the other check a specified (x, y) point. But, having curves drawn using Graphics.curveTo(), how do I check if 2 drawn curves are colliding? I'm not sure if this is an actionscript or a math problem... I want to check all (x,y) of a curve to...

Tools for HTML 5

Everyone keeps saying flash is dead, silverlight is dead, and the future is HTML 5. Most technical people I've talked to seem feel that this is a generally accepted fact. Just a matter of when the spec will be finalized, and when each major browser will finally incorporate all the individual features. But it seems to me there's a big ele...

Display Main() class being called? How?

I'm new to Flash/AS3 and I have been trying to display objects from class files and methods. Now I was looking at the source of this project here http://www.nocircleno.com/graffiti/examples/2.x/simple_text_demo.html To learn how to do this from AS3, main question I have how is the Main() class being called there? There is no actionscr...

Flash Total Memory Usage and TaskManager Memory Usage are diffrent?

Hi I wrote an application in flash AS3, and when I trace from flash the total memory usage of the total application is only about 9MB, But at the same time Task Manager Shows the memory usage as 110MB. Around 100MB difference. Flash Trace Method System.totalMemory difference of the Trace from the Beginning of the application to end of ...

problems with KeyboardEvent and special characters requiring shift key

Hi it seems Flex trapKeys(e:KeyboardEvent) has problems when user is pressing some special marks ; / ? = + ( ) & * with non-us (european) keyboards. Pressing these require shift key. I am using String.fromCharCode Any ideas why e.g. pressing semicolor combination faulty outputs "<" var key:String=String.fromCharCode(e.charCod...

what encoding unescape() function uses?

what encoding unescape() function uses ? I have problem that URL param has utf8 foreign chars, that flash fails to read. ...

Flash connectivity with database

How can I establish connection of a Flash site with a database(i.e. MYSQLetc)? ...

Get character with most occurences in a string

Hi there! I've been trying to wrap my head around this for some time now, but haven't been able to come up with an elegant solution. The problem: I have a string with different characters ("ABDDEEDDC") and I need to know which character occurs the most. Any help would be greatly appreciated. Cheers, Niko ...

What is the most effective way of combining multiple flash files into a single movie?

I have 8 flash movies, each with 3 scenes within each one. What is the most effective way (by which I mean, takes the least amount of time to implement and produces a file without each and every object used in the library) to combine these 24 scenes into a single flash file so that they play consecutively and can be exported as a singl...