flash

able to load external image onto bitmap for drawingboard

Here is my new code but it does not render external image, please help. //load libs import flash.net.*; import flash.geom.Matrix; import flash.display.*; import flash.events.*; import com.adobe.images.JPGEncoder; function myLoader() { var loader:Loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, sk...

Preventing progressive download of mp3?

I'm looking for some solutions for creating an mp3 player in flash; one that either uses streaming or some kind of obfuscation to prevent users from downloading the source mp3. If I used a server/solution that used the RMTP: protocol, would that prevent the download? Are there any possibilities for using Amazon S3 server for serving the ...

Flash: What is the SWX data format?

What is this SWX data format that I keep hearing about? The Wikipedia article says: "Data is stored as SWF bytecode, that is interpreted by Adobe Flash Player." Their official site says: "SWX is the native data format for the Flash Platform.", and there are many examples of sites which allow users to modify/update data. Does this mea...

Are SWX Data files modifiable by Client code?

Data is stored in SWX files, that is read natively by Flash Player as "objects". Can the client request the server to update/modify SWX files, much like a MySQL database? How? SWX-PHP? ...

Server Side PDF Printing with Flash?

Does anyone know of a server side technology that can print/save a web page to PDF including embedded Flash components? Essentially I would like simulate client side printing to PDF functionality but on the server to implement a "Download PDF" link but I don't believe HTML to PDF solutions support Flash. ...

external image on flash not loading into bitmap

I had an answer before and it was very helpful, thus I modified my code to make it work,however, I'm still in square-1 //load libs import flash.net.*; import flash.geom.Matrix; import flash.display.*; import flash.events.*; import com.adobe.images.JPGEncoder; function myLoader() { var loader:Loader = new Loader(); loader.conten...

Cloning object in Flex ? Canvas Degrafa ? help

Hello guys, I have a Canvas i would like to clone. This canvas hold a Degrafa Surface with several Geometry shapes. I tried the naive approach of return ObjectUtil.copy(graph_area) as Canvas; TypeError: Error #1034: Type Coercion failed: cannot convert Object@63b1b51 to com.degrafa.geometry.Geometry. TypeError: Error #1034: Type Coe...

Fading to a Vanishing Point in Flash, Programatically (of course)

I'm trying to do a vanishing Star Wars type thing like this, but programatically. Most of what they've done is easy to program (make a motion tween), but I wish to generate the text-based graphic programatically as well (from text using a dynamic text obj, for example). The question, as I see it (but I'm open to other ways of seeing i...

Flash: Dispatching/handling events

Hi, I have Flash application (main_container.swf) that loads another swf file (page1.swf). I want to dispatch an event when page1 has finished, to tell the main_container to close page1. Is this how you dispatch an event from page1 to the main_container? parent.dispatchEvent(new Event("pageFinish", true)); Then how do you catch the...

Flash: Where is this Event name hard-coded, please?

I get quite uncomfortable with code that I find on the Net like this myTM.addEventListener("allTransitionsInDone", doneTrans); (myTM is a TransitionManager instance.) What is the right way to get an event to fire when a non-motion transition (like a fade) is done? I usually use Event.EVENT_NAME but this one is not coming up. ...

Flex FileReference.download - is it possible to open associated application

Hi, When using FileReference.download() to retrieve a file from a server, I'd like to give the user the option to open the associated application directly rather than having to save it to disk first. Is this possible in Flex 3? And, if so, how is it done! Thanks, Mark ps. I've tried doing URLLoader.load(URLRequest) also, but no dice....

how to I pass a query string to flash in CS3?

I tried to pass the string to a flash movie just like in CS2 and it throws and error "access to undefined property imgSrc" I want a dynamic image to be loaded onto the movie. //vars var myrequest:URLRequest=new URLRequest (imgSrc); var myLoader:Loader = new Loader(); //load image into holder myLoader.load(myrequest); I'm passing img...

are there any ASP.NET with Voice Recording sample codes?

Hi there, I am wondering if there is any codes sample for ASP.NET with Voice recording. Ok, Basically, i want to create a web page that allow user to click a record button and record his voice thru his/her microphone and then convert it into mp3 file, then i want to click PLAY button to play what was recorded. I have searched google a...

What are the best Javascript/Flash frameworks to render graphs or charts from data?

Ideally I'd like to do as little preparation data work on the server as possible. The less I have to do to prep the data from the database to make a given chart, the happier I am and the more view I can make in the time. Some of the things I'd like to chart are, for example: The distribution of a series of response times The number of...

What kind of method to use for communications when planning multilayer flash server

Hello all im planning to build flash multilayer server ( in c++ or java ) im not coming from the flash area . But from what im reading flash does support sockets , BUT this is not my case i need to be able to support browser flash games so it leaves me with port 80 with http .but how can i implement good communication architecture wit...

Canvas, scrolling and special use case in Flex

Hello guys, I have a canvas of variable width and height with a maximum being 2K*2K This canvas current height and width vary depending on the user screen size. Usualy smaller than 2K*2K. If the user moves an element (free moving elements like child UIcontainer) inside the canvas at position greater than the current user available H a...

Recreating/resetting views with Flex ViewStack

I'm writing an Adobe AIR application using a ViewStack for the different application states. Is there a way to make sure that each view component is created/destroyed each time it is shown/hidden? For instance, if I have a TextInput in a view, I want it to reset to its initial state each time I change to that view, rather than having pr...

Extending Sprite Using Flex?

I have done all of my Flash applications up until now with the Flash IDE (although I rarely use the timelines, since I prefer to do everything in code) or in FlexBuilder as Flex applications. Are apps that just extend Sprite (used in the FlexBuilder IDE, for instance) a viable way of doing an application, or are they just for HelloWorlds...

How to flip flash.media.Video?

I'm playing with the flash.media.Video and the Camera with Actionscript, and it bugs me that the video cam is showing a flipped video. Let me describe with an example: When I turn to my right, the video will show me turning to my left. If I held up a peace finger sign on my right hand, it appear as if I am doing it with my left. So, ho...

How to make black and white flash.media.Video?

I'm playing around with the flash Video cam and I'm a real puppy-dog-level newbie with Actionscript, flash and the video stuff. How do I make the video showing in black and white? I would like to say make a "black and White" feature of the video. Do I have to mess with filters? ...