flash

What is the proper way to do an http Post from Flash to an Asp.Net MVC Application?

Hi, Here are a few of the things I need to know: What do you put for the URLRequest? It's confusing me a bit since Asp.Net MVC is methods and not pages How do you assign parameters for the POST? How to you execute the URLRequest to complete the Http Post? Any information on how to do a Post from Flash to an Asp.Net MVC Application w...

Make Flash start only when div "appears" with IE / ui-tabs.js

Hi guys, I'm making a website using the jQuery UI Tabs plugin which is great. However, one of my "hidden" tabs contains an .swf. Firefox only plays this .swf when that tab has been "opened" - which again is great. IE however plays this .swf while it is hidden, so when the user clicks on the tab, they see no animation in IE as it has alr...

Flash cs4 local security sandbox

I'm testing a flash script that calls a JavaScript function (both, the swf and the HTML file are local). The flash movie is not allowed to access the HTML file that contains the js-function. I've learned that I have to put both files into a security sandbox, so I added the path to both files (HTML+swf) to a file test.cfg in C:\WINDOWS\s...

Referencing problem when adding callbacks to Exernal Interface in Flash/ActionScript3

Hi, I have a method: myMethod() {} that I want to make accessible to javascript. I've done a bit of research and found out you need to add a callback to ExernalInterface, so here's what I have done: ExternalInterface.addCallback("invokeMyMethod", myMethod); Now when I load up my web page with the flash on it, I get an error: Referen...

ActionScript 3 Array Casting problem in Flash CS4

I have these Arrays //Array elements are Sprites (Class) in Flash Library var elements:Array = new Array (el1_spr, el2_spr, el3_spr); var container:Array = new Array(); for var (i:uint; allElements.length; i++){ container.push(allElements[i]); var v:Sprite = (allElements[i] as Sprite); addChild(conta...

HTML 5 <video> tag vs Flash video. What are the pros and cons?

Seems like the new <video> tag is all the hype these days, especially since Firefox now supports it. News of this are popping up in blogs all over the place, and everyone seems to be excited. But what about? As much as I searched I could not find anything that would make it better than the good old Flash video. In fact, I see only probl...

Hiding flash component scrollbars using object/param syntax

Hi all, I'm not sure if this is possible (complete non-flash developer speaking), but we have a 3rd party component that we want to only show a certain topleft hand portion of. I've tried limiting the size of the HTML object container as: <object type="application/x-shockwave-flash" width="600" height="415" data="<url>"> <param nam...

Flash Crossdomain.xml Problems

I'm trying to load Gravatars into Flash. Luckily, they provided a crossdomain.xml file at http://en.gravatar.com/avatar/crossdomain.xml My code: Security.loadPolicyFile("http://en.gravatar.com/avatar/crossdomain.xml"); var loader:Loader = new Loader(); loader.load(new URLRequest("http://en.gravatar.com/avatar/" + gravatar + "?s=35&d=i...

SharedObject.getLocal() returns null

I've seen a number of very informative articles explaining that SharedObject.getLocal will return null if it can't find or create the requested SharedObject, but can find anything telling me why this method would fail. Does anyone want to take a stab at it? ...

Javascript modal on top of Flash games, in all browsers...

So we have a weird issue at work. We need to display a Flash game which uses the keyboard, when the game finishes, it triggers a modal popup via Javascript. We're using the wmode param set to opaque so that the modal displays on top of the Flash elment. All works fine, except in IE6/7. When you press the UP or DOWN keys on the keyboard,...

Can Flash/Actionscript Upload to a Different Server?

Is it possible to upload a file to another server or pass a file from a Flash object to a script that resides on a different server? I would like to upload a video to viddler using their REST API. I wish to upload a video directly to them. Is Flash capable of this? If this is possible, I would appreciate links to tutorials or existing ...

Embeding Flash - movie and src parameter

Hi In this object element there is a child element called param[@name = 'movie'] <object type="application/x-shockwave-flash" width="300" height="324" data="flashlet.swf" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"> <param name="movie" value="flashlet.swf"> <param name="swliveconnect" value="true"> <param name="allowful...

What is a good document size for a Flash presentation on a widescreen TV?

I am creating a presentation in Flash, which will be displayed on a 42" or a 50" TV at a booth at a trade show, fed by a laptop. What are the best document dimensions to work with? Thanks. ...

Get total time and time played from Flash Video component?

I've loaded a video into the FLVPlayback component and I'm looking for a way to get the total time and the time played so far and output them to two text fields so the end result would look something like "00:12/00:50". Right now I'm defining the video by the components inspector but I'm eventually hoping to define this bit by actionscr...

How to pass parameters to a Flash projector (Windows)?

Is there any way to pass command line parameters to a Flash projector in Windows? I have another application (in this case, an installer) that will need to communicate to a Flash projector (the same way flashvars work). I wasn't able to find any information online (everything seems to be focused on using FSCommand parameters for execut...

not getting the mouse scroll property on swf file embedded in an HTML page

I have a flash swf file and I put that into the HTML file. In the flash swf file, the mouse scroll zoom function is there, but its not functioning when I am inserting that into the HTML page, and if I scroll over the swf area, it also scrolls the html page completely, and it's not functioning at the swf, i.e. the zoom function. ...

AS3 Input Textfield get text formated with \n for every new line

I have a textfield where the user can type what ever he want into it. When the user is ready typing he can hit the send button. when he does that i get the text from the multiline textfield and pass it to my backend. there is only 1 problem the text is formated in 1 single line, (html text is no option!) is it possible to set after ever...

How do I play flash files in pure C?

As part of a customized media player written in C (Win32), I need to enable my app play flash movies (.swf files) inside the player window. Can someone please indicate the most C compatible low level way to achieve this, giving me highest control? Specially control on display window and network access. I am looking for reference to a Wi...

Interact with SWF Loader

Hello community, I embedded a swf file in my application <mx:SWFLoader source="@Embed(source='mod/VideoModule.swf')" width="50" height="50" id="loader" creationComplete="initLoader()" /> now with the help of the flex documentation I wanted to interact with my loaded swf by creating a SystemManager [Bindable] public var loadedSM...

Graphical web library which allows to click "arcs" on diagrams (see the screenshot)

I need a JavaScript library, or flash as well, which allows to connect events to "click" over "arcs" in graphics, see this picture: I've implemented my graphic through the JS-Graphs library but I can only intercept the "click" event on "nodes", not on "arcs". Can anybody help me?? Thanks. ...