flash

Flash AS3 - Drag and Drop multiple objects to one target?

有些话、适合烂在心里 提交于 2019-12-23 18:40:49
问题 Title is more or less self-explanatory, I’ve been working through many different tutorials and I’m not exactly too good with AS3 to be perfectly honest. (Image above shows what I'm aiming for) Anyway, what I notice in most of the online tutorials I see, the drag and drop tutorials are either based on one object to one target or multiple objects to multiple targets, so I was wondering if someone is kind enough to help me and explaining how I can get multiple objects to connect to one target.

Setting Page Title from a SWF

泄露秘密 提交于 2019-12-23 18:37:31
问题 Is it possible to set the title of a page when it's simply a loaded SWF? 回答1: This is how I would do it: ExternalInterface.call("document.title = 'Hello World'"); Or more generalized: function setPageTitle( newTitle : String ) : void { var jsCode : String = "function( title ) { document.title = title; }"; ExternalInterface.call(jsCode, newTitle); } 回答2: Sure. This should fix you up: getURL('javascript:var x = (document.getElementsByTagName("head")[0].getElementsByTagName("title")[0]

Hosting games locally with Flash?

江枫思渺然 提交于 2019-12-23 18:37:03
问题 I just can't find the right Google search terms for this... Is it possible to use Flash (or a Flash compatible service) to allow players in a game to host their own games (using their own bandwidth), through a web browser? In a way, to run their own game servers (for a Flash in-browser game) from their computer, but through a web browser using Flash? If so, any recommendations? Thanks in advance for any help! 回答1: I am guessing that you want to make some kind of "game room" on which users can

SVG/Canvas vs Flash for FloorPlanner app

若如初见. 提交于 2019-12-23 18:34:09
问题 I'm planning to create a floor planner app that allows users to draw, resize, move and rotate objects with the mouse. I was just wondering if it would be better to use Flash or Javascript. If using Javascript, should I use canvas or SVG? The app will allow drag selection to select multiple items. I'm trying to make up my mind with performance and browser support placed as top priority. Do you guys have any suggestions and resources that you could point me to if Javascript is the better option

Is there a way to subclass and override a method that is in a custom namespace?

蓝咒 提交于 2019-12-23 18:04:27
问题 Say I have a class with a method defined in a namespace other than public, protected or internal... package com.foo.bar { import com.foo.my_name_space public class bar { private var _vabc:String private var _v123:String protected function set123(val:String):void{ _v123 = val; } my_name_space function setABC(val:String):void{ _vabc = val; } } } Now I want to extend and override this in a subclass... package com.foo { import com.foo.bar.bar import com.foo.my_name_space public class foo extends

Custom ContextMenu is not showing, since Display Object is lying “on Top”

纵然是瞬间 提交于 2019-12-23 17:47:13
问题 as a follow up to another question here: i've build a custom contextmenu item in a flash application and had a problem with it not showing sometimes. i found out that the issue was that another sprite was lying "on top" of the item with the custom contextmenu. however, even with the "mouseEnabled" and "mouseChildren" properties set to false for the item "on top" i still cannot get the custom contextmenu to show... any ideas? thanks! ps: here is some code to see the problem: var spr:Sprite=new

How to load flex swf from flash?

混江龙づ霸主 提交于 2019-12-23 17:41:11
问题 I have some swf compiled in flex I want to load it into my movie clip in flash pro. ...So how to for example load flex swf inside Flash CS4? how to do such thing? 回答1: Here you can read more about it: http://troygilbert.com/2009/05/loading-flex-based-swfs-in-as3-only-swfs/ Here is the code for loading the flex swf: var loader:Loader = new Loader(); addChild(loader); loader.load(new URLRequest("my-flex-app.swf")); loader.addEventListener("mx.managers.SystemManager.isBootstrapRoot",

AS3: Is it possible to capture stage elements or bitmap data into a netstream?

大城市里の小女人 提交于 2019-12-23 17:27:28
问题 I'm looking at the netstream documentation. but can't really glean if appendBytes() can really take arbitrary data. Could I really just take arbitrary bitmap data (as a byte array) and append the frame to stream (presumably before sending it to a FMS to save a file)? I think I am wrong: it's only useful for dynamic streaming. I know that it is possible to grab a webcam feed and directly encode video via FMS. But say I wanted to add some overlays before encoding, is that even possible in Flash

Disable flash in saucelabs/selenium webdriver?

[亡魂溺海] 提交于 2019-12-23 17:17:37
问题 I am trying to use saucelabs to automate taking screenshots of several sites to make sure that changing code doesn't break things. I'm programming using webdriver for python and need to disable flash on chrome, firefox and IE. I've tried to find the answers online but none of them seem to be for disabling flash, only interacting with flash objects. 回答1: The below code will work for chrome, it disables the flash and sets the default download directory to a different folder. from selenium

Position: absolute a div over Flash

↘锁芯ラ 提交于 2019-12-23 16:49:54
问题 Is it possible to position: absolute a <div /> over a Flash banner without adding wmode="transparent" to the banner? I have a lightbox that needs to appear above my ads but I can't directly modify the banners as they come from a third party. Edit : The problem mainly occurs in IE where the Flash banner is shown above the lightbox. 回答1: No it's not but you can just hide the banners when the lightbox is active. 回答2: I am afraid no, if this was the case, we wold not have resorted to wmode=