flash-cc

Flash AS3, import old version of class

风格不统一 提交于 2020-01-25 20:28:04
问题 I am writing an .as file with a class in it, and using import to make it available in my .fla's code. At first it worked fine. An in some of my .fla files, it still works fine. But, one of my files is using an old version of the class, and ignoring any changes I make. I've tried commenting out the import of the class, to see if I'd get a compiler error, but it doesn't give me an error. It still instantiates the old version of the class. I've tried Clear Publish Cache , but it again still uses

ActionScript3: removeEventListener with function parameter

纵饮孤独 提交于 2020-01-06 20:24:38
问题 how can i remove EventListener from MovieClip in actionscript? Below is my sample code. import flash.events.MouseEvent; import flash.geom.ColorTransform; var color: ColorTransform = new ColorTransform(); color.color = 0x00CC66; colorChange_mc.buttonMode = true; colorChange_mc.addEventListener(MouseEvent.MOUSE_OVER, changeColor(color)); colorChange_mc.addEventListener(MouseEvent.MOUSE_OUT, changeColorToNormal); function changeColor(color: ColorTransform): Function { return function (e:

Using Adobe Animate CC in HTML5 canvas mode with external JavaScript files

对着背影说爱祢 提交于 2020-01-01 19:04:57
问题 I'm transitioning a large FLA AS3 project into Canvas/JS. I have a large external folder structure of AS files and many library objects associated with classes. I've converted FLA into a canvas mode but I can't find a way to associate JS files to the objects. I've seen online examples about including JS in frame scripts but I really hope to find a way to do it with external files and library objects association. I'd appreciate any direction or example of how it can be done. Thank you 回答1:

Using Adobe Animate CC in HTML5 canvas mode with external JavaScript files

…衆ロ難τιáo~ 提交于 2020-01-01 19:04:17
问题 I'm transitioning a large FLA AS3 project into Canvas/JS. I have a large external folder structure of AS files and many library objects associated with classes. I've converted FLA into a canvas mode but I can't find a way to associate JS files to the objects. I've seen online examples about including JS in frame scripts but I really hope to find a way to do it with external files and library objects association. I'd appreciate any direction or example of how it can be done. Thank you 回答1:

Flash Pro Hyperlink button error

夙愿已清 提交于 2019-12-12 04:52:57
问题 I have created a button using flash Pro cc I've been doing research but was unable to find why a TypeError stating TypeError: Error #1009: Cannot access a property or method of a null object reference.at PD3Subscribenow_fla::MainTimeline/frame1() I have placed my code on a action layer on frame 1: import flash.events.MouseEvent; sub_btn.addEventListener(MouseEvent.CLICK, myButtonFunction); function myButtonFunction(event: MouseEvent) { var request:URLRequest = new URLRequest("http//:www

Can't interact with tiles in an interactive jigsaw puzzle (Flash CC AS3)

你。 提交于 2019-12-12 04:06:54
问题 I am am doing this for a interactive assignment for a media arts class and I have no idea how to code in action script 3. I took the orignal code from a tutorial and it didn't work so I came here and attempted to learn how to modify it. AS3 Code //********************* // Initialize: flash.events.MouseEvent var numPieces = 16; for (var i = 0; i < numPieces; i++) { var pieceName = "p" + (i + 1); var piece = this[pieceName]; if( piece ){ piece.name = pieceName; piece.addEventListener(MouseEvent

How can I create multiple types & params for custom events?

ε祈祈猫儿з 提交于 2019-12-12 02:42:57
问题 I have a custom event class and want to insert multiple parameters (like the native events: MOUSE_UP, CLICK, ROLL_OVER). Here's my code so far: package { import flash.events.Event; public class MenuGeneratorEvent extends Event { public static const PASS_PARAMS:String = "passParams"; public var param1:String = new String(); public function MenuGeneratorEvent(type:String, str:*, bubbles:Boolean = false, cancelable:Boolean = false):void { this.param1 = str; super(type, bubbles, cancelable); }

Flash CC HTML5 ought to be simple gotoAndPlay

∥☆過路亽.° 提交于 2019-12-11 22:49:19
问题 I'm creating an Javascript/HTML5-game in Flash CC. I have an Info-screen with a button. This Infoscreen is a movieclip from the library with a linkname "CloseBtn". The following script is on frame 8 in this movieclip: <code> this.stop(); var closeBtn=new lib.CloseBtn(); closeBtn.x=130; closeBtn.y=150; closeBtn.stop(); this.addChild(closeBtn); closeBtn.addEventListener("click", function (event) { this.gotoAndPlay(9); }); </code> As you probably have guessed this should gotoAndPlay frame 9 in

How do I get my movieclip character to move?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 11:27:54
问题 I've been trying for a few hours now and I cant get my little character to move with the keyboard. I have ran a trace to make see if anything was happening and the position value does change but my character doesn't react to that position change. I receive no errors. Both my Character and BrickBlock are movieclips and they have been imported for ActionScript. If any other information is needed please let me know. Thank you! :) My following code: package { import flash.events.Event import

I get a “Nan” error on score counter to when player has choose level from menu

五迷三道 提交于 2019-12-11 08:17:22
问题 I made a score counter and if has player start level 1 and if has win,counter is keep working to next level.( Level = frame ) it's not exist any issue so far. But when player has choice to level from menu and start level 2,counter is not work.Level 2 start from to frame 116.I get a " NaN " error. I write a code like this scrore frame 1 var Scorecounter:Number = 0; And Score_t1 it's a dynamic text.Use counter code on frame one function checkButtonsone():void { if(fisoneclicked21 &&