actionscript

MOUSE_OUT events not firing on child when parent is mouseEnabled=false, mouseChildren=false

假如想象 提交于 2020-01-06 11:18:12
问题 I make a sprite, then add a child sprite. I add a listener to the child for MOUSE_OUT events. If my mouse is in the child sprite when I set the parent sprite mouseEnabled=false and mouseChildren=false, MOUSE_OUT is not fired on the child. But then, when I move the mouse, MOUSE_OUT is fired on the child. MOUSE_OUT is also fired if I click. MOUSE_OUT is not fired if I mousewheel. So, what's going on here? This is a related question. After studying back2dos' code, I discovered what I am doing

AS4 Flash Importing Custom Classes

China☆狼群 提交于 2020-01-06 06:36:19
问题 I am trying to import classes to no avail. test.fla timeline 1: var main:Main = new Main(); main.as package{ import flash.display.MovieClip; public class Main extends MovieClip{ public function Main() { var _myClass:myClass;//this line will fail trace("Main"); } } } myClassFile.as package{ public class myClass { public function myClass() { trace("myClass"); } } } Error: 1046: Type was not found or was not a compile-time constant: myClass. //lets try this . . . main.as package{ import flash

how does flash handle garbage collection when it comes to adding movieclips directly to another

家住魔仙堡 提交于 2020-01-06 04:46:09
问题 Just curious, If i nest a movieclip inside of another movieclip, and the nested movieclip is attached to a custom class. And that custom class has a Event.ENTER_FRAME listener. when I destroy the container movieclip, will flash get rid of the event listeners inside of nested movieclip's custom class ? May seem like a silly question but flash has a tendency of not killing listeners along with the movieclip itself once it is removed from the stage(this is if your apply the movieclip via

imported .swc movie clip not being displayed - Flash Builder

橙三吉。 提交于 2020-01-06 04:18:52
问题 I am trying to take an animation I made in flash professional, and use it inside of the Flash Builder IDE. I have tried importing an image to the stage in flash, converting it to a movie clip and exporting it as a .swc. After adding the swc to a Flash builder project, I was able to create a class specified by the swc file, and by adding the object to the display tree I could see the image when I ran my project. So I tried the next step which was to animate the image. I imported an image to

How to render IP camera video with socket by actionscript?

别来无恙 提交于 2020-01-06 03:35:10
问题 So far the solution I found requires a crossdomain.xml to work,but this is not available on an IP camera: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" applicationComplete="init()"> <mx:Script> <![CDATA[ import utils.video.mjpeg.MJPEG; public function init():void{ Security.loadPolicyFile("xmlsocket:http://10.8.0.54/crossdomain.xml"); trace("xmlsocket:http://10.8.0.54/crossdomain.xml") var vid:MJPEG = new MJPEG("10.8.0.54", "

write, update and save a well-formed xml file in as3

早过忘川 提交于 2020-01-06 02:44:13
问题 I am trying to update an xml file and save elements inside of an already saved root element. I have only found examples where the xml files are just opened and not saved. Can someone help me to find the best way to save the results? My project right now looks like this: I am loading an xml file via URLLoader/URLRequest and display the contents in several text fields. New text from an input field is saved (appended) via FileStream directly to the xml file in the applicationStorageDirectory

Accessing Strings From Zend AMF Objects

☆樱花仙子☆ 提交于 2020-01-06 02:13:59
问题 I'm using Flex 3.6 and ZEND AMF version 1.11 I have an array that shows in my trace using trace(ObjectUtil.toString(event.result)); It outputs as follows: ---This is a Test!--- //The Object Contains... (Object)#0 code = "112" path = "whateverthispathis" Path is: -----End of Test----- In REST we used event.result.data.path to get the path variable. How do I get the path variable via Zend AMF without using XML and out of the PHP array I made posted below? This is the PHP code I'm using to send

AIR Application written using Singletons needs to spawn multiple instances of app

自作多情 提交于 2020-01-05 12:13:20
问题 I have an AIR application that uses Singletons to manage global state throughout the application. Works great for what it does (manages a network appliance). But now the client wants to spawn multiple application instances from the first instance so they can manage multiple hardware devices at the same time ... kind of like a dashboard but lots bigger. As you can guess, I coded myself into a corner with the singletons so if I refactor the application to have a bootstrap class that launches

AIR Application written using Singletons needs to spawn multiple instances of app

青春壹個敷衍的年華 提交于 2020-01-05 12:13:13
问题 I have an AIR application that uses Singletons to manage global state throughout the application. Works great for what it does (manages a network appliance). But now the client wants to spawn multiple application instances from the first instance so they can manage multiple hardware devices at the same time ... kind of like a dashboard but lots bigger. As you can guess, I coded myself into a corner with the singletons so if I refactor the application to have a bootstrap class that launches

How to play youtube videos on IOS using Actionscript 3

瘦欲@ 提交于 2020-01-05 10:16:09
问题 I am trying to fetch youtube playlist and play videos on IOS. My app works fine on Android and Flex simulators but does not work on IOS. Looks like there is a limitation on loading swfs in IOS here. I am using as3-youtube-data-api for the purpose. Can anyone guide me on how can I embed or play youtube videos using as3 (Flash Builder 4.5) on IOS or is there any other way available? Note: There is "Cisco Technical Support" app in app store, which plays youtube videos embedded in the app. Update