Flex :: Create A "pom.xml" File That Allows To Keep Current Infrastructure?
Sep 27, 2009
I have been struggling to get Maven2 to cooperate with me, and was wondering if anyone out there had any ideas on how to get this working.... I am working on a Flash project, and we are considering switching from our hybrid Flex4/FlashCS4 to a pure Flex4 solution. We would like to use the Maven2 build system, so that our developers do not have to manually download, install, and configure Flex4 on their machines.I have managed to create a single-module project using Maven2 with Flex4 (I am using the Sonatype FlexMojos Plugin and their Maven2 repository located at http:[url]....
Basically, each of our modules has its sources located under "src/<modulename>/" and its test sources located under "test/ <modulename>/", with generated SWF files being placed in "bin" and generated SWC files being placed in "lib". Our assets (things that we would like to be able to reference using the "@Embed" or "[Embed]" tags) live under "share". I have looked at the references on project inheritance and aggregation, but can't seem to find anything that would allow us to keep our existing project directory structure. We would like this migration to be as quick, painless, and non-disruptive as possible. how to create a "pom.xml" file that allows us to keep our current infrastructure.
of course i could hardcode that - but if I then change something about the as file, the linenumbers won't be correct anymore, or maybe i rename the as file and so on. It'd be great to be able to create that string somehow using compiler directives. Is this Possible in an AIR application created with ActionScript 3.0?
I've embeded my swf file in .net application and after navigating to some pages in swf file and pressing f5 or refresh, its navigating to starting page of swf file and browsers path always shows the same path (main.aspx page) in which I am embedding the swf file. After navigating to some pages in swf file also it shows the sam path. So its refreshing the aspx page and giving the starting page. How can I control the browser to stay in current page of swf file.
i want to keep track of what frame the current flash movie is on. I've come across "_currentFrame" so i guess that's a step in the right direction. What i need though is a listener which will always give me the current frame.
What i am doing is having director MX 2004 call a frame via a label in flash and then i want to load on image based on what frame number it calls.
so i reason something like...
if ( _currentframe == 4 ) { // display picture in pictArray[3] from xml }
I'm making a first-person adventure game where I have the different frames in the root movie be the various locations that the user can interact with. I want to have fading transitions between the scenes and I was wondering if this was possible in flash. What I've tried for now is to create an array with all the current children then when the frame is changed I add those objects on top of the new frame and use a (alpha) Tween object to fade them out. This doesn't seem like a good idea and feels very hackish, so I had a few questions:
1. Is there an event that is called when a frame is changed (Event.FRAME_CHANGE doesn't exist ) since the way I'm doing it now is to have a local variable which I compare with this.currentFrame.
2. This may sound weird, but is there a way to create a screenshot of the current visible area and use that as one would any other visible object? This would allow me to Tween that one out instead of the array of children that I'm using now. I know it's possible in OpenGL, to render the current view scope to a texture array, but does Flash have this capacity?
PS: This is all done inside a separate class, in case that matters (I am very noobish).
All I want is to take my AS3 source code files and compile them into a SWC file.Upon inspection, the SWC files I generate end up with some kind of timeline or spite in them when I use the Flash IDE or that Flex SDK utility "compc", and it's irritating.
I have a game made by Flash CS5 ActionScript3. I want to create a button in the game where I can save the current timeline of the game. For example, I stopped at frame 5 and save the game. So when I load it, I should instantly return to frame 5.
i have AIR application and I need save some data to PDF file..can i do it some simple?? is different way for save image to pdf or save only text to pdf??
I want to create a file and write some data (userid) into the file at first run of my application, during the second run all the operation (will go to the next state) based on the file data, is it possible? How to create and write data into file?
Is there any example or codes (in Flex) that can I create and save these values as a TXT file (data.txt). These values as a structure should be like below.
I'm having trouble creating an XML file from Air. It always seems to have some extra character in front of the first block in the xml file like this "¥". This application can read back out of the document, but if i open it with a text editor to make a change and save it, it will no longer open in my application. When I create this XML file, the whole reason I want to use an XML is so that I can possibly edit it on another computer, or in a text editor, and send it back.
Right now I'm creating the XML like this: var myXML:XML = <motor> <type>{motor.type}</type> <shopLocation>{motor.shopLocation}</shopLocation> <customer>{motor.customer}</customer> <tech>{motor.tech}</tech> [Code] .......
I would like to call a new swf file to run and remove the current one I'm running.the goal is to go from a main menu swf file to a selected swf file. Then there is a home button on the selected swf file which will take me back to the main menu swf. So I need to be able to get rid of the last swf file and just stay on the called swf file.
Here is the code I have done so far but it doesn't work properly because I don't know how to get rid of the current swf as I'm moving in to the called swf. Could someone please help
samplePresentation_mc.addEventListener(MouseEvent. CLICK, samplePresentation); function samplePresentation(event:MouseEvent):void { var loader:Loader = new Loader();
We can auto-generate flex-confix xml file from flash-builder so to provide users that want to compile project on there own would be capable of doing such thing with out buying FB. So we use something like -dump-config slotConfig.xml as flex compiler argment. This generates a file for us... with lots of detailed comments like this one I generated from that project:
I made a basic text editor that lets users insert predefined strings into the document with button clicks. What I need to do now is let the user define their own buttons and string values. For example I have a button that inserts "Hello" into the text. The user may want to create a button that adds "Goodbye".To accomplish this I figured I would create a .txt file called buttons.txt or something. i would readutfbytee, loop through it to create the buttons. problem is I know what I want to do but not sure where to start
I have the main fla file (Handwashing.fla) and I want to load another swf file (Quiz.swf) at frame 301 of my fla file. They each work seperately, but once I insert the AS I get this error: TypeError: Error #1009: Cannot access a property or method of a null object reference.
I am only in my 2nd class of Flash and this doesn't mean anything to me.
The files can be downloaded from my server, but I am not allowed to post links and the files are too large to upload. [code]...
I'm pretty new to Flash. I have slowly built up an .fla file to its current size of 44MB. It is in AS3 (CS4) and has numerous jpegs imported into it with animated masks over each.I am now experiencing multiple issues that have made it impossible to work on it.
1. A week ago I started occasionally getting "Flash has has unexpectedly quit" error messages, whereupon Flash would crash. This was before I started adding many of the jpegs and the file size was still something like 5MB. Now I receive these messages almost constantly - If I try to open a second file within Flash or when I just work in my main file for a few minutes.
2. A few days I ago I started getting a few random messages saying "error initializing java runtime environment you may need to reinstall flash". This was fixed by simply restarting Flash, but still troublesome.
3. Rarely I would finish working on something and try to test the movie. It would go through the loading bar, but then nothing would happen. The only way to fix this was to go back to a previous file version and rebuild from there. My current file save has this problem.
Now I am stuck because I have to go back quite a ways to find a file that will successfully test. On top of that if I try to import one of my new movieClips into the older file version, Flash of course crashes.
Is the file too big? It doesn't feel like I'm doing that much. I've definately seen flash sites that have way more going on than mine. Could it be all the imported jpegs? Could I be importing them in a bad way? How can I avoid/fix these issues?
I have this menu that I am loading my swf files under a as. file and linked to a xml file. It loads perfectly my swf files when i click on the buttons, but when i keep clicking the buttons, it keeps loading it on top of each other...How can i unload the current swf file when i click on the other button.? under the as file i have the following to load my swf files:
private function customFunc(link):void { var request:URLRequest = new URLRequest(link); var loader:Loader = new Loader() loader.load(request) var swfContainer:MovieClip=new MovieClip ; this.addChild(swfContainer) swfContainer.addChild(loader);; trace(link); }
In stage AA movieClip is there in side AA, BB MovieClip is there. I Load a external Swf file from BB MovieClip . Can i get current lavel from external loaded swf file.
My ant buildfiles tell mxmlc.jar to recompile target mxml source. However, if the target mxml source file has not changed, either ant or mxmlc is ignoring the file and will not create a new swf. This is an annoyance because I'm editing files imported by the target mxml. I need it to rebuild when those files change. I'm guessing that the mxmlc is creating a cache file somewhere and comparing the target mxml (or maybe just a hash). Is this what is happening? What's the standard work-around? At the moment, I'm editing the target mxml just to cause a file change.
I have a simple class file for buttons. on Rollover the movieclip plays frame no 2 and on Rollout it plays frame no 11. This is working fine. Now I want to disable the current button on click/release and enable others. I don't know how to get the other buttons because the this keyword always refer to the current button that is rolled over of clicked.
ActionScript Code: class ButtonClass extends MovieClip { var buttonName:String; public function ButtonClass() { this.onRollOver = over; this.onRollOut = out; [Code] .....
I'm developing an application for the Blackberry Playbook using Flash Burrito 4.5 and Flex. I'd like to create a file browser to allow users to load images from the local system into the application. I followed this example [URL] When I click on the Load Image button in the simulator however, the file browser pops up but tells me that "no file was found with the specified filter", even though I don't specify any filter or even if I specify a . filter.
does anybody maybe know how to track/trace the current position of a sound file while it is playing?So that it is updated every frame or second?I figured something with trace(sound.position) onEnterFrame, but didn't succeed in realizing this yet.
I'm trying to figure out how to get the name of the current file being played using a flash 8 video player (custom). Here's the code im using :
[Code].....
How does flash know which video is currently being played? Basically I want to set it up so that there is a 'activeVideo' varible that updates based on what video is currently being played.
We have noticed a possible bug in the Flash Player within Mac's latest OS version Snow Leopard.
When a Browse for file dialog is initiated, upon returning to the browser. It's as if there is a layer above the flash app which stops interaction with the mouse. MouseOver events no longer take place and a click is require to remove this layer. If you move your mouse at all after the click this invisible layer returns limiting interaction.
We have tested this with 2 macs running snow leopard and the latest Flash Player. And also verified it is not an issue on Mac OSX previous to Snow Leopard.
It seems to effect only FF and Safari. Opera functions correctly.. Here is a video we created documenting the problem: [URL]
We have not had any customers complain about this yet. But if it's infact a bug, it's just a matter of time.
I have a gfx which I have created 6 shapes and converted them into simple buttons. I have urls sat inside an xml file. How can I get the buttons to use the urls set from within the xml file?Also how can I change the current external photo that is being loaded to load the url from a setting in the same xml file.