flash

FLVPLAYBACK Fullscreen problem with IE/Vista

I'm having a problem making my FlvPlayback go full screen. in FF it works great but in IE (8) it will only work once! the next time, it will flicker and return to normal state. Any ideas? ...

flash cs4 combobox component totally ignore styles and events

Hi, I have simple combobox component in flash cs4, I try to add and event listener like this mycombo.addEventListener(Event.ADDED_TO_STAGE, added); function added(e:Event):void { trace("HI"); } never get called even if I have the component in the stage manually or via AS, but if I add a listener to MouseOver it works, why the ADDED_T...

Problem with Flash and JavaScript Communication

I have an AS2 Flash SWF that is calling another AS2 Flash File using loadMovieNum("flash.swf",2) and a JavaScript file that calls a function on page using a timer. This is what I get in Firefox with Flash 10 (IE8 gives no error message): uncaught exception: Error calling method on NPObject! [plugin exception: Error in Actionscrip...

convert an integer to a string as3

How do I convert an integer to a string value? This must be easy. "Ya guys in SO are da best at explaining." I'm still working on these dumb counters. NEED TO JOIN THIS TOGETHER //My counter project "sends to dynamic text field" var timer:Timer = new Timer(10); var count:int = 0; //start at -1 if you want the first decimal to be 0 ...

How to sequence events in Actionscript 3

I've been working with AS3 a lot over the last weeks and I've run into a situation that google hasn't been able to help with. The crux of the problem is that before I run a function I need to know that certain conditions have been met, for example loading my config.xml and putting it into a class variable. Where I run into trouble is tha...

replacing backslashes with forward slashes in actionscript

var aText:String = "C:\\folder\\folder\\file"; var filterVal:String = aText.toLowerCase().replace( /\//g, '/'); trace( aText ); trace( filterVal ); results as: C:\folder\folder\file c:\folder\folder\file this code was based on this site and nascent regex skills. What am I doing wrong? Thank you. ...

How to detect unplayable video channel?

I'm using NetConnection, NetStream and a flash.media.Video control to play back video files stored on the local machine. Works great for FLVs, and for H.264-encoded MP4s, but for non-H.264 MP4s, I often get audio, but no video. I realize this is to be expected. What I'm wondering is whether there's a way to reliably detect that the vi...

Inaccurate progress bar when uploading large files using ASP.NET and Uploadify?

I've got an ASP.NET web application (utilizing WebForms) and am using Uploadify to handle uploading large files. This is done by posting the file to an HttpHandler. Example of code (simplified for demonstration purposes): $(".uploadify").uploadify({ 'uploader': '/uploadify/uploadify.swf', 'script': 'SaveUploadedFile.ashx', ...

Integer values updated by XML

How do I remake my swf for xml commands? "Remake" sounds silly, but I just want to have integer values updated by an XML file. This may be beyond my understanding. I'd like an example, a mash-up, or method I can work from. myThoughts - It needs to read XML "parse it etc" - variables receive e:data instead "my struggle with passing value...

How far is HTML (and SVG and CSS and WebGL and JavaScript) to reproducing what Flash/Flex can do today?

As a Flash and Flex developer it is a little disheartening to see the strides in HTML5. Don't get me wrong I have nothing against progress, for me it is just that currently it is easier to write an app in Flash vs AJAX. I love writing in Flash and Flex and think ActionScript is a really great language. But, it appears the strides made in...

Dynamic Sprites as3

I just cant figure out how to do this. Im not very familiar with as3 and it just keeps trowing errors at my face. One thing that bugs me most is not having a clue on what or when I need to import stuff. Im using flash builder and Im simply trying to make it grab grab an image from a xml file and place it on screen with the possibility t...

Flex/Flash: capture 'trace' in code?

In Flash/Flex, is it possible to capture the result of 'trace' in code? So, for example, if one part of the code calls trace("foo"), I'd like to automatically capture the string "foo" and pass it to some other function. Edit: I'm not interested in trying to use trace instead of a proper logging framework… I want to write a plugin for F...

string error "nothing in debug" actionscript 3

How do I fix this string error? This numberic counter works without the ADDITION STRING ARGUMENT. It's function is to add zero placeholders to the counter. It's close, but I need a second opinion. COUNTER "all zeros, no count" var timer:Timer = new Timer(10); var count:int = 0; //start at -1 if you want the first decimal to be 0 va...

Hide part of a Flash animation in HTML

Hi all, I have an .swf file (a flash animation) that is too big and unfortunately we do not have the source code (the .fla file) anymore. I need to display it in a div, and want to hide part of it. Any idea? Thank you. ...

Flash redirect problem when not loaded from the same vhost

We've got a flash file that takes a URL parameter for redirecting on click. When it's hosted from the primary domain, and the SWF is included in HTML from the primary domain, the redirect works properly. However, when it's hosted on the secondary domain, and the SWF is included in HTML from the primary domain, the redirect doesn't work...

Does SIFR work well cross-browser?

I have seen a few sites now that use SIFR, and I can see the benefits. I have (quickly) looked into other plugins similar, but SIFR seems to be quite good. So it good in terms of cross-browser compatibility? ...

AS3: How do I check and reset variable on the main timeline from inside a movieclip

I'm converting an old AS2 file into AS3 (and trying to learn AS3 at the same time). A movie clip contains a number of different animated sequences and buttons within the application trigger these different sequences. The buttons are functional only when an animation has completed playing. In AS2, I achieved this with a var called _root....

Load mc's on button presses and check if mc's are running

I'd like to load and onload mc's on the stage when certain buttons are pressed. The catch is that whilst one of the mc's is playing I dont want any of the buttons to work -- in other words the user has to wait for the short anim to stop playing before they press another button to see another anim (or even the same anim again). I'm OK w...

open source streaming video technology that can copy Gakai and Onlive ?

i think Onlive and Gakai are the coolest things ever. i am even more obsessed about Gakai, which doesn't even require a plugin of any sort. It runs in a flash applet ! naturally i got curious at the video streaming technology behind Gakai.... is this only proprietary right now ? or are there open source solutions out there that can del...

actionscript events - is the event buffered and ordered?

I found an interesting questions regarding the events in action script: is the event buffered and ordered? Ie) In a swfloader example, I setup a timer(1 sec) to run a function, in the function I setup a listener to event INIT of the loaded swf. It depends on the network condition that whether the timer handler or the INIT event will be ...