actionscript-3

Help me to find out the object path in flash

半城伤御伤魂 提交于 2019-12-13 09:14:24
问题 Help me to get the target path of an object.So that i can give properties/methods to that object.Actually i need the target path when an event occurs.like on click/keyup/enterframe ..and so on. var curinstance:Object = ev.target.valueOf(); In the above code i get the instance name of the particular object i cant give properties and methods to it. 回答1: ev.target.name gives you the path of the object. Rob 来源: https://stackoverflow.com/questions/4680323/help-me-to-find-out-the-object-path-in

Convert AS3 to FLA for generating SWF

本小妞迷上赌 提交于 2019-12-13 09:13:31
问题 I Need to manipulate the compiled SWF and recompile it back to SWF and deploy. I have tried 3 options but no luck on all the options : 1) Converting swf to fla to AS3, I was able to edit the AS3 file, then I am not able to move forward to create the new FLA & new SWF file. 2) Converting swf to flex project and importing to flex builder, then while publishing it says that I did not main MXML file to get new SWF. 3) Currently I had tried converting AS3 to FLA, but no luck. If you have any known

as3 Main-Timline calling a function from a class loaded from Child.swf

给你一囗甜甜゛ 提交于 2019-12-13 09:10:01
问题 UPDATE: OK I am about ready to give up on Pacakages and classes. No answers coming. Not sure what to do. I tried to make the question easier and made a new post but I was down voted for it. as3 calling a function in another class I am TOTALLY NEW to using PACKAGES and CLASSES. I am finally converting over from the timeline after having so many issues. Please be patient with my lack of knowledge. I need to know how to call a function in the child swf file I loaded from code in the maintime in

Why is Date().dateUTC's first index 1 and Date().monthUTC's first index 0?

天大地大妈咪最大 提交于 2019-12-13 08:57:32
问题 In Actionscript 3, dateUTC and monthUTC have different index ranges. using the date of October 12th, 2015, UTC date variables in Date var day:int = new Date().dateUTC //trace = 12 var month:int = new Date().monthUTC //trace = 9 The range for dateUTC is 1-31. The range of monthUTC is 0-11 why does dateUTC start at 1 and monthUTC start at 0? 回答1: There's a logic behind it as well, days are truly numbers while months are not. Calendars refer to days with number and refers to month as string. You

TypeError: Error #1009: Cannot access a property or method of a null object reference

ぐ巨炮叔叔 提交于 2019-12-13 08:48:27
问题 I get this error when i launch the application(flash type with dismiss all and continue) and i'm out of ideas: TypeError: Error #1009: Cannot access a property or method of a null object reference. at Magazin/xmlService_resultHandler()[D:\Documents and Settings\chechu\Adobe Flash Builder 4\Magazin\src\Magazin.mxml:41] at Magazin/__xmlService_result()[D:\Documents and Settings\chechu\Adobe Flash Builder 4\Magazin\src\Magazin.mxml:64] at flash.events::EventDispatcher/dispatchEventFunction() at

Infinite Loops (Action Script 3)

淺唱寂寞╮ 提交于 2019-12-13 08:39:45
问题 I'm new to Flash Actionscript because my programming class uses it. I normally use C++ (or a variant of it) and have dabbled in Java, so Actionscript was mostly familiar to me. However, whenever I use a while loop, AS3 crashes after 15 seconds. I need to use a while loop otherwise the scope of the entire code will end and the game will stop running on code I presume. In my normal programming language, while (true) will hang the game unless I have Waitframe(); somewhere in the code to let it

Migrating from AS2 to AS3

北慕城南 提交于 2019-12-13 08:34:44
问题 I would like to know from someone who have already done that, any recommendations and things I have to take a special look, I have seen some articles related to the topic, googled it, etc... but I would like the advice from stackoverflower x) I already know object oriented programming in c++, using classes and etc, but I can't quite understand AS3 packages and stuff, but i'm very familiarized with AS2. Thanks 回答1: Drop everything you know, start fresh. AS2 is different than AS3. Don't try to

how to use droptarget in AS3?

筅森魡賤 提交于 2019-12-13 08:26:06
问题 I need to convert this AS2 code to AS3. on (release) { stopDrag(); this.MOR1.zzz.gotoAndStop(1); if (this._droptarget == "/lcd5") { this.MOR1.zzz.shekl.gotoAndStop(1); _root.nor.gotoAndStop(3); } else { this.MOR1.zzz.shekl.gotoAndStop(4); _root.nor.gotoAndStop(2); } if (this._droptarget == "/lcd1") { setProperty(this, _x, -731.7); setProperty(this, _y, 626.4); } } Please help me. Thank you... 回答1: First off, you're going to need to start using event listeners. Now to the main issue.

parent-child depth will change in actionscript

烈酒焚心 提交于 2019-12-13 08:17:31
问题 Please have a look at this project, in this project I have two symbol, one of them create and add another symbol as child. Child symbol is drawn over parent as I expected. Parent symbol has two frames. When parent goes to second frame, child symbol drawn under parent. I mean depth order will change. Can somebody help me!!?? Sorry for poor language. Download link: https://drive.google.com/file/d/0B-KCX3wxRH-cOUk5YU1OUzNFN3M/view?usp=sharing 回答1: Yellow shape from the frame 1 move to the new

AS3 - Countdown Timer Bar - HowTo / Tutorial?

一个人想着一个人 提交于 2019-12-13 08:06:06
问题 I'm looking to create a 60 second countdown timer bar. I've already got a text timer that counts back from 60, but I'd also like to have a visual green bar that reduces as time ticks down. I'm including two graphics to show what I'm trying to create. Can anyone point me in the right direction? Whether it's some raw code to work with or an online tutorial, it would be tremendously helpful, as I'm a bit stuck on this part of my project. Thank you kindly! 回答1: Since this is related to a previous