flash

Detect if camera is capturing in Flash

喜欢而已 提交于 2019-12-24 09:33:43
问题 I'm having trouble with Camera.getCamera() in Flash AS3. If there are multiple camera drivers, it does not necessarily pick the correct one. If the default is the correct, the program works fine; however, if another driver is selected as the default then LED on the webcam does not come on and no video is captured. I can cycle through the available cams and select an arbitrary one. I don't, however, know how to determine if the selected camera is correct. It is not returning null. I considered

Is there a way to check if DisplayObject A is a descendant of DisplayObject B?

北城余情 提交于 2019-12-24 09:30:49
问题 I would like to be able to quickly check if a given DisplayObject is a descendant (not in the inheritance sense - ie. child, grandchild, great-grandchild, great-great-grandchild, etc.) of another DisplayObject. There doesn't seem to be a native way to do this and I can only think of two ways to achieve it: Create the mother of all nested loops. Seems a bit, I dunno, wrong? Dispatch a bubbling event at the 'child' and check if the potential 'parent' receives it. Am trying the latter now, but

UIWebView html file with swf load external link, but internal

醉酒当歌 提交于 2019-12-24 09:15:13
问题 When I load an external HTML with SWF embedded, it work in UIWebView. When I try to add all files in Xcode, and load the UIWebView local, nothing appears, but I know it tried to load ... -The Code: NSString *filePath = [[NSBundle mainBundle] pathForResource:@"vimmar" ofType:@"html"]; NSData *htmlData = [NSData dataWithContentsOfFile:filePath]; if (htmlData) { NSBundle *bundle = [NSBundle mainBundle]; NSString *path = [bundle bundlePath]; NSString *fullPath = [NSBundle pathForResource:@"vimmar

How to use remote SharedObject in AS3 and Red5

谁说我不能喝 提交于 2019-12-24 08:57:39
问题 I wish to use remote SharedObject so I created a simple script to test out the techniques. When I ran the following code as two instances of SWF, both instances output 1, which was incorrect because the second instance was supposed to output 2. import flash.net.SharedObject; import flash.events.SyncEvent; var nc:NetConnection; var so:SharedObject; nc = new NetConnection(); nc.client = { onBWDone: function():void{} }; nc.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus); nc.connect(

Flash Range Slider Component

浪子不回头ぞ 提交于 2019-12-24 08:53:35
问题 Is there something similar to this jquery component in flash or are there any ready examples on how to do that? Thanks. 回答1: I do not know of any built-in (or third party, for that matter) components of that sort. I'm sure that some third-party ones must exist, however, but they are unlikely to be free. You can create your own without too much trouble. I have created a basic working version that you can build on if you want: // Main class, shows how to use other classes: import flash.display.

run .swf files in electron project in windows os

橙三吉。 提交于 2019-12-24 08:40:00
问题 i have this code for convert website to exe file using electon js but i have problem inside the website there are .swf files and i search alot about how i can run .swf files but it's not work i was traing by plugin it's name "Pepper Flash Plugin" this is the url for this plugin https://electron.atom.io/docs/tutorial/using-pepper-flash-plugin/ and i was searsh about "pepflashplayer.dll" and put it on the root on prject directory and also not work any help please file:main.js 'use strict';

Flex DataGrid row color spreads when scrolled up down

女生的网名这么多〃 提交于 2019-12-24 08:39:44
问题 I'm facing issue with datagrid row background color being spread when datagrid is vertically scrolled. I'm assuming this is happening because ItemRenderers are recycled. Here's my code : <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" minWidth="955" minHeight="600" > <mx:Script> <![CDATA[ import mx.events.FlexEvent; private var rendererFactory:ClassFactory; protected function btn_clickHandler(event:MouseEvent):void {

(as3) Sync data between 3 or more identical flash objects on the same page

放肆的年华 提交于 2019-12-24 08:29:12
问题 I have asked something similar before, but never go to the solution I need. So am starting a new stack to not confuse my issues, and to make a little clearer. What I need to do I have multiple flash objects on a html page, they are all identical, and all of them need to be sync'd with the correct time. In its current state, each one queries the timeserver, and gets the time, which works great. BUT what I want to achieve is the first one to load to be the only one that sync's with the time

How to make HTML underneath overlapping Flash accessible

…衆ロ難τιáo~ 提交于 2019-12-24 08:28:21
问题 I have a Flash header with a transparent background contained inside of a relative positioned div with a z-index of 10. The resulting effect allows my Flash movie with a transparent windowmode to overlap and hover over the HTML content. Unfortunately, the HTML that is underneath the invisible Flash is not accessible. For example, the anchors will not work. An example can be found here. Notice how the very top of the anchor links don't activate the hover state? I've seen Flash rollovers

Tool to invoke actions in Flash swf via JavaScript

依然范特西╮ 提交于 2019-12-24 08:26:56
问题 I have a flash swf file without access to it's source. Can I use only JavaScript to invoke/initiate the action of the flash functions within the swf file? Or does the swf need active listeners to respond to JavaScript? 回答1: You cannot communicate with an SWF (at least an AVM2 (AS3 based) SWF) unless it has registered callback methods in it. The ExternalInterface class has an addCallback() method that: Registers an ActionScript method as callable from the container. After a successful