flash

Why loaderInfo.bytesTotal is Zero

Why loaderInfo.bytesTotal is Zero when run on server but run Test Movie it isn't zero? My action(Preload) stop(); addEventListener(Event.ENTER_FRAME,loaderF); function loaderF(e:Event):void{ var toLoad:Number = loaderInfo.bytesTotal; var loaded:Number = loaderInfo.bytesLoaded; var total:Number = loaded/toLoad; if(lo...

Packaging External File Dependencies in Flash

I just started learning ActionScript, so maybe this is obvious. I'm loading in .txt files to generate content for my Flash application. However, I can't seem to find a way to package the .txt files with the .swf when I publish my application. I'd like to be able to run the .swf from anywhere without it depending on the files. Is ther...

Is there an opensource web based media player which can play all video formats,podcasts ,ppt slideshow and word doc presentation ?

Is there any open source, Flash- or Javascript-based media player which can play all video formats (like youtube) and pdf slide presentation (like scribd)? Is there any media player that can do both? Thanks in advance. ...

How to build an OpenFire Client based on JavaScript and Flash

Since I played around with OpenFire Server, I started to make up my mind to build an IM Client connecting to this Server. So, I quickly do some research on this by looking for any library based on JavaScript with Flash. Unfortunately, I cannot find any. Does anybody know where to get source? Thanks! ...

How can I do 3D transformation in WPF?

In flash10 I can easly rotate an image around its center in 3D space. The flash10 example I have is at http://jsc.sourceforge.net/examples/web/MatrixStuffExample/Application.htm I want to port this example to WPF. Is there an example how to do such 3D transformation in WPF within C# without XAML? In silverlight 3 you'd be using Matr...

Safari Flash WMODE not working - anything wrong with this embed?

I've got a problem with this embed in Safari. It works just fine on all other browsers, Internet Explorer 6 included. The problem is that the embed seems to jump to the very top layer, ignoring all z-index or positioning statements. This is important, because several HTML design features are overlayed on the Flash. This embed was writte...

Flash Player 10,0,32,18 upgrade breaks my LocalConnections. Any ideas?

For some reason everyone who upgrades their Flash Player to the latest version (10,0,32,18) immediately start having problems with my application. According to my logging, LocalConnection.connect() is failing. The only documented reason for this is that another SWF running on the machine is using that name. However, I know nothing els...

How to stream a shoutcast radio broadcast in Flash (Shoutcast Flash Player)

I've been looking for a solution to this for years, but nothing is conclusively documented. There are many Shoutcast Flash players out there (e.g. radio.de) so I know it's possible. However, most of my research leads to this: s = new Sound(); s.loadSound ("url.of.shoutcaststream:8003",true); Which works for me in FireFox but not in IE...

Flash AS3 - Button on stage will not hide if I change the label - bug or missing something??

Hi, OK - weird problem which happens each time - and so I'm thinking I must just be missing something very obvious. If in Flash CS3 I drag a Button component to the stage, and in the Document Class I hide that button with visible = false; - it works fine. However, if I change the label of that Button from it's default 'Label' to anythin...

Uploaded flash movie expanding to entire page... want to just show correctly proportioned stage.

I'm sure this is very simple, but it's not readily apparent how to do it. I created a flash file. Uploaded the file to my server. I'm going to it at blahblah.com/demo.swf , not included in any html or anything. When I go to the file, the browser loads it in "fullscreen" mode, taking up the entire window size. The size changes as the wi...

Prevent webpage from scrolling when scrolling inside a Flash object

Hello, I'm sure this must be a common question, but I haven't found an answer elsewhere. I've got a Flash object embedded in a long webpage. I listen for the MOUSE_WHEEL event in Flash, and scroll my Flash content accordingly. However, when I scroll over the Flash object, the webpage also scrolls. Is there any way to prevent this beha...

Get info after fileReference upload?

Normally when I send information to PHP scripts via URLLoader, I have the PHP return various success codes so I can have my Flash files respond according to whatever success code the PHP returns (0 is a failure, 1 a success, 2 is some other error code, etc.). Now I'm trying to submit a form with a bunch of data in it (name, email, birth...

How do I access another Movieclip from a Movieclip using AS3?

I'm creating a game in Flash CS4 and using Actionscrip 3.0 I'm adding all my graphics via my AS3 code. I added my hero (A movie clip instance) in the main game class. In my enemy class (the movieclip) I want to make a generic AI which will check to see how close the hero is to the enemy. I tried various ways but I'm not sure how to p...

How does YouTube's flash player retrieve its media?

I'm trying to build a flash widget which will grab videos stored on my server. How does one do this to allow for maximum scalability? I want to emulate what YouTube does. Does it make a SOAP request? What kind of server is it talking to? An application server? A server that only serves videos? ...

How to get thumbnail image of video?

file format is wmv, asx,flv, mov, rmv, rmvb, swf, mpg, mpeg. How to get thumbnail image while video uploading , if: not use ffmpeg. ...

How can I abstract away the .swf named from an embeddable Flash tag?

Youtubes flash player has embed links like http://www.youtube.com/v/5oiQdTfMAmo&hl=en&fs=1& How can I do the same thing, where there is no mention of .swf and the file that the player points to is encoded in the URI. ...

Catch F11 pressed when the flash app is not in focus

hi i have a website which has a video playing. what i want is when my browser going into a full screen mode i want to only show my video. when i press F11 by click on the address bar / click on the browser window and press F11 my browser goes into the full screenmode.But i dont understand that F11 is played. Is there a event from my ...

Apply a filter to a specific area of a DisplayObject?

Is there any way of applying a ColorMatrixFilter to one rectangular area of a DisplayObject, leaving the rest untouched? The DO is a container, and the user interacts with objects in it, so taking snapshots to change its appearance isn't an option. ...

How to delete buttons from a XML driven flash template from template monster

I am trying to delete some buttons from a XML drive flash template from template monster. After I delete the button from the XML file I can still see the button in flash and it has the title "Undefined". ...

Hidden DIV with flash won't show with jQuery

I have a hidden div which is faded in using jquery when the user clicks a button. There is flash movie that is loaded into the div and will show and play in all major browsers except IE. If the div is not hidden the flash will load and play fine. Can anyone explain to me the problem? ...