flash

How to set/access external swf file's dynamic text field in action script 3?

孤者浪人 提交于 2019-12-23 16:33:47
问题 I am working in a fla file where i added a swf file. How I set a text on that swf file's dynamic text. Is there any to to direct set text. I don't want to pass as parameter in url. I tried like this var rq:URLRequest = new URLRequest("subwindow/Time_date.swf"); ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, done); ldr.load(rq); function done(e:Event):void { var externalSWF:MovieClip = MovieClip(e.currentTarget.content); // I have dynamic text field named dDate. I tried like this but

Does Flash not support username/password in a URL? What are my alternatives?

*爱你&永不变心* 提交于 2019-12-23 16:21:51
问题 I've been trying to load some JSON from a URL with a username/password at the beginning. So the URL resembles: http://username:password@www.myaddress.org.uk/api/profiles/ I've been using the DataLoader class from greensock and it returns a Error #2032: Stream Error if the authentication is up but loads fine when it is disabled. I'm trying to add a 'Authorization' URLRequestHeader to get round this issue? Is this the best way forward? If it is relevant, I'm developing using FlashDevelop 4.0 /

wmode=transparent for Youtube video Iframe not working in IE with bootstrap modal

冷暖自知 提交于 2019-12-23 16:10:45
问题 I have a web app in which I am embedding Youtube videos using the iframe tag. I am also using bootstrap modal. So the issue arises in IE when the bootstrap modal fails to overlap the youtube video. Now i googled for this and I found a lot of answers saying that adding wmode=transparent should fix the issue. Well, It did not for me. Since I couldnt figure out a way for setting up a jsfiddle, I went to the bootstrap modal demo site and edited their code and added a youtube video. Please refer

Flash app depends on Flex. Are there any SWF bytecode size optimizers?

痞子三分冷 提交于 2019-12-23 16:03:50
问题 Hello world application that uses Flex, compiled with optimize=true has size 178K. How to reduce application size? We do not like to use RSL, we don't like to avoid Flex. Largest part of resulting SWF is unused bytecode. Are there any tools to optimize bytecode — drop unused methods, classes, give methods shorter names and so on? I know some such tools for Java bytecode. Any there any for SWF? 回答1: The size is the cost of the Flex API. You don't get to pick and choose which parts are compiled

How to protect swf file from being decompiled?

一世执手 提交于 2019-12-23 15:46:27
问题 I'm working on important project using Flex framework and i want to keep my algorithms and code secret. Is it possible to somehow protect swf file from being decompiled? I don't want someone extract my code using flash decompilers. Thanks. 回答1: While there is no full-proof way to secure code from decompilers there are some tricks to reduce the chances of this happening. host the .swf on a https server then it doesnt get cached You can obfuscate the code to make it impossible to understand

Properly serializing flash.utils.Dictionary to a SharedObject

五迷三道 提交于 2019-12-23 15:44:16
问题 I have a convenience collection class in my Flex project called HashMap, which is essentially a wrapper around the flash.utils.Dictionary with a bunch of convenience methods and an added (synced) ArrayCollection so that I can pass the HashMap to bindable controls that want an ArrayCollection. That all works fine. What doesn't work fine, I'm finding out just now, is putting that HashMap in a local SharedObject. Registering the class causes it to be stored and come back as the proper type, and

Alternative image when flash banner is not available USING HTML/CSS?

和自甴很熟 提交于 2019-12-23 15:31:12
问题 i'm looking for a solution to my problem, I have a site I have created for a client which features a flash header image, the only problem is he accessed a draft of the site on his iPhone and was put off by the fact it didn't display any of the head image as it was an iPhone (which as we know are not flash happy!). Also, I would need this anyway incase the visitor has flash turned off or uninstalled (I have provided the usual 'install flash' link when flash isn't displayed). Is there a way I

Possible to control SWF through Javascript?

感情迁移 提交于 2019-12-23 15:15:38
问题 Here's the situation: Client wants a looping SWF file to pause for two seconds before it begins playing all over again (it's a nice build animation on a logo, but the logo doesn't stay on the screen for very long because the movie repeats so users can't see the logo for long. This is irrelevant, but good back story.) They provided me with a SWF file, but not FLA. When I asked for the FLA I was told the hard drive that contained the FLA crashed and it cannot be retrieved. So, that is pretty

Is there any other alternate ways to access camera?

风流意气都作罢 提交于 2019-12-23 15:08:21
问题 Is there any other way to access the camera using ActionScript 3 other than import flash.media.Camera; videoInstance.attachCamera(cameraInstance); Or should I use any API s? If so, please suggest me any API suitable and some tutorials if possible. Thank You very much for helping. . . My previous post on Camera is How to increase the Quality of the camera using AS3? 回答1: If you need better Camera quality... check this ActionScript Mobile Flex Project. This is the main file package { import

How can I use URL parameters while debugging in Flash Builder 4?

淺唱寂寞╮ 提交于 2019-12-23 13:07:29
问题 How can I use URL parameters while debugging in Flash Builder 4? 回答1: Modify your html template In the "html-template" directory in your project open "index-template.html" up and modify the following lines of code to suite your needs: var flashvars = {}; if (swfobject.getQueryParamValue("foo") && swfobject.getQueryParamValue("abc")) { flashvars.foo = swfobject.getQueryParamValue("foo"); flashvars.abc = swfobject.getQueryParamValue("abc"); } Please note that this is for a Flex 4 SDK project.