flash

How to embded a SWF on a HTML page?

社会主义新天地 提交于 2020-01-05 15:19:34
问题 I am trying for a while now to display correctly a SWF project in a HTML file with good integration in all browser. The SWF is there : http://bitbucket.org/natim/cip-qcu-editor/raw/4746bbb86427/qcu/swf/quiz.swf And I tried using this method : http://latrine.dgx.cz/how-to-correctly-insert-a-flash-into-xhtml and this one : http://www.bobbyvandersluis.com/swfobject/generator/index.html without success. Actually it works but not with Firefox 3.6 that doesn't start the animation. Do you have any

How to embded a SWF on a HTML page?

北慕城南 提交于 2020-01-05 15:18:24
问题 I am trying for a while now to display correctly a SWF project in a HTML file with good integration in all browser. The SWF is there : http://bitbucket.org/natim/cip-qcu-editor/raw/4746bbb86427/qcu/swf/quiz.swf And I tried using this method : http://latrine.dgx.cz/how-to-correctly-insert-a-flash-into-xhtml and this one : http://www.bobbyvandersluis.com/swfobject/generator/index.html without success. Actually it works but not with Firefox 3.6 that doesn't start the animation. Do you have any

AS3 try/catch out of memory

落花浮王杯 提交于 2020-01-05 13:24:19
问题 I'm loading a few huge images on my flex/as3 app, but I can't manage to catch the error when the flash player runs out of memory. Here is the what I was thinking might work (I use ???? because i dont know what to catch): try{ images = new Array(frames); for (var i:uint = 0; i < frames; i++){ imagesBA[i] = new BitmapData(width, height, false, 0x000000FF); } } catch(error:????){ Alert.show("Out of memory!"); } Any idea what ???? can be? Or does anyone knows how to catch when there is no memory

flash crash when loading external swf (with code example this time around)

♀尐吖头ヾ 提交于 2020-01-05 13:09:10
问题 This is a AS3 project created in FlashDevelop. It targets flash player 10. I have a disturbing problem when running this code: package { import flash.display.Loader; import flash.display.MovieClip; import flash.display.Sprite; import flash.events.Event; import flash.net.URLRequest; public class Main extends MovieClip { private var loader:Loader; private var sprite:Sprite; public function Main():void { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function

flash crash when loading external swf (with code example this time around)

我只是一个虾纸丫 提交于 2020-01-05 13:09:07
问题 This is a AS3 project created in FlashDevelop. It targets flash player 10. I have a disturbing problem when running this code: package { import flash.display.Loader; import flash.display.MovieClip; import flash.display.Sprite; import flash.events.Event; import flash.net.URLRequest; public class Main extends MovieClip { private var loader:Loader; private var sprite:Sprite; public function Main():void { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function

Flash CS5 Displaying Different “screens” on the stage as movieclips

北城以北 提交于 2020-01-05 12:14:31
问题 Taking this thread to the next level and now making a Main.as class to display different "screens" of my game. For right now I only have 1 screen called ControlPanel, but this will eventually have multiple levels (each level will be a separate screen) and a level selection screen, etc. added. So at this point I'm losing control over how to give things access to the stage (in other words... it's getting really thick with multiple levels and this noob's brain is being overloaded lol). To start

Flash CS5 Displaying Different “screens” on the stage as movieclips

℡╲_俬逩灬. 提交于 2020-01-05 12:14:19
问题 Taking this thread to the next level and now making a Main.as class to display different "screens" of my game. For right now I only have 1 screen called ControlPanel, but this will eventually have multiple levels (each level will be a separate screen) and a level selection screen, etc. added. So at this point I'm losing control over how to give things access to the stage (in other words... it's getting really thick with multiple levels and this noob's brain is being overloaded lol). To start

Flash AS3: ENTER does not get detected, but CTRL+ENTER works fine

好久不见. 提交于 2020-01-05 12:14:16
问题 When my focus is inside the input text field, pressing CTRL+ENTER works but ENTER does not. Pressing Enter when my focus is anywhere BUT the input text field works just fine.. My intention is to detect if ENTER key was pressed after the user fills out the field, but it seems to only work for CTRL+ENTER ActionScript 3 : // works: stage.addEventListener(KeyboardEvent.KEY_DOWN, enterHandler); // ignored: email.addEventListener(KeyboardEvent.KEY_DOWN, enterHandler); function enterHandler(event

Internationalization for Flex/Flash Apps

北城以北 提交于 2020-01-05 11:22:48
问题 What options are there for storing and accessing translated strings in a Flex/Flash application? Ideally, I would like to share translation data with my Django website's internationalization data. This leads me to believe that some version of gettext would be best. But what is the industry standard, and the best implementation and documentation? Related (but never answer-accepted, and old) post: Internationalization for flash applications 回答1: In my opinion localization with Flex is sort of .

Internationalization for Flex/Flash Apps

╄→гoц情女王★ 提交于 2020-01-05 11:22:00
问题 What options are there for storing and accessing translated strings in a Flex/Flash application? Ideally, I would like to share translation data with my Django website's internationalization data. This leads me to believe that some version of gettext would be best. But what is the industry standard, and the best implementation and documentation? Related (but never answer-accepted, and old) post: Internationalization for flash applications 回答1: In my opinion localization with Flex is sort of .