actionscript-3

How to insert data from dynamic array to sqlite db getting from WebService Using Loop in action script 3.0 and flex

萝らか妹 提交于 2019-12-31 06:03:49
问题 How can I insert dynamic Array to data base using Loop at the success of the Webservice call first my Webservice which i have Bind to DataGrid <fx:Declarations> <mx:WebService id="ws" wsdl="http://localhost:2690/vtrServices.asmx?wsdl"> </mx:WebService> <vtrservices:VtrServices id="vtrServices" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true" result="vtrServices_resultHandler(event)" /> <s:CallResponder id="SignIn1Result2"/> <s:CallResponder id

Error 2000 in flash

天大地大妈咪最大 提交于 2019-12-31 05:38:06
问题 Sometimes(I can't give exact classification of the situation) Error #2000 is thrown by flash player. I suppose it's caused by working with external swf(sqiglly spell checking library) via local connection. Have you any idea how can I fix the bug? thank you in advance! 回答1: Without the actual code, one has about 3 or 4 different reasons for Error #2000. Most of the times it is because the security policy was not set properly or was not received in time. If it is not the external swf it could

Flash Socket Cross Domain Security Issue

▼魔方 西西 提交于 2019-12-31 05:27:05
问题 I made my flash FTP transfer using socket , but when putting it in HTML file i am getting cross domain error, i have tried with various possibilities but failed. Please help me if anybody know how to how to do socket policy in flash as3. My file is placed at root of my ipaddress and I have tried with following options 1) Security.loadPolicyFile('xmlsocket://ipaddress:80/crossdomain.xml') ; with 80 port 2) Security.loadPolicyFile('xmlsocket://ipaddress/crossdomain.xml'); without mentioning any

Get list of Class names in package

强颜欢笑 提交于 2019-12-31 05:23:11
问题 Is there any way I can get a list of all the classes in a particular package? I know getDefinitionByName, getQualifiedClassName, and getQualifiedSuperclassName in flash.utils can find me a class, but I can't find anyway to find all the classes in a package at runtime. 回答1: No, ActionScript reflection is limited to the three functions you mentioned and flash.utils.describeType(object:*) . 来源: https://stackoverflow.com/questions/2878127/get-list-of-class-names-in-package

Flash AS3 - Drag and drop multiple objects to multiple targets

﹥>﹥吖頭↗ 提交于 2019-12-31 05:15:29
问题 I have multiple objects to drag to multiple targets. I have a code without error. I am using multiple functions. But I wonder if I pass the objects and the specific target with one function like dropIt since I have more objects and duplicated functions. This picture is what I want to implement. and the code is as follows. Thanks in advance. var obj1:Array = [obj_1, obj_10]; var obj2:Array = [obj_2, obj_20]; for each(var redsMC:MovieClip in reds) { obj1MC.buttonMode = true; obj1MC

Flash CS5 reference a display object in the constructor of a non-document class

纵然是瞬间 提交于 2019-12-31 04:29:04
问题 After learning of this excellent method of accessing an object placed on the stage in Flash CS5 in a class other than the document class (found in this thread), I have run into a stumbling point. I am using this.stage.getChildAt(0).greenLight1.visible=false; to turn a symbol with the instance name greenLight1 invisible when accessing greenLight1 (the instance name specified in my .fla for the bitmap). This works perfectly where I was using it which is in a sub function of a few different

Adobe record sound and save

心不动则不痛 提交于 2019-12-31 04:23:31
问题 In the following code i am trying to save the microphone contents to a file.The saved file doesn't play and Every time the file is saved i see that the size is only of 10 bytes only.What am i doing wrong in the code.Can someone please show me the correct code to save it .And the saved file should play the recorded contents accordingly. <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library:/

How to close all popup windows in Flex?

杀马特。学长 韩版系。学妹 提交于 2019-12-31 04:20:32
问题 I want to show all popup windows(already popped up and closed individually) on an image by pressing a button press and want to close all those windows on another button press. Any help is appreciated. 回答1: Try this: package com.devahead.utils { import flash.display.DisplayObject; import mx.collections.ArrayCollection; import mx.core.Application; //import mx.core.FlexGlobals; // NOTE: use this import for Flex 4.x and higher import mx.core.IChildList; import mx.core.UIComponent; import mx

How do you define custom behaviours for the Android phone's volume buttons using Adobe AIR (ActionScript 3)?

╄→尐↘猪︶ㄣ 提交于 2019-12-31 04:12:12
问题 For buttons like the MENU or BACK button you can just add a listener for KeyboardEvent and check if the event keyCode is Keyboard.BACK or Keyboard.MENU. However I don't see anything for knowing if the phone's volume buttons were pressed. Is there a way to listen for volume up and volume down keyUp/keyDown events in AIR (ActionScript 3)? 回答1: Nope. There isn't any support for detecting the volume buttons. (In AIR 3, you can write a native extension to access native features that aren't

ReferenceError: Error #1056 - instance name Error

眉间皱痕 提交于 2019-12-31 04:06:22
问题 I got a Problem with a Movie Clip I add to the Stage in Flash CS4/AS3. The Flash File consist of two MovieClips, "Inside" and "Outside". The "Inside" Clip is contained by the Outside and has the Instance Name "insideClip" . The Clips are attached to Actionscript Class-Files of the same names (Outside and Inside) which are "empty" - they don't do anything, like the ones flash automatically creates. Adding "Outside" to stage I get the following Error: ReferenceError: Error #1056: property