flash

How to add dynamically text and tags inside textFlow

折月煮酒 提交于 2020-01-15 11:26:09
问题 <s:RichEditableText editable="false" styleName="chatWin" height="550" width="100%"> <s:textFlow> <s:TextFlow> <s:p>Inline<s:br />TextFlow</s:p> </s:TextFlow> </s:textFlow> </s:RichEditableText> I want to add this <s:p> tag dynamically, thus making a chat...i've tried this: var p:p = new p(); but this don't work 回答1: Instead of a declarative text flow within MXML, you could programmatically update the text by appending to a string variable and reflowing with TextConverter.importToFlow().

Is there an way to load external swf into a sandbox in flash?

筅森魡賤 提交于 2020-01-15 11:26:08
问题 I'm loading flash ad-banners inside my all flash site with Loader. I have no control over the code inside the banners as they come from advertisers. I'd like to load them so that there is no way they can mess up the mouse events on the site outside their limited area. Sloppy code on advertisers banner should not kill my site's functionality in any situation. Bonus question, how can I solve the problems caused by the banners being a different frame rate than my main site? (Or is there an easy

Native Flash on mobile platforms?

北城以北 提交于 2020-01-15 09:14:32
问题 Does anyone know if Flash will be able to run independent from the browser? I mean native apps in Flash , not just the player in a browser. The Symbian OS can do that, however I have yet to find an article which explicitly states what will become available in the case of the iPhone and the Android platform. I am not asking about dates, as those are the most fluctuation prone variables. I am part of a web/mobile apps development company which is eager to use flash to make applications even

Fast forwarding Flash Video

天大地大妈咪最大 提交于 2020-01-15 09:06:49
问题 Is it possible to use Actionscript to speed up (or slow down) a video playing? Say, having it play at twice the normal speed? If possible, can you also make it that the sound does not get all squeaky? Some Videoplayers can do that, I was wondering if it is possible to do in Flash. 回答1: I've tried to answer this questions here: Change video playback rate dynamically in Flash In short, FMS has some of those capabilities. 来源: https://stackoverflow.com/questions/2078379/fast-forwarding-flash

Using the Menu, Back, Home buttons with AIR for Android, Flash CS6

北慕城南 提交于 2020-01-15 07:53:06
问题 I am looking to utilize and/or disable the hard "Home", "Back", "Menu" and "Search" buttons that are present on most Android phones and honestly don't know where to start. Using Flash Professional CS6 AIR for Android. I apologize if this is already answered somewhere but I cannot find any information on how to do this. Thank you in advance for all the help. 回答1: Looks like you can stop the default behavior of the back, search, and menu soft keys but not Home: http://www.adobe.com/devnet/air

How can I overcome “Error calling method on NPObject” and Play() a SWF?

断了今生、忘了曾经 提交于 2020-01-15 07:18:47
问题 I am working on a quiz system. Normally it uses jpeg images with each question. But a few of the quizzes instead feature animated .SWF files. I want to use jquery swfobject to call the play() method, once the user has clicked on an answer. My solution works fine locally, but when I try to run it online, it throws the "Error calling method on NPObject!" message. The quiz HTML is located on www.somedomain.com and the SWFs are on images.somedomain.com. So, I'm guessing this is a cross-domain

How can I overcome “Error calling method on NPObject” and Play() a SWF?

本秂侑毒 提交于 2020-01-15 07:18:46
问题 I am working on a quiz system. Normally it uses jpeg images with each question. But a few of the quizzes instead feature animated .SWF files. I want to use jquery swfobject to call the play() method, once the user has clicked on an answer. My solution works fine locally, but when I try to run it online, it throws the "Error calling method on NPObject!" message. The quiz HTML is located on www.somedomain.com and the SWFs are on images.somedomain.com. So, I'm guessing this is a cross-domain

super() in Flash Builder. WHY?

孤街浪徒 提交于 2020-01-15 06:58:26
问题 Every time I start a new actionscript class in Flash Builder it starts off the constructor with a line super() I have never seen this before, and it seems to have no purpose. Deleting it results in the exact same movie. Why is it inserted into my new class and what does it do? 回答1: super() calls the constructor from the class that you're inheriting (extending). If your inherited (base) class has no required parameters in it's constructor, you can omit it all together and flash will

Decode amf3 object using PHP

可紊 提交于 2020-01-15 06:06:16
问题 My flash code: var request=new URLRequest('http://localhost/test.php'); request.method = URLRequestMethod.POST; var data = new URLVariables(); var bytes:ByteArray = new ByteArray(); bytes.objectEncoding = ObjectEncoding.AMF3; //write an object into the bytearray bytes.writeObject( { myString:"Hello World"} ); data.data = bytes; request.data = data; var urlLoader:URLLoader = new URLLoader(); urlLoader.dataFormat = URLLoaderDataFormat.BINARY; urlLoader.addEventListener(Event.COMPLETE,

Force Download with Flash AS3

无人久伴 提交于 2020-01-15 05:18:05
问题 i want to have force download functionality only with Flash AS3, is it possible ?? i tried google but failed. here it is my as3 code...... var file_URLRequest:URLRequest = new URLRequest ("mp3gallery/" + url); var content_header:URLRequestHeader = new URLRequestHeader("Content-Type: application/force-download"); var attach_header:URLRequestHeader = new URLRequestHeader("Content-Disposition: attachment; filename=abc.mp3"); file_URLRequest.requestHeaders.push(content_header); file_URLRequest