Does Flash Builder embed files in an application, such as a flash IDE?

I will try to make it so simple: If I create an AIR application from the Flash IDE, I can select the built-in folder in my package. Then I can upload files using 'app: /' + filename. Everything is fine. I need to switch to Flash Builder because I cannot test workers in the IDE (thanks to Adobe). My problem is that if I test / debug from Flash Builder, it causes a stream error when calling 'app: /' + filename. If I run the test in the IDE from FB, it works, but Workers do not. I have to mention, the reason I use this method is because I have so many graphical assets, it’s just easier to maintain / update this method instead of using [Embed ..] for all my elements, and it just works in the environment IDE ...

I added my folder to my sources in Flash Builder, but it seems like I can't use the app: app application.

How can I do this work, so I do not change my code and still use "app: /"? FB is such a confusing program ...

edit: I tested again the workers in the IDE assembly launched by the FB (test in the Flash IDE icon), I can track its status with

worker.start();
worker.addEventListener(Event.WORKER_STATE, this._handleWorkerState);

private function _handleWorkerState(__e:Event):void{
        trace(__e.currentTarget.state);
}

"new" trace "then" running. But for some reason, it does not send or receive any data from any message channel, which, again, works in FB4.7 when debugging starts, but does not find my files ....

Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: app:/foldername..

So, basically, I'm looking for a solution to at least one of my problems :)

: . ( ). IDE. , "app:/" FB4.7. , .

+4
2

, Flash IDE, . Flash actionscript. SWC. swc, zip , flashbuilder , :

var mc:MovieClip = new imageExportedForAS3_1()
+1

flex, , , , , , , , , rute.

<mx:Image source="@Embed(source='../images/pic.png')"

:/! !

+1

Source: https://habr.com/ru/post/1538601/


All Articles