Flex :: Component IDs And URLs - Hyphens Versus Underscores

Sep 23, 2010

I'm using deeplinking in a Flex 3 application. I've got a ViewStack and I'd like to use the id's of the canvases in the url. I've read that search engines prefer hyphens over underscores as word separators. So, the search engine sees "big-book" as a separate word, but "big_book" as possibly one word. Also, underscores are obscured when a link is underlined. For the above reasons, I thought that it would be good to use hyphens. The problem is that Flex doesn't allow hyphens in an id.

<ViewStack>
<Canvas id="my_stuff"></Canvas>
<Canvas id="my_stuff_more"></Canvas>
<Canvas id="my_stuff_lots"></Canvas>
</ViewStack>

View 1 Replies


Similar Posts:


Flex :: Get Hyphens In Attribute Names?

Mar 23, 2010

Flex has an issue with hyphens in xml. I need to generate an xml object with hyphens in the attribute for a Google Checkout implementation.

I can get away with:

var xml:XML = <item-description/>;

and

var xml:XML = <item-description the-name="foo"/>;

but what I need to do is set the value of an attribute like this:

var timestamp:String = methodToGetMyTimestampString();
var xml:XML = <item-desc/>;
xml@start-date = timestamp;

but I can't do that. Since flex doesn't like the hyphens, I don't know how to get or set attributes with hyphens in the name.

View 1 Replies

Xml :: Flash - Parsing With Nodes Containing Underscores?

May 5, 2010

How do I parse an XML document that contains nodes where underscores exist?

<some_xml>
<child_node>
<child width_info="" height_info="" />

[code]....

View 2 Replies

ActionScript 2.0 :: Convert Spaces To Underscores?

Nov 25, 2003

Is there a way to convert spaces to underscores?

turn "This is a string" to "This_is_a_string"

View 3 Replies

ActionScript 2.0 :: Possible To Convert Spaces To Underscores?

Nov 25, 2003

Is there a way to convert spaces to underscores?
turn "This is a string" to "This_is_a_string"

View 3 Replies

Flex :: ArrayCollection Versus Vector Objects In FLEX?

Apr 20, 2010

the applicable differences between an ArrayCollection and a Vector in flex? I'm unsure if I should be using one over the other. I saw that Vector is type safe and that makes me feel better, but are there disadvantages?

public var ac:ArrayCollection = new ArrayCollection();
versus
public var vec:Vector.<String> = new Vector.<String>();

View 4 Replies

Flex :: Builder - Deploy Flex App Using Different Web Service Urls?

Sep 28, 2011

Is there some sort of configuration settings in FlashBuilder 4.5 where you can easily switch between webservice urls? Right now I have to delete and recreate the web service every time I switch from local to production and vice versa.

View 2 Replies

Flex :: Robotlegs Versus Parsley?

Jun 9, 2010

I am planning to start a new project in as3 and I want Dependency Injection in the project. I found that parsley and Robotlegs are two popular frameworks for implementing DI in AS3. Which is the best one among these two?

My main requirements are

lightweight
minimal learning
extensive documentation and active helping community

View 4 Replies

Flex :: DTO / VO Versus Presentation Model

May 5, 2011

In Flex world, is DTO / VO same as Presentation Model?

View 2 Replies

Flex :: 4 - Null-component - Checking If The Cancel Button Component In The Child Component?

Jun 23, 2011

I have a component "child" which has a cancel button. Now this component is placed in a state called "newChildComp" I also have another component called "parent". In the parent component, i have a button that dispatches an event. Here is the event code:

[Code].....

so, basically,i am checking to see if the cancel button component in the Child component, while i am still in the parent Compoent, was clicked, if it was clicked, call the cancelButtonHandler. The problem is by the time the addNewChild handles the event, that cancel button was still null. My question is how do i solve this without using the itemCreationPolicy on the cancel button?

View 1 Replies

Flex :: Games - Using Canvas Versus UIComponent?

Oct 10, 2009

For developing simple games with the Flex SDK, what are the consequences of using a Canvas object, versus a UIComponent object, as a drawing surface? Are there performance issues with either one? Are the methods generally the same? Searching around, it seems that most sample code I've found uses UIComponent. Is this just customary, or are there reasons?

I already know one odd difference - I had developed a simple Pong game using:

public class MyGameCanvas extends UIComponent

and then decided to replace UIComponent with Canvas. This caused the line to fail:

[Code]...

However, I have to confirm something, being new to Flex and the various terminology. I'm presuming that people mean I should not be using MXML for games, when they said Flex SDK. Since I thought the Flex SDK was what provided the compiler that generates .swf files. Otherwise, where/how would I even compile AS3?

Assuming that's the case, then my question would be about the suitability of using both MXML and AS3 for (simple) games. Based on what I've read about both, it seemed like the intended use of them was MXML for the interface elements, and AS3 for everything else. Is the overhead that bad for MXML?

View 3 Replies

ActionScript 3.0 :: Compiling In Flex Versus WonderFL?

Oct 19, 2009

If I compile this[URL]in WonderFl it works great in both my browser and on my desktop.However, when trying to do it in Flex - Line for line - it runs very badly struggling to get 5fps.This doesn't make any sense, WonderFL uses the flex engine to compile so why does my SDK suck? I'm doing this on OS X as well by the way.. if that makes any difference?

View 8 Replies

Flex :: Parent App Access Versus Events In Modules

Feb 2, 2010

Inspired by this Flex question, is it seen as better practice to dispatch an event back to the parent app, as opposed to calling a method on the instance of the parent app, from within a module? To me it seems that the module shouldn't know what methods are available at the parent, as such approach leads to tight coupling.

View 1 Replies

Flex :: Actionscript 3 - Make Urls From Text Clickable?

Aug 20, 2009

In an AIR app, I am loading a bunch of arbitrary text via JSON, loading it into an object, and displaying it via a custom renderer. I would like to have urls be clickable. So I'm sure that this is possible via some crazy regex thing (as I found for php here), but, Flex being flex, I'm astonished that there isn't some builtin functionality for this that I'm just not finding, or, failing that, a library that someone has created to do just this. (I'm equally astonished that this question hasn't been asked here before. I anticipate being flamed with the link to that)

View 2 Replies

Flex :: OpenX Market IMG URLs Incorrect Problem?

Jul 16, 2010

I've got OpenX working on my Flex site. But, I'm having problems getting OpenX Market working. At the moment, I only get my OpenX dummy ad-- no OpenX Market ads are displayed.So, I set an alert on the img tags and looped through the return. I'm trying to figure out whether the img tags that are referenced are correct.url...

View 1 Replies

Flex :: Getter And Setter Methods Versus Public Properties

Jul 27, 2009

Which is a much better practice in binding a value in Flex?

View 2 Replies

Php :: Flash - Flex - Connect To Data Service Via PHP Versus SOAP?

Aug 26, 2011

I am writing an application in Flash Builder 4.5. I am also writing a PHP Web service to access data from our MySQL database. This Web service will be made available to third party clients for them to develop applications to access our database as well, via SOAP.

Is there a big performance difference between connecting to the service in Flash Builder via connecting directly to the PHP file vs. connecting to a Web Service via SOAP?I would kind of like to connect to this service the same way that our clients will, to make sure things stay as uncomplicated as possible for future development, but performance is my main priority.

View 1 Replies

Performance :: Flex - Memory Usage When Using Visible Versus Add / Remove From Stage

Jul 28, 2011

Is there a performance and/or memory usage difference between these two scenarios?
Scenario 1: N visual elements all added to stage;
N-1 have visible = false, 1 has visible = true;
Scenario 2: N visual elements, only 1 added to the stage at any time.

View 1 Replies

Actionscript 3 :: Getting Actual Facebook And Twitter Profile Image URLS For Flex Security Policy?

Oct 25, 2011

I'm trying to display the profile images from both facebook and twitter. For facebook, the URLs I'm receiving are something like this (not actual urls):[URL]... Which is then redirected to the 'actual' url like this:[URL].. I'm also doing this with twitter, with the same issue (redirected url).

So, when I load the image, it loads fine. But when I close the container that the image is in, then I get the security sandbox violation. I can get this all to work if I add the URL from the 'actual' image url like this:

[Code]..

View 1 Replies

ActionScript 3.0 :: RegExp - Remove The Leading And Following Slashes And Convert All The Other Slashes To Underscores

Nov 7, 2009

i'm trying to do a string replace with but can't seem to get the regular expression right. change "/portfolio/2/3/" to "portfolio_2_3"? Basically I want to remove the leading and following slashes, and convert all the other slashes to underscores.

View 2 Replies

Flex :: Make A Custom Component Or Extend The List Component For A 2D Top Down View MAP ?

Nov 11, 2010

I'm building a top view 2D map, that it's objects are stored on the server.The kind of objects are 10 and might be a photo, label, button, lists, mix of them or labels with tooltips.The component must request the "areas" that are missing on screen.An area is 1000x1000 px and is cached in flex.To move in the map, will be like in google maps (drag-and-drop).I should be able to have another list and move objects from one to another using drag-an-drop on objects. Ex.: I grab an objects from a list and I move it on this map, I release the mouse button and the item is placed there.Now the problem is: I build a custom component for this trying to emulate the item renderer for performance and recyclage, implement drag-and-drop on objects and request the areas that are missing?

or

I extend the List component from spark and I add some features as multiple kind of itemrenderers and use recycle on them. Of course it must be able to request the missing areas on the screen and cache it's data.Maybe create a custom layout is needed too.What I need is something that must be really fluid, so the lighter this component is, the better.

UPDATE: *There will be not any object over another.

*I will not use hitTest on bitmaps because all bitmaps are wrapped in another component,as they,for now are itemrenderers.

Anyway I already begin to do this using a class that extends the SkinnableDataContainer and a custom layout. As the layout is not like a grid, is sparse, random items at diferent points(x, y).How to get the localX and localY, relative to item renderer and not to the Spark List, from a DragEvent in Flex 4?

View 1 Replies

Actionscript 3 :: Flex - Access Component Inside Another Component In MXML?

Sep 3, 2009

I have two components. One is called "InsideComp" and one is called "OutsideComp". OutsideComp has InsideComp as one piece of its component, and in my main MXML file, I have embedded an instance of OutsideComp. How do I access a public variable of InsideComp within my main MXML file?In Actionscript, I could just do something like:OutsideComp.InsideComp.valToChange = 5; But I dont know how to do it in MXML. I know this is probably an easy question.

View 4 Replies

Flex :: Access The One Component Properties Form Other Component With Out Binding?

Sep 21, 2011

I would like to bind two components with out binding and which resides in different MXML.for eg: A.mxml has textinput and B.mxml has a combobox when choose one item in B.mxml selected item should be display in A.mxml textinput.

View 2 Replies

Flex :: Access Component Properties From Extending Component

Jul 29, 2011

I have a component with a public variable declared

[Bindable]
public var mnuSource:String;

When I extend this component, I can reference mnuSource (it compiles) but Runtime complains about the property not being accessible (error 1056).

How do you modify / declare component properties so they are actually available to other components?

View 2 Replies

Flex :: Remove A Component Using A Button In The Component?

Sep 29, 2010

I'd like to use a button within a component to remove it. So, you click it and the component is gone. But, I haven't figured out how you reference the component from within the component. What should I put in click=""?

My component: popCanvas

<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Panel width="200" height="200" title="hello"
click="remove=">

[Code].....

View 1 Replies

Flex - Define A MXML Component And Update MXML Component In Flex Application

Aug 12, 2009

A Flex components values are initlized by init methord. In an application flow, How to refresh a mxml component data value ; as init is callled at the start up it self only.

eg. of mxml componet may be as simple as button label or text as complex as repeater whose data provider is a web service ( means a fresh quesy should be made to pull the data and refresh the dataprovider of repeater )

View 3 Replies

Flex :: Extending Mxml Component With From Another Mxml Component With Visual Child Supported?

May 18, 2011

I've been trying to create a custom mxml component that extends another custom mxml component (i.e.MyMXMLComponent -> BaseMXMLComponent -> Group). I've been reading that trying to add visual children to MyMXMLComponent caused error with Flex 3 but that's no longer the case with Flex 4.

What I want to know is whether this is a supported/fixed/documented feature of Flex 4? or just some undefined behavior in Flex 4 that may get changed with future updates?

if this is supported and documented feature, does anyone have link pointing to adobe document stating it as such?

View 1 Replies

Flex :: Actionscript 3 - Delete Node Of Type Object From Flex Tree Component?

Feb 11, 2011

I have a tree with nodes , and a delete button , first user select the node and click this delete button , I want this node to be removed from the tree , Its not XML , every node in tree is of type Object

{label:'folder',children:[{label:'file1'}]}

I tried delete myTree.selectedItem (but compiler wont let me do it) also tried myTree.selectedItem = null (just unselects the item)and also how can I access reference to parent object of myTree.selectedItem ?

View 3 Replies

Flex :: Reduce The Scrolling Speed Of The Flex Mobile SpinnerList Component?

Mar 26, 2012

I'm using the SpinnerList component in a flex mobile application, the spinner turn too fast for my need, is it any way to reduces its speed.

There is many answer regarding the speed of the mouse wheel but no answer concerning the spinner itself.

View 1 Replies

Flex :: Actionscript 3 - Extend A Flex Component That Is Not A Container (RadioButton, For Example)?

Jul 21, 2009

I want to extend the RadioButton component in Flex 3, adding a text input line to it in place of the label. Is it possible to do this?Alternately, is it possible to have a container -- such as an HBox -- delegate all properties to an internal component -- such as a RadioButton -- so that I could create a composite component that 'acts like' a radio button?

View 1 Replies







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