flash

Dynamically Casting In ActionScript

泪湿孤枕 提交于 2019-12-25 02:57:15
问题 Is there a way to cast dynamically in Actionscript? What I want to accomplish is illustrated by the following code: var Val:*; var S:String=SomeTextEdit.text; switch (DesiredTypeTextEdit.text) { case 'int':Val=int(S);break; case 'uint':Val=uint(S);break; case 'String':Val=String(S);break; case 'Number':Val=Number(S);break; ... } SomeDisplayObject[SomePropertyNameTextEdit.text]=Val; I am looking for something LIKE the following PSEUDOCODE: SomeDisplayObject[SomePropertyName]=eval(DesiredType)

Loading swf and using it through interface

*爱你&永不变心* 提交于 2019-12-25 02:48:22
问题 I've created simple swf with interface: public class Test extends MovieClip implements ITest { public function Test() { Security.allowDomain("*"); Security.allowInsecureDomain("*"); } public function speak(str):String { trace(str); return "yeah"; } } ITest: public interface ITest { // Interface methods: function speak(str):String } And then I'm trying to load it: public function SWFLoader() { var url='http://xxxxxxxx/test.swf'; var loadURL:URLRequest=new URLRequest(url); var loader:Loader =

How do I recompile Flex 4 Framework RSLs?

感情迁移 提交于 2019-12-25 02:47:24
问题 Does anyone know how to recompile Adobe Flex 4 framework RSLs? I'm using the compiler directive -dump-config to get the build config file that the FlashBuilder IDE is using for compiling my application. I then pass that config file into the mxmlc compiler so I can build from the command-line. The results of the command-line build are output to a folder other than bin-debug. bin-debug is a localtrust path, and it will an application will run from there without error. A Flash application in any

Show HTML when flash fails?

假装没事ソ 提交于 2019-12-25 02:46:56
问题 I am using jcupload whats nice is all i need to write is the below and the flash+js does the rest <div id="jcupload_content"></div> However this is the ONLY flash on my site. If the user doesnt have flash (think ipod) i'd like to fallback to an html implementation. How do i do it? I know logically ppl wont be uploading via ipods but if i were to play music i can use a flash audio player fallback to html5 audio in that case. 回答1: Better to use HTML5 audio, then fallback to Flash, I'd say ;).

Flash Player Does not Show up on Firefox but not Chromium

好久不见. 提交于 2019-12-25 02:39:07
问题 Am trying to make audio Player extension and I choose to wrap Wordpress Audio found here So Far I have it working on all Webkit based browsers but not on firefox. I have tried to put auto start on and I can hear audio in firefox which tells me that flash and JS code loads fine but does not show up (see attached images). I have tried all options in my head and did not work. This is my very first extension so forgive anything that is obvious and point out to me please. Here are images Here is

Change fancybox iframe size according to content height/width

可紊 提交于 2019-12-25 02:37:27
问题 This might be tricky because the iframe content height/width depends on whether or not the user has the Flash plugin. The iframe has a maxwidth of 800px, so it scales according to viewport. It loads swfobject.js, which detects the Flash plugin, and swiffit.js, which scales the swf according to the width of the iframe. If there is no Flash plugin, it loads an mp4 video, with a fixed width of 550px. I did a dummy of it here: http://www.casedasole.it/fancyfit/ The first button opens an iframe

ActionScript: code for finding mac address doesn't work

微笑、不失礼 提交于 2019-12-25 02:34:24
问题 I have the following code in Actions of a keyframe in Adobe Flash Professional CS6: var networkInterface : Object = NetworkInfo.networkInfo.findInterfaces(); var networkInfo : Object = networkInterface[0]; var physicalAddress : String = networkInfo.hardwareAddress.toString(); When I hit Ctrl+Enter to run the movie, I get the following compiler error: Scene 1, Layer 'Layer 1', Frame 2, Line 1 1120: Access of undefined property NetworkInfo. What do I do wrong? 回答1: you must add: import flash

Video, flash or… videos for HTML [closed]

我与影子孤独终老i 提交于 2019-12-25 02:28:39
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I'm not new to HTML, CSS, JS or PHP, I already made diff. web pages, but every time when I included a video from YouTube or from another external site, I always used iframe, or embed code. So, today I started to

How to display local PDF in Flex Mobile Project?

蹲街弑〆低调 提交于 2019-12-25 02:27:05
问题 I am running Flex mobile project and I would like my mobile app to be able to load and display pdf files that are saved locally. I do not want to go out to the web to access these pdf files. I cant figure out how to make this code work for a locally saved file. Error MSG: "Error #2044: Unhandled ErrorEvent:. text=Load error." Does anyone have a suggestion? Thanks! <?xml version="1.0" encoding="utf-8"?> <s:View xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark

swf not updating when file xml and swf not in the same domain

旧时模样 提交于 2019-12-25 02:26:39
问题 xml, and i want to get data from external file xml in remote server using AS3, My problem is data xml is showing in consol (trace (data)) but not showing in swf file. if the swf and xml are in the same domain there is no problem. my crossdomain <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd"> <cross-domain-policy> <allow-access-from domain="*" /> <site-control permitted-cross-domain-policies="by-content-type"