flash

Downloading and saving files with AIR for iOs

独自空忆成欢 提交于 2019-12-25 02:25:14
问题 For a project we need to download and save pdf files on an IPAD device for offline use through an AIR for iOs application. After a lot of searching I haven't found much information on this subject. My question is, can it be done, and if so, can you provide us with some pointers to lead us in the right direction. Thanks for your time! 回答1: Sure, first you check if you can access the web - can use a class like air.net.URLMonitor , if you can you can set up a URLStream instance. You get data

FlashBuilder adds INTERNET permission even though it is not in my APP XML when building APK

允我心安 提交于 2019-12-25 02:19:28
问题 I have an Mobile AIR project in FlashBuilder 4.6(Using AIR 3.4) and I am having a real problem publishing an APK. Here is the section from my APP XML: <manifestAdditions><![CDATA[ <manifest android:installLocation="auto"> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.READ_PHONE_STATE"/> <uses-permission android:name="android.permission.DISABLE_KEYGUARD"/> <uses-permission android:name="android.permission.WAKE_LOCK

How to load animated gif before Flash load

雨燕双飞 提交于 2019-12-25 02:16:29
问题 I cannot get animated gif to display before flash movie loads. I am using this script but does not seem to work. I do not want to use a flash loader. <script type="text/javascript"> var image = new Image(); image.src = 'http://www.hmaimages.com/MN/flash_loader/loading.gif'; </script> Any help be much appreciated. 回答1: You don't need javascript for this. Simply wrap and flash file in a div and give it a background image: div {background:url(loading.gif) no-repeat center center;} 来源: https:/

SWF File loading in Firefox but Not IE

微笑、不失礼 提交于 2019-12-25 02:14:49
问题 hey well I have the following code loading an swf <object style="visibility: visible;" id="myContent" data="http://www.norble.com/demo/mp3/playlist/preview.swf?t=1286488645000?stageW=525&stageH=300&pathToFiles=&settingsPath=http://www.norble.com/demo/mp3/playlist/xml/player_settings.xml&xmlPath=http://www.norble.com/demo/mp3/playlist/xspf.php?id=4&imageWidth=140&imageHeight=200" type="application/x-shockwave-flash" width="560" height="300"> </object> but for some reason it's not displaying

JWplayer Javascript interaction not working

怎甘沉沦 提交于 2019-12-25 02:08:10
问题 this problem is going to make me bald. Save my hair plz. i have been trying every possible way to stop and pause and play the JWplayer latest version using its JavaScript API and nothing works. here is the code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>JW Player 5 playlist</title> <script src="jquery-1.3.2.min.js" type="text/javascript"></script> <script type="text/javascript" src="jwplayer.js"></script> <script

swf works within <embed> only - not working with bumpbox (lightbox alternative)

一笑奈何 提交于 2019-12-25 02:07:47
问题 I have this code http://www.bodom.eu/fsproblem There is one .swf within tag and when you click on full screen button, it WORKS. When you click on flash01 link, there is the same .swf within < a> tag (in lightbox style window), where it does NOT WORK. All I need is to make work the fullscreen button in the bumpbox window. Thank you very much. Bumpbox use mootools and flowplayer. 回答1: The issue you're having is actually coming from Mootools. Mootools has an Flash embed class called Swiff, which

actionscript 3 - How do I use this URLRequest script?

▼魔方 西西 提交于 2019-12-25 02:07:27
问题 I started learning ActionScript 3 a week ago and have stumbled across a huge learning curve. I found this script on the internet: var _loader:URLLoader; var _request:URLRequest; function loadData():void { _loader = new URLLoader(); _request = new URLRequest("http://www.travoid.com/game/Purchase.php?gid=1"); _request.method = URLRequestMethod.POST; _loader.addEventListener(Event.COMPLETE, onLoadData); _loader.addEventListener(IOErrorEvent.IO_ERROR, onDataFailedToLoad); _loader.addEventListener

Strange issues when using addChild and hitTest with AS3

心不动则不痛 提交于 2019-12-25 02:04:15
问题 I am having a couple of problems when adding a child in action script 3. I am currently building a Space Invaders game and I am writing the function that adds the asteroids to the stage. My first problem is that the all previous asteroids are being added each time I try to add a new asteroid. My second issue is when I add the hitTestOject function. It throws up an error and it doesn't do anything when the space ship hits the asteroid object. Here is the error I receive with the hitTestObject:

xml data to dynamic text AS3 flash

萝らか妹 提交于 2019-12-25 02:02:27
问题 Can't figure it out. Basically I have this code fetching data from: http://www.cbbh.ba/kursna_bs.xml I can't move the data to a single line and <br /> is showing. My code is: var xmlLoader:URLLoader = new URLLoader(); var xmlData:XML = new XML(); xmlLoader.addEventListener(Event.COMPLETE, LoadXML); xmlLoader.load(new URLRequest("http://www.cbbh.ba/kursna_bs.xml")); /* This loads the XML */ function LoadXML(e:Event):void { xmlData = new XML(e.target.data); parseData(xmlData); } /* This gets

How to properly encode UTF-8

心已入冬 提交于 2019-12-25 02:01:17
问题 I have a simple text file saved as UTF-8. In this file I have a string containing Côte-des-neiges But whenever I load this in flash and trace it out I get C√¥te-des-neiges Confused as to why this happens.... 来源: https://stackoverflow.com/questions/28119228/how-to-properly-encode-utf-8