flashdevelop

FlashDevelop, Haxe import CreateJS?

我们两清 提交于 2019-12-20 02:42:08
问题 I just started trying out Haxe to make a web-app, and I would like to use CreateJS, which has a Haxe extern lib thingy. I'm using FlashDevelop as my IDE. So I created a new Haxe JS project in FlashDevelop, and installed CreateJS with "haxelib install createjs". Thougg now I try to add an import to my Main.hx, but it doesn't work. My import looks like: "import createjs.easeljs.Ticker;" (got that from an example, just copied it but didn't work :s) I also added a new map "lib" to my project, in

FlashDevelop, Haxe import CreateJS?

喜欢而已 提交于 2019-12-20 02:41:34
问题 I just started trying out Haxe to make a web-app, and I would like to use CreateJS, which has a Haxe extern lib thingy. I'm using FlashDevelop as my IDE. So I created a new Haxe JS project in FlashDevelop, and installed CreateJS with "haxelib install createjs". Thougg now I try to add an import to my Main.hx, but it doesn't work. My import looks like: "import createjs.easeljs.Ticker;" (got that from an example, just copied it but didn't work :s) I also added a new map "lib" to my project, in

Embed mp3 in actionscript 3 doesn't work

这一生的挚爱 提交于 2019-12-19 17:39:31
问题 I have a problem with actionscript 3, especially when using the embed tag. I have this code: [Embed(source = "sound.mp3")] private static var soundClip:Class; ... var sound:Sound = (new soundClip()) as Sound; trace(sound.length); When I test the movie, I get the following output : 4501,923 Which is the sound.mp3 length in milliseconds. However, the original sound is 13.000 milliseconds. How can that be possible, can anyone help me please? Thank you. 回答1: The Embed process implies a

how to use Always Compile in flashdevelop

不羁岁月 提交于 2019-12-13 06:05:42
问题 Where is this option? how to set the Main.as as Always Compile? The breakpoints and step by step function not work for me... 回答1: Open the Project panel (look in View menu if it's hidden), select the desired main class, and: FD3 : Right Click > Always Compile FD4 : Right Click > Set Document Class 回答2: In 'project properties' You have tab :'Compiler options' , first put text in 'Link report' option and compile , it will generate XML with compiled classes , than write additional Classes in

Making a flash country map

陌路散爱 提交于 2019-12-13 00:24:38
问题 Hello I want to make a flash map of Europe where when you mouse over or out of each country something will happen, like changing the color of the country. See this image If I roll over Norway and then Sweden, Sweden will not be set to blue because Norway's bounding box is on top of Sweden, so I have to go a bit lower to roll over Sweden where it does not instersect with Norway. Is there a better way to achieve the same functionality? Like using Bitmap pixels. I have a sprite sheet of all

How do I restart flash application with actionscript 3

梦想的初衷 提交于 2019-12-12 05:59:14
问题 yeah, I need to restart my application, my actioscript 3 code or at least remove all the content in stage to upload the beginning. This is not movie, so playing with gotoandplays is not an option. Thanks! 回答1: Best practice would be for each object that carries a strong listener to also listen for the Event.REMOVED_FROM_STAGE event, and destroy all its listeners and handle the properties you wish to save. while(numChildren) removeChildAt(0); Called from the root (or main timeline) will remove

Including External Assets to the APK

寵の児 提交于 2019-12-12 05:18:36
问题 I am using FlashDevelop 4.0.1 RTM to create a simple Android app and I would like to ask how to include external assets (images, xml & sounds located inside the bin folder) to the apk package. Thanks. 回答1: As far as I see, you don't need the external assets to be actually external, they can be embedded , since anyway you want them embedded into the apk. So just embed them into your swf. Instead of loading assets from the bin folder, do this: public class YourClass { // Embed the asset [Embed

How to upload a background image using actionscript 3.0 code?

你。 提交于 2019-12-11 18:26:33
问题 Need your help. I am trying it first time. I have used following code. But i get this in my console: started loading file SecurityError: Error #2000: No active security context. and my image url is in same folder as my script file. var loader:Loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, fileLoaded); loader.load(new URLRequest("C:\Documents and Settings\Owner\Desktop\23Aug\demo1\mic.jpg"), context); var context:LoaderContext = new LoaderContext(); context

HitTest not working correctly when using Graphics.lineTo/curveTo

大城市里の小女人 提交于 2019-12-11 16:46:38
问题 So I have a Movie Clip called hookLine thats added to the stage from my mainEngine class. This empty movieClip is connected to my fisherman Movie Clip and curves to my playerHook Movie Clip. Its added and connected to the stage like so: In My mainEngine function loop: playerHookLine(); Then the Function: private function playerHookLine():void { //Add hook line to fisherman and playerhook hookLine.graphics.clear(); hookLine.graphics.lineStyle(1); hookLine.graphics.moveTo(fisherman.x, fisherman

Can't get my relative paths to work with flashDevelop and flex

落爺英雄遲暮 提交于 2019-12-11 13:45:08
问题 So i am using FlashDevelop and flex but i can't get the source to work correctly. When ever i Embed a image it works just fine but if i just go source="../img/Koala.jpg" same path that i used for the working embed it doesn't work. In flash builder all i would have to do is source="/img/Koala.jpg" and it work work just fine. If i type in the path "D:\flashDevelop\FlexMobileProject\src\img\Koala.jpg" this works fine. Can anyone please explain what i'm missing here? <?xml version="1.0" encoding=