flash

Why does my SWF file size not decrease when reducing content?

限于喜欢 提交于 2020-02-04 03:25:13
问题 Often I find if my SWF file size is on the large side, when deleting media altogether or perhaps deleting and re-inserting compressed versions of images, sound etc, it has little or no effect on the resulting SWF's file size. I have tried deleting the SWF to allow Flash to recreate it from scratch but it makes no difference. Has anybody else experienced this and/or know of a solution? Thanks. 回答1: Make sure you are deleting all your references to the files in your library. For example, if you

MouseDown/MouseMove/Click Issues with Flex Drag and Drop

别等时光非礼了梦想. 提交于 2020-02-02 14:35:12
问题 In Flex 3, I have an ItemRenderer that has a button in it. I want users to be able to click and drag this Renderer, but also just click the button. Right now it's working with the Renderer listening on "MouseMove" to initiate drag and drop, and the button listening on "click". However this is very screwy. If somebody is dragging a scroll bar and comes anywhere near that renderer, MouseMove gets fired on the renderer and initiates dragging. (or if somebody is resizing a HDividedBox, basically

How to delete all event listeners at once in AS3

天涯浪子 提交于 2020-02-01 04:58:40
问题 I'm making a small game in as3. The game contains 10 levels. When i enter 1 level everything is alright. But when i enter the second level (frame) the event listeners from the first frame are still working and a recieve a warning saying ' Cannot access an object of null objct reference'. This is because i delete every object of the first level and th add the objects from stage 2. I've tried using removeEventListeners, but it doesn't work, cause ENTER_FRAME Listeners work one more time after I

as3 Air for Android downloading and saving remote files

不羁岁月 提交于 2020-01-31 18:13:06
问题 The Code below downloads an mp3 to your phone from a server using as3 Air For Android. I want to use these files later in the app so I have the following question: How can I make it so the files save to a particular folder in the android app rather than a box opening for the user to choose a location? import flash.net.FileReference; /// It can be an mp3,jpg, png, etc... just change the url /// and the extension name. nice huh? var yourFileLocation = "http://YourWeb.com/YourSong.mp3"; var

Internationalization for flash applications

a 夏天 提交于 2020-01-31 10:25:46
问题 I'm working with a flash application (non-flex), and I'd like to support internationalization. In flex there's a nice abstraction ResourceManager in which you provide resource bundles for each locale. Is there any equivalent for actionscript? 回答1: How about the Globalization package from AS Foundry? 回答2: Haven't used it myself, but this one looks interesting: http://www.sephiroth.it/weblog/archives/2005/12/actionscript_30_first_attempt.php It's based on the GNU gettext implementation and tool

Internationalization for flash applications

自古美人都是妖i 提交于 2020-01-31 10:25:14
问题 I'm working with a flash application (non-flex), and I'd like to support internationalization. In flex there's a nice abstraction ResourceManager in which you provide resource bundles for each locale. Is there any equivalent for actionscript? 回答1: How about the Globalization package from AS Foundry? 回答2: Haven't used it myself, but this one looks interesting: http://www.sephiroth.it/weblog/archives/2005/12/actionscript_30_first_attempt.php It's based on the GNU gettext implementation and tool

Internationalization for flash applications

倖福魔咒の 提交于 2020-01-31 10:24:15
问题 I'm working with a flash application (non-flex), and I'd like to support internationalization. In flex there's a nice abstraction ResourceManager in which you provide resource bundles for each locale. Is there any equivalent for actionscript? 回答1: How about the Globalization package from AS Foundry? 回答2: Haven't used it myself, but this one looks interesting: http://www.sephiroth.it/weblog/archives/2005/12/actionscript_30_first_attempt.php It's based on the GNU gettext implementation and tool

Website fully written ( or displayed ) in Flash. When this is NOT a good idea?

▼魔方 西西 提交于 2020-01-31 05:22:13
问题 From this tweet: http://twitter.com/azaaza/status/6508524118 I reach a website which is made completely in Flash (at least the front end). alt text http://img704.imageshack.us/img704/3116/screenshotvz.png It looks fantastic and it could have been written with HTML + Ajax, but I guess ( because I don't know much flash my self ) they site owners felt more comfortable with Flash and thought it would be easier ( once again, I guess this happens when you have thousands of flight hours with flash )

Javascript -> Flash throwing “Error calling method on NPObject”

瘦欲@ 提交于 2020-01-31 04:44:06
问题 I'm trying to call a Flash (AS3) function from Javascript. When the code runs, I get the error "Error: uncaught exception: Error calling method on NPObject!" From my day's worth of googling around, this seems to be be a security matter, and I've done everything I can find, but the error still comes up. Some details: * This happens with both Flash 9 and Flash 10 players. * The swf is in the same domain as the php file that loads it and that contains the javascript that's trying to call the

deepin 中chrome播放视频flash版本过低

 ̄綄美尐妖づ 提交于 2020-01-31 02:23:28
下载flash: https://www. flash .cn/ 进入/home/主目录/.config/google-chrome/PepperFlash/ 备注:上面的主目录有时候为用户名。文件夹/.config/为隐藏文件夹。要在文件管理器的设置那里勾选显示“隐藏文件”。 创建一个文件夹:文件夹名字为刚刚下载flash的版本,这样下次就可以清楚版本了,刚刚下载的flash readme里面有版本号 之后我的是:/home/主目录/.config/google-chrome/PepperFlash/32.0.0.314 把刚刚解压出来的flash 里面的几个文件复制到/home/主目录/.config/google-chrome/PepperFlash/32.0.0.314 之后sudo vim /usr/share/applications/google-chrome.desktop 把Exec=/usr/bin/google-chrome-stable %U改为 Exec=/usr/bin/google-chrome-stable %U --ppapi-flash-path=/home/hong/.config/google-chrome/PepperFlash/32.0.0.171/libpepflashplayer.so --ppapi-flash-version=32