Flex :: Make FlashBuilder Use A Custom Namespace Prefix

Jun 23, 2011

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:

<s:Skin xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:ns="library://ns.edge.be" >

[Code].....

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Filter XMLList To Nodes/attributes That Have A Certain Namespace Prefix

Jun 22, 2009

I have an xml document that has namespace qualified elements. What I want to do is search the xmlList to see how many namespace qualifier elements and/or attributes there are. So for example

<ns1:root xmlns:ns1="httpL//ns1.com" xmlns:xsi="http://xsi.com" xmlns:notused="http://notused.com">
<child1 xsi:attr1="a">some text</child1>

[Code]....

View 1 Replies

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.

View 2 Replies

Css :: Flex 4.5 - Use GetStyleDeclaration On A Style In A Custom CSS Namespace?

Jan 11, 2012

There's some custom namespaces in my Flex project, as well as the usual namespaces like "mx" and "s". I'd like to use getStyleDeclaration on a style that's in a custom namespace, and I can't seem to figure out the proper syntax.My stylesheet looks partially like this:

.WidgetTitle
{
fontWeight: bold;
}

[code]....

If I try the same thing with a custom namespace, it outputs null:

trace(styleManager.getStyleDeclaration("myNamespace|ScaleBar")); // output: null

I've tried all the combinations I can think of: "myNamespace|ScaleBar", "myNamespace.ScaleBar", "myNamespace ScaleBar" etc and I can't find any documentation on how to do this.

View 1 Replies

Flex :: Prefix For Element Not Bound?

May 23, 2010

I am a newbie in Flex development and using Flash Builder 4 with SDK 4. Now I get the error that "the prefix "fx" for element "fx:Style" is not bound" in line number 4.I searched for it, and it has sth. to do with namespaces, but I can not solve it by myelf.I have the file called "UserStory.mxml" in the directory "components" to place it via the main.mxml onto the screen:

<fx:Script>
<![CDATA[
import components.UserStory;

[code]...

View 1 Replies

Actionscript 3 :: Properties With $ Prefix In Flex?

Oct 14, 2010

What is the significance of the $ prefix on some properties of Flex Objects?

e.g. item.$width

View 3 Replies

IDE :: Error 1152: "Conflict Exists With Inherited Definition In Public Namespace For Image_Holder" With Custom Components

Apr 6, 2010

Seasoned AS3 developer, but not very experienced with the CS4 environment. if anyone knowledgeable could spare the time. Here is my situation: I have an actionscript base class, which declares

[Code]....

View 1 Replies

Flex :: 3 - Conflict Exists With Definition Friendlist In Namespace Internal Flex Error

May 11, 2011

in my variable i am getting error private var friendsList:VBox; "conflict exists with definition friendlist in namespace internal" what it is?

View 1 Replies

Flex :: Best Way To Make Flex 4 Connect To A Custom Server?

Feb 20, 2011

I made a custom server that accepts TCP connections on a certain port. I made a corresponding client that sends data to the server. The client writes to the socket and the server seems to accept it. In short, the server / client rig works. Now I want to re-create the client only this time, via Flex 4 / Flash Builder 4. How do I go about making my Flex 4 app connect to my custom server?

[code]...

With that type of approach, the server doesn't seem to be receiving any connections at all. And also, even though I set the requestTimeout to 5, my Flex app seems to continuously try to connect to the server because I rigged it so that the button when clicked will call this HTTPService also that certain button would get disabled and it will get enabled again after it the connection successfully connects, returned an error or if it timed out.

So with all these said, I want to ask you, what is the best approach to making my Flex app connect to my custom made server?

View 2 Replies

ActionScript 3.0 :: FlashBuilder 4.1 - Writting A Small File Handeling Utility To Make Processing Files?

Oct 29, 2010

Using AS 3.0 and the action script project I was planning on writting a small file handeling utility to make processing files through AS better and easier. The problem is the API states that to call file you go
 
import flash.file
 
Well in flashbuilder going import flash. only gives me filter, and no file handeling imports....

View 1 Replies

Flex :: Want To Make A Custom Table?

Jun 21, 2011

i want to make a table using action script 3.The description of the table is that table should have three parts one is headersecond bodythird footer.Every part of the table mean header footer body also tables which can contain more than one row.

View 3 Replies

Flex - Get Settings/properties Into A Flex/FlashBuilder Application?

Feb 28, 2012

I have a Flash Builder application which uses URLs within its code and I want to be able to change these URL values without having to recompile my application, i.e. I want to have a plain text file I can edit which is used to populate these URL values when the application begins. I've worked out what feels like a kludge to do this with ResourceBundles, but maybe there's a better or more straightforward way to go about this.

[Code]...

View 3 Replies

Flex :: Make Custom UIComponent Accessible?

Apr 18, 2011

I added a MXML component in flex and selected the base as UIComponent. I want to make it accessible so that automated testing tools can Access it. I am using TestComplete for automated testing. As TestComplete uses Microsoft Accessibility classes. Now it treat my component as the Graphics.

View 3 Replies

Flex :: Trace() Is Not Working In Flashbuilder 4?

Dec 18, 2009

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?

View 3 Replies

Flex :: Transitioning From FlexBuilder 3 To FlashBuilder 4?

Mar 24, 2010

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?

View 1 Replies

Flex :: AddEventListener Not Working Flashbuilder 4.5

Oct 26, 2011

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

[code]....

View 1 Replies

Xml :: Object Removes Namespace Flex?

Feb 20, 2011

With the following code, everything works as expected, and I retain both the default namespace, and the xsi namespace in the trace printout.

var tempData = <objects xmlns="http://www.spicefactory.org/parsley" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
</objects>

[Code].....

View 1 Replies

Flex :: Comments In FlashBuilder (aka Flex) Mm.cfg File?

Feb 22, 2011

FlashBuilder's undocumented mm.cfg file has a lot of cool options as shown here and elsewhere. But what about commentsout there verify if comments are supported in FlashBuilder's mm.cfg file?If so what are the rules? For example:REM .bat style comment; .ini style comment# shell style commentines?

View 1 Replies

Flex :: Make This LinkButton Custom Component Work?

Apr 5, 2010

package {
import mx.controls.LinkButton;
import flash.text.TextLineMetrics;[code]....

my issue here is if you use this component you will see that the text is bunched up into a very small area. It does not fill the entire width of the linkButton.

View 1 Replies

Flex :: BackgroundDisabledColor Error When Upgrading From FlashBuilder 4?

Apr 30, 2010

I've upgraded a FlexBuilder3 project to FlashBuilder4, and I am seeing many compilation errors regarding unsupported tag attributes:

The style 'backgroundDisabledColor' is only supported by type 'mx.controls.TextInput' with the theme(s) 'halo'

Here is the offending mxml element:

<mx:TextInput x="245" y="86" id="code1" maxChars="15" change="enableButton(event)" cornerRadius="9" borderStyle="solid" backgroundDisabledColor="#7977b6" />

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.

View 1 Replies

Flex :: Flashbuilder 4 Gumbo States Are Sometimes Blank?

Nov 19, 2010

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

<s:BorderContainer xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
creationPolicy="all" currentState="step1">

[code]....

View 2 Replies

Flex :: Error When Migrating A FlashBuilder Project To FDT?

Dec 6, 2010

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 :

<mx:SomeClass initialize="{this.init()}" ... >
<mx:Script>
<![CDATA[

[code]....

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)

View 1 Replies

Flex :: Consume A REST Web Service With Flashbuilder 4?

Apr 21, 2011

I am creating a Restful WCF web service which will need to be consumed by FlashBuilder 4. Is this possible? If so, how can I go about doing that?

View 2 Replies

Flex :: Spark Form Not Showing Up In Flashbuilder 4

Jun 9, 2011

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?

View 1 Replies

Actionscript 3 :: Flex - Skeleton Animation In Flashbuilder?

Jan 16, 2012

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.

View 1 Replies

Actionscript 3 :: Flex 4 Disptaching Custom Event From Custom Component (why Flex Converting Custom Event To Mouseevent)?

Mar 2, 2012

This is NOT duplicate of my earlier post (its is slightly different)But this is similar issue with similar error but its not the same error The error I am getting now is below while dispatching the custom event from my custom component

TypeError: Error #1034: Type Coercion failed: cannot convert events::MapEvent@a74ab51 to flash.events.MouseEvent.
dispatchEvent(new MapEvent(MapEvent.CLICKED_ON_MAP));

Note: The error in my earlier post is giving below error message

Type Coercion failed: cannot convert flash.events::Event@81ecb79 to com.events.ShopEvent

The difference here are two things, the earlier error is while converting flash event to custom event and now this one is while converting custom event to flash event and secondly, I have no clue why it is trying to convert to the mouseevent where I am just dispatching my custom event with proper listeners.

This is my custome event

package events
{
import flash.events.Event;
import ui.map.MapElement;

[code]...

View 1 Replies

Flex :: Error 1067: Can't Make A Custom TextFormat Object?

Jun 24, 2009

Because I want to avoid repetive code, and I'm using a lot of text formats, I created a CustomTextFormat class in Flex Builder.

Another class, called CustomInputBox.as is using this object to create a format:

package
{
import flash.display.Sprite;

[Code].....

View 1 Replies

Flex :: Make Background Fades When A Custom Component Is In Focus

Mar 26, 2010

I created a custom component that is a s:SkinnableContainer. I want the background and other items to fade out when this component is visible. Something similar to what happens when calling Alert.show(..) so the Alert box is in focus and everything else is faded out.

View 2 Replies

Actionscript 3 :: Make A Custom Auto-complete Component In Flex?

Nov 30, 2010

I need to make an auto complete component in flex that fetches the auto complete results from a remote database using a webservice. I have the webservice and querying part worked out. I've already made custom components in action script by extending VBoxes. However I cannot figure out how to generate the popup window that is supposed to show under the text input in my auto complete text box.

[Code]...

View 2 Replies

Flex :: Make Custom AS3 Classes Accessible For Data-binding?

May 28, 2011

Assume i have a custom actionscript class. [code]...

Suppose also that i have a different class, that changes a second variable, which has the metadatatag [Bindable]. What methods and events do i have to implement in either of these classes, to make myVariable change, whenever the other is changend?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved