Re: [flexcoders] Re: Programmatic skinning example - buttons, buttonbar, panel, etc

2006-05-24 Thread Jignesh Dodiya



Hi, Grae, its working now.

I don't know whats the problem but it works only when i uninstall  then re-install FP9

I used IE-6  firefox, working fine

On 5/23/06, grae_hall [EMAIL PROTECTED] wrote:


Hey hey,I've never actually published any of Flex apps to the web before, so it's entirely possible I made some sort of retarded mistake.I've got a lot of embeded SWF files in there - for fonts, and 
graphics, which work for me, but maybe it's because it's using my local permissions and not reading it fully independently off the web.It's in Beta 3.0, so, it uses the Flash 9.0 beta - what problems are 
you coming up with exactly? I'd really like to ensure it actually works for everyone, otherwise there wasn't much point working on it and publishing it.Which version of Flash player are you using, and what sort of 
browser? I've only tested it in IE - so I don't know if it loads in FireFox etc.Let me know - it's important to me that it works.Regards,Grae--- In 
flexcoders@yahoogroups.com, Jignesh Dodiya [EMAIL PROTECTED] 
wrote: can't see anything in the given link Grae... 
 On 5/21/06, Tim Hoff [EMAIL PROTECTED] wrote:   That's what I'm talkng about Grae - exchange. :)-TH
--- In flexcoders@yahoogroups.com, grae_hall grae@ wrote:
 http://grae.halltech.com.au/xmxSkins/ It's an example with source of how to skin buttons with your own
   styles programmatically - it's a snippet from an RIA I've been   working on. It's pretty rough, and I've only got a few months of flex  experience,
   so there may be all sorts of mistakes and dodgyness in the code,  but   it works. I'm a designer, not a programmer, that's my excuse. Well, aside from a small sizing issue with the mouseover on the
   buttonBar with the icon... but it's late so it can get fixed some   other time. Once I got the hang of it, it turned out to be way, way, way  quicker
   and easier than trying to fight with Flex's default components and   stylesheeting - let alone muttering about the discrepencies  between   the code Flex Style Explorer generates for you, and how that 
code   actually looks. I might update this, I don't know, hopefully it's useful to  someone   on the interweb - it's the sort of real example I wish had 
been   around when I first started a few months ago.  --  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives: http://www.mail-archive.com/flexcoders%
40yahoogroups.com SPONSORED LINKS
  Web site design developmenthttp://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=C
omputer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer  software development
http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2
=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw Software  design and development
http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+development
w2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ Macromedia  flex
http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+soft
ware+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjw Software  development best practice
http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developme
ntw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw  --

  YAHOO! GROUPS LINKS- Visit your 
group flexcodershttp://groups.yahoo.com/group/flexcoders
  on the web.   - To unsubscribe from this group, send an email to:
  [EMAIL PROTECTED]flexcoders-
[EMAIL PROTECTED]   - Your use of Yahoo! Groups is subject to the Yahoo! Terms of  Service 
http://docs.yahoo.com/info/terms/.-- --  Regards,  Jignesh Dodiya

--Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
SPONSORED LINKS 




Web site design development 

Computer software development 

Software design and development 


Macromedia flex 

Software development best practice 


YAHOO! GROUPS LINKS 

Visit your group flexcoders on the web. 
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 




-- Regards, Jignesh Dodiya 






--
Flexcoders Mailing List
FAQ: 

[flexcoders] addEventListener and setting events in xml

2006-05-24 Thread John Grden



mx:Tree x=0 y=0 width=506 height=590 nodeOpen=open(event) nodeClose=close(event) labelField=@label id=treeView/mx:Tree
I have 2 questions really:1. Why won't this work? treeView.addEventListener(nodeOpen, open);2. Can I assign a static class method in the nodeOpen= attribute of the xml? Like nodeOpen=
StaticClass.myMethod(event)thanks for the help! I searched through the archives and demo Tree code was very helpful, but I couldn't locate a topic for this issue-- John Grden - Blitz







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] New to Flex Skinning.

2006-05-24 Thread poonam vora



what kinda errors it shows?then we can understand the problem on which section rite??and describe more about ur exact problemreply soon.Gareth Edwards [EMAIL PROTECTED] wrote:Been working on a little something, and I decided to attempt to style  some of what I'm working on.  I have attempted to use the css and some ClassReferences to do some  skinning.  The first thing I get stuck on, and can't seem to get past, I'm pretty  sure I'm not doing something right, but I don't know what.  The problem is, as soon as I attach the ClassReference to my css class,  when I interact with the object, rather than event.target being the  object I'm interacting with, it does something with the ClassReference  and throws all sorts of errors. Can I step through the children
 or  something until I hit the object I want?  Any help would be much appreciated.  p.s. the type of container I'm trying to style is a mx:Box if that  helps at all?  Cheers Gareth.
	

	
		 
 Yahoo! India Answers Share what your know-how and wisdom 
Send free SMS to your Friends on Mobile from your Yahoo! Messenger Download now





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] swf (loadMovie) from an external swf deosn't work ?

2006-05-24 Thread Antoine Malpel






Does it mean I can't do such a thing using Flex 1.5 (I see some message
here talking about SWFOBJECT with Flex 2beta) ?
Could someone tell me the exacr limitations of swf's integrations on a
Flex ?

- I use a mx.Image, I also tried with mx.Loader, source="file" and
sourc="Embed('file')" what's the real difference between both object
relating to swf files ?

- It's not possible to hide, show, implement function (like btn.release
= function(){} from Flex ? (this is for another issue)
- I can't load images (there are swf in fact) from the swf ? If not
what is the good to integrate my swf ? reCode it all from Flex ?

Any help and / or tutorials' links will be grantly appreciated...

Antoine Malpel a crit:
Well
Flex I useverion 1.5 of Flex as Flex 2.0 is still beta ;)
  
Xavi Beumala a crit :
 Which flex version are you running?

 X.

 On 5/23/06, *Antoine Malpel* [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 I use a swf in a popup in my application, everything's fine
about
 interactity except that swfs that should be loaded in this swf
are
 not
 loaded from flex application like they are when I play the swf
in
 flash
 player.
 Flex doesn't support such a thing ?


  Yahoo! Groups Sponsor

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links

 http://groups.yahoo.com/group/flexcoders/

 mailto:[EMAIL PROTECTED]








 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



 SPONSORED LINKS
 Web site design development 
 http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ
  
  Computer software development 
 http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw
  
  Software design and development 
 http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ
  

 Macromedia flex 
 http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjw
  
  Software development best practice 
 http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw
  





 YAHOO! GROUPS LINKS

 * Visit your group "flexcoders
 http://groups.yahoo.com/group/flexcoders"
on the web.
 
 * To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]

mailto:[EMAIL PROTECTED]
 
 * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
 Service http://docs.yahoo.com/info/terms/.





  









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  










RE: [flexcoders] Styling at runtime

2006-05-24 Thread Jonas Windey



Sorry to bump this, but I'm giving a presentation later this day and I'd
like to get this styled..

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jonas Windey
Sent: dinsdag 23 mei 2006 18:24
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Styling at runtime

Ok, thanks.

Now how do I apply it only to the selected node?

treeTest.setStyle(textDecoration,underline); - works
treeTest.selectedItem.setStyle(textDecoration,underline); - doesn't
treeTest.getChildAt(0).setStyle(textDecoration,underline); - neither

Thanks for the setStyle tip!

Jonas

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jeff Tapper
Sent: dinsdag 23 mei 2006 17:32
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Styling at runtime

try using myTree.setStyle(styleName,newStyle);

At 11:12 AM 5/23/2006, you wrote:

Hi,

I'm trying to create a treeview that acts a bit like Windows Explorer. 
Meaning no style is applied when an item is unselected, but on rollover 
the text gets underlined, and the selected item gets a blue background
color.

Is this possible? It tied to change the className on itemRollOver, but 
there it said that className is readonly (when called from a function)

Any suggestions? Thanks

Jonas


--
Flexcoders Mailing List
FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txthttp://gr
oups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.comhttp://www.mail-a
rchive.com/flexcoders%40yahoogroups.com 




SPONSORED LINKS
http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+sit
e+design+developmentw2=Computer+software+developmentw3=Software+design+and
+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=
166.sig=L-4QTvxB_quFDtMyhrQaHQWeb 
site design development 
http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+s
ite+design+developmentw2=Computer+software+developmentw3=Software+design+a
nd+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5
s=166.sig=lvQjSRfQDfWudJSe1lLjHwComputer 
software development 
http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web
+site+design+developmentw2=Computer+software+developmentw3=Software+design
+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=
5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQSoftware 
design and development
http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+dev
elopmentw2=Computer+software+developmentw3=Software+design+and+development
w4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6
nPIrz7_EpZI36cYzBjwMacromedia 
flex 
http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=
Web+site+design+developmentw2=Computer+software+developmentw3=Software+des
ign+and+developmentw4=Macromedia+flexw5=Software+development+best+practice
c=5s=166.sig=f89quyyulIDsnABLD6IXIwSoftware 
development best practice


--
YAHOO! GROUPS LINKS

 * Visit your group 
 http://groups.yahoo.com/group/flexcodersflexcoders on the web.
 *
 * To unsubscribe from this group, send an email to:
 * 

mailto:[EMAIL PROTECTED]flexcoder
[EMAIL PROTECTED] 

 *
 * Your use of Yahoo! Groups is subject to the 
 http://docs.yahoo.com/info/terms/Yahoo! Terms of Service.


--


No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.1.392 / Virus Database: 268.7.0/345 - Release Date: 5/22/2006


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.392 / Virus Database: 268.7.0/345 - Release Date: 5/22/2006





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 











--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] Re: Newbie : How do i listen to a value ? Cairngorm inside.

2006-05-24 Thread Tom Chiverton



On Tuesday 23 May 2006 16:53, Jean-Luc ESSER wrote:
 I meant that i need to know the component name because the command is
 gonna change things in this component (and thus pass it as a param in my
 dispatch event). That's why initially it was a view function.

You should refactor things so this doesn't happen. What in your view is the 
command going to change, and why can't that thing use modelLocator data 
binding ?

 As to if the function performs some buisness level task, it should be a
 command i'm not sure of this.
 But in some cases, you will have to update a view by adding or removing
 children, or even doing much complex things which are not business
 dependant. Things which will require actionscript, and thus a function. And
 i don't see how using bindings could resolve all these issues.

Ahh, OK, I see now :-)

 Unless you tell me there is a way to trigger a local function by listenning
 to data in ModelLocator.

If you've got a list of items, that list can be in modelLocator, and you can 
repeat over the list.
Then your buisness command updates the model, and all is well.

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.

We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the Year at the 2005 Growth Company Awards







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] mxml confusing

2006-05-24 Thread aaron smith



so in picking up flex. I find that having mxml everywhere is really 
confusing. I have a coding mind and when I see mxml all over I get 
totally confused by it. I can't even explain really how I get confused. 
I just don't like it. It doesn't make sense to me. It's not code.

Does anyone know of any good references of tutorials on getting around 
mxml and building almost everything with actionscript. Im sure it can be 
done. it might take more code but it is easier to understand. would the 
solution be as3 projects vs mxml application? it thats the case is it 
possible to use flex components in as3 projects?

I'm just kinda looking for some different solutions for getting around 
mxml as much as possible.

has anyone else found mxml to be more confusing than actionscript?











--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Re: RENDER event: before every frame or only when certain UI elements change?

2006-05-24 Thread exporta_lite



--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:

 ENTER_FRAME is prior to every frame. RENDER is only when the components
 ended up invalidating and requiring a draw.


Unfortunately, it appears that invalidation does NOT merely force a
RENDER of the invalidated component (and those which it overlaps); it
forces a RENDER (and it seems a redraw) of EVERY component in the
application!!

So, if for example, you want to move perform any kind of animation
using an ENTER_FRAME (or timer) eventListener, you will force a redraw
of the entire screen, no matter how tiny the animation area is.
Furthermore, if you put a textArea in that triggers on ENTER_FRAME
that calculates the frame rate, you will also get a RENDER every frame
to every component in your App (which may be what the OP was
experiencing).

The Sample code (below) illustrates this. Clicking on a button (which
has no click) which is contained within one canvas causes four
RENDER events to be received by the label (or apparently, any UI
component), even though it is in a different, non-overlapping
container). As far as I can tell, the RENDER event also corresponds to
a redraw (at least that's what my testing seems to indicate).

Making the text label invisible does not stop it from getting the
RENDER event. Nor does making the containing canvas invisible; so one
must imagine that the RENDER event is passed down the chain in any
case. Nor does setting the mask for the respective containing
canvasses; a RENDER event is always generated if any invalidation occurs.

This has some real adverse performance effects: doing
any on-screen animations or debugging (such as a frame rate counter)
causes the system to redraw - which, if you have a large page of text
which is not cacheAsBitmap, requires an entire chain of re-rendering
to occur. I get frame rates of around 10-15 fps on a 3.0GHz machine
with a display area of 1366 x 768 for static pages of text, unless
they are set as cacheAsBitmap; in which case I get something like
20, not anywhere near 30. :(

Any thoughts on how to work this out? I haven't looked at the source
code yet to figure out why this is happening (just installed beta3).
The RENDER event is not cancellable, so I can't figure out how to
convince a container to not redraw itself, when I know for a fact that
it's not neccessary.

Cheers - Chas

--- Sample Code 
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
layout=absolute

. mx:Script
. ![CDATA[
. public function catchRender(event:Event):void {
. trace(render event: +event)
. }
. ]]
. /mx:Script

. mx:Canvas x=26 y=31 width=365 height=62
. mx:Label id=aUI x=10 y=10 
. text=This is just a label
. width=272
. creationComplete=aUI.addEventListener(Event.RENDER,
this.catchRender)/

. /mx:Canvas

. mx:Canvas x=26 y=125 width=365 height=79
. mx:Button x=10 y=10 label=Button/
. /mx:Canvas
./mx:Application



 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of loftling
 Sent: Wednesday, April 12, 2006 1:22 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] RENDER event: before every frame or only when
 certain UI elements change?
 
 Does anyone know if the RENDER event (flex 2 / actionscript 3.0,
 flash.events.Event.RENDER) is supposed to be dispatched to the display
 list prior to every frame, or is it merely supposed to be dispatched
 prior to a frame in when *certain* UI elements (like mx controls) have
 their state updated. The documentation led me to believe the former, but
 in reality the latter is happening, which seems less useful to me.
 
 (a
 href="" href="http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?">http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?
 \
 catid=587threadid=1141438Posted on the Adobe labs forums/a, amongst
 the tumbleweeds.)
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links













--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is 

[flexcoders] Re: All experts need suggestion please help

2006-05-24 Thread p_pirzada



Hi,

 I am really grateful for your reply to my post. I have 2 
confirmations that it can be achieved with Flex2. I think its the 
right technology for these tasks.

 When they going to Release Flex 2? 

 Thanks alot

 Regards
 Pirzada

--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] 
wrote:

 On Tuesday 23 May 2006 11:56, p_pirzada wrote:
  1- Do we have all the functionality of Flash MX 2004 like 
developing
  tile based Games etc in FLex 2?
 
 Yes.
 ActionScript3 is just as powerful as 2, if not more.
 
  Do you think it can be achieved by Flex 2 (as bounded to 
database) or
 
 Yeah, sounds easy enough.
 
 -- 
 Tom Chiverton
 
 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in 
England and Wales under registered number OC307980 whose registered 
office address is at St James's Court Brown Street Manchester M2 
2JF. A list of members is available for inspection at the registered 
office. Any reference to a partner in relation to Halliwells LLP 
means a member of Halliwells LLP. Regulated by the Law Society.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named 
above and may be confidential or legally privileged. If you are not 
the addressee you must not read it and must not use any information 
contained in nor copy it nor inform any person other than Halliwells 
LLP or the addressee of its existence or contents. If you have 
received this email in error please delete it and notify Halliwells 
LLP IT Department on 0870 365 8008.
 
 For more information about Halliwells LLP visit www.halliwells.com.
 
 We are pleased to announce that Halliwells LLP has been voted AIM 
Lawyer of the Year at the 2005 Growth Company Awards














--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] Flex Buider don't import mx package

2006-05-24 Thread Tom Chiverton
On Tuesday 23 May 2006 22:30, Eduardo Dias wrote:
 The FlexBuider don't show mx.effects package;

Write the code anyway.
What happens ?

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.

We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the 
Year at the 2005 Growth Company Awards



 Yahoo! Groups Sponsor ~-- 
You can search right from your browser? It's easy and it's free.  See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Re: Flex2b3, Wine and trace()

2006-05-24 Thread Tom Chiverton



On Tuesday 23 May 2006 17:28, Michael Montagna wrote:
 Does the process have permission to read/write to that location?

Yup. It's running as the user who owns the wine 'c' drive, and that user has 
rwx on the folder.

 You might try creating the empty file (default name is flashlog.txt),
 and then reverifying. You might also try explicitly setting the
 filename param to something linux friendly like
 TraceOutputFileName=/var/log/flash/log

Linux filename (precreated file with correct owner): no dice
Filename set to c:/flash.log (precreated file with correct owner): no dice
Filename set to c:\flash.log (precreated file with correct owner): no dice

Ho hum.
I know it wont be like this forever, because *eventualy* there will be a Linux 
native Flash9, but in the mean time, trying to track down runtime problems 
when the exception doesn't give line numbers is a pain !

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.

We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the Year at the 2005 Growth Company Awards







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Fw: [BETA3] I found how can remove the selected item of mx.controls.Tree.

2006-05-24 Thread Bryan Choi






- Original Message - 
From: Bryan Choi 

To: flexcoders 
Sent: Tuesday, May 23, 2006 9:33 PM
Subject: [BETA3] I found how can remove the selected item of 
mx.controls.Tree.

Hi, all.

var treeItem :Object = mxTree.selectedItem;var 
parentItem :Object = mxTree.getParentItem ( treeItem );var items 
:ICollectionView = treeDD.getChildren (parentItem);var len :int 
= items.length;for ( var i:int=0; ilen; i++ 
){if ( items [EMAIL PROTECTED] == [EMAIL PROTECTED] 
){treeDD.removeChildAt ( 
parentItem, mxTree.selectedItem, i 
);break;}}

===

It is lengthy. so..

IwantAnyone who has idea other to know simple code 
rather than above.

Thank you,
Brayn.





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Flex 1.5 Production Mode

2006-05-24 Thread Tom Chiverton
On Tuesday 23 May 2006 23:38, Peter Watson wrote:
 2. precompile your application so you deploy just swf files and the

I imagine most Flex2 apps will be deployed this way as it's one less server to 
run and keep an eye on.

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.

We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the 
Year at the 2005 Growth Company Awards



 Yahoo! Groups Sponsor ~-- 
Home is just a click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Re: custom formats in datagrids

2006-05-24 Thread Tom Chiverton



On Tuesday 23 May 2006 17:22, Scott Romer wrote:
 Out of curiousity:
 Is this better or worse than creating a custom renderer to format
 the data?

Better, as it's less work.
But it was even less work in 1.5 :-)

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.

We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the Year at the 2005 Growth Company Awards







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] Re: All experts need suggestion please help

2006-05-24 Thread Tom Chiverton



On Wednesday 24 May 2006 07:32, p_pirzada wrote:
 When they going to Release Flex 2?

June, apperently - though nothing fixed-in-stone-offical yet.
We're plumbing for Flex 2 over 1.5 for our next app, and devloping using the 
beta, for instance.

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.

We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the Year at the 2005 Growth Company Awards







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












[flexcoders] how do i control a .SWF file inside flex?

2006-05-24 Thread shemeshkale



hi,
i want to implement a swf file inside flex 1.5 and the control it from
flex.
i want to tell this swf to gotoAndPlay(10), gotoAndStop(98)... etc.

how do i do this?
can u point me to an example?









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] Re: Newbie : How do i listen to a value ? Cairngorm inside.

2006-05-24 Thread Jean-Luc ESSER



Tom and others,

I agree with all the theory out there, but i cannot seem to put it into a 
working example.
Let's try to be practical here with some trivail code:

myComp :

 mx:Script
 ![CDATA[
 import mx.controls.*;
 public function addLabel(value:String):void
 {
 var myNewLabel:Label = new Label();
 myNewLabel.text = value;
 myPanel.addChild(myNewLabel);
 }
 ]]
 /mx:Script
 mx:Panel id=myPanel
 mx:Button label=Add Label click=addLabel('New Label')/
 /mx:Panel

This short piece of code is trivial.
Now let's try to leverage this via Cairngorm :
1/ The button which adds a new label can be anywhere in the application. So 
on click, we gonna dispatch a cg event which is gonna run a command.
2/ As i need to do some business logic also, i will put it in that command. 
(optionnal)
3/ Now for xxx reasons, the function addLabel needs to reside where it is. 
So the command is gonna have to trigger this function. One very bad way to 
do this would be to add  Application.application.myComp.addLabel('New 
Label')  to the command.
But that won't scale at all for obvious reasons : what if i want to trigger 
different functions, or if there is a function name change or whatever...
4/ The good way to do it would be to update data in ModelLocator from the 
command with value New Label. So that i can bind this data in myComp to 
trigger addLabel('dataFromML') everytime data changes.

This is theory, and it looks like what you all say should be done.
But how do i trigger addLabel() each time data in modelLocator changes ? 
That is how do i bind the data to the trigerring of a Function. This is what 
i'm missing, it is probably obvious, but i don't see it !
And if it needs to be refactored, ok, but i don't see how.

This is simple case, but function could be way more complex.

Best,
Jean-Luc

- Original Message - 
From: Tom Chiverton [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, May 24, 2006 9:58 AM
Subject: Re: [flexcoders] Re: Newbie : How do i listen to a value ? 
Cairngorm inside.


On Tuesday 23 May 2006 16:53, Jean-Luc ESSER wrote:
 I meant that i need to know the component name because the command is
 gonna change things in this component (and thus pass it as a param in my
 dispatch event). That's why initially it was a view function.

You should refactor things so this doesn't happen. What in your view is the
command going to change, and why can't that thing use modelLocator data
binding ?

 As to if the function performs some buisness level task, it should be a
 command i'm not sure of this.
 But in some cases, you will have to update a view by adding or removing
 children, or even doing much complex things which are not business
 dependant. Things which will require actionscript, and thus a function. 
 And
 i don't see how using bindings could resolve all these issues.

Ahh, OK, I see now :-)

 Unless you tell me there is a way to trigger a local function by 
 listenning
 to data in ModelLocator.

If you've got a list of items, that list can be in modelLocator, and you can
repeat over the list.
Then your buisness command updates the model, and all is well.

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
St James's Court Brown Street Manchester M2 2JF. A list of members is 
available for inspection at the registered office. Any reference to a 
partner in relation to Halliwells LLP means a member of Halliwells LLP. 
Regulated by the Law Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may 
be confidential or legally privileged. If you are not the addressee you 
must not read it and must not use any information contained in nor copy it 
nor inform any person other than Halliwells LLP or the addressee of its 
existence or contents. If you have received this email in error please 
delete it and notify Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.

We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of 
the Year at the 2005 Growth Company Awards




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links















--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  
   

[flexcoders] Re: swf (loadMovie) from an external swf deosn't work ?

2006-05-24 Thread Renaun Erickson



in Flex 1.5, you use the Loader to load SWF's at runtime. 

Things too look out for:
1. Do not use Flash MX components in the SWF's that will be loaded. 
There are conflicts with Flex.
2. To access a loaded SWF, you use
myLoader.content.someFunctionOnLoadedSWF() (mx:Loader id=myLoader /)
3. Use the Flash property _lockroot = true on your loaded SWF's if
the use of _root is preset in the SWF.
4. Beware of domain security issues

Well thats what I can remember from off the top of my head.

Renaun

--- In flexcoders@yahoogroups.com, Antoine Malpel [EMAIL PROTECTED] wrote:

 Does it mean I can't do such a thing using Flex 1.5 (I see some message 
 here talking about SWFOBJECT with Flex 2beta) ?
 Could someone tell me the exacr limitations of swf's integrations on a 
 Flex ?
 
 - I use a mx.Image, I also tried with mx.Loader, source=file and 
 sourc=Embed('file') what's the real difference between both object 
 relating to swf files ?
 
 - It's not possible to hide, show, implement function (like btn.release 
 = function(){} from Flex ? (this is for another issue)
 - I can't load images (there are swf in fact) from the swf ? If not
what 
 is the good to integrate my swf ? reCode it all from Flex ?
 
 Any help and / or tutorials' links will be grantly appreciated...
 
 Antoine Malpel a écrit :
  Well Flex I useverion 1.5 of Flex as Flex 2.0 is still beta ;)
 
  Xavi Beumala a écrit :
   Which flex version are you running?
  
   X.
  
   On 5/23/06, *Antoine Malpel* [EMAIL PROTECTED]
   mailto:[EMAIL PROTECTED] wrote:
  
   I use a swf in a popup in my application, everything's fine
about
   interactity except that swfs that should be loaded in this
swf are
   not
   loaded from flex application like they are when I play the
swf in
   flash
   player.
   Flex doesn't support such a thing ?
  
  
    Yahoo! Groups Sponsor
  
   --
   Flexcoders Mailing List
   FAQ: 
  http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Search Archives:
   http://www.mail-archive.com/flexcoders%40yahoogroups.com
   Yahoo! Groups Links
  
   http://groups.yahoo.com/group/flexcoders/
  
   mailto:[EMAIL PROTECTED]
  
  
  
  
  
  
  
  
   --
   Flexcoders Mailing List
   FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Search Archives: 
  http://www.mail-archive.com/flexcoders%40yahoogroups.com
  
  
  
   SPONSORED LINKS
   Web site design development
   
 
http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ

 
http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ

 
   Computer software development
   
 
http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw

 
http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw

 
   Software design and development
   
 
http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ

 
http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ

 
  
   Macromedia flex
   
 
http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjw

 
http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjw

 
   Software development best practice
   
 
http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw

 

Re: [flexcoders] Re: Newbie : How do i listen to a value ? Cairngorm inside.

2006-05-24 Thread Tom Chiverton



On Wednesday 24 May 2006 11:10, Jean-Luc ESSER wrote:
 But how do i trigger addLabel() each time data in modelLocator changes ?
 That is how do i bind the data to the trigerring of a Function. This is
 what i'm missing, it is probably obvious, but i don't see it !

Ahh, OK :-)
http://livedocs.macromedia.com/labs/1/flex20beta3/wwhelp/wwhimpl/common/html/wwhelp.htm?href="">
?

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.

We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the Year at the 2005 Growth Company Awards







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] menu control in flex 2.0 beta 3

2006-05-24 Thread deepu_verma



Following is my code and I am trying to capture the change event.
But it seems that the change event does not trigger for menu bar
controls only.
mx:MenuBar labelField=@label showRoot=false width=100%
change={mainViewStackHelper.getSearchResultView(event)} 
 mx:dataProvider
  mx:XMLList xmlns=
  menuitem label=Menu1
 menuitem label=Files data="">
 menuitem label=Web Pages data="">
 /menuitem
  /mx:XMLList
 /mx:dataProvider
/mx:MenuBar

--
Deepak Verma









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] mxml confusing

2006-05-24 Thread matti bar zeev





MXML 
is not that confusing at all, but then again - it's a metter of personal 
"taste".
You 
can build an AS oriented project that has nothing to with MXML except the main 
project's application tag.


  -Original Message-From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED]Sent: Wednesday, May 24, 2006 
  07:14To: flexcoders@yahoogroups.comSubject: [flexcoders] 
  mxml confusingImportance: Low
  so in picking up flex. I find that having mxml 
  everywhere is really confusing. I have a coding mind and when I see mxml 
  all over I get totally confused by it. I can't even explain really how I 
  get confused. I just don't like it. It doesn't make sense to me. It's not 
  code.Does anyone know of any good references of tutorials on getting 
  around mxml and building almost everything with actionscript. Im sure it 
  can be done. it might take more code but it is easier to understand. would 
  the solution be as3 projects vs mxml application? it thats the case is it 
  possible to use flex components in as3 projects?I'm just kinda 
  looking for some different solutions for getting around mxml as much as 
  possible.has anyone else found mxml to be more confusing than 
  actionscript? Yahoo! 
  Groups Sponsor ~-- Get to your groups with one 
  click. Know instantly when new email arriveshttp://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM~- 
  --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
  Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
  Groups Links* To visit your group on the web, go 
  to:http://groups.yahoo.com/group/flexcoders/* 
  To unsubscribe from this group, send an email 
  to:[EMAIL PROTECTED]* 
  Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Re: menu control in flex 2.0 beta 3

2006-05-24 Thread Geoffrey Williams



Remove the braces.

change=mainViewStackHelper.getSearchResultView(event)

--- In flexcoders@yahoogroups.com, deepu_verma [EMAIL PROTECTED] 
wrote:

 Following is my code and I am trying to capture the change event.
 But it seems that the change event does not trigger for menu bar
 controls only.
 mx:MenuBar labelField=@label showRoot=false width=100%
 change={mainViewStackHelper.getSearchResultView(event)} 
 mx:dataProvider
   mx:XMLList xmlns=
   menuitem label=Menu1
 menuitem label=Files data="">
 menuitem label=Web Pages data="">
 /menuitem
   /mx:XMLList
 /mx:dataProvider
 /mx:MenuBar
 
 --
 Deepak Verma












--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Loading assets of one swf into another container swf[F2B3]

2006-05-24 Thread Xavi Beumala



Hi all,I have 2 swf. SWF1 loads SWF2 by using an SWFLoader component.When loaded SWF2, I add its contents inside a canvas. Also swf1 contains a button which gets, casting to an interface, a reference to an instantiable an visible component. The instantiation is working really fine, but I'm getting an strange border arround the external loaded assets.
I've posted a minimized application as well as its source:http://www.code4net.com/crossLibraryI've tried to set borderThickness property to 0 but no luck :(
Any suggestions? (maybe a bug on the components?BestX.P.D: shared Librarys among different swf's is a really amazing improvement!! Finally we'll be able to develop plugin architectures! great adobe great!







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Access of application stage into action script file

2006-05-24 Thread rama satoskar



hi,
I want to create components like buttons , textboxes into my
application thorugh an actionscript file.

Is it possible for me to send the reference to teh application though
teh application object. i tried doing it , but to no success.

Then i tried accessing teh application's stage area. however i think i
am not doing it rightly.
Can anyone help.

I basically try to send the object reference of the application or the
stage to the constructor or some function of the actionscript class.

Kindly help.
Rama.










--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Re: mxml confusing

2006-05-24 Thread rama satoskar



Well.since i have moved to flex 2.0 since the past month, i alos
find it irritating to write mxml tags everywhere. what i would liek is
create controls from my actionscript class and access it int he main
mxml file. 

Is there a way where i could control the arrangement of my controls
and components in the application from an actionscript file directly?

if it is possible.can anyone show me a small example to simply put
a text box from an actionscript file to ur mxml page.
--- In flexcoders@yahoogroups.com, matti bar zeev [EMAIL PROTECTED] wrote:

 MXML is not that confusing at all, but then again - it's a metter of
 personal taste.
 You can build an AS oriented project that has nothing to with MXML
except
 the main project's application tag.
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, May 24, 2006 07:14
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] mxml confusing
 Importance: Low
 
 
 so in picking up flex. I find that having mxml everywhere is really
 confusing. I have a coding mind and when I see mxml all over I get
 totally confused by it. I can't even explain really how I get
confused.
 I just don't like it. It doesn't make sense to me. It's not code.
 
 Does anyone know of any good references of tutorials on getting around
 mxml and building almost everything with actionscript. Im sure it
can be
 done. it might take more code but it is easier to understand.
would the
 solution be as3 projects vs mxml application? it thats the case is it
 possible to use flex components in as3 projects?
 
 I'm just kinda looking for some different solutions for getting around
 mxml as much as possible.
 
 has anyone else found mxml to be more confusing than actionscript?
 
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links















--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












[flexcoders] Re: importing mx .controls in actionscript file

2006-05-24 Thread rama satoskar



Does it mean clearing ur ASO and chache???
--- In flexcoders@yahoogroups.com, Michael Schmalle
[EMAIL PROTECTED] wrote:

 It means you are running an old swf from beta2.
 
 flash.util.Timer is now, flash.utils.Timer. This error is actually
happening
 in precompiled mx classes not your class. This is just a side effect
of your
 application not compiling and inserting new class definitions.
 
 I think you need to really search through your files and make sure
there is
 no other 'api-scrub' differences.
 
 Peace, Mike
 
 On 5/23/06, rama satoskar [EMAIL PROTECTED] wrote:
 
  i have recently loaded beta 3 version...however whenever i try to
  import any package besides flash i am not able to do so. Presuming it
  was a installation problemi re-installed the beta 3 version
  thrice. I wanted to know if it was an installation problem or any
other.
 
  Moreover i am also trying to run my programs in flash player 9 where
  it is giving me an verify error#1014..where class
  flash.util::Timer is not found. i am very confused.
 
  Kindly help.
 
 
 
 
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
 
 
 
  SPONSORED LINKS
  Web site design
developmenthttp://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ
 Computer
  software
developmenthttp://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw
 Software
  design and
developmenthttp://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ
 Macromedia
 
flexhttp://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjw
 Software
  development best
practicehttp://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw
  --
  YAHOO! GROUPS LINKS
 
 
  - Visit your group
flexcodershttp://groups.yahoo.com/group/flexcoders
  on the web.
 
  - To unsubscribe from this group, send an email to:
  
[EMAIL PROTECTED][EMAIL PROTECTED]
 
  - Your use of Yahoo! Groups is subject to the Yahoo! Terms of
  Service http://docs.yahoo.com/info/terms/.
 
 
  --
 
 
 
 
 -- 
 What goes up, does come down.













--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] Re: importing mx .controls in actionscript file

2006-05-24 Thread Michael Schmalle



Hi,

You know what, I have no idea. 

As Irony has it, my current project which is BIG(and wans't imported
from Beta2), is now giving me the same frekin errors. So times wasting
once again.

This happend to me last night also. The only way I found to reconcile
this problem is create a new project, build it up without importing
anything. The problem went away. Now this morning, I get the same damn
errors again and it takes the compiler 30 seconds to finish the build.

I am sick and have a headache, now your guess is as good as mine.

Peace, MikeOn 5/24/06, rama satoskar [EMAIL PROTECTED] wrote:



Does it mean clearing ur ASO and chache???
--- In flexcoders@yahoogroups.com, Michael Schmalle
[EMAIL PROTECTED] wrote:

 It means you are running an old swf from beta2.
 
 flash.util.Timer is now, flash.utils.Timer. This error is actually
happening
 in precompiled mx classes not your class. This is just a side effect
of your
 application not compiling and inserting new class definitions.
 
 I think you need to really search through your files and make sure
there is
 no other 'api-scrub' differences.
 
 Peace, Mike
 
 On 5/23/06, rama satoskar [EMAIL PROTECTED] wrote:
 
  i have recently loaded beta 3 version...however whenever i try to
  import any package besides flash i am not able to do so. Presuming it
  was a installation problemi re-installed the beta 3 version
  thrice. I wanted to know if it was an installation problem or any
other.
 
  Moreover i am also trying to run my programs in flash player 9 where
  it is giving me an verify error#1014..where class
  flash.util::Timer is not found. i am very confused.
 
  Kindly help.
 
 
 
 
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

  Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
 
 
 
  SPONSORED LINKS
  Web site design
development
http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ

 Computer
  software
development
http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw

 Software
  design and
development
http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ

 Macromedia
 
flex
http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjw

 Software
  development best
practice
http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw

  --
  YAHOO! GROUPS LINKS
 
 
  - Visit your group
flexcodershttp://groups.yahoo.com/group/flexcoders

  on the web.
 
  - To unsubscribe from this group, send an email to:
  
[EMAIL PROTECTED]
[EMAIL PROTECTED]
 
  - Your use of Yahoo! Groups is subject to the Yahoo! Terms of
  Service http://docs.yahoo.com/info/terms/.
 
 
  --
 
 
 
 
 -- 
 What goes up, does come down.













--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com









  
  
SPONSORED LINKS
  
  
  


Web site design development
  
  

Computer software development
  
  

Software design and development
  
  



Macromedia flex
  
  

Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group flexcoders on the web.
  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.




  









-- What goes up, does come down.






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software 

[flexcoders] loading pdf files in Flex Applications

2006-05-24 Thread venugopal vasireddy



Hi,How to load PDF files in Flex2.0 application. In otherwords how to launch   PDF reader in Flex Application ( like in browser with pdf plugin).Thanks  Venu
		Love cheap thrills? Enjoy PC-to-Phone  calls to 30+ countries for just 2¢/min with Yahoo! Messenger with Voice.





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Re: Newbie : How do i listen to a value ? Cairngorm inside.

2006-05-24 Thread Jean-Luc ESSER





Thanx Tom but is "Dynamically repeating 
components"the answer to my issue?
I agree that in my exemple, and probably most of 
the times, it could do the work, but does that mean there is no way to trigger a 
function by listenning to a change of value in a data ?
Or am i still missing something ?

Best,
Jean-Luc.

- Original Message - 
From: "Tom Chiverton" [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, May 24, 2006 12:27 PM
Subject: Re: [flexcoders] Re: Newbie : How do i 
listen to a value ? Cairngorm inside.
 On Wednesday 24 May 2006 11:10, Jean-Luc ESSER wrote: 
But how do i trigger addLabel() each time data in modelLocator changes 
? That is how do i bind the data to the trigerring of a Function. 
This is what i'm missing, it is probably obvious, but i don't see it 
!  Ahh, OK :-) http://livedocs.macromedia.com/labs/1/flex20beta3/wwhelp/wwhimpl/common/html/wwhelp.htm?href=""> ?  --  Tom Chiverton 
   
This email is sent for and on behalf of Halliwells LLP.  
Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF. A list of members is 
available for inspection at the registered office. Any reference to a partner in 
relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the 
Law Society.  CONFIDENTIALITY  This email is 
intended only for the use of the addressee named above and may be confidential 
or legally privileged. If you are not the addressee you must not read it 
and must not use any information contained in nor copy it nor inform any person 
other than Halliwells LLP or the addressee of its existence or contents. 
If you have received this email in error please delete it and notify Halliwells 
LLP IT Department on 0870 365 8008.  For more information about 
Halliwells LLP visit www.halliwells.com.  
We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the 
Year at the 2005 Growth Company Awards
 Yahoo! Groups Sponsor ~-- 
 Protect your PC from spy ware with award winning anti spy technology. 
It's free. http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/nhFolB/TM 
~- 
  -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com  Yahoo! Groups Links  * To 
visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/  * To unsubscribe from this group, send an email 
to: [EMAIL PROTECTED]  * Your use of Yahoo! Groups is subject 
to: http://docs.yahoo.com/info/terms/   





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Flex Basics

2006-05-24 Thread sarvesh610



Hi,
 I am new to Flex, have been a J2EE person for a longtime. I have 
developed an application which queries the database and returns me a 
value object which has a list and vector. Now I need to use Flex as a 
user interface. I have called the class using the remote-object, but 
then how do I use the List and the Vector to display.
 Also I am a bit confused about the mx:ComboBox, how can I use the 
dataprovider to use my value object to display the companyDesc as the 
label and data as the ric if I am using the mx:Object

Thanks
S









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] loading pdf files in Flex Applications

2006-05-24 Thread venugopal vasireddy



Hi,How to load PDF files in Flex2.0 application. In otherwords how to launch   PDF reader in Flex Application ( like in browser with pdf plugin).Thanks  Venu
		New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] loading pdf files in Flex Applications

2006-05-24 Thread Sandip Patil



Hi,Like fileIO functionality in Flex , call one JSP  pass ur file name there from Flex .  From JSP call your Java file where u will wirte ur Java logic to open PDFfunction preview(){var url="">var fileName = "abc";  url= "">  }where config is,mx:Model id="config" source="config.xml" /  in this config.xml pqrhttp://ur port number/your jspfile/pqrIn JSP ,get this file name  pass this to ur Java method.  Sandip venugopal vasireddy [EMAIL PROTECTED]
 wrote:Hi,How to load PDF files in Flex2.0 application. In otherwords how to launch   PDF reader in Flex Application ( like in browser with pdf plugin).Thanks  Venu  New Yahoo! Messenger with Voice. Call regular phones from your PC and save big. 
		Blab-away for as little as 1¢/min. Make  PC-to-Phone Calls using Yahoo! Messenger with Voice.





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Re: Newbie : How do i listen to a value ? Cairngorm inside.

2006-05-24 Thread Tom Chiverton
On Wednesday 24 May 2006 13:57, Jean-Luc ESSER wrote:
 the work, but does that mean there is no way to trigger a function by
 listenning to a change of value in a data ? Or am i still missing something
 ?

Some better way to reduce coupling betwen the two functions would be very 
good.

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.

We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the 
Year at the 2005 Growth Company Awards



 Yahoo! Groups Sponsor ~-- 
Home is just a click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Strange thing happening with Flex 2 Beta 3 (eclipse plugin) - possible bug?

2006-05-24 Thread Greg Morphis



I changed it to using actionscript to populate the comboBox and all is well..
Still don't know what caused the below issue but it's corrected.

On 5/22/06, Greg Morphis [EMAIL PROTECTED] wrote:
 I've got a combo box being populated via code:
 mx:ComboBox width=150 id=comboSearchType change=chg(event);
 mx:dataProvider
 mx:Array
 mx:String /mx:String
 mx:StringBasic Info/mx:String
 mx:StringVM-Detail/mx:String
 mx:StringPaging/mx:String
 mx:StringTechData/mx:String
 mx:StringSimple Freedom/mx:String
 mx:StringSID/mx:String
 /mx:Array
 /mx:dataProvider
 /mx:ComboBox

 Anyways, when I run this the first time I don't see the Simple Freedom
 entry (the space for it is there and if I click on it I see Simple
 Freedom in the combo box), if I scroll all the way up, Basic Info is
 blank, again, I can click on it and see it in the box, when I scroll
 back down SID is blank, the space for it is there and if I click on it
 I see it in the box.
 I can recreate the problem.

 Is this a bug? something up with the Plugin version or what?







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] flex2b3 - adding a button to a textinput

2006-05-24 Thread bhaq1972



I'm trying to add a button to a textinput as follows

myTextInput.mxml

mx:TextInput initialize='startUp()'/
mx:Script
public btn1:Button;

private function startUp():void
{
 btn1 = new Button();
 btn1.label = xx;
 btn1.width = 20;
 btn1.visible = true;
 addChild(btn1);
}

My problem is, btn1 isn't visible visible. 

Any ideas why ? (wasn't a problem in flex 1.5)

TIA
bod









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












Re: [flexcoders] Re: Loading assets of one swf into another container swf[F2B3]

2006-05-24 Thread Xavi Beumala



I've been able to solve it by using borderStyle=none. But I don't understand the different behaviours and why by default isn't getting none...Thanks Carlos ;-)X.
On 5/24/06, Xavi Beumala [EMAIL PROTECTED] wrote:
The code is at: http://www.code4net.com/crossLibrary right click and view source
BestX.On 5/24/06, 
rama satoskar [EMAIL PROTECTED] wrote:

I would want to see the source code for ur minimized application. icould not get it.--- In flexcoders@yahoogroups.com
, Xavi Beumala [EMAIL PROTECTED] wrote:
 Hi all, I have 2 swf. SWF1 loads SWF2 by using an SWFLoader component. When loaded SWF2, I add its contents inside a canvas. Also swf1contains a button which gets, casting to an interface, a reference to an
instantiable an visible component. The instantiation is working really fine, but I'm getting an strange border arround the external loaded assets. I've posted a minimized application as well as its source:
 http://www.code4net.com/crossLibrary I've tried to set borderThickness property to 0 but no luck :(
 Any suggestions? (maybe a bug on the components?
 Best X. P.D: shared Librarys among different swf's is a really amazingimprovement!! Finally we'll be able to develop plugin architectures! great adobegreat!
 Yahoo! Groups Sponsor ~--You can search right from your browser? It's easy and it's free.See how.

http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/nhFolB/TM~---Flexcoders Mailing ListFAQ: 

http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Re: Strange thing happening with Flex 2 Beta 3 (eclipse plugin) - possible bug?

2006-05-24 Thread Jim Robson










I missed your original post, but this does
look like a bug. The player doesnt seem to know what to do with the
empty String tag. When I place anything in that first String tag (in addition
to or instead of the empty space) the problem goes away. 



This works:



mx:ComboBox width=150
id=comboSearchType 

mx:dataProvider

 
mx:Array

 
mx:StringSelect.../mx:String

 
mx:StringBasic Info/mx:String

 
mx:StringVM-Detail/mx:String

 
mx:StringPaging/mx:String

 
mx:StringTechData/mx:String

 
mx:StringSimple Freedom/mx:String

 
mx:StringSID/mx:String

 
/mx:Array

 /mx:dataProvider



This doesnt work:



mx:ComboBox width=150
id=comboSearchType 

mx:dataProvider

 
mx:Array

 
mx:String /mx:String

 
mx:StringBasic Info/mx:String

 
mx:StringVM-Detail/mx:String

 
mx:StringPaging/mx:String

 
mx:StringTechData/mx:String

 
mx:StringSimple Freedom/mx:String

 
mx:StringSID/mx:String

 
/mx:Array

 /mx:dataProvider













From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Greg Morphis
Sent: Wednesday, May 24, 2006
10:20 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Strange
thing happening with Flex 2 Beta 3 (eclipse plugin) - possible bug?





I changed it to using
actionscript to populate the comboBox and all is well..
Still don't know what caused the below issue but it's corrected.

On 5/22/06, Greg Morphis [EMAIL PROTECTED] wrote:
 I've got a combo box being populated via code:
 mx:ComboBox width=150 id=comboSearchType
change=chg(event);
 mx:dataProvider
 mx:Array
 mx:String
/mx:String
 mx:StringBasic
Info/mx:String

mx:StringVM-Detail/mx:String

mx:StringPaging/mx:String

mx:StringTechData/mx:String
 mx:StringSimple
Freedom/mx:String

mx:StringSID/mx:String
 /mx:Array
 /mx:dataProvider
 /mx:ComboBox

 Anyways, when I run this the first time I don't see the Simple Freedom
 entry (the space for it is there and if I click on it I see Simple
 Freedom in the combo box), if I scroll all the way up, Basic Info is
 blank, again, I can click on it and see it in the box, when I scroll
 back down SID is blank, the space for it is there and if I click on it
 I see it in the box.
 I can recreate the problem.

 Is this a bug? something up with the Plugin version or what?









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] Re: Loading assets of one swf into another container swf[F2B3]

2006-05-24 Thread Carlos Rovira



You're wellcome, Xavi :)Maybe, is a bug in the framework and a developer shouldn't worry to set the style to noneMannish or others at Adobe could throw some light into this issue.
2006/5/24, Xavi Beumala [EMAIL PROTECTED]:



I've been able to solve it by using borderStyle=none. But I don't understand the different behaviours and why by default isn't getting none...Thanks Carlos ;-)X.

On 5/24/06, Xavi Beumala [EMAIL PROTECTED] wrote:

The code is at: http://www.code4net.com/crossLibrary right click and view source
BestX.On 5/24/06, 
rama satoskar [EMAIL PROTECTED] wrote:


I would want to see the source code for ur minimized application. icould not get it.--- In flexcoders@yahoogroups.com
, Xavi Beumala [EMAIL PROTECTED] wrote:
 Hi all, I have 2 swf. SWF1 loads SWF2 by using an SWFLoader component. When loaded SWF2, I add its contents inside a canvas. Also swf1contains a button which gets, casting to an interface, a reference to an
instantiable an visible component. The instantiation is working really fine, but I'm getting an strange border arround the external loaded assets. I've posted a minimized application as well as its source:
 http://www.code4net.com/crossLibrary I've tried to set borderThickness property to 0 but no luck :(
 Any suggestions? (maybe a bug on the components?
 Best X. P.D: shared Librarys among different swf's is a really amazingimprovement!! Finally we'll be able to develop plugin architectures! great adobegreat!
 Yahoo! Groups Sponsor ~--You can search right from your browser? It's easy and it's free.See how.


http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/nhFolB/TM~---Flexcoders Mailing ListFAQ: 


http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 

http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com









  
  
SPONSORED LINKS
  
  
  


Web site design development
  
  

Computer software development
  
  

Software design and development
  
  



Macromedia flex
  
  

Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group flexcoders on the web.

  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
.



  








-- ::| Carlos Rovira::| http://www.carlosrovira.com






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Re: Flex Basics

2006-05-24 Thread hitch_nj



For better understanding I am sending you the files:


package transparency;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.List;
import java.util.ArrayList;
import transparency.CompanyRicVo;

import com.msdw.transparency.util.Factory;
import com.msdw.transparency.manager.ITransparency;

public class CompanyRic
{
 private static List ricList;
 static String query = select distinct x2.ticker ric, c.description+
 from ge_company c, +
 ge_security s, +
 ge_xref_sec_code x1, +
 ge_xref_sec_code x2, +
 ge_xref_sec_code x3 +
 where c.company_id=s.company_id +
 and s.sec_index_deriv_id=x1.sec_index_deriv_id +
 and x2.sec_index_deriv_id=x1.sec_index_deriv_id +
 and x3.sec_index_deriv_id=x1.sec_index_deriv_id +
 and x1.tick_type=9 +
 and x2.tick_type=1 +
 and x3.tick_type=13 +
 and s.deriv_type_id=3 +
 order by x2.ticker;


 public CompanyRic(){} 
 static{
  //System.out.println(query);
   ricList = new ArrayList();
   try{
ITransparency trans = Factory.getInstance().getTransparency();
Connection con = trans.getConnection();
//System.out.println(Got the connection);
PreparedStatement ps = con.prepareStatement(query);

ResultSet rs = ps.executeQuery();
//System.out.println()
while(rs.next())
{
 int i=1;
 ricList.add(new CompanyRicVo(rs.getString(i++),rs.getString(i++)));
}
//System.out.println(ricList.size());
   
   }catch(Exception e)
   {
e.printStackTrace();
   }
  }

 public List getRics()
 {
  return ricList;
 }

 public static void main(String args [])
 {
  CompanyRic ric = new CompanyRic();
//  List rList = ric.getRics();
//  System.out.println(rList.size());
 }

}



--
package transparency;

public class CompanyRicVo
{
 private String ric;
 private String companyDesc;

 public CompanyRicVo(String ric, String companyDesc)
 {
  this.ric = ric;
  this.companyDesc = companyDesc;
 }
 
 public void setRic(String ric)
 {
  this.ric = ric;
 }
 public String getRic()
 {
  return ric;
 }
 public void setCompanyDesc(String companyDesc)
 {
  this.companyDesc = companyDesc;
 }
 public String getCompanyDesc()
 {
  return companyDesc;
 }



}

--
Now if you see all I want to do is display the label as the
companyDesc and data as ric.


Thanks
S






---



--- In flexcoders@yahoogroups.com, Sandip Patil [EMAIL PROTECTED]
wrote:

 Hi,
 
 try this
 
 
 mx:Script
 var data= [ {label:A, data:A}, {label:B, data:B}];
 var selectedItem:Object;
 /mx:Script
 
 
 mx:HBox 
 mx:ComboBox dataProvider={data}
change=selectedItem=event.target.selectedItem/
 mx:VBox 
 mx:Label text={selectedItem.label}/
 mx:Label text={selectedItem.data}/
 /mx:VBox
 /mx:HBox
 
 sarvesh610 [EMAIL PROTECTED] wrote:
 Hi,
 I am new to Flex, have been a J2EE person for a longtime. I have 
 developed an application which queries the database and returns me a 
 value object which has a list and vector. Now I need to use Flex as a 
 user interface. I have called the class using the remote-object, but 
 then how do I use the List and the Vector to display.
 Also I am a bit confused about the mx:ComboBox, how can I use the 
 dataprovider to use my value object to display the companyDesc as the 
 label and data as the ric if I am using the mx:Object
 
 Thanks
 S
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 
 
 
 SPONSORED LINKS 
 Web site design development Computer software development
 Software design and development Macromedia flex Software
development best practice 
 
 -
 YAHOO! GROUPS LINKS 
 
 
 Visit your group flexcoders on the web.
 
 To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
 
 Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service. 
 
 
 -
 
 
 
 

 -
 Sneak preview the all-new Yahoo.com. It's not radically different.
Just radically better.











--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   

[flexcoders] Re: Flex Basics

2006-05-24 Thread hitch_nj



Sandip,
 Thanks a lot for the reply, that helped. My question is how do I
populate the combobox with the values from a value object.

for eg: (A.java)
public class A
{
 private List list;
 private Vector vector;
 
 public List setList()
 {
 this.list = list
 }
 public List getList()
 {
 return list;
 }
 ...
}

Now this is the class that is getting returned. I need to iterate
through the list which has some other value objects with different
values. These values need to be displayed.


Thanks
S





--- In flexcoders@yahoogroups.com, Sandip Patil [EMAIL PROTECTED]
wrote:

 Hi,
 
 try this
 
 
 mx:Script
 var data= [ {label:A, data:A}, {label:B, data:B}];
 var selectedItem:Object;
 /mx:Script
 
 
 mx:HBox 
 mx:ComboBox dataProvider={data}
change=selectedItem=event.target.selectedItem/
 mx:VBox 
 mx:Label text={selectedItem.label}/
 mx:Label text={selectedItem.data}/
 /mx:VBox
 /mx:HBox
 
 sarvesh610 [EMAIL PROTECTED] wrote:
 Hi,
 I am new to Flex, have been a J2EE person for a longtime. I have 
 developed an application which queries the database and returns me a 
 value object which has a list and vector. Now I need to use Flex as a 
 user interface. I have called the class using the remote-object, but 
 then how do I use the List and the Vector to di


splay.
 Also I am a bit confused about the mx:ComboBox, how can I use the 
 dataprovider to use my value object to display the companyDesc as the 
 label and data as the ric if I am using the mx:Object
 
 Thanks
 S
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 
 
 
 SPONSORED LINKS 
 Web site design development Computer software development
 Software design and development Macromedia flex Software
development best practice 
 
 -
 YAHOO! GROUPS LINKS 
 
 
 Visit your group flexcoders on the web.
 
 To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
 
 Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service. 
 
 
 -
 
 
 
 

 -
 Sneak preview the all-new Yahoo.com. It's not radically different.
Just radically better.












--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












[flexcoders] Re: Problem with LineChart - Flex 2 Beta 3

2006-05-24 Thread pasflex



Any ideas on this?
I've tried setting filterData to true on the lineseries (should be 
by default anyhow) but it still seems to try to plot these null 
values.
Thanks.

--- In flexcoders@yahoogroups.com, pasflex [EMAIL PROTECTED] wrote:

 We are populating a line chart with some data returned from an 
 HTTPService. The data is xml which flex parses to an object 
 (resultFormat='object'). For some of the LineSeries the data is 
not 
 contiguous. The problem is that the chart is still drawing these 
 missing datapoints. It draws them at 0, although the datatips 
show 
 no value for them. We have tried returning an empty tag or 
leaving 
 the tag out completely but the points still show up. Here's some 
 sample code that demonstrates the issue without using the 
 HTTPService.
 Any ideas?
 
 ?xml version=1.0?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
 mx:Script
  ![CDATA[
 
 [Bindable]
 private var xml:XML =
  values
value
 a/a
 b2/b
/value
value
 a1/a
 b2/b
/value
value
 a1.5/a
 b2/b
/value
value
 b2/b
/value
   /values;
 
  ]]
 /mx:Script
 mx:Panel title=Line Chart
 mx:LineChart dataProvider={xml.value} 
showDataTips=true
   mx:series
mx:Array
 mx:LineSeries yField=a/
 mx:LineSeries yField=b/
/mx:Array
   /mx:series  
 /mx:LineChart
 /mx:Panel
 /mx:Application











--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












[flexcoders] Re: Flex2: whats a TreeNode convert to

2006-05-24 Thread karthikeyanik



Matt,
 We have extended the TreeNode class provided in Flex1.5 and we are 
in the process of migrating to Flex2.0. As pointed by you,there is 
no equivalent of TreeNode class in Flex2.0 beta3.
 You are suggesting to use ITreeDataDescriptor instead. Can you 
please give an example using ITreeDataDescriptor.

Thanks,
Karthi


--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:

 In Flex 2 the idea is to not convert your node into anything. 
Instead
 the ITreeDataDescriptor is used by the Tree to create an internal
 collection that it can use for displaying the nodes. This way you 
don't
 need to have a 1-to-1 match of your data structure to the Tree.
 
 Matt
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of bhaq1972
 Sent: Friday, March 24, 2006 4:45 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Flex2: whats a TreeNode convert to
 
 Hi
 in Flex 1.5 we had mx.controls.treeclasses.TreeNode;
 
 what does that now become.
 
 thanks 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links











--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] Cairngorm best practice with Tree data [f2b3]

2006-05-24 Thread Rick Schmitty



I would also be interested and appreciate advice on this topic

On 5/23/06, Graham Weldon [EMAIL PROTECTED] wrote:
 Hi all,

 I'm messing with Cairngorm 2.0 beta, and Flex 2.0 beta 3. I've got a
 mx:Tree / that contains a structured set of data. This data can be
 subjected to an insert at any point. I have correctly setup the events,
 commands and delegate to deal with the insertion, and I process the
 logical insertion on the server side of this application without issues.
 The trouble I am having now is the graphical insertion of the new item
 into the existing model.

 Currently the data is XML based. The Tree is directly data bound to an
 XMLListCollection object.

 One thought I had was to model the entire tree as ValueObjects, so that
 I could traverse the tree and 'addChild()' where necessary, but this
 would be a complete replication of my Server-Side java code on the
 client side, just for insertion. Additionally, I am not sure how i would
 use a complex set of chained Value Objects as a data source for a Tree
 GUI component.

 Any information about this would be really helpful. I appreciate any advice.

 I can display the tree correctly, I can use information from the
 selected item to perform operations etc. I am interested in inserting a
 new item at a specified location. For example, a request to insert an
 item will result in XML data describing the insert:

 Regards,
 Graham Weldon.



 
 XML Tree INSERTION data Sample
 

 command action="" success=true
 addTreeItem parent=123
 element label=NEWitem id=/
 /addTreeItem
 addTreeItem parent=380
 element label=deepItem id=12/
 /addTreeItem
 /command

 


 
 XML Tree Data Sample
 

 tree
 element label=one id=123/
 element label=two id=122/
 element label=eight id=897
 element label=hello id=113/
 element label=world id=198
 element label=thing id=380/
 /element
 /element
 /tree

 


 
 ModelLocator
 
 ... snip ...

 public var myTreeData : XMLListCollection = new XMLListCollection();

 ... snip ...
 


 
 Application.mxml
 
 ... snip ...

 myComponents:TreeComponent
 dataProvider={ModelLocator.myTreeData}/

 ... snip ...
 








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












[flexcoders] Re: Flex2: whats a TreeNode convert to

2006-05-24 Thread Michael Montagna



Hi Karthi, 

I just posted an example descriptor a few days ago. Let me know if
you need more info. 

Since you have TreeNode and a hierarchical model already implemented,
you can have your Descriptor wrap the methods on your TreeNodes, or
else you can abandon the TreeNode implementation and use the
Descriptor to describe the data directly. 

Thanks,

-Michael
Flex Framework


--- In flexcoders@yahoogroups.com, karthikeyanik [EMAIL PROTECTED]
wrote:

 Matt,
 We have extended the TreeNode class provided in Flex1.5 and we are 
 in the process of migrating to Flex2.0. As pointed by you,there is 
 no equivalent of TreeNode class in Flex2.0 beta3.
 You are suggesting to use ITreeDataDescriptor instead. Can you 
 please give an example using ITreeDataDescriptor.
 
 Thanks,
 Karthi
 
 
 --- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ wrote:
 
  In Flex 2 the idea is to not convert your node into anything. 
 Instead
  the ITreeDataDescriptor is used by the Tree to create an internal
  collection that it can use for displaying the nodes. This way you 
 don't
  need to have a 1-to-1 match of your data structure to the Tree.
  
  Matt
  
  -Original Message-
  From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On
  Behalf Of bhaq1972
  Sent: Friday, March 24, 2006 4:45 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Flex2: whats a TreeNode convert to
  
  Hi
  in Flex 1.5 we had mx.controls.treeclasses.TreeNode;
  
  what does that now become.
  
  thanks 
  
  
  
  
  
  
  --
  Flexcoders Mailing List
  FAQ: 
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
  http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  Yahoo! Groups Links
 











--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Re: Feature Request

2006-05-24 Thread sufibaba



Howdy Gordon,

I did look into this and put together a first cut attempt. It does
display the lines correctly and is aesthetically pleasing. Although
the code to make the lines seems to be working, there is a bug in the
tree display mechanism. Folder nodes which have child nodes that are
also folders have a problem drawing lines (I am using the
updateDisplayList() to draw lines). 

If someone on the Awesome Flex team can look into this problem, then
the Flex community can at least have one working version of a tree
with lines.

Sincerely,

Tim



--- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote:

  Have you tried that approach?
 
 Sorry, after reading further I see you're looking into this.
 
 - Gordon
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Gordon Smith
 Sent: Tuesday, May 23, 2006 7:20 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Feature Request
 
 Hi, Tim.
 
 Due to the schedule and the fact that this isn't a critical problem,
we won't be adding this feature before we ship. But I've filed an
enhancement request for the next release.
 
 There's a general belief that this is possible using a custom
renderer, but I don't know whether anyone has actually done it. Have
you tried that approach?
 
 - Gordon
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mail


to:[EMAIL PROTECTED] On Behalf Of sufibaba
 Sent: Tuesday, May 23, 2006 4:22 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Feature Request
 
 Dear Honorable Flex Team,
 
 I am working on a flex project where information is being displayed in
 a tree. Without the lines, it is very difficult to see what is being
 connected. I believe that this feature is very much needed. If this
 could be implemented in the stock flex tree, it will help many.
 
 Thanks.
 
 Tim
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links
 
 
 
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links












--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












RE: [flexcoders] Re: Problem with LineChart - Flex 2 Beta 3

2006-05-24 Thread Ely Greenfield






You're tripping over some of the conversion rules AS3 has inherited (by necessity) from EcmaScript. The LineSeries can correctly render missing data, but unfortunately the XML API never reports the data as missing, only as an empty stringwhich converts to the numeric value 0.

The bug has been logged, but if you want to work around it in the meantime, any non-numeric value will get interpreted as bad data and stripped out of the data set.

i.e., turn soemthing like this:

value
 a/a
 c12/c
/value

Into this:

value
 ajunk/a
 bjunk/b
 c12/c
/value


Ely.
 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of pasflex
Sent: Wednesday, May 24, 2006 11:09 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Problem with LineChart - Flex 2 Beta 3

Any ideas on this?
I've tried setting filterData to true on the lineseries (should be by default anyhow) but it still seems to try to plot these null values.
Thanks.

--- In flexcoders@yahoogroups.com, pasflex [EMAIL PROTECTED] wrote:

 We are populating a line chart with some data returned from an 
 HTTPService. The data is xml which flex parses to an object 
 (resultFormat='object'). For some of the LineSeries the data is
not 
 contiguous. The problem is that the chart is still drawing these 
 missing datapoints. It draws them at 0, although the datatips
show 
 no value for them. We have tried returning an empty tag or
leaving 
 the tag out completely but the points still show up. Here's some 
 sample code that demonstrates the issue without using the HTTPService.
 Any ideas?
 
 ?xml version=1.0?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
 mx:Script
  ![CDATA[
 
 [Bindable]
 private var xml:XML =
  values
value
 a/a
 b2/b
/value
value
 a1/a
 b2/b
/value
value
 a1.5/a
 b2/b
/value
value
 b2/b
/value
   /values;
 
  ]]
 /mx:Script
 mx:Panel title=Line Chart
 mx:LineChart dataProvider={xml.value} 
showDataTips=true
   mx:series
mx:Array
 mx:LineSeries yField=a/
 mx:LineSeries yField=b/
/mx:Array
   /mx:series  
 /mx:LineChart
 /mx:Panel
 /mx:Application







 Yahoo! Groups Sponsor ~-- Everything you need is one click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links



 








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












Re: [flexcoders] Re: DateField date format

2006-05-24 Thread Misael



Thanks a lot guys, works just fine!On 5/24/06, tyombria [EMAIL PROTECTED] wrote:



Hi, Misael.
When you define a labelFunction for the DateField component to 
format date for output you must also define parseFunction. Inverse 
function to labelFunction.
For example:
private var dateField : DateField = new DateField();
dateField.labelFunction = myLabelFunction;
dateField.parseFunction = myParseFunction;

private function myLabelFunction( date : Date ) : String {
 var df : DateFormatter = new DateFormatter();
 df.formatString = DD/MM/;
 return df.format( date );
}

public function myParseFunction( inputString : String, 
formatString : String = DD/MM/) : Date {
 if (inputString == ) {
 return null;
 }

 var year : Number = Number(inputString.substr(6,4));
 var month : Number = Number(inputString.substr(3,2)) - 1;
 var day : Number = Number(inputString.substr(0,2));
 var date : Date = new Date(year,month,day);
 return date;
}

--- In flexcoders@yahoogroups.com, poonam vora [EMAIL PROTECTED] wrote:

 hie misael
 u can try this way.
 i think its a return function mistake
 it has to be String not void.
 
 example
 
 mx:DateFormatter id=dfconv formatString=/MM/DD/
 mx:Script
 ![CDATA[
 private function formatDate(date:Date):String
 {
 return dfconv.format(date);
 } 
 ]]
 /mx:Script
 
 instruction:
 You can choose a different name for the function,
 but it must take a single argument of type Date and 
 return the date as a String for display in the text field. 
 
 bye,,
 
 Misael [EMAIL PROTECTED] wrote: Hi,
 I have a dateField on which i want to format the displayed date. I 
want to show it like DD/MM/. I´m trying to use this function 
with a call in the change=formatNasc(DateField
(event.target).selectedDate) event, but it still displays 
in MM/DD/ format.
 
 private function formatNasc(date:Date):void{
 var formatter:DateFormatter = new DateFormatter(); 
 formatter.formatString = DD/MM/; 
 xClienteDataNasc.text = formatter.format(date);
 }
 
 What´s the point here?
 Regards.
 
 
 --
 Flexcoders Mailing List
 FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%
40yahoogroups.com 
 
 
 
 SPONSORED LINKS 
 Web site 
design development Computer 
software development Software 
design and 
development 
 Macromedia flex 
Software development best 
practice 
 
 -
 YAHOO! GROUPS LINKS 
 
 
 Visit your group flexcoders on the web.
 
 To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
 
 Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
Service. 
 
 
 -
 
 
 
 
 
 -
 Yahoo! India Answers Share what your know-how and wisdom
 Send free SMS to your Friends on Mobile from your Yahoo! 
Messenger Download now












--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com









  
  
SPONSORED LINKS
  
  
  


Web site design development
  
  

Computer software development
  
  

Software design and development
  
  



Macromedia flex
  
  

Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group flexcoders on the web.

  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
.



  
















--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Flex Basics

2006-05-24 Thread poonam vora



hie,  well i came across some example which can help u.  but niether it has combo box nor classes  but it uses event listeners.. and also uses custom components  [if u r very new to flex, might be u dont get it]  custom component is nothing but some component which is designed on ur  needs/. and event listeners are something that respond to events.but if u try to run the example below then it could be that similar kinda output u required.  so try out this example []  main.mxml    ?xml version="1.0"?  mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:local="*"  mx:Script   ![CDATA[   [Bindable]   public var initDG:Array = [ 
   {Company: 'Acme', Contact: 'Bob Jones', Phone: '413-555-1212', Date: '5/5/05'},{Company: 'Allied', Contact: 'Jane Smith', Phone: '617-555-3434', Date: '5/6/05'} ];   ]]   /mx:Scriptmx:DataGrid id="myGrid" dataProvider="{initDG}" variableRowHeight="true"mx:columns 
  mx:DataGridColumn dataField="Company" itemRenderer="RendererDGListData"/   mx:DataGridColumn dataField="Contact" itemRenderer="RendererDGListData"/   mx:DataGridColumn dataField="Phone" itemRenderer="RendererDGListData"/   mx:DataGridColumn dataField="Date"
 itemRenderer="RendererDGListData"/   /mx:columns/mx:DataGrid   /mx:Application-  RendererDGListData  --  ?xml version="1.0"?  !-- RendererDGListData.mxml --  mx:TextArea xmlns:mx="http://www.adobe.com/2006/mxml" preinitialize ="initTA();" mx:Script   ![CDATA[  import mx.controls.dataGridClasses.DataGridListData;   import flash.events.Event;
  public function initTA():void { addEventListener("dataChange", handleDataChanged);   }  public function handleDataChanged(event:Event):void { // Cast listData to DataGridListData. var myListData:DataGridListData = DataGridListData(listData);   // Access information
 about the data passed to the item renderer.text="row index: " + String(myListData.rowIndex) + " column index: " + String(myListData.columnIndex);   }]]   /mx:Script  /mx:TextAreaand then execute main.mxmlbye.  sarvesh610 [EMAIL PROTECTED] wrote:Hi,   I am new to Flex, have been a J2EE person for a longtime. I have   developed an application which queries the database and
 returns me a   value object which has a list and vector. Now I need to use Flex as a   user interface. I have called the class using the remote-object, but   then how do I use the List and the Vector to display.   Also I am a bit confused about the mx:ComboBox, how can I use the   dataprovider to use my value object to display the companyDesc as the   label and data as the ric if I am using the mx:ObjectThanks  SSPONSORED LINKSWeb site design development  Computer software development  Software design and development  Macromedia flex  Software development best practice   
	

	
		 
 Yahoo! India Answers Share what your know-how and wisdom 
Send free SMS to your Friends on Mobile from your Yahoo! Messenger Download now





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Re: Problem with LineChart - Flex 2 Beta 3

2006-05-24 Thread pasflex



Thanks Ely, that'll work for now.

--- In flexcoders@yahoogroups.com, Ely Greenfield [EMAIL PROTECTED] 
wrote:

 
 
 
 You're tripping over some of the conversion rules AS3 has 
inherited (by necessity) from EcmaScript. The LineSeries can 
correctly render missing data, but unfortunately the XML API never 
reports the data as missing, only as an empty stringwhich 
converts to the numeric value 0.
 
 The bug has been logged, but if you want to work around it in the 
meantime, any non-numeric value will get interpreted as bad data and 
stripped out of the data set.
 
 i.e., turn soemthing like this:
 
 value
 a/a
 c12/c
 /value
 
 Into this:
 
 value
 ajunk/a
 bjunk/b
 c12/c
 /value
 
 
 Ely.
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of pasflex
 Sent: Wednesday, May 24, 2006 11:09 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Problem with LineChart - Flex 2 Beta 3
 
 Any ideas on this?
 I've tried setting filterData to true on the lineseries (should be 
by default anyhow) but it still seems to try to plot these null 
values.
 Thanks.
 
 --- In flexcoders@yahoogroups.com, pasflex pswiss@ wrote:
 
  We are populating a line chart with some data returned from an 
  HTTPService. The data is xml which flex parses to an object 
  (resultFormat='object'). For some of the LineSeries the data is
 not 
  contiguous. The problem is that the chart is still drawing 
these 
  missing datapoints. It draws them at 0, although the datatips
 show 
  no value for them. We have tried returning an empty tag or
 leaving 
  the tag out completely but the points still show up. Here's 
some 
  sample code that demonstrates the issue without using the 
HTTPService.
  Any ideas?
  
  ?xml version=1.0?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
  mx:Script
   ![CDATA[
  
  [Bindable]
  private var xml:XML =
   values
 value
  a/a
  b2/b
 /value
 value
  a1/a
  b2/b
 /value
 value
  a1.5/a
  b2/b
 /value
 value
  b2/b
 /value
/values;
  
   ]]
  /mx:Script
  mx:Panel title=Line Chart
  mx:LineChart dataProvider={xml.value} 
 showDataTips=true
mx:series
 mx:Array
  mx:LineSeries yField=a/
  mx:LineSeries yField=b/
 /mx:Array
/mx:series  
  /mx:LineChart
  /mx:Panel
  /mx:Application
 
 
 
 
 
 
 
  Yahoo! Groups Sponsor 
~-- Everything you need is one click away.  Make Yahoo! your home 
page now.
 http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/nhFolB/TM
 ---
-~- 
 
 --
 Flexcoders Mailing List
 FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%
40yahoogroups.com
 Yahoo! Groups Links












--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Re: Custom DataGrid Column (flex 2b3)

2006-05-24 Thread rigidcode




Oh I see, I thought that I had to make an itemrenderer for the
DataGrid object, I didn't know that DataGridColumn also had an
itemrenderer property.

Thanks


--- In flexcoders@yahoogroups.com, Joan Tan [EMAIL PROTECTED] wrote:

 If you want a button for one column of a DataGrid, you can do something
 like
 
 
 
 To use just the default drop-in button:
 
 mx:DataGridColumn itemRenderer=mx.controls.Button ...
 
 
 
 Or, you can create a custom component that subclasses the Button class
 so that you can define what type of events happen when you click the
 button. (This is probably more likely). So, you would then have
 something like:
 
 
 
 mx:DataGridColumn itemRenderer=MyButton ...
 
 
 
 where MyButton.as looks something like -
 
 
 
 public class MyButton extends Button
 
 { 
 
 ...
 
 }
 
 
 
 I hope this helps.
 
 Joan
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of rigidcode
 Sent: Tuesday, May 23, 2006 2:36 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Custom DataGrid Column (flex 2b3)
 
 
 
 
 I have a DataGrid. I want one of the columns to contain a button. It
 looks like I'm supposted to make an object that implements
 IDropinListItemRenderer right? 
 
 I started doing that, but with that I'm responsible for not only
 rendering my one column- I have to render every column? Even the title
 columns. I don't want to do all that, I want to use the defaults for
 that stuff, I only want to change one column. Am I doing this right?
 
 thanks
 
 
 
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 
 
 
 
 SPONSORED LINKS 
 
 Web site design development
 http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+
 site+design+developmentw2=Computer+software+developmentw3=Software+des
 ign+and+developmentw4=Macromedia+flexw5=Software+development+best+prac
 ticec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ 
 
 Computer software development
 http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=We
 b+site+design+developmentw2=Computer+software+developmentw3=Software+d
 esign+and+developmentw4=Macromedia+flexw5=Software+development+best+pr
 acticec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw 
 
 Software design and development
 http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=
 Web+site+design+developmentw2=Computer+software+developmentw3=Software
 +design+and+developmentw4=Macromedia+flexw5=Software+development+best+
 practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ 
 
 Macromedia flex
 http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+
 developmentw2=Computer+software+developmentw3=Software+design+and+deve
 lopmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=1
 66.sig=OO6nPIrz7_EpZI36cYzBjw 
 
 Software development best practice
 http://groups.yahoo.com/gads?t=msk=Software+development+best+practice
 w1=Web+site+design+developmentw2=Computer+software+developmentw3=Softw
 are+design+and+developmentw4=Macromedia+flexw5=Software+development+be
 st+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw 
 
 
 
 
 
 
 
 YAHOO! GROUPS LINKS 
 
 
 
 *  Visit your group flexcoders
 http://groups.yahoo.com/group/flexcoders  on the web.
   
 *  To unsubscribe from this group, send an email to:
   [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] 
   
 *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
 Service http://docs.yahoo.com/info/terms/ . 
 
 
 
 












--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












[flexcoders] PDF aware Flash Player ???

2006-05-24 Thread vvasireddyflex



Hi,

I am wondering is Flash player is PDF aware like browser?

Thanks
Venu










--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Re: Drawing in a Canvas subclass

2006-05-24 Thread sergio_trejo_r



Thanks for the tip. The issue is that I also need the container 
features from the Canvas. I'm trying to build a control that has a 
mixture of drawn elements with other components that are sited in the 
control.

So if I subclass the UIComponent I think I will loose the ability to 
add child controls (although I haven't try).

I was not aware of the fact that the Canvas will add a child 
component for the background. I guess it must be related to the 
rawChildren property. I'm going to try also to override the 
createChildren method to avoid this.

As a side note. I feel that this hidden hierarchy of controls (i.e. 
background child) may be a misfeature in Flex. They should probably 
consider removing it from the public API.

thanks,
-Sergio



--- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote:

 Try subclassing UIComponent instead of Canvas. That should avoid the
 problems of having a background child.
 
 - Gordon
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of sergio_trejo_r
 Sent: Tuesday, May 23, 2006 4:37 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Drawing in a Canvas subclass
 
 Hi, I ran into a problem while trying to use the drawing API in a
 subclass of the Canvas container. See the code include below.
 
 The class TestCanvasDrawing extends the Canvas container. I attempt
 to draw a line in the updateDisplayList method. However when I see
 the output only a small portion of the line is drawn in the top-left
 corner. The rest of the line seems to be clip by the background.
 
 If I then set the alpha property to 0.5 and then I can see the full
 line drawn underneath the background.
 
 So it seems that I'm getting a wrong graphics instance or I'm 
missing
 some background configuration of the canvas. Has anybody seen this
 behavior or know what's the right usage?
 
 thanks!
 -Sergio
 
 
 public class TestCanvasDrawing extends Canvas
 {
 private var _canvas : Canvas;
 
 public function TestCanvasDrawing()
 {
 super();
 }
 
 protected override function updateDisplayList(unscaledWidth:Number,
 unscaledHeight:Number):void {
 super.updateDisplayList(unscaledWidth, unscaledHeight);
 //this.alpha = 0.5; //Uncomment to see the line below.
 this.graphics.lineStyle(5, 0xFF);
 this.graphics.moveTo(0, 0)
 this.graphics.lineTo(20, 20);
 }
 
 }
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links












--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] menu control in flex 2.0 beta 3

2006-05-24 Thread Joan Tan










In your example, your menuBar items do not
have any submenus. The change event is only triggered when a submenu item is
selected. If a menu has no submenus, the only event that gets triggered when
you click the item is the menuShow event. 



Joan











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of deepu_verma
Sent: Wednesday, May 24, 2006 1:20
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] menu control
in flex 2.0 beta 3





Following is my code and
I am trying to capture the change event.
But it seems that the change event does not trigger for menu bar
controls only.
mx:MenuBar labelField=@label showRoot=false
width=100%
change={mainViewStackHelper.getSearchResultView(event)} 
mx:dataProvider
 mx:XMLList xmlns=
 menuitem label=Menu1

menuitem label=Files data="">

menuitem label=Web Pages data="">
 /menuitem
 /mx:XMLList
/mx:dataProvider
/mx:MenuBar

--
Deepak Verma











--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Re: Newbie : How do i listen to a value ? Cairngorm inside.

2006-05-24 Thread Alex Uhlmann





Jean-Luc,


Doesn't the Binding tag solve your problem? The mx:Binding 
tag that's available in MXML components can help you listening to a property 
change in your business logic. You can execute a method of the view in the 
setter function that the Binding tag specifies as 
destination.

http://livedocs.macromedia.com/labs/1/flex20beta3/wwhelp/wwhimpl/js/html/wwhelp.htm?href="">


Best,
Alex



  
  

  


  
  

Alex UhlmannConsultant (Rich Internet 
Applications)Adobe ConsultingWestpoint, 4 Redheughs Rigg, 
South Gyle, Edinburgh, EH12 9DQ, UKp: +44 (0) 131 338 6969
m: +44 (0)7917 428 951[EMAIL PROTECTED] 
  



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Jean-Luc 
ESSERSent: 24 May 2006 13:58To: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: Newbie : How 
do i listen to a value ? Cairngorm inside.

Thanx Tom but is "Dynamically repeating 
components"the answer to my issue?
I agree that in my exemple, and probably most of 
the times, it could do the work, but does that mean there is no way to trigger a 
function by listenning to a change of value in a data ?
Or am i still missing something ?

Best,
Jean-Luc.

- Original Message - 
From: "Tom Chiverton" [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, May 24, 2006 12:27 PM
Subject: Re: [flexcoders] Re: Newbie : How do i 
listen to a value ? Cairngorm inside.
 On Wednesday 24 May 2006 11:10, Jean-Luc ESSER wrote: 
But how do i trigger addLabel() each time data in modelLocator changes 
? That is how do i bind the data to the trigerring of a Function. 
This is what i'm missing, it is probably obvious, but i don't see it 
!  Ahh, OK :-) http://livedocs.macromedia.com/labs/1/flex20beta3/wwhelp/wwhimpl/common/html/wwhelp.htm?href=""> ?  --  Tom Chiverton 
   
This email is sent for and on behalf of Halliwells LLP.  
Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF. A list of members is 
available for inspection at the registered office. Any reference to a partner in 
relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the 
Law Society.  CONFIDENTIALITY  This email is 
intended only for the use of the addressee named above and may be confidential 
or legally privileged. If you are not the addressee you must not read it 
and must not use any information contained in nor copy it nor inform any person 
other than Halliwells LLP or the addressee of its existence or contents. 
If you have received this email in error please delete it and notify Halliwells 
LLP IT Department on 0870 365 8008.  For more information about 
Halliwells LLP visit www.halliwells.com.  
We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the 
Year at the 2005 Growth Company Awards
 Yahoo! Groups Sponsor ~-- 
 Protect your PC from spy ware with award winning anti spy technology. 
It's free. http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/nhFolB/TM 
~- 
  -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com  Yahoo! Groups Links  * To 
visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/  * To unsubscribe from this group, send an email 
to: [EMAIL PROTECTED]  * Your use of Yahoo! Groups is subject 
to: http://docs.yahoo.com/info/terms/





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] E4X Gurus

2006-05-24 Thread sufibaba




Hello,

Wondering if someone can help with E4X XML commands.

I'm working on a second cut for the Tree with lines. What would be
the equivalent of the legacy XML object lastChild command. Also, if
possible, would love a list of XML object's properties converted to E4X.

Any help on this will benefit the whole of Flex-manity. 

Tim










--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












[flexcoders] Flex WebService error, CF Okay

2006-05-24 Thread Tom Ortega



I'm trying to use an internal Java Web Service.When I call from cf using cfinvoke, all is well.When I try to call from flex, however, I get this runtime error (see below) on app startup. No calls to the ws yet, just error on parsing the wsdl.
I was under the impression they (CF and Flex) both used Axis to process the WSDLs. Is this not the case? If they do, why does one error but not the other?TypeError: Error #1034: Type Coercion failed: cannot convert MC{
mx.rpc.soap.mxml::[EMAIL PROTECTED] mx.rpc::AbstractService/logout()[EMAIL PROTECTED] to mx.rpc.soap.Operation.at mx.rpc.soap::WebService/::createOperationsFromPort()at mx.rpc.soap::WebService/http://www.adobe.com/2006/flex/mx/internal::wsdlHandler
()at flash.events::EventDispatcher/dispatchEvent()at mx.rpc.soap::WSDLParser/dispatchEvent()at mx.rpc.soap::WSDLParser/::parseCompleted()at mx.rpc.soap::WSDLParser/http://www.adobe.com/2006/flex/mx/internal::httpResultHandler
()at flash.events::EventDispatcher/dispatchEvent()at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler
()at mx.rpc::Responder/result()at mx.rpc::AsyncRequest/acknowledge()at ::DirectHTTPMessageResponder/completeHandler()at flash.events::EventDispatcher/dispatchEvent()at flash.net::URLLoader/flash.net:URLLoader::onComplete
()at mx.rpc.soap::WebService/::setPort()Thanks,Tom






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Re: Flex Basics

2006-05-24 Thread hitch_nj



Hey,
 Thanks for that, I had tried that earlier.

hitch

--- In flexcoders@yahoogroups.com, poonam vora [EMAIL PROTECTED] wrote:

 hie,
 well i came across some example which can help u.
 but niether it has combo box nor classes
 but it uses event listeners.. and also uses custom components
 [if u r very new to flex, might be u dont get it]
 custom component is nothing but some component which is designed
on ur needs/. and event listeners are something that respond to events.
 
 but if u try to run the example below then it could be that
similar kinda output u required.
 so try out this example []
 
 main.mxml
 
 ?xml version=1.0?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
xmlns:local=*
 
 mx:Script
 ![CDATA[
 [Bindable]
 public var initDG:Array = [
 {Company: 'Acme', Contact: 'Bob Jones', 
 Phone: '413-555-1212', Date: '5/5/05'},
 {Company: 'Allied', Contact: 'Jane Smith', 
 Phone: '617-555-3434', Date: '5/6/05'} ];
 ]]
 /mx:Script
 
 mx:DataGrid id=myGrid dataProvider={initDG}
variableRowHeight=true 
 mx:columns
 mx:DataGridColumn dataField=Company 
 itemRenderer=RendererDGListData/
 mx:DataGridColumn dataField=Contact 
 itemRenderer=RendererDGListData/
 mx:DataGridColumn dataField=Phone 
 itemRenderer=RendererDGListData/
 mx:DataGridColumn dataField=Date 
 itemRenderer=RendererDGListData/
 /mx:columns 
 /mx:DataGrid 
 /mx:Application
 
 -
 RendererDGListData
 --
 ?xml version=1.0?
 !-- RendererDGListData.mxml --
 mx:TextArea xmlns:mx=http://www.adobe.com/2006/mxml
preinitialize =initTA();
 
 mx:Script
 ![CDATA[
 
 import mx.controls.dataGridClasses.DataGridListData;
 import flash.events.Event;
 
 public function initTA():void { 
 addEventListener(dataChange, handleDataChanged);
 } 
 
 public function handleDataChanged(event:Event):void { 
 // Cast listData to DataGridListData. 
 var myListData:DataGridListData =
DataGridListData(listData);
 
 // Access information about the data passed to
the item renderer.
 text=row index:  + String(myListData.rowIndex) + 
  column index:  +
String(myListData.columnIndex);
 } 
 ]]
 /mx:Script
 /mx:TextArea
 
 and then execute main.mxml
 
 bye.
 
 sarvesh610 [EMAIL PROTECTED] wrote: Hi,
 I am new to Flex, have been a J2EE person for a longtime. I have 
 developed an application which queries the database and returns me a 
 value object which has a list and vector. Now I need to use Flex as a 
 user interface. I have called the class using the remote-object, but 
 then how do I use the List and the Vector to display.
 Also I am a bit confused about the mx:ComboBox, how can I use the 
 dataprovider to use my value object to display the companyDesc as the 
 label and data as the ric if I am using the mx:Object
 
 Thanks
 S
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 
 
 
 SPONSORED LINKS 
 Web site
design development Computer
software development Software
design and development 
 Macromedia flex 
 Software development best practice 
 
 
 -
 YAHOO! GROUPS LINKS 
 
 
 Visit your group flexcoders on the web.
 
 To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
 
 Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service. 
 
 
 -
 
 
 
 
 
 -
 Yahoo! India Answers Share what your know-how and wisdom
 Send free SMS to your Friends on Mobile from your Yahoo! Messenger
Download now











--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] PDF aware Flash Player ???

2006-05-24 Thread John Dowdell



vvasireddyflex wrote:
 I am wondering is Flash player is PDF aware like browser?

No, not really... the Adobe Flash Player is popular because it is small, 
and import filters add to filesize. There is not even basic PDF reading 
in Flash Player, much less full PDF reading.

I know of a few ways to merge these technologies today:
-- Print the PDF to FlashPaper and display in Flash Player.
-- Invoke Flash Player from Adobe Reader (works with ActiveX, and I'm 
not sure at the moment of Netscape Plugins).
-- Have the two extensions side-by-side in the browser (subject to 
browser intercommunication abilities, Flex-Ajax Bridge-ishly).

jd





-- 
John Dowdell . Adobe Developer Support . San Francisco CA USA
Weblog: http://weblogs.macromedia.com/jd
Aggregator: http://weblogs.macromedia.com/mxna
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, thanks.






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Custom Component Render Issue

2006-05-24 Thread ubiqueros



What's up Flex peoples. I got one for you. Ok, here's the thing. I
have a swf that I am loading into a SWFLoader component, which loads
up ok. However, when a custom component is used, the controls for the
component fail to render i.e. the up and down arrows on the
NumericStepper do not render or the RadioButtons do not render at all.
Now when a standard components are used, every thing is grand. The
problem only arises when a custom component is used in a loaded swf.
Now when the loaded swf is viewed as a stand alone file, the custom
components render fine. Bizarre right? The only time the custom
components fail to render is when that swf is loaded into a SWFLoader
component. Has anyone ran into an issue like this?

r.










--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Bug Report -- Tree and Scrollbar

2006-05-24 Thread sufibaba



Dear Highly regarded Flex Team,

Been Testing the Tree Control and noticed that when the various
folders of the tree is opened and closed the tree starts to display
the listItems at the wrong Indentation. It seems that the problem
appears after the Tree's scrollbar shows up. 

I had this problem before in previous versions, is this still
documented as a bug?

Thanks,

Tim

- TestFile --


?xml version=1.0?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=*

 mx:Script
 ![CDATA[
 
 import mx.collections.*;
 
  [Bindable]
 public var xmlBalanced:XML =
 root label=main
 node label=Containers
 node label=DividedBoxClasses
 node label=BoxDivider
data="">
 /node
 node label=GridClasses
 node label=GridRow data="">
 node label=GridItem data="">
 node label=Other File data="">
 /node
 /node
 node label=Data
 node label=Messages
 node label=DataMessage
data="">
 node label=SequenceMessage
data="">
node label=Data1
node label=Messages1
node label=DataMessage
data="">
node label=SequenceMessage
data="">
  node label=Messages3
  node label=DataMessage
data="">
  node label=SequenceMessage
data="">
  /node
  node label=Events
  node label=ConflictEvents
data="">
  node label=CommitFaultEvent
data="">
  
node label=Messages5
node label=DataMessage
data="">
node label=SequenceMessage
data="">
/node
node label=Events
node label=ConflictEvents
data="">
node label=CommitFaultEvent
data="">
/node
  /node
/node
node label=Events
node label=ConflictEvents
data="">
node label=CommitFaultEvent
data="">
/node
/node
 /node
 node label=Events
 node label=ConflictEvents
data="">
 node label=CommitFaultEvent
data="">
 /node
 /node
 /root;
 

 ]]
 /mx:Script



 mx:Tree id=compBalanced dataProvider={xmlBalanced}
 labelField=@label width=400 height=500
 /
/mx:Application









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] Flex2B3 :: SWFLoader :: Using an Application and sizing issues

2006-05-24 Thread judah






I'm not Adobe but I saw this code in a thread further down. 
Then in as:
mySwf.content.gotoAndPlay(10);

So you could conceivably use (off the top of my head):
mySwf.content.size(myWindow.width, myWindow.height);

You could add a listnerer to the content that listens for the window
resize event and run that code inside of it. 

Judah

Michael Schmalle wrote:
Hi,
  
I am using a resizable window to load swf content. When I use the
SWFLoader, I understand about scaling and things. Looking at the
source, I really don't see a way that the component sizes itslef to a
'fluid' app.
  
How can I get my window to size the application swf inside the loader,
when my sizing logic is actually sizing the "SWFLoader instance"? Well,
I think I know a way but, I am asking if it is possible before I waste
time trying.
  
So the problem is 'treating a loaded Application.swf as a quasi
component when loaded that can resize fluidly".
  
There are a couple layers to this loading and contentHolders so Adobe,
any thoughts?
  
Peace, Mike
  
-- 
What goes up, does come down.




-- 
"Always bear in mind that your own resolution to succeed is more important than any one thing."

"You can have anything you want - if you want it badly enough. You can be anything you want to be, do anything you set out to accomplish if you hold to that desire with singleness of purpose." 

- Abraham Lincoln






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  










RE: [flexcoders] New to Flex Skinning.

2006-05-24 Thread Gordon Smith



Perhaps you need to event.currentTarget? It sounds like mosue events are coming from the skin and bubbling up to the component.

- Gordon


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gareth Edwards
Sent: Tuesday, May 23, 2006 8:19 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] New to Flex Skinning.

Been working on a little something, and I decided to attempt to style

some of what I'm working on.

I have attempted to use the css and some ClassReferences to do some 
skinning.

The first thing I get stuck on, and can't seem to get past, I'm pretty 
sure I'm not doing something right, but I don't know what.

The problem is, as soon as I attach the ClassReference to my css class, 
when I interact with the object, rather than event.target being the 
object I'm interacting with, it does something with the ClassReference 
and throws all sorts of errors. Can I step through the children or 
something until I hit the object I want?

Any help would be much appreciated.

p.s. the type of container I'm trying to style is a mx:Box if that 
helps at all?

Cheers
Gareth.





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Resolution Independence Thoughts (FLEX 2.0 B3)

2006-05-24 Thread sourcecoderia



Just wondering if anyone is thinking about various resolutions i.e. 
800x600 1024x768 etc..

Even though we work on large 19+ screens I find most companies
(future clients) do not have this size screen thus not a resolution 
optimal for screen space. I did notice that a size 8 default font on 
a formItem Is rather blurry but that may be my screen.

Has anyone played with this stuff yet to see what is optimal for 
different size screens and/or though of any solutions to these types 
of problems? The way Flex is today it assumes the screen is rather 
large. This assumption I make judging by the default size of the 
components. (Textinput etc..)

That said, a 8 point verdana font is much cleaner in word then in 
flex. What kind of thought has Adobe put into screen resolution 
independence, or what solutions (if any) do they propose/suggest ?

Thanks.

Jason











--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] addEventListener and setting events in mxml

2006-05-24 Thread John Grden



mx:Tree x=0 y=0 width=506 height=590 nodeOpen=open(event)
nodeClose=close(event) labelField=@label
id=treeView/mx:Tree
I have 2 questions really:1. Why won't this work? treeView.addEventListener(nodeOpen, open);2. Can I assign a static class method in the nodeOpen= attribute of the xml? Like nodeOpen=
StaticClass.myMethod(event)thanks
for the help! I searched through the archives and demo Tree code was
very helpful, but I couldn't locate a topic for this issue-- John Grden - Blitz







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] PDF aware Flash Player ???

2006-05-24 Thread Carlos Rovira



Approach four:- Use blazepdf : see it at http://www.blazepdf.com/I never use it, so I can't say nothing good or bad about it
2006/5/24, John Dowdell [EMAIL PROTECTED]:



vvasireddyflex wrote:
 I am wondering is Flash player is PDF aware like browser?

No, not really... the Adobe Flash Player is popular because it is small, 
and import filters add to filesize. There is not even basic PDF reading 
in Flash Player, much less full PDF reading.

I know of a few ways to merge these technologies today:
-- Print the PDF to FlashPaper and display in Flash Player.
-- Invoke Flash Player from Adobe Reader (works with ActiveX, and I'm 
not sure at the moment of Netscape Plugins).
-- Have the two extensions side-by-side in the browser (subject to 
browser intercommunication abilities, Flex-Ajax Bridge-ishly).

jd





-- 
John Dowdell . Adobe Developer Support . San Francisco CA USA
Weblog: http://weblogs.macromedia.com/jd
Aggregator: http://weblogs.macromedia.com/mxna
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, thanks.






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com









  
  
SPONSORED LINKS
  
  
  


Web site design development
  
  

Computer software development
  
  

Software design and development
  
  



Macromedia flex
  
  

Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group flexcoders on the web.

  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
.



  









-- ::| Carlos Rovira::| http://www.carlosrovira.com






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Re: Drawing in a Canvas subclass

2006-05-24 Thread Gordon Smith



I looked into what you're doing and I don't think the background is
causing the problem, because by default a Container doesn't have a
background DisplayObject.

You show a subclass of Canvas, but not how you're using it in an
Application. I tried the following:

MyApp.mxml:
--

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml width=600
height=600 xmlns=*

 TestCanvasDrawing/

/mx:Application

TextCanvasDrawing.as:


package
{

import mx.containers.Canvas;

public class TestCanvasDrawing extends Canvas
{
 public function TestCanvasDrawing()
 {
  super();
 }

 protected override function
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
 {
  super.updateDisplayList(unscaledWidth, unscaledHeight);

  this.graphics.lineStyle(5, 0xFF);
  this.graphics.moveTo(0, 0)
  this.graphics.lineTo(20, 20);
 }
}

}

and I saw a diagonal red line of the proper length.

However, I noticed that you're not really doing the right thing in
updateDisplayList(); you should be drawing only within the rectangle
specified by the unscaledWidth and unscaledHeight arguments passed in.
So I changed the last line to

 this.graphics.lineTo(unscaledWidth, unscaledHeight);

This causes only a very short stubby line to appear in the top-left
corner, like what you described.

The reason this is occuring is that your component doesn't know how big
it should be. If you don't specify width or parentWidth, and height or
parentHeight, on the TextCanvasDrawing tag, then you must implement a
measure() method so that your component has a measuredWidth and
measuredHeight that is nonzero.

When I do either of these two things, I see a line of the expected
length.

I also see an unexpected border in Beta 3, but not in our mainline
builds, so I'm not going to worry about that.

- Gordon


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sergio_trejo_r
Sent: Wednesday, May 24, 2006 10:26 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Drawing in a Canvas subclass

Thanks for the tip. The issue is that I also need the container 
features from the Canvas. I'm trying to build a control that has a 
mixture of drawn elements with other components that are sited in the 
control.

So if I subclass the UIComponent I think I will loose the ability to 
add child controls (although I haven't try).

I was not aware of the fact that the Canvas will add a child 
component for the background. I guess it must be related to the 
rawChildren property. I'm going to try also to override the 
createChildren method to avoid this.

As a side note. I feel that this hidden hierarchy of controls (i.e. 
background child) may be a misfeature in Flex. They should probably 
consider removing it from the public API.

thanks,
-Sergio



--- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote:

 Try subclassing UIComponent instead of Canvas. That should avoid the
 problems of having a background child.
 
 - Gordon
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of sergio_trejo_r
 Sent: Tuesday, May 23, 2006 4:37 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Drawing in a Canvas subclass
 
 Hi, I ran into a problem while trying to use the drawing API in a
 subclass of the Canvas container. See the code include below.
 
 The class TestCanvasDrawing extends the Canvas container. I attempt
 to draw a line in the updateDisplayList method. However when I see
 the output only a small portion of the line is drawn in the top-left
 corner. The rest of the line seems to be clip by the background.
 
 If I then set the alpha property to 0.5 and then I can see the full
 line drawn underneath the background.
 
 So it seems that I'm getting a wrong graphics instance or I'm 
missing
 some background configuration of the canvas. Has anybody seen this
 behavior or know what's the right usage?
 
 thanks!
 -Sergio
 
 
 public class TestCanvasDrawing extends Canvas
 {
 private var _canvas : Canvas;
 
 public function TestCanvasDrawing()
 {
 super();
 }
 
 protected override function updateDisplayList(unscaledWidth:Number,
 unscaledHeight:Number):void {
 super.updateDisplayList(unscaledWidth, unscaledHeight);
 //this.alpha = 0.5; //Uncomment to see the line below.
 this.graphics.lineStyle(5, 0xFF);
 this.graphics.moveTo(0, 0)
 this.graphics.lineTo(20, 20);
 }
 
 }
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 








--
Flexcoders Mailing List
FAQ: 

RE: [flexcoders] Cairngorm best practice with Tree data [f2b3]

2006-05-24 Thread Paul Williams



Hi Rick, Graham,

>From an MVC point of view, you should really be updating your model, and
the tree should detect those updates and display them (via binding).
However, there are two known bugs in beta 3 that may cause you problems:

1) The tree does not respond correctly to update events from the
collection classes. 
2) The collection classes are not detecting changes to objects they
contain even if the objects are Bindable.

I think you will need some representation of your server-side data model
on the client (accessible via ModelLocator), but it is your choice
whether you use XML or a hierarchical collection of bindable
ActionScript objects.

Whichever you choose, you should be able to manipulate your model or
refresh it from the server and the tree should update itself
automatically (once the above issues are resolved).

My colleague, Peter Martin has recently blogged about automatically
generating ActionScript VOs from Java classes using XDoclet2. You may
find this useful:

http://weblogs.macromedia.com/pmartin/archives/2006/04/xdoclet_woes.cfm

I hope this helps,

Paul

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rick Schmitty
Sent: Wednesday, May 24, 2006 4:25 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Cairngorm best practice with Tree data [f2b3]

I would also be interested and appreciate advice on this topic

On 5/23/06, Graham Weldon [EMAIL PROTECTED] wrote:
 Hi all,

 I'm messing with Cairngorm 2.0 beta, and Flex 2.0 beta 3. I've got a
 mx:Tree / that contains a structured set of data. This data can be
 subjected to an insert at any point. I have correctly setup the
events,
 commands and delegate to deal with the insertion, and I process the
 logical insertion on the server side of this application without
issues.
 The trouble I am having now is the graphical insertion of the new item
 into the existing model.

 Currently the data is XML based. The Tree is directly data bound to an
 XMLListCollection object.

 One thought I had was to model the entire tree as ValueObjects, so
that
 I could traverse the tree and 'addChild()' where necessary, but this
 would be a complete replication of my Server-Side java code on the
 client side, just for insertion. Additionally, I am not sure how i
would
 use a complex set of chained Value Objects as a data source for a Tree
 GUI component.

 Any information about this would be really helpful. I appreciate any
advice.

 I can display the tree correctly, I can use information from the
 selected item to perform operations etc. I am interested in inserting
a
 new item at a specified location. For example, a request to insert an
 item will result in XML data describing the insert:

 Regards,
 Graham Weldon.



 
 XML Tree INSERTION data Sample
 

 command action="" success=true
 addTreeItem parent=123
 element label=NEWitem id=/
 /addTreeItem
 addTreeItem parent=380
 element label=deepItem id=12/
 /addTreeItem
 /command

 


 
 XML Tree Data Sample
 

 tree
 element label=one id=123/
 element label=two id=122/
 element label=eight id=897
 element label=hello id=113/
 element label=world id=198
 element label=thing id=380/
 /element
 /element
 /tree

 


 
 ModelLocator
 
 ... snip ...

 public var myTreeData : XMLListCollection = new XMLListCollection();

 ... snip ...
 


 
 Application.mxml
 
 ... snip ...

 myComponents:TreeComponent
 dataProvider={ModelLocator.myTreeData}/

 ... snip ...
 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












[flexcoders] Re: New to Flex Skinning.

2006-05-24 Thread Tim Hoff



An easy way to do this in MXML is as follows.

in your application MXML file:

mx:Style source=myCSS.css/
mx:Box styleName=myBox/

In your CSS file:

.myBox {
 color:   #FF;
 backgroundColor: #FF;
}

If you want to do it purely in AS, you'll have to use setStyle.

-TH

--- In flexcoders@yahoogroups.com, Gareth Edwards [EMAIL PROTECTED] 
wrote:

 Been working on a little something, and I decided to attempt to 
style
 
 some of what I'm working on.
 
 I have attempted to use the css and some ClassReferences to do 
some 
 skinning.
 
 The first thing I get stuck on, and can't seem to get past, I'm 
pretty 
 sure I'm not doing something right, but I don't know what.
 
 The problem is, as soon as I attach the ClassReference to my css 
class, 
 when I interact with the object, rather than event.target being 
the 
 object I'm interacting with, it does something with the 
ClassReference 
 and throws all sorts of errors. Can I step through the children or 
 something until I hit the object I want?
 
 Any help would be much appreciated.
 
 p.s. the type of container I'm trying to style is a mx:Box if 
that 
 helps at all?
 
 Cheers
 Gareth.











--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Re: Cairngorm best practice with Tree data [f2b3]

2006-05-24 Thread Tim Hoff



I would think that if you don't want to replicate the server-side 
logic, you could just refresh the XMLListCollection data (new call) 
after the insertion has occured. The binding would update the 
view. If you are using the view to allow an insertion point, you 
would have to use addChildAt().

-TH

--- In flexcoders@yahoogroups.com, Graham Weldon [EMAIL PROTECTED] 
wrote:

 Hi all,
 
 I'm messing with Cairngorm 2.0 beta, and Flex 2.0 beta 3. I've got 
a 
 mx:Tree / that contains a structured set of data. This data can 
be 
 subjected to an insert at any point. I have correctly setup the 
events, 
 commands and delegate to deal with the insertion, and I process 
the 
 logical insertion on the server side of this application without 
issues. 
 The trouble I am having now is the graphical insertion of the new 
item 
 into the existing model.
 
 Currently the data is XML based. The Tree is directly data bound 
to an 
 XMLListCollection object.
 
 One thought I had was to model the entire tree as ValueObjects, so 
that 
 I could traverse the tree and 'addChild()' where necessary, but 
this 
 would be a complete replication of my Server-Side java code on the 
 client side, just for insertion. Additionally, I am not sure how i 
would 
 use a complex set of chained Value Objects as a data source for a 
Tree 
 GUI component.
 
 Any information about this would be really helpful. I appreciate 
any advice.
 
 I can display the tree correctly, I can use information from the 
 selected item to perform operations etc. I am interested in 
inserting a 
 new item at a specified location. For example, a request to insert 
an 
 item will result in XML data describing the insert:
 
 Regards,
 Graham Weldon.
 
 
 
 
 XML Tree INSERTION data Sample
 
 
 command action="" success=true
 addTreeItem parent=123
 element label=NEWitem id=/
 /addTreeItem
 addTreeItem parent=380
 element label=deepItem id=12/
 /addTreeItem
 /command
 
 
 
 
 
 XML Tree Data Sample
 
 
 tree
 element label=one id=123/
 element label=two id=122/
 element label=eight id=897
 element label=hello id=113/
 element label=world id=198
 element label=thing id=380/
 /element
 /element
 /tree
 
 
 
 
 
 ModelLocator
 
 ... snip ...
 
 public var myTreeData : XMLListCollection = new XMLListCollection
();
 
 ... snip ...
 
 
 
 
 Application.mxml
 
 ... snip ...
 
 myComponents:TreeComponent
 dataProvider={ModelLocator.myTreeData}/
 
 ... snip ...
 












--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] Re: Cairngorm best practice with Tree data [f2b3]

2006-05-24 Thread Graham Weldon



Hi Tim,

I can refresh the XMLListCollection with a TreeDataCommand. This 
contacts the server and requests a full tree XML, which is then 
converted to a new XMLListCollection. If I use this method, the tree 
collapses to its initial state, which is undesirable.

addChildAt() is the method I have been trying to use. This requires that 
I recurse through the XML tree, looking for an element id matching the 
parentId from the addition command. This is somewhat cumbersome, and I 
have as yet not created a working solution for this.

Still poking away at it, and taking suggestions.

Regards,
Graham Weldon


Tim Hoff wrote:

 I would think that if you don't want to replicate the server-side
 logic, you could just refresh the XMLListCollection data (new call)
 after the insertion has occured. The binding would update the
 view. If you are using the view to allow an insertion point, you
 would have to use addChildAt().

 -TH

 --- In flexcoders@yahoogroups.com, Graham Weldon [EMAIL PROTECTED]
 wrote:
 
  Hi all,
 
  I'm messing with Cairngorm 2.0 beta, and Flex 2.0 beta 3. I've got
 a
  mx:Tree / that contains a structured set of data. This data can
 be
  subjected to an insert at any point. I have correctly setup the
 events,
  commands and delegate to deal with the insertion, and I process
 the
  logical insertion on the server side of this application without
 issues.
  The trouble I am having now is the graphical insertion of the new
 item
  into the existing model.
 
  Currently the data is XML based. The Tree is directly data bound
 to an
  XMLListCollection object.
 
  One thought I had was to model the entire tree as ValueObjects, so
 that
  I could traverse the tree and 'addChild()' where necessary, but
 this
  would be a complete replication of my Server-Side java code on the
  client side, just for insertion. Additionally, I am not sure how i
 would
  use a complex set of chained Value Objects as a data source for a
 Tree
  GUI component.
 
  Any information about this would be really helpful. I appreciate
 any advice.
 
  I can display the tree correctly, I can use information from the
  selected item to perform operations etc. I am interested in
 inserting a
  new item at a specified location. For example, a request to insert
 an
  item will result in XML data describing the insert:
 
  Regards,
  Graham Weldon.
 
 
 
  
  XML Tree INSERTION data Sample
  
 
  command action="" success=true
  addTreeItem parent=123
  element label=NEWitem id=/
  /addTreeItem
  addTreeItem parent=380
  element label=deepItem id=12/
  /addTreeItem
  /command
 
  
 
 
  
  XML Tree Data Sample
  
 
  tree
  element label=one id=123/
  element label=two id=122/
  element label=eight id=897
  element label=hello id=113/
  element label=world id=198
  element label=thing id=380/
  /element
  /element
  /tree
 
  
 
 
  
  ModelLocator
  
  ... snip ...
 
  public var myTreeData : XMLListCollection = new XMLListCollection
 ();
 
  ... snip ...
  
 
 
  
  Application.mxml
  
  ... snip ...
 
  myComponents:TreeComponent
  dataProvider={ModelLocator.myTreeData}/
 
  ... snip ...
  
 







 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



 SPONSORED LINKS
 Web site design development 
 http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ 
  Computer software development 
 http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw 
  Software design and development 
 http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ 

 Macromedia flex 
 http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjw 
  Software development best practice 
 http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw 



 
 YAHOO! GROUPS LINKS

 * Visit your group flexcoders
 

[flexcoders] Re: mxml confusing

2006-05-24 Thread Tim Hoff



Anything in Flex that is done with MXML can also be done in AS3. In 
fact, the MXML is converted to AS by the compiler when you create 
the swf. You could start by reading the Action Script section of 
the help documentation. I personally, like the MXML tags. They 
they act as wrappers that can dramtically reduce the amount of code, 
which (inho) makes an application easier to read. :)

Tim Hoff


--- In flexcoders@yahoogroups.com, matti bar zeev [EMAIL PROTECTED] 
wrote:

 MXML is not that confusing at all, but then again - it's a metter 
of
 personal taste.
 You can build an AS oriented project that has nothing to with MXML 
except
 the main project's application tag.
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED]
 Sent: Wednesday, May 24, 2006 07:14
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] mxml confusing
 Importance: Low
 
 
 so in picking up flex. I find that having mxml everywhere is 
really
 confusing. I have a coding mind and when I see mxml all over I 
get
 totally confused by it. I can't even explain really how I get 
confused.
 I just don't like it. It doesn't make sense to me. It's not code.
 
 Does anyone know of any good references of tutorials on getting 
around
 mxml and building almost everything with actionscript. Im sure 
it can be
 done. it might take more code but it is easier to understand. 
would the
 solution be as3 projects vs mxml application? it thats the case 
is it
 possible to use flex components in as3 projects?
 
 I'm just kinda looking for some different solutions for getting 
around
 mxml as much as possible.
 
 has anyone else found mxml to be more confusing than 
actionscript?
 
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%
40yahoogroups.com
 Yahoo! Groups Links











--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Re: Cairngorm best practice with Tree data [f2b3]

2006-05-24 Thread Tim Hoff



Yeah, I see your issues. I haven't needed to work with trees yet, 
so I wish you good luck. :)

Tim

--- In flexcoders@yahoogroups.com, Graham Weldon [EMAIL PROTECTED] 
wrote:

 Hi Tim,
 
 I can refresh the XMLListCollection with a TreeDataCommand. This 
 contacts the server and requests a full tree XML, which is then 
 converted to a new XMLListCollection. If I use this method, the 
tree 
 collapses to its initial state, which is undesirable.
 
 addChildAt() is the method I have been trying to use. This 
requires that 
 I recurse through the XML tree, looking for an element id 
matching the 
 parentId from the addition command. This is somewhat cumbersome, 
and I 
 have as yet not created a working solution for this.
 
 Still poking away at it, and taking suggestions.
 
 Regards,
 Graham Weldon
 
 
 Tim Hoff wrote:
 
  I would think that if you don't want to replicate the server-side
  logic, you could just refresh the XMLListCollection data (new 
call)
  after the insertion has occured. The binding would update the
  view. If you are using the view to allow an insertion point, you
  would have to use addChildAt().
 
  -TH
 
  --- In flexcoders@yahoogroups.com, Graham Weldon graham.weldon@
  wrote:
  
   Hi all,
  
   I'm messing with Cairngorm 2.0 beta, and Flex 2.0 beta 3. I've 
got
  a
   mx:Tree / that contains a structured set of data. This data 
can
  be
   subjected to an insert at any point. I have correctly setup the
  events,
   commands and delegate to deal with the insertion, and I process
  the
   logical insertion on the server side of this application 
without
  issues.
   The trouble I am having now is the graphical insertion of the 
new
  item
   into the existing model.
  
   Currently the data is XML based. The Tree is directly data 
bound
  to an
   XMLListCollection object.
  
   One thought I had was to model the entire tree as 
ValueObjects, so
  that
   I could traverse the tree and 'addChild()' where necessary, but
  this
   would be a complete replication of my Server-Side java code on 
the
   client side, just for insertion. Additionally, I am not sure 
how i
  would
   use a complex set of chained Value Objects as a data source 
for a
  Tree
   GUI component.
  
   Any information about this would be really helpful. I 
appreciate
  any advice.
  
   I can display the tree correctly, I can use information from 
the
   selected item to perform operations etc. I am interested in
  inserting a
   new item at a specified location. For example, a request to 
insert
  an
   item will result in XML data describing the insert:
  
   Regards,
   Graham Weldon.
  
  
  
   
   XML Tree INSERTION data Sample
   
  
   command action="" success=true
   addTreeItem parent=123
   element label=NEWitem id=/
   /addTreeItem
   addTreeItem parent=380
   element label=deepItem id=12/
   /addTreeItem
   /command
  
   
  
  
   
   XML Tree Data Sample
   
  
   tree
   element label=one id=123/
   element label=two id=122/
   element label=eight id=897
   element label=hello id=113/
   element label=world id=198
   element label=thing id=380/
   /element
   /element
   /tree
  
   
  
  
   
   ModelLocator
   
   ... snip ...
  
   public var myTreeData : XMLListCollection = new 
XMLListCollection
  ();
  
   ... snip ...
   
  
  
   
   Application.mxml
   
   ... snip ...
  
   myComponents:TreeComponent
   dataProvider={ModelLocator.myTreeData}/
  
   ... snip ...
   
  
 
 
 
 
 
 
 
  --
  Flexcoders Mailing List
  FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives: http://www.mail-archive.com/flexcoders%
40yahoogroups.com
 
 
 
  SPONSORED LINKS
  Web site design development 
  http://groups.yahoo.com/gads?
t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=
Computer+software+developmentw3=Software+design+and+developmentw4=M
acromedia+flexw5=Software+development+best+practicec=5s=166.sig=L
-4QTvxB_quFDtMyhrQaHQ 
   Computer software development 
  http://groups.yahoo.com/gads?
t=msk=Computer+software+developmentw1=Web+site+design+developmentw
2=Computer+software+developmentw3=Software+design+and+developmentw4
=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig
=lvQjSRfQDfWudJSe1lLjHw 
   Software design and development 
  http://groups.yahoo.com/gads?
t=msk=Software+design+and+developmentw1=Web+site+design+development
w2=Computer+software+developmentw3=Software+design+and+development
w4=Macromedia+flexw5=Software+development+best+practicec=5s=166.s
ig=1pMBCdo3DsJbuU9AEmO1oQ 
 
  Macromedia flex 
  http://groups.yahoo.com/gads?
t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+sof
tware+developmentw3=Software+design+and+developmentw4=Macromedia+fl
exw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZ
I36cYzBjw 
   Software development best practice 
  http://groups.yahoo.com/gads?

[flexcoders] Tree with Lines, cut 2

2006-05-24 Thread sufibaba



Fellow Flexors,

Here's an updated Tree with lines. I have it working in my actual
Flex App. It seems that everything is working.

Happy TreeLining.

Note: The Flex tree without lines has bugs when the scrollbar shows
up. So when you are using the tree with lines and you get errors at
runtime, it could be this bug. However, there could bugs in my code
that I am not aware of. 

P.S. if anyone improves upon this tree, do let us know about it. 

All the Best,


Tim

-- MyTreeItemRenderer.as---

package com.smartetailing.layoutAssign.view.main{

 import mx.controls.treeClasses.*;
 import mx.collections.*
 import flash.display.Sprite;
 

 public class MyTreeItemRenderer extends TreeItemRenderer {

 private var isLast:Boolean;
 private var lineArr:Array =new Array();
 // Define the constructor.
 public function MyTreeItemRenderer() {
 super();
 }
 
 // Override the set method for the data property
 // to set the font color and style of each node.
 override public function set data(value:Object):void {
  
 super.data = "">
 
 if (TreeListData(super.listData)){
  if(TreeListData(super.listData).hasChildren) {
  setStyle(color, 0xff);
  setStyle(fontWeight, 'bold');
  }
  else {
  setStyle(color, 0x00);
  setStyle(fontWeight, 'normal');
  } 
 }
 
 }

  
 public function makeLastChildArr(node:Object,
requestedLevel:Number, startLevel:Number):Boolean {
   
   trace(isLastChild =  + node.toXMLString() + 
requestedLevel =  + requestedLevel +  startLevel =  + startLevel);
var isLastFlag:Boolean = false;

var parentNode:XML = node.parent();
var grandParNode:XML = parentNode.parent();

if (grandParNode){
 var children:XMLList = grandParNode.children();
 var noOfChildren:Number = children.length();
 
 trace(parentNode =  + parentNode.toXMLString() + 
grandParNode =  + grandParNode.toXMLString() +  noOfChildren =  +
noOfChildren);
 //trace(foundNode =  + children[noOfChildren -1] + , Node = 
+ node.toXMLString() );
 if ( parentNode == children[noOfChildren -1]){
  trace(foundNode =  + children[noOfChildren -1] + , Node =  +
node.toXMLString );
  isLastFlag = true;
 }

 lineArr.push(isLastFlag);
 
 if (requestedLevel != startLevel){
  makeLastChildArr(node.parent(), requestedLevel, startLevel - 1);
 }
}

return isLastFlag;
  }

 public function drawParentLines(i:Number):void {
   graphics.lineStyle(.7, 0x99,.3,false,NONE);
   var offset:Number = i*17 - 11;
   if (i == 2){offset = 23};
   graphics.moveTo(offset,-8);
   graphics.lineTo(offset,14);
  }
  
 public function drawChildLeafLines(indent:Number):void {
   graphics.lineStyle(.7, 0x99,.3,false,NONE);
   var offset:Number = indent + 6.5;
   graphics.moveTo(offset,-8);
   graphics.lineTo(offset,10);
   graphics.moveTo(offset,10);
   graphics.lineTo(offset + 10,10);
  }

 public function drawChildFolderLines(indent:Number):void {
   graphics.lineStyle(.7, 0x99,.3,false,NONE);
   var offset:Number = indent + 6.5;
   graphics.moveTo(offset,-8);
   graphics.lineTo(offset,2);
  }



 // Override the updateDisplayList() method 
 // to set the text for each tree node. 
 override protected function
updateDisplayList(unscaledWidth:Number,unscaledHeight:Number):void {
 super.updateDisplayList(unscaledWidth, unscaledHeight);
 if(super.data) {
  if (TreeListData(super.listData)){
  graphics.clear();
 var node:Object = TreeListData(super.listData).item;

var depth:Number = TreeListData(super.listData).depth;
var indent:Number = TreeListData(super.listData).indent ;

 lineArr =new Array();
 
 if(TreeListData(super.listData).hasChildren) {
 var tmp:XMLList = new
XMLList(TreeListData(super.listData).item);
 var myStr:int = tmp[0].children().length();
 super.label.text = 
TreeListData(super.listData).text + ( + myStr + );
 graphics.lineStyle(.7, 0x99,.3,false,NONE);

 trace(depth =  + TreeListData(super.listData).depth + , open =
 + TreeListData(super.listData).open + , rowIndex =  +
TreeListData(super.listData).rowIndex);
 
 //trace(icon =  + TreeListData(super.listData).icon );
  
 // makeLastChildArr calls grandparentnode in order to determine
whether the parent's
 // node is the last child.
 // if no grandparent node exist, then it will give an error.
 if ( depth  2){
  makeLastChildArr(node,depth,depth);
  if (depth 3){
   makeLastChildArr(node,3,depth);
  }
  
  //trace(isLastChild =  + isLast +  i= + i);
  trace(lineArrLen =  + lineArr.length );
  
  lineArr = lineArr.reverse(); 
  for (var i:Number=0;i lineArr.length;i++){
   trace(lineArr =  + lineArr[i] +  i= + i);
   
  }
 
  for(var i:Number=1;i=depth;i++){
   
   var parentDropLine:Boolean = false;
   
   TreeListData(super.listData);
 
   if(i == depth ){
drawChildFolderLines(indent);
   }
   else { // Preceding lines
if (i != 1 

RE: [flexcoders] Resolution Independence Thoughts (FLEX 2.0 B3)

2006-05-24 Thread Jack W. Caldwell




Jason

FYI

According to these guys, as of Jan. 2006, 64% of users are using
a screen resolution 1024 x 768 or greater.

 http://www.w3schools.com/browsers/browsers_stats.asp

Scroll down until you see Display Resolutions.

I have seen other research but can not find it where as of March
it was closer to 70%.

Another site with different numbers.

 http://www.upsdell.com/BrowserNews/stat_trends.htm


Jack 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sourcecoderia
Sent: Wednesday, May 24, 2006 3:37 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Resolution Independence Thoughts (FLEX 2.0 B3)

Just wondering if anyone is thinking about various resolutions i.e. 
800x600 1024x768 etc..

Even though we work on large 19+ screens I find most companies (future
clients) do not have this size screen thus not a resolution optimal for
screen space. I did notice that a size 8 default font on a formItem Is
rather blurry but that may be my screen.

Has anyone played with this stuff yet to see what is optimal for different
size screens and/or though of any solutions to these types of problems? The
way Flex is today it assumes the screen is rather large. This assumption I
make judging by the default size of the components. (Textinput etc..)

That said, a 8 point verdana font is much cleaner in word then in flex. What
kind of thought has Adobe put into screen resolution independence, or what
solutions (if any) do they propose/suggest ?

Thanks.

Jason







 Yahoo! Groups Sponsor ~--
Everything you need is one click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links



 












--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] PDF aware Flash Player ???

2006-05-24 Thread John Dowdell



Carlos Rovira wrote:
 2006/5/24, John Dowdell [EMAIL PROTECTED]:
 I know of a few ways to merge these technologies today:
 -- Print the PDF to FlashPaper and display in Flash Player.
 -- Invoke Flash Player from Adobe Reader (works with ActiveX, and I'm
 not sure at the moment of Netscape Plugins).
 -- Have the two extensions side-by-side in the browser (subject to
 browser intercommunication abilities, Flex-Ajax Bridge-ishly).
 
 Approach four:
 - Use blazepdf : see it at http://www.blazepdf.com/

Good point, thanks for the catch. Gregg Wygonik's BlazePDF is a SWF file 
which reads, parses, and then renders PDF content. Like all non-Adobe 
PDF readers it doesn't support everything the file format can do, but 
from all I've heard it's a good approach if its functionality fits your 
job's needs.

(btw, I really like these approaches to render PDF within a SWF file, or 
render SVG within a SWF file, or render XAML within a SWF file, and so 
on... new web technology like the Safari/Firefox CANVAS tag shouldn't be 
held in a little ghetto just because all the browsermakers haven't used 
it yet... I think SWF can play a big role here, as a universal renderer 
of many types of web content.)

jd





-- 
John Dowdell . Adobe Developer Support . San Francisco CA USA
Weblog: http://weblogs.macromedia.com/jd
Aggregator: http://weblogs.macromedia.com/mxna
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, thanks.






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












[flexcoders] Re: Tree with Lines, cut 2

2006-05-24 Thread sufibaba



Special Thanks To:

Anatole Tartakovsky and Theodore E Patrick for giving me pointers a
while ago when the flex project I was working on needed tree lines. It
was during Flex Alpha time. 

Shortly after getting tips for the tree lines, we had to drop flex due
to the alpha's data remoting and binding problems. Now we are back
onto flex and found that we needed the lines again. 

The Tips given by both Anatole and Theodore were very helpful. Thanks
again gentleman.

# Re: [flexcoders] ANY FLEX TREE GURUS? Anatole Tartakovsky
# RE: [flexcoders] ANY FLEX TREE GURUS? Theodore E Patrick

Cheers,

Tim


--- In flexcoders@yahoogroups.com, sufibaba [EMAIL PROTECTED] wrote:

 Fellow Flexors,
 
 Here's an updated Tree with lines. I have it working in my actual
 Flex App. It seems that everything is working.
 
 Happy TreeLining.
 
 Note: The Flex tree without lines has bugs when the scrollbar shows
 up. So when you are using the tree with lines and you get errors at
 runtime, it could be this bug. However, there could bugs in my code
 that I am not aware of. 
 
 P.S. if anyone improves upon this tree, do let us know about it. 
 
 All the Best,
 
 
 Tim
 
 -- MyTreeItemRenderer.as---
 
 package com.smartetailing.layoutAssign.view.main{
 
 import mx.controls.treeClasses.*;
 import mx.collections.*
 import flash.display.Sprite;
 
 
 public class MyTreeItemRenderer extends TreeItemRenderer {
 
  private var isLast:Boolean;
  private var lineArr:Array =new Array();
 // Define the constructor.
 public function MyTreeItemRenderer() {
 super();
 }
 
 // Override the set method for the data property
 // to set the font color and style of each node.
 override public function set data(value:Object):void {
  
 super.data = "">
 
 if (TreeListData(super.listData)){
   if(TreeListData(super.listData).hasChildren) {
   setStyle(color, 0xff);
   setStyle(fontWeight, 'bold');
   }
   else {
   setStyle(color, 0x00);
   setStyle(fontWeight, 'normal');
   } 
 }
 
 }
 
  
 public function makeLastChildArr(node:Object,
 requestedLevel:Number, startLevel:Number):Boolean {
   
   trace(isLastChild =  + node.toXMLString() + 
 requestedLevel =  + requestedLevel +  startLevel =  + startLevel);
 var isLastFlag:Boolean = false;
 
 var parentNode:XML = node.parent();
 var grandParNode:XML = parentNode.parent();
 
 if (grandParNode){
  var children:XMLList = grandParNode.children();
  var noOfChildren:Number = children.length();
  
  trace(parentNode =  + parentNode.toXMLString() + 
 grandParNode =  + grandParNode.toXMLString() +  noOfChildren =  +
 noOfChildren);
  //trace(foundNode =  + children[noOfChildren -1] + , Node = 
 + node.toXMLString() );
  if ( parentNode == children[noOfChildren -1]){
   trace(foundNode =  + children[noOfChildren -1] + , Node =  +
 node.toXMLString );
   isLastFlag = true;
  }
 
  lineArr.push(isLastFlag);
  
  if (requestedLevel != startLevel){
   makeLastChildArr(node.parent(), requestedLevel, startLevel - 1);
  }
 }
 
 return isLastFlag;
   }
 
 public function drawParentLines(i:Number):void {
graphics.lineStyle(.7, 0x99,.3,false,NONE);
var offset:Number = i*17 - 11;
if (i == 2){offset = 23};
graphics.moveTo(offset,-8);
graphics.lineTo(offset,14);
   }
   
 public function drawChildLeafLines(indent:Number):void {
graphics.lineStyle(.7, 0x99,.3,false,NONE);
var offset:Number = indent + 6.5;
graphics.moveTo(offset,-8);
graphics.lineTo(offset,10);
graphics.moveTo(offset,10);
graphics.lineTo(offset + 10,10);
   }
 
 public function drawChildFolderLines(indent:Number):void {
graphics.lineStyle(.7, 0x99,.3,false,NONE);
var offset:Number = indent + 6.5;
graphics.moveTo(offset,-8);
graphics.lineTo(offset,2);
   }
 
 
 
 // Override the updateDisplayList() method 
 // to set the text for each tree node. 
 override protected function
 updateDisplayList(unscaledWidth:Number,unscaledHeight:Number):void {
 super.updateDisplayList(unscaledWidth, unscaledHeight);
 if(super.data) {
  if (TreeListData(super.listData)){
  graphics.clear();
 var node:Object = TreeListData(super.listData).item;
 
 var depth:Number = TreeListData(super.listData).depth;
 var indent:Number = TreeListData(super.listData).indent ;
 
  lineArr =new Array();
 
 if(TreeListData(super.listData).hasChildren) {
 var tmp:XMLList = new
 XMLList(TreeListData(super.listData).item);
 var myStr:int = tmp[0].children().length();
 super.label.text = 
 TreeListData(super.listData).text + ( + myStr + );
 graphics.lineStyle(.7, 0x99,.3,false,NONE);
 
  trace(depth =  + TreeListData(super.listData).depth + , open =
  + TreeListData(super.listData).open + , rowIndex =  +
 TreeListData(super.listData).rowIndex);
  
  //trace(icon =  + TreeListData(super.listData).icon );
   
  // makeLastChildArr calls grandparentnode in order to 

RE: [flexcoders] Re: Newbie : How do i listen to a value ? Cairngorm inside.

2006-05-24 Thread Alex Uhlmann





and here's the correct link:
http://livedocs.macromedia.com/labs/1/flex20beta3/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1059.html#177314

Best,
Alex


  
  

  


  
  

Alex UhlmannConsultant (Rich Internet 
Applications)Adobe ConsultingWestpoint, 4 Redheughs Rigg, 
South Gyle, Edinburgh, EH12 9DQ, UKp: +44 (0) 131 338 6969
m: +44 (0)7917 428 951[EMAIL PROTECTED] 
  



From: Alex Uhlmann Sent: 24 May 2006 
18:41To: flexcoders@yahoogroups.comSubject: RE: 
[flexcoders] Re: Newbie : How do i listen to a value ? Cairngorm 
inside.

Jean-Luc,


Doesn't the Binding tag solve your problem? The mx:Binding 
tag that's available in MXML components can help you listening to a property 
change in your business logic. You can execute a method of the view in the 
setter function that the Binding tag specifies as 
destination.

http://livedocs.macromedia.com/labs/1/flex20beta3/wwhelp/wwhimpl/js/html/wwhelp.htm?href="">


Best,
Alex



  
  

  


  
  

Alex UhlmannConsultant (Rich Internet 
Applications)Adobe ConsultingWestpoint, 4 Redheughs Rigg, 
South Gyle, Edinburgh, EH12 9DQ, UKp: +44 (0) 131 338 6969
m: +44 (0)7917 428 951[EMAIL PROTECTED] 
  



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Jean-Luc 
ESSERSent: 24 May 2006 13:58To: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: Newbie : How 
do i listen to a value ? Cairngorm inside.

Thanx Tom but is "Dynamically repeating 
components"the answer to my issue?
I agree that in my exemple, and probably most of 
the times, it could do the work, but does that mean there is no way to trigger a 
function by listenning to a change of value in a data ?
Or am i still missing something ?

Best,
Jean-Luc.

- Original Message - 
From: "Tom Chiverton" [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, May 24, 2006 12:27 PM
Subject: Re: [flexcoders] Re: Newbie : How do i 
listen to a value ? Cairngorm inside.
 On Wednesday 24 May 2006 11:10, Jean-Luc ESSER wrote: 
But how do i trigger addLabel() each time data in modelLocator changes 
? That is how do i bind the data to the trigerring of a Function. 
This is what i'm missing, it is probably obvious, but i don't see it 
!  Ahh, OK :-) http://livedocs.macromedia.com/labs/1/flex20beta3/wwhelp/wwhimpl/common/html/wwhelp.htm?href=""> ?  --  Tom Chiverton 
   
This email is sent for and on behalf of Halliwells LLP.  
Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF. A list of members is 
available for inspection at the registered office. Any reference to a partner in 
relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the 
Law Society.  CONFIDENTIALITY  This email is 
intended only for the use of the addressee named above and may be confidential 
or legally privileged. If you are not the addressee you must not read it 
and must not use any information contained in nor copy it nor inform any person 
other than Halliwells LLP or the addressee of its existence or contents. 
If you have received this email in error please delete it and notify Halliwells 
LLP IT Department on 0870 365 8008.  For more information about 
Halliwells LLP visit www.halliwells.com.  
We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the 
Year at the 2005 Growth Company Awards
 Yahoo! Groups Sponsor ~-- 
 Protect your PC from spy ware with award winning anti spy technology. 
It's free. http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/nhFolB/TM 
~- 
  -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com  Yahoo! Groups Links  * To 
visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/  * To unsubscribe from this group, send an email 
to: [EMAIL PROTECTED]  * Your use of Yahoo! Groups is subject 
to: http://docs.yahoo.com/info/terms/





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  

Re: [flexcoders] PDF aware Flash Player ???

2006-05-24 Thread Gareth Edwards






Hi John,

The company I work for are interested in methods we can use to
communicate to the parent document. (ie HTML document where the PDF is
embedded).

Could you elaborate on how it is currently possible to Invoke flash
player from Adobe Reader? Is this done via _javascript_ in the pdf
document as well as the browser?

Are there examples of this in the Acrobat SDK? or in any public facing
documents?

Cheers
Gareth.


John Dowdell wrote:

  vvasireddyflex wrote:
  
  
I am wondering is Flash player is PDF aware like browser?

  
  
No, not really... the Adobe Flash Player is popular because it is small, 
and import filters add to filesize. There is not even basic PDF reading 
in Flash Player, much less full PDF reading.

I know of a few ways to merge these technologies today:
--  Print the PDF to FlashPaper and display in Flash Player.
--  Invoke Flash Player from Adobe Reader (works with ActiveX, and I'm 
not sure at the moment of Netscape Plugins).
--  Have the two extensions side-by-side in the browser (subject to 
browser intercommunication abilities, Flex-Ajax Bridge-ishly).

jd





  







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












Re: [flexcoders] Cairngorm best practice with Tree data [f2b3]

2006-05-24 Thread venugopal vasireddy



I guess you are not updating bounded object "XMLListcollection" with insert xml.  Though it is not strictly equivalent to "addNode" in flex 1.5,-Venu  Rick Schmitty [EMAIL PROTECTED] wrote:  I would also be interested and appreciate advice on this topicOn 5/23/06, Graham Weldon [EMAIL PROTECTED] wrote: Hi all, I'm messing with Cairngorm 2.0 beta, and Flex 2.0 beta 3. I've got a mx:Tree / that contains a structured set of data. This data can be subjected to an insert at any point. I have correctly setup the events, commands and delegate to deal with the insertion, and I process the logical insertion on the server side of this application without issues. The trouble I am having
 now is the graphical insertion of the new item into the existing model. Currently the data is XML based. The Tree is directly data bound to an XMLListCollection object. One thought I had was to model the entire tree as ValueObjects, so that I could traverse the tree and 'addChild()' where necessary, but this would be a complete replication of my Server-Side java code on the client side, just for insertion. Additionally, I am not sure how i would use a complex set of chained Value Objects as a data source for a Tree GUI component. Any information about this would be really helpful. I appreciate any advice. I can display the tree correctly, I can use information from the selected item to perform operations etc. I am interested in inserting a new item at a specified location. For example, a request to insert an item will result in XML
 data describing the insert: Regards, Graham Weldon.  XML Tree INSERTION data Sample  command action="" success="true" addTreeItem parent="123" element label="NEWitem" id=""/ /addTreeItem addTreeItem parent="380" element label="deepItem" id="12"/ /addTreeItem /command   XML Tree Data Sample  tree element label="one" id="123"/ element label="two"
 id="122"/ element label="eight" id="897" element label="hello" id="113"/ element label="world" id="198" element label="thing" id="380"/ /element /element /tree   ModelLocator  ... snip ... public var myTreeData : XMLListCollection = new XMLListCollection(); ... snip ...   Application.mxml  ... snip ... myComponents:TreeComponent
 dataProvider="{ModelLocator.myTreeData}"/ ... snip ... 
		Be a chatter box. Enjoy free PC-to-PC calls  with Yahoo! Messenger with Voice.





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Flex WebService error, CF Okay

2006-05-24 Thread venugopal vasireddy



Hi,Flex2.0 is strictly typed, it is giving "type coercion error" - where CF is loosely typed.  Another reason could be axis version and wrappers in one product or other.Thanks  Venugopal Vasireddy From JSP call your Java file where u will wirte ur Java logic to open PDF  function preview(){ var url=""> var fileName = "abc"; url= "">  }  where config is,  mx:Model id="config" source="config.xml" /  in this config.xml   pqr http://ur port number/your jsp file /pqr  In JSP ,  get this file name  pass this to ur Java method.   Sandip Tom Ortega [EMAIL PROTECTED] wrote:  I'm trying to use an internal Java Web Service.When I call from cf using cfinvoke, all is well.When I try to call from flex, however, I get this runtime error (see below) on app startup. No calls to the ws yet, just error on parsing the wsdl. I was under the impression they (CF and Flex) both used Axis to process the WSDLs. Is this not the case? If they do, why does one error but not the other?TypeError:
 Error #1034: c: cannot convert MC{ mx.rpc.soap.mxml::[EMAIL PROTECTED] mx.rpc::AbstractService/logout()[EMAIL PROTECTED] to mx.rpc.soap.Operation.at mx.rpc.soap::WebService/::createOperationsFromPort()at mx.rpc.soap::WebService/http://www.adobe.com/2006/flex/mx/internal::wsdlHandler ()at flash.events::EventDispatcher/dispatchEvent()at mx.rpc.soap::WSDLParser/dispatchEvent()at mx.rpc.soap::WSDLParser/::parseCompleted()at mx.rpc.soap::WSDLParser/http://www.adobe.com/2006/flex/mx/internal::httpResultHandler ()at flash.events::EventDispatcher/dispatchEvent()at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler ()at mx.rpc::Responder/result()at mx.rpc::AsyncRequest/acknowledge()at ::DirectHTTPMessageResponder/completeHandler()at flash.events::EventDispatcher/dispatchEvent()at
 flash.net::URLLoader/flash.net:URLLoader::onComplete ()at mx.rpc.soap::WebService/::setPort()Thanks,Tom
		How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Cairngorm best practice with Tree data [f2b3]

2006-05-24 Thread venugopal vasireddy



I guess you are not updating bounded object "XMLListcollection" with insert xml.  Though it is not strictly equivalent to "addNode" in flex 1.5,-Venu  Rick Schmitty [EMAIL PROTECTED] wrote:  I would also be interested and appreciate advice on this topicOn 5/23/06, Graham Weldon [EMAIL PROTECTED] wrote: Hi all, I'm messing with Cairngorm 2.0 beta, and Flex 2.0 beta 3. I've got a mx:Tree / that contains a structured set of data. This data can be subjected to an insert at any point. I have correctly setup the events, commands and delegate to deal with the insertion, and I process the logical insertion on the server side of this application without issues. The trouble I am having
 now is the graphical insertion of the new item into the existing model. Currently the data is XML based. The Tree is directly data bound to an XMLListCollection object. One thought I had was to model the entire tree as ValueObjects, so that I could traverse the tree and 'addChild()' where necessary, but this would be a complete replication of my Server-Side java code on the client side, just for insertion. Additionally, I am not sure how i would use a complex set of chained Value Objects as a data source for a Tree GUI component. Any information about this would be really helpful. I appreciate any advice. I can display the tree correctly, I can use information from the selected item to perform operations etc. I am interested in inserting a new item at a specified location. For example, a request to insert an item will result in XML
 data describing the insert: Regards, Graham Weldon.  XML Tree INSERTION data Sample  command action="" success="true" addTreeItem parent="123" element label="NEWitem" id=""/ /addTreeItem addTreeItem parent="380" element label="deepItem" id="12"/ /addTreeItem /command   XML Tree Data Sample  tree element label="one" id="123"/ element label="two"
 id="122"/ element label="eight" id="897" element label="hello" id="113"/ element label="world" id="198" element label="thing" id="380"/ /element /element /tree   ModelLocator  ... snip ... public var myTreeData : XMLListCollection = new XMLListCollection(); ... snip ...   Application.mxml  ... snip ... myComponents:TreeComponent
 dataProvider="{ModelLocator.myTreeData}"/ ... snip ... 
		How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] token chain on ResultEvent

2006-05-24 Thread busitech



I thought that the AsyncToken was always supposed to be available in
the ResultEvent?

After a call to createItem (on a DataService), the token data I set is
not in the token property of the event when the ResultEvent function
executes. The result is an AcknowledgeMessage.

But in the debug environment, I do see a dynamic object called
__token_chain__ below the outermost token. Beneath it is a UID, and
below that is the token I'm looking for - the one which contains the
true result of my original call, in addition to the other properties set.

Does anyone know how to gain access to the original token, or if there
is a problem with not getting all the events here?

Thanks!









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












[flexcoders] is delete really the best/only way to remove a node in e4x?

2006-05-24 Thread Tracy Spratt
Title: is delete really the best/only way to remove a node in e4x?








If this is the final API, I can deal with it, it is just inconsistent and undocumented, and a bit of a shock when the rest of the api is so clean and logical.

I admit I have not read the e4x specification.

Tracy







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] PDF aware Flash Player ???

2006-05-24 Thread John Dowdell



Gareth Edwards wrote:
 The company I work for are interested in methods we can use to communicate to 
 the parent document. (ie HTML document where the PDF is embedded).
 Could you elaborate on how it is currently possible to Invoke flash player from 
 Adobe Reader? Is this done via _javascript_ in the pdf document as well as the 
 browser?
 Are there examples of this in the Acrobat SDK? or in any public facing documents?

Just to check, we're talking about using the variety of WWW browsers 
your audience may have, and putting in SWF and PDF elements in the same 
HTML page, and having them all intercommunicate... is that the goal?

If so, I know that there was LiveConnect support in past versions of 
Acrobat Reader, but I don't know offhand if the current Adobe Reader 
7.0x has yet implemented the NPRuntime communication spec in recent 
browsers.

(Background: Netscape/Mozilla have had three different 
intercommunication schemes, with the most recent one also adopted by 
Opera and Safari... Microsoft's Windows browsers have had a parallel 
scheme... in plugins these differing approaches have generally been 
papered-over with externalEvent or FSCommand or ExternalInterface 
types of calls. In addition to these browser-provided intercommunication 
methods people have hacked around browsers for years, whether through 
_javascript_: pseudo-URLs or refreshing a small DIV or whatever. Lots of 
 browser difference here.)

A lot would depend on which browsers your audience uses (brand, version 
and platform), and which ways you need communication to flow. That's the 
base restriction.

The Apollo project will focus on making it easier for HTML, SWF and PDF 
to intercommunicate with a minimum of hassle, but right now you've got 
to lock down the biggest variable, and that's the browsers your audience 
has chosen. After that you can research communication methods those 
browsers support. Not an easy answer, I'm afraid. :(

jd





-- 
John Dowdell . Adobe Developer Support . San Francisco CA USA
Weblog: http://weblogs.macromedia.com/jd
Aggregator: http://weblogs.macromedia.com/mxna
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, thanks.






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] XMLListCollection search [f2b3]

2006-05-24 Thread Graham Weldon



Hi all,

I'm wondering if anyone has had any experience or has some samples for 
searching an XMLListCollection for a particular item?
I have a nested structure of element's, each having an id attribute. 
I would like to be able to do something like:

var myXmlListCollection : XMLListCollection = new XMLListCollection( ... 
some data source ... );
var item : *** = findItem(myXmlListCollection, 'MyUniqueId');
trace (item.toString());

I am unsure of the class type of variable item in this example. I want 
to be able to add in an element using item as the parent. So the data 
type used needs to allow this type of operation. The next step will be 
to add a child to this found item.

Any thoughts?

Regards,
Graham Weldon






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] XMLListCollection search [f2b3]

2006-05-24 Thread Graham Weldon





In addition to the post below, I can operate on this XML document with 
the XMLList type in place of the XMLListCollection type. I cannot see 
any difference for the implementation I have presently.

Regards,
Graham Weldon


Graham Weldon wrote:

 Hi all,

 I'm wondering if anyone has had any experience or has some samples for
 searching an XMLListCollection for a particular item?
 I have a nested structure of element's, each having an id attribute.
 I would like to be able to do something like:

 var myXmlListCollection : XMLListCollection = new XMLListCollection( ...
 some data source ... );
 var item : *** = findItem(myXmlListCollection, 'MyUniqueId');
 trace (item.toString());

 I am unsure of the class type of variable item in this example. I want
 to be able to add in an element using item as the parent. So the data
 type used needs to allow this type of operation. The next step will be
 to add a child to this found item.

 Any thoughts?

 Regards,
 Graham Weldon


 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



 SPONSORED LINKS
 Web site design development 
 http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ 
  Computer software development 
 http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw 
  Software design and development 
 http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ 

 Macromedia flex 
 http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjw 
  Software development best practice 
 http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw 



 
 YAHOO! GROUPS LINKS

 * Visit your group flexcoders
 http://groups.yahoo.com/group/flexcoders on the web.
 
 * To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
 
 * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
 Service http://docs.yahoo.com/info/terms/.


 








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












[flexcoders] F2b3: e4x XML object as Tree dataprovider, how to refresh tree display?

2006-05-24 Thread Tracy Spratt
Title: F2b3: e4x XML object as Tree dataprovider, how to refresh tree display? 








I need to modify the xml node names and text nodes so I cant use the XMLListCollection API.

In 1.5, we could dispatch a modelChanged event to update a control.

What is the 2.0 style way to cause a Tree control to refresh?

Tracy







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] XMLListCollection search [f2b3]

2006-05-24 Thread Bryan Choi



Hi, Graham Weldon.



I am a Korean.



I explained it on my community.



You can see from the url ( http://cafe.naver.com/flexcomponent/665 )



Actually, I was helped flexcoders members.



So I'll show you and many Korean.



I don't know how many it'll help you to know it.



Thank you,

Bryan.





- Original Message - 

From: Graham Weldon [EMAIL PROTECTED]

To: flexcoders@yahoogroups.com

Sent: Thursday, May 25, 2006 9:05 AM

Subject: [flexcoders] XMLListCollection search [f2b3]





 Hi all,

 

 I'm wondering if anyone has had any experience or has some samples for 

 searching an XMLListCollection for a particular item?

 I have a nested structure of element's, each having an id attribute. 

 I would like to be able to do something like:

 

 var myXmlListCollection : XMLListCollection = new XMLListCollection( ... 

 some data source ... );

 var item : *** = findItem(myXmlListCollection, 'MyUniqueId');

 trace (item.toString());

 

 I am unsure of the class type of variable item in this example. I want 

 to be able to add in an element using item as the parent. So the data 

 type used needs to allow this type of operation. The next step will be 

 to add a child to this found item.

 

 Any thoughts?

 

 Regards,

 Graham Weldon

 

 

  Yahoo! Groups Sponsor ~-- 

 Get to your groups with one click. Know instantly when new email arrives

 http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM

 ~- 

 

 --

 Flexcoders Mailing List

 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 

 Yahoo! Groups Links

 

 

 

 

 

 

 







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Re: is delete really the best/only way to remove a node in e4x?

2006-05-24 Thread Geoffrey Williams



While it is documented here:

http://livedocs.macromedia.com/labs/1/flex20beta3/langref/operators.h
tml#delete_(XML)

There should be some sort of reference to it in the XML/XMLList 
docs. The syntax is compliant with the spec.

--- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] 
wrote:

 If this is the final API, I can deal with it, it is just 
inconsistent
 and undocumented, and a bit of a shock when the rest of the api is 
so
 clean and logical.
 
 I admit I have not read the e4x specification.
 
 Tracy












--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] XMLListCollection search [f2b3]

2006-05-24 Thread Graham Weldon




Hi Bryan,

Thanks for that link. Unfortunately I don't read Korean too well (at all).
Do you know if there is an English translation for this discussion, or 
do you have some code samples that are commented in English?

Regards,
Graham Weldon
\


Bryan Choi wrote:

 Hi, Graham Weldon.

 I am a Korean.

 I explained it on my community.

 You can see from the url ( http://cafe.naver.com/flexcomponent/665 )

 Actually, I was helped flexcoders members.

 So I'll show you and many Korean.

 I don't know how many it'll help you to know it.

 Thank you,
 Bryan.


 - Original Message -
 From: Graham Weldon [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Thursday, May 25, 2006 9:05 AM
 Subject: [flexcoders] XMLListCollection search [f2b3]


  Hi all,
 
  I'm wondering if anyone has had any experience or has some samples for
  searching an XMLListCollection for a particular item?
  I have a nested structure of element's, each having an id 
 attribute.
  I would like to be able to do something like:
 
  var myXmlListCollection : XMLListCollection = new XMLListCollection( 
 ...
  some data source ... );
  var item : *** = findItem(myXmlListCollection, 'MyUniqueId');
  trace (item.toString());
 
  I am unsure of the class type of variable item in this example. I 
 want
  to be able to add in an element using item as the parent. So the data
  type used needs to allow this type of operation. The next step will be
  to add a child to this found item.
 
  Any thoughts?
 
  Regards,
  Graham Weldon
 
 
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.com
  Yahoo! Groups Links
 
 
 
 
 
 
 
 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



 SPONSORED LINKS
 Web site design development 
 http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ 
  Computer software development 
 http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw 
  Software design and development 
 http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ 

 Macromedia flex 
 http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjw 
  Software development best practice 
 http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw 



 
 YAHOO! GROUPS LINKS

 * Visit your group flexcoders
 http://groups.yahoo.com/group/flexcoders on the web.
 
 * To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
 
 * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
 Service http://docs.yahoo.com/info/terms/.


 








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] is delete really the best/only way to remove a node in e4x?

2006-05-24 Thread Gordon Smith
Title: is delete really the best/only way to remove a node in e4x?










I don't know whether it is the best or only
way, but it seems consistent with the use of the 'delete' operator to remove a dynamic
property of an Object.



- Gordon











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tracy Spratt
Sent: Wednesday, May 24, 2006 4:48
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] is
delete really the best/only way to remove a node in e4x?





If
this is the final API, I can deal with it, it is just
inconsistent and undocumented, and a bit of a shock when the rest of the api is
so clean and logical.

I
admit I have not read the e4x specification.

Tracy









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] XMLListCollection search [f2b3]

2006-05-24 Thread Bryan Choi



Hi Graham,



As you can see that my english is not good.



If I can tell you in english well, might be is not now in Korea.



So I told you how many it'll help you...



I am so sorry. 



However, I think that you can understand it, if you know that AS 3.0 syntax.



Any way, I am sad and wanna talk in english well.



Regards,

Bryan Choi.





- Original Message - 

From: Graham Weldon [EMAIL PROTECTED]

To: flexcoders@yahoogroups.com

Sent: Thursday, May 25, 2006 9:59 AM

Subject: Re: [flexcoders] XMLListCollection search [f2b3]





 

 Hi Bryan,

 

 Thanks for that link. Unfortunately I don't read Korean too well (at all).

 Do you know if there is an English translation for this discussion, or 

 do you have some code samples that are commented in English?

 

 Regards,

 Graham Weldon

 \

 

 

 Bryan Choi wrote:

 

 Hi, Graham Weldon.



 I am a Korean.



 I explained it on my community.



 You can see from the url ( http://cafe.naver.com/flexcomponent/665 )



 Actually, I was helped flexcoders members.



 So I'll show you and many Korean.



 I don't know how many it'll help you to know it.



 Thank you,

 Bryan.





 - Original Message -

 From: Graham Weldon [EMAIL PROTECTED]

 To: flexcoders@yahoogroups.com

 Sent: Thursday, May 25, 2006 9:05 AM

 Subject: [flexcoders] XMLListCollection search [f2b3]





  Hi all,

 

  I'm wondering if anyone has had any experience or has some samples for

  searching an XMLListCollection for a particular item?

  I have a nested structure of element's, each having an id 

 attribute.

  I would like to be able to do something like:

 

  var myXmlListCollection : XMLListCollection = new XMLListCollection( 

 ...

  some data source ... );

  var item : *** = findItem(myXmlListCollection, 'MyUniqueId');

  trace (item.toString());

 

  I am unsure of the class type of variable item in this example. I 

 want

  to be able to add in an element using item as the parent. So the data

  type used needs to allow this type of operation. The next step will be

  to add a child to this found item.

 

  Any thoughts?

 

  Regards,

  Graham Weldon

 

 

 

  --

  Flexcoders Mailing List

  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

  Search Archives: 

 http://www.mail-archive.com/flexcoders%40yahoogroups.com

  Yahoo! Groups Links

 

 

 

 

 

 

 

 



 --

 Flexcoders Mailing List

 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com







 SPONSORED LINKS

 Web site design development 

 http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ 

 Computer software development 

 http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw 

 Software design and development 

 http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ 



 Macromedia flex 

 http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjw 

 Software development best practice 

 http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw 







 

 YAHOO! GROUPS LINKS



 * Visit your group flexcoders

 http://groups.yahoo.com/group/flexcoders on the web.

 

 * To unsubscribe from this group, send an email to:

 [EMAIL PROTECTED]

 mailto:[EMAIL PROTECTED]

 

 * Your use of Yahoo! Groups is subject to the Yahoo! Terms of

 Service http://docs.yahoo.com/info/terms/.





 



 

 

 

  Yahoo! Groups Sponsor ~-- 

 Get to your groups with one click. Know instantly when new email arrives

 http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM

 ~- 

 

 --

 Flexcoders Mailing List

 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 

 Yahoo! 

RE: [flexcoders] F2b3: e4x XML object as Tree dataprovider, how to refresh tree display?

2006-05-24 Thread Tracy Spratt
Title: F2b3: e4x XML object as Tree dataprovider, how to refresh tree display? 










Well, I figured it out already:

myTree.invalidateList();

cleanly updates my display.



If there is a better way, let me know.

Tracy











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tracy
 Spratt
Sent: Wednesday, May 24, 2006 8:58
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] F2b3: e4x
XML object as Tree dataprovider, how to refresh tree display?





I
need to modify the xml node names and text nodes so I cant use the
XMLListCollection API.

In
1.5, we could dispatch a modelChanged event to
update a control.

What
is the 2.0 style way to cause a Tree control to refresh?

Tracy









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] is delete really the best/only way to remove a node in e4x?

2006-05-24 Thread Tracy Spratt
Title: is delete really the best/only way to remove a node in e4x?










I am not really fussing very hard, it is
just that we have:



XML.appendChild() 

XML.insertChildAfter() 

XML.insertChildBefore() 

XML.prependChild()



but no XML.removeChild?



delete is a completely different style
syntax.



Tracy











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Gordon Smith
Sent: Wednesday, May 24, 2006 9:02
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] is
delete really the best/only way to remove a node in e4x?





I don't know whether it is the best or
only way, but it seems consistent with the use of the 'delete' operator to
remove a dynamic property of an Object.



- Gordon











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tracy
 Spratt
Sent: Wednesday, May 24, 2006 4:48
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] is
delete really the best/only way to remove a node in e4x?





If
this is the final API, I can deal with it, it is just
inconsistent and undocumented, and a bit of a shock when the rest of the api is
so clean and logical.

I
admit I have not read the e4x specification.

Tracy










--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] is delete really the best/only way to remove a node in e4x?

2006-05-24 Thread Tracy Spratt
Title: is delete really the best/only way to remove a node in e4x?










A further note: Normally, we will use
XMLListCollection to manipulate dataProviders, and that interface DOES have a
removeItemAt(), so this is again not a big deal.



Tracy











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tracy
 Spratt
Sent: Wednesday, May 24, 2006 9:29
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] is
delete really the best/only way to remove a node in e4x?





I am not really fussing very hard, it is
just that we have:



XML.appendChild() 

XML.insertChildAfter() 

XML.insertChildBefore() 

XML.prependChild()



but no XML.removeChild?



delete is a completely different style
syntax.



Tracy











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Gordon Smith
Sent: Wednesday, May 24, 2006 9:02
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] is
delete really the best/only way to remove a node in e4x?





I don't know whether it is the best or
only way, but it seems consistent with the use of the 'delete' operator to
remove a dynamic property of an Object.



- Gordon











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tracy
 Spratt
Sent: Wednesday, May 24, 2006 4:48
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] is
delete really the best/only way to remove a node in e4x?





If
this is the final API, I can deal with it, it is just inconsistent
and undocumented, and a bit of a shock when the rest of the api is so clean and
logical.

I
admit I have not read the e4x specification.

Tracy











--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Re: XMLListCollection search [f2b3]

2006-05-24 Thread Tim Hoff



Hi Graham,

I'm not sure if it works, but have you tried this approach?

var myTreeData:ICollectionView = new XMLListCollection();
var myCursor:IViewCursor = myArrayCollection.createCursor();

myCursor.findFirst([EMAIL PROTECTED]:9998}); 
// maybe just Id?. According to the docs, this only works if the 
collection is sorted.

myCursor.insert({label:thing, id:});
// might be different syntax for XML

-TH

--- In flexcoders@yahoogroups.com, Bryan Choi [EMAIL PROTECTED] wrote:

 Hi Graham,
 
 As you can see that my english is not good.
 
 If I can tell you in english well, might be is not now in Korea.
 
 So I told you how many it'll help you...
 
 I am so sorry. 
 
 However, I think that you can understand it, if you know that AS 
3.0 syntax.
 
 Any way, I am sad and wanna talk in english well.
 
 Regards,
 Bryan Choi.
 
 
 - Original Message - 
 From: Graham Weldon [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Thursday, May 25, 2006 9:59 AM
 Subject: Re: [flexcoders] XMLListCollection search [f2b3]
 
 
  
  Hi Bryan,
  
  Thanks for that link. Unfortunately I don't read Korean too well 
(at all).
  Do you know if there is an English translation for this 
discussion, or 
  do you have some code samples that are commented in English?
  
  Regards,
  Graham Weldon
  \
  
  
  Bryan Choi wrote:
  
  Hi, Graham Weldon.
 
  I am a Korean.
 
  I explained it on my community.
 
  You can see from the url ( 
http://cafe.naver.com/flexcomponent/665 )
 
  Actually, I was helped flexcoders members.
 
  So I'll show you and many Korean.
 
  I don't know how many it'll help you to know it.
 
  Thank you,
  Bryan.
 
 
  - Original Message -
  From: Graham Weldon [EMAIL PROTECTED]
  To: flexcoders@yahoogroups.com
  Sent: Thursday, May 25, 2006 9:05 AM
  Subject: [flexcoders] XMLListCollection search [f2b3]
 
 
   Hi all,
  
   I'm wondering if anyone has had any experience or has some 
samples for
   searching an XMLListCollection for a particular item?
   I have a nested structure of element's, each having an id 
  attribute.
   I would like to be able to do something like:
  
   var myXmlListCollection : XMLListCollection = new 
XMLListCollection( 
  ...
   some data source ... );
   var item : *** = findItem(myXmlListCollection, 'MyUniqueId');
   trace (item.toString());
  
   I am unsure of the class type of variable item in this 
example. I 
  want
   to be able to add in an element using item as the parent. 
So the data
   type used needs to allow this type of operation. The next 
step will be
   to add a child to this found item.
  
   Any thoughts?
  
   Regards,
   Graham Weldon
  
  
  
   --
   Flexcoders Mailing List
   FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Search Archives: 
  http://www.mail-archive.com/flexcoders%40yahoogroups.com
   Yahoo! Groups Links
  
  
  
  
  
  
  
  
 
  --
  Flexcoders Mailing List
  FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives: http://www.mail-archive.com/flexcoders%
40yahoogroups.com
 
 
 
  SPONSORED LINKS
  Web site design development 
  http://groups.yahoo.com/gads?
t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=
Computer+software+developmentw3=Software+design+and+developmentw4=M
acromedia+flexw5=Software+development+best+practicec=5s=166.sig=L
-4QTvxB_quFDtMyhrQaHQ 
  Computer software development 
  http://groups.yahoo.com/gads?
t=msk=Computer+software+developmentw1=Web+site+design+developmentw
2=Computer+software+developmentw3=Software+design+and+developmentw4
=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig
=lvQjSRfQDfWudJSe1lLjHw 
  Software design and development 
  http://groups.yahoo.com/gads?
t=msk=Software+design+and+developmentw1=Web+site+design+development
w2=Computer+software+developmentw3=Software+design+and+development
w4=Macromedia+flexw5=Software+development+best+practicec=5s=166.s
ig=1pMBCdo3DsJbuU9AEmO1oQ 
 
  Macromedia flex 
  http://groups.yahoo.com/gads?
t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+sof
tware+developmentw3=Software+design+and+developmentw4=Macromedia+fl
exw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZ
I36cYzBjw 
  Software development best practice 
  http://groups.yahoo.com/gads?
t=msk=Software+development+best+practicew1=Web+site+design+developm
entw2=Computer+software+developmentw3=Software+design+and+developme
ntw4=Macromedia+flexw5=Software+development+best+practicec=5s=166
.sig=f89quyyulIDsnABLD6IXIw 
 
 
 
  

  YAHOO! GROUPS LINKS
 
  * Visit your group flexcoders
  http://groups.yahoo.com/group/flexcoders on the web.
  
  * To unsubscribe from this group, send an email to:
  [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED]
subject=Unsubscribe
  
  * Your use of Yahoo! Groups is subject to the Yahoo! Terms 
of
  Service http://docs.yahoo.com/info/terms/.
 
 
  

Re: [flexcoders] Re: XMLListCollection search [f2b3]

2006-05-24 Thread Bryan Choi



I'll show you about somthing.



==



// import and declare ITreeDataDescriptor

import mx.controls.treeClasses.*;



private var treeDD:ITreeDataDescriptor;



. omission ..



// initialize



treeDD = mxTree.dataDescriptor;



. omission ..



// create XML



var capitals = new XML ( 

 node label='root' value='root' + 

 node label='U.S. State Capitals' + 

 node label='AL' value='Montgomery' / + 

 node label='AK' value='Juneau'/ + 

 node label='AR' value='Little Rock'/ + 

 node label='AZ' value='Phoenix'/ + 

 /node + 

 node label='Canadian Province Capitals' + 

 node label='AB' value='Edmonton' / + 

 node label='BC' value='Victoria'/ + 

 node label='MB' value='Winnipeg'/ + 

 node label='NB' value='Fredericton'/ + 

 /node + 

 /node 

 );



. omission ..



// create XMLListCollection and specific source with XMLList



mx:XMLListCollection id=capitalColl source={capitals.node} /



// create Tree and specific dataProvider with XMLListCollection 



mx:Tree id=mxTree width=50% height=100% labelField=@label showRoot=true 

 dataProvider={capitalColl} 

 change=selectedItemOfTree(event) /



. omission ..



// change event of Tree handle



private function selectedItemOfTree ( event :Event ) :void

 {

 var item :Object = event.target.selectedItem;

 trace ( [EMAIL PROTECTED] );

 }



. omission ..



// add function 



var treeItem :Object = mxTree.selectedItem;

var xmlString :String = node label='Add Label' value='Add Value'/



treeDD.addChildAt ( treeItem, xmlString, 0 );



mxTree.invalidateList();



mxTree.expandItem ( treeItem, true, false );



. omission ..



// remove function



var parentItem :Object = mxTree.getParentItem ( treeItem );



var len :int = items==null?0:items.length;



for ( var i:int=0; ilen; i++ )

 {

 if ( items [EMAIL PROTECTED] == [EMAIL PROTECTED] )

 {

 treeDD.removeChildAt ( parentItem, mxTree.selectedItem, i );

 mxTree.selectedItem = parentItem[0];

 break;

 }

 }



mxTree.invalidateList();







===



I wanna help you that.



Regards,

Bryan Choi.







- Original Message - 

From: Tim Hoff [EMAIL PROTECTED]

To: flexcoders@yahoogroups.com

Sent: Thursday, May 25, 2006 10:25 AM

Subject: [flexcoders] Re: XMLListCollection search [f2b3]





Hi Graham,



I'm not sure if it works, but have you tried this approach?



var myTreeData:ICollectionView = new XMLListCollection();

var myCursor:IViewCursor = myArrayCollection.createCursor();



myCursor.findFirst([EMAIL PROTECTED]:9998}); 

// maybe just Id?. According to the docs, this only works if the 

collection is sorted.



myCursor.insert({label:thing, id:});

// might be different syntax for XML



-TH



--- In flexcoders@yahoogroups.com, Bryan Choi [EMAIL PROTECTED] wrote:



 Hi Graham,

 

 As you can see that my english is not good.

 

 If I can tell you in english well, might be is not now in Korea.

 

 So I told you how many it'll help you...

 

 I am so sorry. 

 

 However, I think that you can understand it, if you know that AS 

3.0 syntax.

 

 Any way, I am sad and wanna talk in english well.

 

 Regards,

 Bryan Choi.

 

 

 - Original Message - 

 From: Graham Weldon [EMAIL PROTECTED]

 To: flexcoders@yahoogroups.com

 Sent: Thursday, May 25, 2006 9:59 AM

 Subject: Re: [flexcoders] XMLListCollection search [f2b3]

 

 

  

  Hi Bryan,

  

  Thanks for that link. Unfortunately I don't read Korean too well 

(at all).

  Do you know if there is an English translation for this 

discussion, or 

  do you have some code samples that are commented in English?

  

  Regards,

  Graham Weldon

  \

  

  

  Bryan Choi wrote:

  

  Hi, Graham Weldon.

 

  I am a Korean.

 

  I explained it on my community.

 

  You can see from the url ( 

http://cafe.naver.com/flexcomponent/665 )

 

  Actually, I was helped flexcoders members.

 

  So I'll show you and many Korean.

 

  I don't know how many it'll help you to know it.

 

  Thank you,

  Bryan.

 

 

  - Original Message -

  From: Graham Weldon [EMAIL PROTECTED]

  To: flexcoders@yahoogroups.com

  Sent: Thursday, May 25, 2006 9:05 AM

  Subject: [flexcoders] XMLListCollection search [f2b3]

 

 

   Hi all,

  

   I'm wondering if anyone has had any experience or has some 

samples for

   searching an XMLListCollection for a particular item?

   I have a nested structure of element's, each having an id 

  attribute.

   I would like to be able to do something like:

  

   var myXmlListCollection : XMLListCollection = new 

XMLListCollection( 

  ...

   some data source ... );

   var item : *** = findItem(myXmlListCollection, 'MyUniqueId');

   trace (item.toString());

  

   I am unsure of the class type of variable item in this 

example. I 

  want

   to be able to add in an element using item as the parent. 

So the data

   type used needs to allow this type of 

[flexcoders] Re: XMLListCollection search [f2b3]

2006-05-24 Thread Tim Hoff



Nice work Bryan. Don't worry, your English is understood. :)

Tim Hoff

--- In flexcoders@yahoogroups.com, Bryan Choi [EMAIL PROTECTED] wrote:

 I'll show you about somthing.
 
 ==
 
 // import and declare ITreeDataDescriptor
 import mx.controls.treeClasses.*;
 
 private var treeDD:ITreeDataDescriptor;
 
 . omission ..
 
 // initialize
 
 treeDD = mxTree.dataDescriptor;
 
 . omission ..
 
 // create XML
 
 var capitals = new XML ( 
 node label='root' value='root' + 
 node label='U.S. State Capitals' + 
 node label='AL' value='Montgomery' / + 
 node label='AK' value='Juneau'/ + 
 node label='AR' value='Little Rock'/ + 
 node label='AZ' value='Phoenix'/ + 
 /node + 
 node label='Canadian Province Capitals' + 
 node label='AB' value='Edmonton' / + 
 node label='BC' value='Victoria'/ + 
 node label='MB' value='Winnipeg'/ + 
 node label='NB' value='Fredericton'/ + 
 /node + 
 /node 
 );
 
 . omission ..
 
 // create XMLListCollection and specific source with XMLList
 
 mx:XMLListCollection id=capitalColl source={capitals.node} /
 
 // create Tree and specific dataProvider with XMLListCollection 
 
 mx:Tree id=mxTree width=50% height=100% labelField=@label 
showRoot=true 
 dataProvider={capitalColl} 
 change=selectedItemOfTree(event) /
 
 . omission ..
 
 // change event of Tree handle
 
 private function selectedItemOfTree ( event :Event ) :void
 {
 var item :Object = event.target.selectedItem;
 trace ( [EMAIL PROTECTED] );
 }
 
 . omission ..
 
 // add function 
 
 var treeItem :Object = mxTree.selectedItem;
 var xmlString :String = node label='Add Label' value='Add 
Value'/
 
 treeDD.addChildAt ( treeItem, xmlString, 0 );
 
 mxTree.invalidateList();
 
 mxTree.expandItem ( treeItem, true, false );
 
 . omission ..
 
 // remove function
 
 var parentItem :Object = mxTree.getParentItem ( treeItem );
 
 var len :int = items==null?0:items.length;
 
 for ( var i:int=0; ilen; i++ )
 {
 if ( items [EMAIL PROTECTED] == [EMAIL PROTECTED] )
 {
 treeDD.removeChildAt ( parentItem, mxTree.selectedItem, i );
 mxTree.selectedItem = parentItem[0];
 break;
 }
 }
 
 mxTree.invalidateList();
 
 
 
 ===
 
 I wanna help you that.
 
 Regards,
 Bryan Choi.
 
 
 
 - Original Message - 
 From: Tim Hoff [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Thursday, May 25, 2006 10:25 AM
 Subject: [flexcoders] Re: XMLListCollection search [f2b3]
 
 
 Hi Graham,
 
 I'm not sure if it works, but have you tried this approach?
 
 var myTreeData:ICollectionView = new XMLListCollection();
 var myCursor:IViewCursor = myArrayCollection.createCursor();
 
 myCursor.findFirst([EMAIL PROTECTED]:9998}); 
 // maybe just Id?. According to the docs, this only works if the 
 collection is sorted.
 
 myCursor.insert({label:thing, id:});
 // might be different syntax for XML
 
 -TH
 
 --- In flexcoders@yahoogroups.com, Bryan Choi oopchoi@ wrote:
 
  Hi Graham,
  
  As you can see that my english is not good.
  
  If I can tell you in english well, might be is not now in Korea.
  
  So I told you how many it'll help you...
  
  I am so sorry. 
  
  However, I think that you can understand it, if you know that AS 
 3.0 syntax.
  
  Any way, I am sad and wanna talk in english well.
  
  Regards,
  Bryan Choi.
  
  
  - Original Message - 
  From: Graham Weldon graham.weldon@
  To: flexcoders@yahoogroups.com
  Sent: Thursday, May 25, 2006 9:59 AM
  Subject: Re: [flexcoders] XMLListCollection search [f2b3]
  
  
   
   Hi Bryan,
   
   Thanks for that link. Unfortunately I don't read Korean too 
well 
 (at all).
   Do you know if there is an English translation for this 
 discussion, or 
   do you have some code samples that are commented in English?
   
   Regards,
   Graham Weldon
   \
   
   
   Bryan Choi wrote:
   
   Hi, Graham Weldon.
  
   I am a Korean.
  
   I explained it on my community.
  
   You can see from the url ( 
 http://cafe.naver.com/flexcomponent/665 )
  
   Actually, I was helped flexcoders members.
  
   So I'll show you and many Korean.
  
   I don't know how many it'll help you to know it.
  
   Thank you,
   Bryan.
  
  
   - Original Message -
   From: Graham Weldon graham.weldon@
   To: flexcoders@yahoogroups.com
   Sent: Thursday, May 25, 2006 9:05 AM
   Subject: [flexcoders] XMLListCollection search [f2b3]
  
  
Hi all,
   
I'm wondering if anyone has had any experience or has some 
 samples for
searching an XMLListCollection for a particular item?
I have a nested structure of element's, each having 
an id 
   attribute.
I would like to be able to do something like:
   
var myXmlListCollection : XMLListCollection = new 
 XMLListCollection( 
   ...
some data source ... );
var item : *** = findItem
(myXmlListCollection, 'MyUniqueId');
trace (item.toString());
   
I am unsure of the class type of variable item in this 
 example. I 
   want
to be able to 

Re: [flexcoders] Re: XMLListCollection search [f2b3]

2006-05-24 Thread Graham Weldon






Hi Tim,

A good suggestion. Unfortunately my collection is not sorted, and a
sort would cause some issues with the display of the Tree that uses my
collection as a dataProvider.

Bryan,
Your code example is good, but I feel that it will only work for 2
levels of nodes.
My XML structure has no limit to the number of levels of nodes. Thus
its an n-level tree.


I have however attempted the following approach with success! Please
feel free to use this code sample:


=
= XML Example
=
element id="hello"
 element id="world"
 element id="123"/
  element id="graham"/
 element id="weldon"
 element id="office"
 element id="thing"/
 element id="boat"/
 element id="chair"/
 /element
 element id="person"/
 /element
 /element
/element
=



=
= FUNCTION: insertItem(_parentId, _child)
=
public function insertItem(_parentId
: String, _child : XMLList) : Boolean
{
 var parentElement : XMLList =
this.findItem(_parentId);
 //  Exit if we didnt find the parent
 if (parentElement == null)
 return false;

 //  Add the child element to the
parent's children collection
 parentElement.* += _child;
 return true;
}

=



=
= FUNCTION: findItem(_id, _xml)
=
public function
findItem (_id : String, _xml : XMLList) : XMLList
{
 //  Check if the supplied element is
the one we're looking for
 if ([EMAIL PROTECTED] == _id)
 return _xml;

 var children : XMLList =
_xml.element;
 var result : XMLList = null;

 for each (var x : XML in children)
 {
  //  Recurse, looking at children.
 result = this.findItem(_id,
new XMLList(x));
  //  Return the result if its not
null, ending the recursion
 if (result != null)
  return result;
 }

 return null;
}
=




Regards,
Graham Weldon 



Tim Hoff wrote:
Hi Graham,
  
I'm not sure if it works, but have you tried this approach?
  
var myTreeData:ICollectionView = new XMLListCollection();
var myCursor:IViewCursor = myArrayCollection.createCursor();
  
myCursor.findFirst([EMAIL PROTECTED]:"9998"}); 
// maybe just Id?. According to the docs, this only works if the 
collection is sorted.
  
myCursor.insert({label:"thing", id:""});
// might be different syntax for XML
  
-TH
  
--- In flexcoders@yahoogroups.com, "Bryan Choi" [EMAIL PROTECTED]
wrote:

 Hi Graham,
 
 As you can see that my english is not good.
 
 If I can tell you in english well, might be is not now in Korea.
 
 So I told you how many it'll help you...
 
 I am so sorry. 
 
 However, I think that you can understand it, if you know that AS 
3.0 syntax.
 
 Any way, I am sad and wanna talk in english well.
 
 Regards,
 Bryan Choi.
 
 
 - Original Message - 
 From: "Graham Weldon" [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Thursday, May 25, 2006 9:59 AM
 Subject: Re: [flexcoders] XMLListCollection search [f2b3]
 
 
  
  Hi Bryan,
  
  Thanks for that link. Unfortunately I don't read Korean too
well 
(at all).
  Do you know if there is an English translation for this 
discussion, or 
  do you have some code samples that are commented in English?
  
  Regards,
  Graham Weldon
  \
  
  
  Bryan Choi wrote:
  
  Hi, Graham Weldon.
 
  I am a Korean.
 
  I explained it on my community.
 
  You can see from the url ( 
  http://cafe.naver.com/flexcomponent/665
)
 
  Actually, I was helped flexcoders members.
 
  So I'll show you and many Korean.
 
  I don't know how many it'll help you to know it.
 
  Thank you,
  Bryan.
 
 
  - Original Message -
  From: "Graham Weldon" [EMAIL PROTECTED]
  To: flexcoders@yahoogroups.com
  Sent: Thursday, May 25, 2006 9:05 AM
  Subject: [flexcoders] XMLListCollection search [f2b3]
 
 
   Hi all,
  
   I'm wondering if anyone has had any experience or
has some 
samples for
   searching an XMLListCollection for a particular item?
   I have a nested structure of element's, each
having an "id" 
  attribute.
   I would like to be able to do something like:
  
   var myXmlListCollection : XMLListCollection = new 
XMLListCollection( 
  ...
   some data source ... );
   var item : *** = findItem(myXmlListCollection,
'MyUniqueId');
   trace (item.toString());
  
   I am unsure of the class type of variable "item" in
this 
example. I 
  want
   to be able to add in an element using "item" as the
parent. 
So the data
   type used needs to allow this type of operation. The
next 
step will be
   to add a child to this found item.
  
   Any thoughts?
  
   Regards,
   Graham Weldon
  
  
  
   --
   Flexcoders Mailing List
   FAQ: 
  

Re: [flexcoders] Re: XMLListCollection search [f2b3]

2006-05-24 Thread Bryan Choi



I forgot to add one line.





var parentItem :Object = mxTree.getParentItem ( treeItem );



var items :ICollectionView = treeDD.getChildren (parentItem); == !!!

 var len :int = items==null?0:items.length;



Regards,

Bryan Choi.





- Original Message - 

From: Tim Hoff [EMAIL PROTECTED]

To: flexcoders@yahoogroups.com

Sent: Thursday, May 25, 2006 10:54 AM

Subject: [flexcoders] Re: XMLListCollection search [f2b3]





 Nice work Bryan. Don't worry, your English is understood. :)

 

 Tim Hoff

 

 --- In flexcoders@yahoogroups.com, Bryan Choi [EMAIL PROTECTED] wrote:



 I'll show you about somthing.

 

 ==

 

 // import and declare ITreeDataDescriptor

 import mx.controls.treeClasses.*;

 

 private var treeDD:ITreeDataDescriptor;

 

 . omission ..

 

 // initialize

 

 treeDD = mxTree.dataDescriptor;

 

 . omission ..

 

 // create XML

 

 var capitals = new XML ( 

 node label='root' value='root' + 

 node label='U.S. State Capitals' + 

 node label='AL' value='Montgomery' / + 

 node label='AK' value='Juneau'/ + 

 node label='AR' value='Little Rock'/ + 

 node label='AZ' value='Phoenix'/ + 

 /node + 

 node label='Canadian Province Capitals' + 

 node label='AB' value='Edmonton' / + 

 node label='BC' value='Victoria'/ + 

 node label='MB' value='Winnipeg'/ + 

 node label='NB' value='Fredericton'/ + 

 /node + 

 /node 

 );

 

 . omission ..

 

 // create XMLListCollection and specific source with XMLList

 

 mx:XMLListCollection id=capitalColl source={capitals.node} /

 

 // create Tree and specific dataProvider with XMLListCollection 

 

 mx:Tree id=mxTree width=50% height=100% labelField=@label 

 showRoot=true 

 dataProvider={capitalColl} 

 change=selectedItemOfTree(event) /

 

 . omission ..

 

 // change event of Tree handle

 

 private function selectedItemOfTree ( event :Event ) :void

 {

 var item :Object = event.target.selectedItem;

 trace ( [EMAIL PROTECTED] );

 }

 

 . omission ..

 

 // add function 

 

 var treeItem :Object = mxTree.selectedItem;

 var xmlString :String = node label='Add Label' value='Add 

 Value'/

 

 treeDD.addChildAt ( treeItem, xmlString, 0 );

 

 mxTree.invalidateList();

 

 mxTree.expandItem ( treeItem, true, false );

 

 . omission ..

 

 // remove function

 

 var parentItem :Object = mxTree.getParentItem ( treeItem );

 

 var len :int = items==null?0:items.length;

 

 for ( var i:int=0; ilen; i++ )

 {

 if ( items [EMAIL PROTECTED] == [EMAIL PROTECTED] )

 {

 treeDD.removeChildAt ( parentItem, mxTree.selectedItem, i );

 mxTree.selectedItem = parentItem[0];

 break;

 }

 }

 

 mxTree.invalidateList();

 

 

 

 ===

 

 I wanna help you that.

 

 Regards,

 Bryan Choi.

 

 

 

 - Original Message - 

 From: Tim Hoff [EMAIL PROTECTED]

 To: flexcoders@yahoogroups.com

 Sent: Thursday, May 25, 2006 10:25 AM

 Subject: [flexcoders] Re: XMLListCollection search [f2b3]

 

 

 Hi Graham,

 

 I'm not sure if it works, but have you tried this approach?

 

 var myTreeData:ICollectionView = new XMLListCollection();

 var myCursor:IViewCursor = myArrayCollection.createCursor();

 

 myCursor.findFirst([EMAIL PROTECTED]:9998}); 

 // maybe just Id?. According to the docs, this only works if the 

 collection is sorted.

 

 myCursor.insert({label:thing, id:});

 // might be different syntax for XML

 

 -TH

 

 --- In flexcoders@yahoogroups.com, Bryan Choi oopchoi@ wrote:

 

  Hi Graham,

  

  As you can see that my english is not good.

  

  If I can tell you in english well, might be is not now in Korea.

  

  So I told you how many it'll help you...

  

  I am so sorry. 

  

  However, I think that you can understand it, if you know that AS 

 3.0 syntax.

  

  Any way, I am sad and wanna talk in english well.

  

  Regards,

  Bryan Choi.

  

  

  - Original Message - 

  From: Graham Weldon graham.weldon@

  To: flexcoders@yahoogroups.com

  Sent: Thursday, May 25, 2006 9:59 AM

  Subject: Re: [flexcoders] XMLListCollection search [f2b3]

  

  

   

   Hi Bryan,

   

   Thanks for that link. Unfortunately I don't read Korean too 

 well 

 (at all).

   Do you know if there is an English translation for this 

 discussion, or 

   do you have some code samples that are commented in English?

   

   Regards,

   Graham Weldon

   \

   

   

   Bryan Choi wrote:

   

   Hi, Graham Weldon.

  

   I am a Korean.

  

   I explained it on my community.

  

   You can see from the url ( 

 http://cafe.naver.com/flexcomponent/665 )

  

   Actually, I was helped flexcoders members.

  

   So I'll show you and many Korean.

  

   I don't know how many it'll help you to know it.

  

   Thank you,

   Bryan.

  

  

   - Original Message -

   From: Graham Weldon graham.weldon@

   To: flexcoders@yahoogroups.com

   Sent: Thursday, May 25, 2006 9:05 AM

   Subject: 

  1   2   >