actionscript-3

flex4 - NetStream.soundtransform.volume doesn't change

烂漫一生 提交于 2019-12-13 22:25:44
问题 I have problem with receive netstream sound volume changing <![CDATA[ import mx.events.FlexEvent; import flash.events.Event; import flash.events.MouseEvent; import flash.events.NetStatusEvent; import flash.media.Camera; import flash.media.Microphone; import flash.media.Video; import flash.net.NetConnection; import flash.net.NetStream; import flash.media.SoundTransform; private const SERVER:String = 'rtmfp://p2p.rtmfp.net/'; private const DEVKEY:String = 'my dev key'; private const REG:String

Flash SWF file cannot find XML data file when loaded into WebBrowser control (but works in IE9)

自闭症网瘾萝莉.ら 提交于 2019-12-13 22:09:51
问题 Bit of a long explanation below, with a hopefully accurate short question summary here: Can a .NET WebBrowser control (Win7 64-bit, IE9, current Flash 10.3.183.7) load a SWF file into an <object> tag, where the SWF file is in a separate folder that also contains an XML data file in such a way as to have the SWF file load and display the XML data? UPDATE : Added some more information below based on some further experimentation... Gory detail: This has plagued me for a couple of days. Consider

Unable to find whats wrong with this code for adobe air

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 22:08:34
问题 Working with an adobe air app for the first time. Dont know whats the error with the following code. It is not alerting the "no" value. Please see, the saveData() and getData() are from this question. function check(){ var d1 = getData('item1'); var d2 = getData('item2'); if (d1 && d2) { alert('yes'); } else { alert('no'); } } saveData('item1','value1'); saveData('item2','value2'); // I know that its ridiculous to save the data and then reset it. // But This is how the main code works. sorry.

BULK of Images Loading to form a Thumbnail Gallery

僤鯓⒐⒋嵵緔 提交于 2019-12-13 22:07:49
问题 I am trying to achieve a Photo gallery where images are showed in thumbnails whenever i select a certain folder of images. For example, if i were to click on the folder A, it will load all the images into a arraylist which will be set as the dataProvider for in my List to create the tilelayout. But i realized that, if i have 500 images, and whenever i scroll down on my scrollview, it kind of lags. Is there any way where it will load all my images first, before displaying? Or any way to make

as3 error says “Stream Error”, but when loaded manually it's there

故事扮演 提交于 2019-12-13 21:48:11
问题 I've looked in several other questions, but it just doesn't seem to explain my error. The error i'm getting is "Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: http://plustg.com/v2/_inc/_swf/getSavedSelfy.php at snapshot_fla::MainTimeline/frame1()[snapshot_fla.MainTimeline::frame1:20]" When going to that URL, it does load. But somehow flash throws a stream error. For reference, this is all there is on line 20: var selfyXMLLoader:URLLoader = new URLLoader(); And this is

Reference a MovieClip symbol later on in the timeline

旧巷老猫 提交于 2019-12-13 21:16:49
问题 I've been trying to reference a Library symbol that is introduced in Frame 2 by using it's instance name, using timeline scripting only. I am trying to make a colour picker MC symbol for multiple re-use. Firstly I drew a small button on the stage and converted to MC, called textColourPicker of type CPicker (the class used to represent this MC in the Library). Inside this MC I have a button symbol called pickerButton In the first frame of textColourPicker MC, I placed the code: stop();

CS3 Flash - Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found

泄露秘密 提交于 2019-12-13 21:12:32
问题 The .swf files are in my library and on my hard drive, why is it saying it can't find them? import flash.display.Loader; import flash.events.MouseEvent; import flash.net.URLRequest; var myLoader:Loader=new Loader(); myLoader.x = 0; myLoader.y = 100; btn1.addEventListener(MouseEvent.CLICK, movie1); function movie1(myevent:MouseEvent):void{ var myURL:URLRequest=new URLRequest("Phase1IP.swf"); myLoader.load(myURL); addChild(myLoader); } btn2.addEventListener(MouseEvent.CLICK, movie2); function

Trouble With ActionScript Loader Events

旧城冷巷雨未停 提交于 2019-12-13 20:42:22
问题 I am working with a loader to request an image from a WMS(Web Mapping Service). Everything thing is fine and dandy with a valid request. When a bad request is made to a WMS, a Standard Exception Document(XML) is usually returned. However, the loader doesn't fire any event (specifically the Complete or IOError events) when a bad request is made. Does anyone have any suggestions on how I can trap anything that is not an image that might be returned? override protected function loadMapImage

Dynamically adding movieclip to stage as3

走远了吗. 提交于 2019-12-13 20:23:36
问题 I have buttons on the stage (run1_btn - run5-btn) that when clicked adds a movie clip to the stage.(hand) The movie clip contains a few frames of animation. When a button is clicked the movieclip gets added but the animation is already finished. I thought that when the mc got added to the stage then the animation would start, but this does not seem to be the case. Does anyone know a way around this. Here is my code: var handSlap:hand; handSlap = new hand(); //event listeners newPig.run1_btn

Flex/ActionScript - XML

我是研究僧i 提交于 2019-12-13 20:22:57
问题 I am trying to read the below xml file and get the name-value pairs in Flex / Actionscript. Sample.xml <ABC> <XYZ> // First child <id> </id> <width> 10 </width> <height> 10 </height> <name> Person1 </name> </XYZ> <XYZ> // Second child <id> </id> <width> 20 </width> <height> 20 </height> <name> Person2 </name> </XYZ> </ABC> I am trying to use the following all tag name and value details for both childs using .name() and .text() function of XML But I am not getting it. My question is, Can