flash

Loading an external SWF App in a new Air window with resize functionality

Hello everyone, i'm trying to load a local SWF Application in my Air Application via the SWFLoader class. The SWFLoader class is displayed in a new Window. Therefore, i'm trying to resize the window automatically, when the Flash Application is resizing. But here's the problem. The SWFLoader does not get any events when the loader App ha...

Papervision3D: Making Object Appear Still When Moving Camera

I'd like to keep an object appear to remain in the same place while moving the camera. I'm using this script http://pv3d.org/2008/11/19/dragging-mouse-for-camera-orbit/ to orbit an object using a mouse drag. But I have an object in the scene that I would like to keep still. How to I do this? Thanks, Josh ...

Stopping/Removing an embedded player.

Hi, I am working on a webpage where i have to include an embedded video.The video is hosted on some other domain.I am able to embed the video and autoplay once the web page is loaded.However i have a requirement where i have to remove the div displaying the video once it is played , and in place of the video i have to now display some t...

receive and pass values with XML, AS3

My example imports XML and has an object rotating on stage. The rotating object is called enemy corresponds to ENEMY in the XML. How do I set the rotation variable to receive values from XML? REASON It seems more difficult to set up variables using external data. I want to understand it better. rotation.fla //LOAD XML var myXML:XML;...

FileReference: Loading a Windows-locked file

I'm using Flex in Flash Player 10 on Windows, using FileReference to load a file into memory, as below. My issue is that when a file is locked by Windows, my FileReference is not giving me any feedback that the file is inaccessible--it simply never dispatches any events after my calling load(). Does anyone have insight into how to tell...

Papervision3D: Line3D updating onEnterFrame

I'm updating the start and end points of a Line3D object in Papervision3D. The end result works fine but there seems to be a lag from when I move the objects and for the line to redraw in the right position. I'm using the following code: connectingLine.v0.x = startDisObj.sceneX; connectingLine.v0.y = startDisObj.sceneY; connectingLine.v...

Any Red5 Working Example Project for 0.9 release

I'm trying to find 1, just 1, working sample project for Red5 that's updated to work against the latest 0.9 release without missing jars and other nonsense. Right now, it's at v0.9 and the libs are different from other versions. They have 5 pathetic examples on their website, but all were built with the older versions. For these 5 old ...

ActionScript 2.0 - Passing numeric data in via Flashvars results in losing zeros

Hey guys, I'm modifying someone's old AS 2 Flash application and I need to pass numeric data in as a string OR have a properly formatted USD currency string in the end. Currently, I might pass something like Data1=$34,000.00&Data2=$12,344.18&etc... in via FlashVars. Assuming I show Data1 in a dynamic input field, I'd get something...

How to simulate a fake MouseOver on a Flash applet in a webpage?

I listen to internet radio at http://player.play.it/player/player.htm and it works pretty well, except for one minor issue. The Flash applet that runs the radio player has a timer on it, where if you don't move the mouse over the player every once in a while, it decides you're idle and shuts off the stream, even if you're not actually i...

Adobe AIR: how to play and download an audio file synchronously?

in adobe air , I can play a mp3 file from the web , and download the file to a custom file system before or after too . but in this way I have to download the file twice factly. So, how to save the file to a custom location when the sound is playing , and using the same download file stream for not waste any bits? ...

How to get a screen shot using flash?

I need a function that a user can just click a flash app button in the browser and then submit his screen shot to a server side script.But it seems difficult to find a solution.Any suggestion will be appreciated.Thanks. ...

IShockwaveFlashEvents: how to handle getURL("javascript: ?

Hi, I wrote a simple WinAPI application in C++ which embeds the Abode Flash ActiveX control. It works fine. Next task that i have to do it is handle getURL("javascript:somefoo(someparam)", "")in C++ I don't understand the right way to do this. I create connection point to listen to _IShockwaveFlashEvents and my STDMETHODIMP Invoke(...)...

PNG file validation

Hi all, I have a Flash web app which displays user submitted PNG files. Files are uploaded to the server via some API prior to being displayed. I'd like to make sure no "bad" files are served to Flash, where "bad" is entirely unspecific. Is there a way to validate PNG files against the PNG specs (this would catch corrupted files)? Or an...

Can't load flash code into page with jquery ajax

I am trying to load some flash banner code (from database) into a webpage using jquery ajax. It is all working when adding the flash code in code-behind but when I am trying to load it with ajax some flash banners make the complete website disappear and only shows the banner. I am using jQuery Ajax and the response is in html like: <...

Error Referencing Externally loaded SWF

Hi, I'm loading an swf say "test.swf" which gets loaded in imageLoader , so I can get its content by : imageLoader.content So if I wanted one of the movieClips inside it I would do this : imageLoader.content.testMovie.transform.colorTransform = someTransformation; But when I do this, since the movie is not loaded the file is not ...

Great projects, works, people in intersection of programming and art/music?

In a recent question I was introduced to the work of André Michelle, which blew me away. What other great people or works do you know in the fields of art and music? As someone with a love for math/programming and art/music I'd love to know more about people using sophisticated (or not so sophisticated) techniques to produce creative thi...

MovieClip references going awry in onLoadComplete callback

I'm loading a bunch of images into my AS2 flash movie, and I've encountered some strangeness. Roughly, my code looks like this: function doTheLoading() { m_imageClips = []; for (var i:Number = 0; i < 3; i++) { var imageUrl:String = "http://server/" + i + ".jpg"; var mc :MovieClip = m_mc.createEmptyMovieCl...

Flash RTMP streaming with no filename - How to connect?

Hello good people of SO. I am building a flash media player for an live audio stream. The server is set up to stream from a url that looks like so: rtmp://ourwowzaserver.net:80/ourfiledirectory the instructions i have found say to first set the directory: nc.connect("rtmp://ourwowzaserver.net:80/ourfiledirectory"); and then late...

Best way to obtain geocode for location, in flash

Ok quite frustrated by Twitter search api for location based searches. In the advanced search page you can specify 'near' a specific location and this 'near' parameter shows up clearly in the query string. However, Twitter does not support the use of 'near' in the public search api. Apparently you need to supply a geocode value. Can ...

How to make people to see each other on the website through web camera?

I want to run a website where people could see each other through web camera. I can't find anything in google, so, can you give me any suggestions or link to tutorial? Thanks ...