Add A Namespace To ValueObjects Using FlashBuilder?
Jul 1, 2011
When I use FlashBuilder to connect to a remote Java object using BlazeDS, FlashBuilder automatically creates a local valueObject matching the object in the remote server.
However, the package name of the remote object gets lost in translation.
Hence if I have two remote Java objects com.foo.A and com.bar.A, I won't be able to distinguish between them in Flex. So I end up having to name my remote classes com.foo.AFoo, com.bar.ABar.
I have a component library. It has a manifest file that looks like this:
<?xml version="1.0"?> <componentPackage> <component id="AutoComplete" class="be.edge.components.AutoComplete" /> <!-- more components left out for brevity --> </componentPackage>
I compile the library through FlashBuilder with these compiler settings:
When I use the compiled library in other FlashBuilder projects everything works as expected. I get code completion and when I select a suggestion from the code completion a namespace attribute is automatically added to the component, like this:
This has created a service and a package called valueObjects. In this valueObjects package is a class called "House", as I'd expect and I've worked out how to access these and their properties.
What I can't work out is how to work with the class called "Photos". Each house has a property "photos" of type Photos, which I'd expect to be an array but I can't for the life of me work out how to iterate it or see what it stores.
i have 2 questions / problems with loading external SWF's. (Im developing in FlashBuilder btw)first, i load the swf's binary with an URLLoader, and later on i 'duplicate' them using a Loader.loadBytes.This way i can load an swf once, and display it multiple times.Every time i 'duplicate' those SWF's, flashbuilder traces [SWF] <<PATH>> xx.xx.xx bytes after decompression.Usually, this traces the path of the loaded SWF, I.E. background.swf. But now i get the path of my main SWF, called Main.swf (how suprising.is this correct? or what causes it to trace Main.swf instead of the actual loaded SWF?Besides this 'issue', sometimes i get a [Unload SWF] after i do a Loader.loadBytes. then my new copy of the SWF isn't made. I get no errors NOR any events from the loader.loadBytes.
This text traced a value of undefined.I have tried to research this and so far all I have been able to find out, is that this is a XML namespace and is very easily handled in as3. Unfortunately I have to use as2.How do I parse out this information into a dyamic text fields?
i'm trying to use actionscript 3.0 and using trace(), it never outputs content of trace of variable either in flash player or in output area? how to coorect or should i enable something?
It's growing pains time again. Some of our stuff requires FlashBuilder 4 and some still requires FlexBuilder 3. Both are installed OK, and no projects use both IDEs. The trouble is, when I go back to work on a FlexBuilder 3 project it takes freakin' forever to build and I get weird errors like these: This doesn't seem to cause any identifiable problems except to throw up a modal dialog at various points in the build process, forcing user interaction. But I do notice that memory fills up fast in FB3 and generally FB3 starts behaving strangely and ultimately quits once it gets up over 700MB.
This is only a temporary bridge situation until we get all projects into FB4, but "temporary" could mean weeks if not months. Does anyone have any advice for how to get through this bridge period? Is there anything I can do to make these two IDEs work and play well together? Failing that, does anyone know what "java.lang.String" is the "reason" for the problem? Does Eclipse have a resource bundle somewhere that is getting corrupted when i go back and forth between the two?
I am trying to use adobe flash builder 4 with a php service.I had it set up an older macbook running leopard, but just tried to set it up on my new laptop running snow leopard.I did all the same steps.. set the Flex Server to be PHP, set the web root and url.Then I go to Data->Connect To PHP and point it to a php file I have in my web root. It says it needs to install Zend, and claims it does so successfully, but then when I try to continue, I get an error.I don't understand.. this same setup works on my older laptop.
(Yes, I checked the amf.production was false)
Unable to retrieve operations and entities from the file
Make sure that Zend Framework is installed correctly and the parameter "amf.production" is not set to true in the amf_config.ini file located in the project output folder.code]....
I'm trying to wrap my brain around getting data into my project in a way that I can use.. I want to use MySQL & PHP my Flashbuilder app and I'm not populating a datagrid so......
For simplicities sake, In my database table I have 3 columns "ID, Title & Content". I want to use this to populate the different states in my flashbuilder project.
Normally in a web page I could say in the sql statement "SELECT * FROM table WHERE ID = 1" to get the first row of info and I could put my Title and Content where I want them on my page I can change the query to "SELECT * FROM table WHERE ID = 2" to populate page 2 to get it's title and content.
In flashbuilder it all on the same page and I'm not understanding how to populate a singular text field for a title or content area with a single field from the database.
I'm using Flashbuilder for this. I have a button that changes the id of a dataProvider like this:
result.datagrid.dataProvider="lineup_1";
However, i have another button which should also change the id of the dataprovider when clicked on, but to this:
result.datagrid.dataProvider="lineup_2";
However, it only responds to the first button pressed on. After that, the id stays the same, which is logic.but i need to know how i can change the id after a button is pressed too.
I've been successfully building AS3 projects that import FXG graphics using FlashBuilder 4 for web. I'm now upgrading to FlashBuilder4.5 so I can build mobile apps but I'm getting an error when I try and using FXGs.The error is ,The definition of base class SpriteVisualElement was not found. [Generated code (use -keep to save): Path: datagold-interface.as, Line: 6, Column: 27].The line and column number don't seem to relate to anything I can understand..
I'm doing everything by the book (I think), I've reviewed this problem multiple times, but I can't seem to get it fixed. The creationCompleteHandler function is b
now for some reason, the elements are correctly traversed using the default namespace. But the attribute isn't found. After a bit of debugging, I found that I could only retrieve the attribute when using xml.animal.attribute(new QName("", "type")). Why isn't the attribute in the same default namespace as the element?
I am building an application using Action script 3 I am retrieving some XML from the web however the node names are mms:Image mms:Results etc my action script compiler is throwing an error becuase it is not expecting to see the semi colon in the node name. How to I access the nodes?
I'm writing a flash app to help build timed text files. I have all the captions stored in array, and a function that builds the XML object and spits it out. I start out with a template file, then use insertChildAfter() and copy() to create as many <p> tags as I need to, based on the length of my array. If I manually create the following file, it works fine.
I have this error and cant figure out how to fix it. For me it means that the namesace is defined twice somewhere on the timeline, but i checked everything, and its defined once.I have a drop down menu. If i click on first entry from the drop down menu,it will take me somewhere, load sth,then i go back, and click on the other entry where the error ocures, then its fine, table is loading, no error. But if i load the swf, and click stright away on the entry where this error occurs, then i get the error. What does it mean?
what is the best workaround for this particular error? I was able to easily resolve a similar error with the "backgroundColor" attribute by changing it to "contentBackgroundColor", and was hoping there was a simple workaround for backgroundDisabledColor as well. I realize I can apply a css style, but I'd rather have a simpler solution as there are many many other attribute errors similar to this one.
Below is a very simple example, randomly, if I click the step2 button the state will change but the Step 2 panel will not be there.
I suspect the children of the state are not getting created for some reason, which is why I set the itemCreationPolicy to "immediate", but it makes no difference This is catastrophic for the application because the user is left in limbo and is forced to refresh
I'm migrating a FlashBuilder project (actually a project I'm working on with FlexBuilder eclipse plugin on Linux) to use FDT. I managed to import the project, and make it aware of other projects it depends on.
However I get lots of compile errors for things that seem harmless (and used to compile). At least, for example :
So, I get "unresolved function" for all the calls of the form someAttribute="{this.someFunction()}", even though the function is described in the same block file. Is it that I've been abusing AS3 / FlashBuilder for all this time ?
Also, generic components have problem. Assume I have a class with a deferred 'content' attribute, and I want to instanciate this class and "fill the blank" : I define a custom component in a CustomComponent.mxml file, with a deferred content
<mx:VBox> <mx:Script> <![CDATA[ public var content : IDeferredInstance;
[code]....
I'm using FDT 4.0, under Linux, with a (valid) eval key I'm using a custom Flex 3.5 SDK (not one shipped with FDT, but not a too strange one either)
I'm trying to implement CSVLib in an Air application and am getting an error that seems wholly illogical to me. "1120: Access of undefined property csv." and "1120: Access of undefined property completeHandler."
The only thing I can think is it's not importing the csv class properly, or the class itself is broken somehow? I know my import path is correct because I typed it out directly based on automatic hinting. The code below is copied directly from the how-to wiki on the csv lib site.
I am going through the flex in a week training and I'm trying to use the Spark form in Flashbuilder 4, but it does not appear in the components windows. When I drag a form from there it is an mx form control. The project is set to use the 4.5 sdk and I can even create the tag in the code view, but when I do that is doesn't show up in the designer... How can I get the spark form control to either show up in the designer when created in the code view, or get the control to show up in the components window so I can drag it in?
i have a question and i'm hoping to find an answer here, i created a flashbuilder project that contains some classes with functions that i use often, i have around 6 classes, would it be possible to compile these classes to a swc file so i just have to add the swc in a new project to access them?
Or isnt it possible to create swc's with flashbuilder? Maybe i could do it in flash but dont have any idea how to compile multiple classes into 1 swc. file.
Sorry if this is a stupid question but ive never used it before and couldnt find much about is.
When I exit from the debugger and relaunch I often get the message:
Error: Error #2002: Operation attempted on invalid socket. at flash.net::ServerSocket/internalBind() t flash.net::ServerSocket/bind()
I usually have to wait a while before I can relaunch the application without the error.
private function openConnection():void { _serverSocket = new ServerSocket(); _serverSocket.addEventListener(ServerSocketConnectEvent.CONNECT, onConnect)
I need to find a way to "upsample" text from 72dpi (screen) to 300dpi (print) for rendered client generated text. This is a true WYSIWYG application and we're expecting a ton of traffic so client side rendering is a requirement. Our application has several fonts, font sizes, colors, alignments the user can modify in a textarea. The question is how to convert 72dpi to 300dpi. We have the editior complete, we just need to make 300dpi versions of the textarea.
1) Get textarea and increase the height, width, and font size by 300/72. (if ints are needed on font size I may need to increase the font then down-sample to the height/width)
2) use BitmapUtil.getSnapshot on the textarea to get a rendered version of the text.[code]
I have to animate a hand(upto wrist) for keyboard playing. It has to be done in runtime of the project. For making it more clear, I have saved all the informations in a file about the animation(time, position of fingers etc). How can I animate the fingers(wrist included)? I also need to know how to use a 2D hand with bones in flex.
I develop a project in FlashBuilder. The graphics and UI elements i create in the Flash IDE and give them Export Classnames. then I put the SWC in the library paths of the FlashBuilder project and create the UI elements by instanciation. Now I want to add a Preloader for the application. I follow this article, which works: [URL] My question is now: I also need some graphics for the preloader. But how do I ensure that the graphics for the preloader will be loaded first, such that the preloader class can start as soon as possible?