[flexcoders] adding uniqueIds to XML nodes dynamically

2011-10-18 Thread henrianno
Hello,

Please, i have an XML documents which is nested and contains repeating xml 
nodes inside. So, i want a way to identify the different nodes in the XML 
document. I came up with an idea of giving each node a unique ID dynamically. 
Does anyone know how to to this in Flex?

Thanks



Re: [flexcoders] adding uniqueIds to XML nodes dynamically

2011-10-18 Thread Johannes Nel
quick question. do you want to give each node an ID, even if it is the same
as another node
I don't know the e4x for selecting everynode, but the xpath is real easy //*
then have a singleton with a getID method, itterate through the collection
adding an attribute (i would advise namespacing that attribute as not to
override existing values) and bob's yer uncle.

On Tue, Oct 18, 2011 at 7:32 AM, henrianno henria...@yahoo.com wrote:

 **


 Hello,

 Please, i have an XML documents which is nested and contains repeating xml
 nodes inside. So, i want a way to identify the different nodes in the XML
 document. I came up with an idea of giving each node a unique ID
 dynamically. Does anyone know how to to this in Flex?

 Thanks

  




-- 
j:pn
\\no comment


[flexcoders] vimeo api with flex3/air

2011-10-18 Thread Gustavo Duenas
Does anyone has tried to use the vimeo api  
com.vimeo.api.flash.vimeoPlayer in adobe air before and how you get  
the results, I've been trying with no
results at all and the examples are not much of a thing

Gus



[flexcoders] Re: Flex, HTML5, Javascript...oh my!

2011-10-18 Thread Mete Atamel
I discovered Google's Closure Library while working on a large JavaScript 
project. It was painful to switch to it in the middle of the project because 
you need to write JavaScript in a certain style and for advanced optimization 
to work, you need to annotate code and add exports but in the end it was well 
worth the effort. 

Not only you get lots of useful things (like true OO support, Events, etc.) 
missing from JavaScript but with its advanced optimization, you get super 
optimized code. (eg. our library went from 500KB to 100KB and it's super fast).

There are also other tools like Closure Linter that checks your code for style 
issues and JSDoc works well with Closure style JavaScript. 

So, I highly recommend Closure Library. I also tried bunch of IDEs for 
JavaScript and IntelliJ seemed to be the best one for me even though I'm an 
Eclipse guy. For debugging, Chrome's debugger is definitely the most stable and 
easy one to use for me.

Hope this helps,
Mete 



--- In flexcoders@yahoogroups.com, jamesfin james.alan.finnigan@... wrote:

 As a devoted flex developer of over five years now, I'm getting the nudge by 
 management to get as comfortable with HTML5/Javascript as I currently am with 
 MXML/Actionscript.  Not my decision.
 
 That said, I figured this forum would be better suited to answer a few 
 questions about html5/javascript rather than a endure throught a few 
 flash-hater filled javascript forums. ;)
 
 Knowing the following about common flex development practices, what are the 
 analogs with flex when using javascript, if any at all?
 
 FlashBuilder = ? (i.e. dreamweaver?)
 MXML = HTML
 Actionscript = Javascript
 RobotLegs = ?
 AS3Signals = ?
 Others, feel free to contribute...
 
 
 Also,
 Using Robotlegs affords many comforts towards MVC development practices.  In 
 that context, can other analogs be made in HTML5/Javascript where separate 
 files are used for each of these areas?  Links and/or examples would be great.
 
 View = ?
 Mediator = ?
 Service = ?
 Model = ?
 Controller = ?
 Dependency Injection = ?
 Signals = ?
 
 It would appear as if SproutCore shares some of the attributes we enjoy in 
 Flex but would like to hear what Javascripts frameworks are most friendly to 
 Flex Developers.
 
 
 Thanks in advance!