flash

Adding unobtrusive progress bar to old-school file uploads

喜欢而已 提交于 2019-12-29 03:12:20
问题 You all know the new generation of fancy, mostly Flash-based file uploaders like SWFUpload that can show a progress bar while uploading - a great improvement especially for shaky and low-bandwidth connections. However, these uploaders all bring their own logic of how to handle uploads on the client side. I am looking for an unobtrusive way to "fancify" existing, classical file uploads, i.e. introducing a progress bar to normal file upload forms . Due to the architecture of uploading files,

POST Login with ActionScript 2.0

寵の児 提交于 2019-12-29 02:09:16
问题 I have created a pretty basic Flash website for a client and am having an issue programming a Client Login feature that he would like. Currently, if I navigate to the site and click Client Login, it takes me to a login page. The way I need this to work is -- within the Flash, using ActionScript 2.0 -- have the user enter their UserID and Password and click to login, which submits POST vars to the form action of the Client Login website. Is this possible/legal to do from a different domain?

how do I replace all the links in a text using regex in as3? [duplicate]

亡梦爱人 提交于 2019-12-29 02:01:13
问题 This question already has an answer here : Closed 7 years ago . Possible Duplicate: How do I linkify text using ActionScript 3 I am using a regular expression to find links in a generic string and highlight that text(underline, a href, anything). Here's what I have so far: var linkRegEx:RegExp = new RegExp("(https?://)?(www\\.)?([a-zA-Z0-9_%]*)\\b\\.[a-z]{2,4}(\\.[a-z]{2})?((/[a-zA-Z0-9_%]*)+)?(\\.[a-z]*)?(:\\d{1,5})?","g"); var link:String = 'generic links: www.google.com http://www.yahoo

Flash Builder launch failed - invalid application descriptor: Unknown namespace

落花浮王杯 提交于 2019-12-29 01:58:45
问题 I'm having difficulty getting a Flex mobile project to run on my machine. When I try and run the project I get the following error: Process terminated unexpectedly. invalid application descriptor: Unknown namespace: http://ns.adobe.com/air/application/16.0 Launch command details: "C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 Bit)\sdks\4.6.0\bin\adl.exe" -runtime "C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 Bit)\sdks\4.6.0\runtimes\air\win" -profile mobileDevice -screensize

Can you embed an HTML webpage in a PDF file?

对着背影说爱祢 提交于 2019-12-29 00:12:08
问题 A flash file can be embedded in a PDF document. Does anyone know if it is also possible to embed an HTML webpage? Added: I don't mean just a plain HTML document, but a webpage with Javascript too. 回答1: The answer is no. While you can embed videos, sounds and SWF files in a PDF, dynamic HTML files aren't supported. (Adobe AIR is more suitable to package and distribute HTML files). The best you can do in a PDF is to use the ATTACH option in Adobe Acrobat. This will "attach" any file with the

Why doesn't Z-Index in IE render the way it's supposed to over a Flash Movie?

戏子无情 提交于 2019-12-28 18:05:01
问题 I am working on a site with two absolutely positioned divs... the logo and the menu (navbar) IE is burying them both, even after multiple tries of z-index manipulation. Why can't IE work as well as Firefox or even Opera for God's sake? UPDATE....... I forgot to mention that these divs are positioned over a flash movie. How could I possibly have left that out?! 回答1: If your flash movie is burying your other content you may have luck by adding an additional param element to your embedded object

How to make a cross-browser on-window-unload request?

白昼怎懂夜的黑 提交于 2019-12-28 16:14:34
问题 I have a Flash game that I'm trying to save the state of when the user closes the browser tab. It is using the following jquery code: //Called from Flash when window closes function sendRequest(url, params) { $.ajax({ type: "POST", async: false, url: url, data: params }) } $(window).unload(function() { //Make Flash attempt to save the game when the window closes. //Flash gets the necessary data and calls sendRequest() document["flashGame"].saveBeforeUnload(); }); Firefox: Works correctly

Can the flash player play .wav files from a url?

给你一囗甜甜゛ 提交于 2019-12-28 12:44:27
问题 Let's say I have a wav file at a url: http://hostname.com/mysound.wav I'm trying to load the wav file with the sound class like: var url:String = "http://hostname.com/test.wav"; var urlRequest:URLRequest = new URLRequest(url); var sound:Sound = new Sound(); sound.load(urlRequest); sound.play(); However, this doesn't seem to work. Can flash player play wav files, or is it just mp3s? 回答1: The ActionScript documentation for the Sound class states that only MP3 files are supported. 回答2: here a

Trigger flash button object via javascript

有些话、适合烂在心里 提交于 2019-12-28 12:33:28
问题 Is it possible to trigger for example flash uploading button via javascript? For example I have made empty image wrappers and by clicking on them, they trigger flash button to open as select window. Thanks! 回答1: Assuming you have a flash function in your SWF, like this: // AS3 code in swf function myfunction():void { // Do something useful } You can expose it to JavaScript in a page that contains your SWF like this: // AS3 code in swf ExternalInterface.addCallback("myfunction", myfunction);

How to embed my own video player in Facebook?

 ̄綄美尐妖づ 提交于 2019-12-28 08:11:12
问题 Is it possible to embed my own video player in Facebook, so I can see the video directly in the timeline, like all the YouTube videos? Are there any metatags I need to include in the <head> section of my site? 回答1: You must first get your Flash player approved by submitting a video embed whitelist request. Once this is approved, which took 4 hours for me when I look back on emails from my request, your player will be able to be shown just as YouTube videos are. You can then use the Facebook