flash

Generating individual SWF's with classes from a fla with a large library

核能气质少年 提交于 2019-12-24 16:02:13
问题 I have a series of large fla files that were being published into swc's and then used directly in an flash project. Probably a total of 1000+ objects. As the number grows the final compiled swf is getting quite large so I want to download individual swf's of each object only as needed. I then need to be able to access and clone the object via classname from the final AS project. The issue is the only way I have found to export each one is to 1) copy and paste it into a new fla file 2) double

getURL not working on HTML export (Actionscript2.0)

▼魔方 西西 提交于 2019-12-24 15:53:26
问题 I was trying to add a facebook connection in developing flash website. Am using actionscript 2.0. I used the the following code more the button on (release) { getURL("http://www.facebook.com", "_blank"); } button works and takes me to the facebook link in SWF export. But am not yet able to access the link from the exported HTML file. (when i click the button in HTML export, it is connecting this link, file:///D:/WEBDESIGN/www.facebook.com) It would be a great if someone can help me out to

Nested Functions, how are they garbage collected in flash actionscript 3?

旧城冷巷雨未停 提交于 2019-12-24 15:48:50
问题 I have a very complex function in as3. The function is composed of many other functions which are nested inside of it. The main function has variables and all it's nested functions also have their own variables. Some of the nested functions are called by events that were added in the main function or in another nested function. Now I want to know, when will my main function be garbage collected? When will the code be out of the main function? And when will the variables and the events and the

Back/Forward buttons in Flex applications

不打扰是莪最后的温柔 提交于 2019-12-24 15:45:19
问题 I have a Flex application which uses the BrowserManager class for enabling deep linking within the application. The URLs work fine through all browsers but the back/forward buttons work only with Firefox and Internet Explorer. Even that is a bit flaky and sometimes doesn't work. The buttons don't work in Chrome/Safari or any other browser. Any ideas about how to make this work properly? If anyone has implemented something like this before in a Flex app then would like to hear about things to

How to automatically delete Event Listener from an object in AS3

血红的双手。 提交于 2019-12-24 15:45:08
问题 I am working on small flash game. The game contains 20 levels and main menu. The transition between levels is made by deleting every object on the frame and also all event listeners. Then the code adds objects from the next level... Catching and the removing event listeners is done by this code: override public function addEventListener(type:String, listener:Function, useCapture:Boolean=false, priority:int=0, useWeakReference:Boolean=false):void { super.addEventListener(type, listener,

How to tell if Flash AS3 is running in desktop or mobile browser

前提是你 提交于 2019-12-24 15:39:54
问题 I am developing a full-Flash site (Player 10.2). I need to know at runtime if code is running on a desktop/mouse computer or a mobile/touch device, so that I can differentiate the input mechanism. Is this by any means possible? 回答1: How's flash.system.Capabilities.version look? 回答2: Use flash.system.Capabilities.os to check. 回答3: For AIR 3.9: Capabilities.manufacturer returns "Adobe iOS" on ipad2, "Android Linux" on Galaxy s4. Capabilities.version returns "IOS 11,9,900,117" on ipad2 and "AND

how to allow javascript to communicate with flash (Object #<HTMLObjectElement> has no method

寵の児 提交于 2019-12-24 15:16:53
问题 I'm trying to send a simple test message from javascript to flash, but I'm getting the error: Object #<HTMLObjectElement> has no method "listenToJS" I've read a number of questions on this on stack, but I feel like either the browser is not getting the proper reference to my flash object, or within my actionscript I am not putting my flash function in the proper place. So within html I am embedding flash with SWFObj: <div id="flash_content"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8

onSeekPoint weirdness

牧云@^-^@ 提交于 2019-12-24 14:53:09
问题 I have a NetStream which is put into data generation mode properly... everything works fine and I get onSeekPoint() events when I do something like the following: EXAMPLE 1 public function setupStream() { netStream.client = {}; netStream.client.onSeekPoint = this.onSeekPoint; netStream.client.onMetaData = this.onMetaData; } public function onSeekPoint(... args) {...} public function onMetaData(... args) {...} However, instead of keeping it all in that parent class, I need to create a new

Kaltura KMC:: Flash Error

你。 提交于 2019-12-24 14:43:19
问题 I installed Kaltura using the instructions found here. The installation went on without any error. However, when i tried to access KMC, it says Flash is not installed even though Flash is installed in the system. I have looked up this issue elsewhere and tried the solution given there (i.e. changing request_order values to GPC in the php.ini). However it did not work. I also tried the solution mentioned here, but I could not get it working as. At last, I tried to access the KMC SWF directly.

Dynamic UI window drawing in Flash?

痴心易碎 提交于 2019-12-24 14:43:17
问题 Wasn't sure if this question belongs here, but I'll try. So I'm about to move my project from Director | Shockwave Player (if you ever heard of these) to Flash Player for numerous reasons and while I'm thinking how to better start off I got a question which really made me wonder. To the point. Currently in Director each game window in the user interface (like small alerts or large windows with lot of elements in them) is drawn upon need - meaning that the actual window's graphical image is