flash

Differences between adobe actionscript 3 softwares and which should be used to create youtube style annotations?

五迷三道 提交于 2020-01-07 07:45:09
问题 I'm working on a guitar tutorial website where users can select parts of a song, then write an explanation of how to do that guitar technique. The explanation will pop up, like a youtube style annotation whenever someone plays that song. It's like the youtube video annotations, except exclusive to guitar lessons: When someone plays a song, the annotations get displayed in real time. -There will be 3 sql databases: user information (ex. email, password, etc...), song meta information (ex. song

Class property looses scope AND can't be set after setTimeout

爷,独闯天下 提交于 2020-01-07 06:57:13
问题 Here's a very simplified version of my project. I have a class file: class MyClass{ public var myNumberStoredInClass:Number; // constructor function MyClass(myNumber:Number){ this.myNumberStoredInClass = myNumber; }; // some method function DoStuffMethod(){ trace(this.myNumberStoredInClass); }; }; // end class I have a normal .as file from which I can access this.myNumberStoredInClass with no problems with MyClass.myNumberStoredInClass until I call setTimeout for a method in the class:

Get dominant or average color in getPixels ByteArray

久未见 提交于 2020-01-07 06:43:51
问题 So, I've got this code: import flash.display.BitmapData; import flash.display.Bitmap; import flash.geom.Rectangle; import flash.utils.ByteArray; var bmd:BitmapData = new BitmapData(10, 10, true); var seed:int = int(Math.random() * int.MAX_VALUE); bmd.noise(seed); var bounds:Rectangle = new Rectangle(0, 0, bmd.width, bmd.height); var pixels:ByteArray = bmd.getPixels(bounds); Is there a way to get, efficiently and quickly, the dominant color and/or the average color in pixels ByteArray. noise

How set for collision with other balls while ball is growing?

守給你的承諾、 提交于 2020-01-07 06:32:29
问题 I'm trying to stop grooving of ball and drop to bottom of the stage when it's hit to the other balls.But I can't. I tried set distance but it's not worked. I add a picture of the game And my code Enemy balls(green) touch each other fine.But not touch circle make by the mouse.Balls touch to black balls but not seeing touched massage.The touch message appear only when touch the mouse arrow. import flash.display.MovieClip; import flash.display.Stage; import flash.events.Event; import flash

Embedding Google Maps in Flash

僤鯓⒐⒋嵵緔 提交于 2020-01-07 06:28:09
问题 I am working on a flash project that requires me to use google maps. I read an article that says "Google Maps API for Flash has been officially deprecated as of September 2, 2011". My question is, is it possible to embed google maps javascript version in a flash project? My other question is, does anyone know of any mapping tools i could use for flash that provide the same quality as google maps and are still being supported? Thank you. 回答1: I had the same need and also could not find a good

Rotating the nearest rectangles

≯℡__Kan透↙ 提交于 2020-01-07 05:58:08
问题 The main code(init): package { import flash.display.Sprite; import flash.display.Bitmap; import flash.display.BitmapData; import flash.geom.Rectangle; import flash.geom.Point; import flash.events.Event; import flash.utils.Timer; import flash.events.TimerEvent; public class Init extends Sprite { var parts:Array, images:Array, w:Number = 20, h:Number = 80, numParts:int = stage.stageWidth / w, i:int, imgCount:int = 0, timer:Timer, rc:Number = 0, vr:Number = 10; public function Init() { init(); }

ExternalInterface.call using actionscript “eval” only works in firefox not chrome

删除回忆录丶 提交于 2020-01-07 05:42:09
问题 Chrome doesn't want to let me access javascript from swf file directly in the URL bar (I know that isn't best practice, but that's what I am trying to accomplish): Given: /file.swf?cmd=alert(); With the following code (snippet): flash.external.ExternalInterface.call("eval", cmd); This only works in Firefox and not in Chrome. I am taking this approach because in chrome the actionscript 2 way to run JS was to use getURL("Javascript:...., however this doesn't work in Chrome either anymore. Is

flash-as3 code execution order: accessing a flash pro instance after gotoAndStop()

大憨熊 提交于 2020-01-07 05:01:08
问题 this is a follow up question to this question i have never actually got the flash-actionscript code execution order. in flash pro i have an instance of a moveiclip on stage in frame one named tree1 and on frame 3 i have on the stage tree3 . in the document class i have this code: stop(); var scaleFactor:Number = tree1.scaleX; gotoAndStop(3); tree3.scaleX = scaleFactor; while this works when testing on the desktop, this app will go mobile at the end is this the correct way to go or should i

I need a flash effect like this http://www.contempo.org.mo/Online%20magazine/ISSUE21/index.htm

徘徊边缘 提交于 2020-01-07 04:47:13
问题 Please refer to http://www.contempo.org.mo/Online%20magazine/ISSUE21/index.htm Is there any open source or other tools can accomplish this ? If I need to develop it by our own, what technology can we use? please give me more details. 回答1: Here is an open source version: http://pageflip.hu/ Here are two more pay-for versions: http://page-flip.com/ http://www.flashpageflip.com/ The code behind the page-flipping technique is all very similar. You ca read about how it is accomplished in the book

Disable right click in flash with AS or from browser

旧街凉风 提交于 2020-01-07 04:20:29
问题 My question is simple. I want to disable mouse right click on my FLASH GAMES website, so that players cannot leave my website when right clicking a game and clicking on "ABOUT FLASH PLAYER". My games are developed using AS3 and FLEX/FLASH . I am interested in any kind of solutions, so that every player that plays my games cannot right click the game and see the "ABOUT FLASH PLAYER" or at least to prevent him leaving the website when clicking "ABOUT FLASH PLAYER". I tried to disable rightclick