[flexcoders] Re: Flex2B2 :: Changing State :: Problem with parent child

2006-04-21 Thread Tim Hoff



You might try changing the state of the child component before the 
parent. I've noticed, probably because of Flex's asynchronous 
nature, that sometimes code doesn't execute before the screen is 
rendered. 

If you were using cairngorm, I would recomend that you control all 
of the states in your application in the modelLocator. By binding 
the currentState property of a component to a variable in the 
model, you can simply update the variable to the desired state for 
the component and the view automatically reflects the change. I can 
provide you with an example if you want. But, if you're not using 
cairngorm yet, it probably won't fit your need.

Tim

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

 hi,
 
 No, that was just a typo from the email, I am getting no errors.
 
 Peace, Mike
 
 On 4/20/06, Tim Hoff [EMAIL PROTECTED] wrote:
 
 
  Looks like you need an equal sign.
 
  modifierCheckGroup.currentState matchState;
 
  should be:
 
  modifierCheckGroup.currentState = matchState;
 
  - Tim
 
 
  --- In flexcoders@yahoogroups.com, Michael Schmalle
 
  teoti.graphix@ wrote:
  
   Hi,
  
   Real quick is there a problem with changing a parent component 
state
  and in
   the next call calling one if it's children's state changes?
  
   I cannot get this to work, but in the mxml component the child
  component
   changes state fine.
  
   IE
  
   if (event.label == Match) {
   trace(Match);
   currentState = matchState;
   modifierCheckGroup.currentState matchState;
   }
  
   Peace, Mike
  
   --
   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
 
 
  --
  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/.
 
 
  --
 
 
 
 
 --
 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.



  












[flexcoders] Flex2B2: Cairngorm - Controlling View State Example

2006-04-21 Thread Tim Hoff



Oh, what the heck. I might as well post an example how to control 
the currentState of components with the modelLocator. Hopfully, no-
one is offended by the simplicity.

Tim Hoff

//***
 ModelLocator
//***

package code.model 
{
 import org.nevis.cairngorm.model.ModelLocator;
 
  [Bindable]
 public class ModelLocator implements 
org.nevis.cairngorm.model.ModelLocator 
 {  
  private static var 
modelLocator:code.model.ModelLocator;
  
  public static function getInstance() : 
code.model.ModelLocator 
  {
   if ( modelLocator == null )
modelLocator = new 
code.model.ModelLocator();

   return modelLocator;
  }
  
//---

   public function ModelLocator() 
   { 
if ( code.model.ModelLocator.modelLocator != 
null )
throw new Error( Only one 
ModelLocator instance should be instantiated ); 
   }
  
//---

  public var mainPanelViewCurrentState : String 
= logo;
  public static const VIEWING_MAIN_LOGO : String 
= logo;
  public static const VIEWING_MAIN_SEARCH : String 
= search;
  public static const VIEWING_MAIN_SEARCHING : String 
= searching;

  public var searchViewCurrentState : String 
= authors;
  public static const VIEWING_SEARCH_AUTHORS : String 
=  authors ;
  public static const VIEWING_SEARCH_CONTACTS : String 
= contacts;

 }
 
}


//***
 Component MXML
//***

?xml version=1.0 encoding=utf-8?
mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml xmlns=*
 height=100% width=100% paddingTop=10
 horizontalScrollPolicy=off verticalScrollPolicy=off 
 xmlns:logo=code.view.mainPanel.logo.*
 xmlns:search=code.view.mainPanel.search.*
 xmlns:searching=code.view.mainPanel.searching.*
 currentState={ ModelLocator.getInstance
().mainPanelViewCurrentState }
 
  mx:Script
 ![CDATA[
  
  import code.model.ModelLocator;

 
 ]]
 /mx:Script
 
  mx:Canvas id=mainCanvas width=100% height=100%/
  
 mx:states
  mx:State name={ModelLocator.VIEWING_MAIN_LOGO} 
   id=logo
   mx:AddChild target={mainCanvas} 
position=lastChild
logo:LogoView/
   /mx:AddChild
  /mx:State
  mx:State name={ModelLocator.VIEWING_MAIN_SEARCH} 
   id=search
   mx:AddChild target={mainCanvas} 
position=lastChild
search:SearchView currentState={ 
ModelLocator.getInstance().searchViewCurrentState }/
   /mx:AddChild
  /mx:State
  mx:State 
name={ModelLocator.VIEWING_MAIN_SEARCHING} 
   id=searching
   mx:AddChild target={mainCanvas} 
position=lastChild
searching:SearchingView/
   /mx:AddChild
  /mx:State
 /mx:states
/mx:Panel

//***
 Command
//***


package code.commands
{
 import org.nevis.cairngorm.commands.Command;
 import org.nevis.cairngorm.control.CairngormEvent;
 import code.model.ModelLocator;
  
 public class sampleCommand implements Command
 {
  
//---
 
  public function execute( 
cairngormEvent:CairngormEvent ):void
  {   
 
 // Do Something

 ModelLocator.getInstance().mainPanelViewCurrentState = 
ModelLocator.VIEWING_MAIN_SEARCH;
  }
  
 }
}











--
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] Flex2B2 - How to show a button label over 2 lines

2006-04-21 Thread bhaq1972



in flex1.5 i could do this 

mx:Button label=Hello #13;World height=40/

the same thing in flex2b2 doesn't work. any ideas how i can achieve 
this.

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.



  












Re: [flexcoders] Flex2B2 - How to show a button label over 2 lines

2006-04-21 Thread jeremy lu



don't have FB at hand to check the code, but I think button's using a mx.controls.Label component to show the text as label, and label component only allow single line content.you might have to extends Button and override createChildren() and updateDisplayList() to swap out the label component then use a plain textfield instead.
however, a button with multiple lines of text as label iskinda weird.On 4/21/06, bhaq1972 [EMAIL PROTECTED]
 wrote:in flex1.5 i could do thismx:Button label=HelloWorld height=40/
the same thing in flex2b2 doesn't work. any ideas how i can achievethis.thanks--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





  




  
  
  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: Flex framework: ARP, Cairngorm... Which to use?

2006-04-21 Thread Steven Webster



Hi there,

We typically release a SWC version of the framework, as well as the
source. Those that want to amend or update the framework can work from
the source, the rest can just replace the old SWC with the new, and
that's all folks !

Best,

Steven

Steven Webster
Practice Director (Rich Internet Applications)
Adobe Consulting
Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK
p: +44 (0) 131 338 6108
m: +44 (0) 7917 428 947 
[EMAIL PROTECTED] 

 

 -Original Message-
 From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of arieltools
 Sent: 20 April 2006 23:53
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Flex framework: ARP, Cairngorm... 
 Which to use?
 
 OK, ok, I see you are more prone to jewels (hmm, cairngorm 
 is a kind of quartz to make jewels) than music instruments 
 (arp...), moreover, I see more people using C than A, so I'll 
 go for cFlex than aFlex.
 
 The other BIG question I have is:
 
 How would you update the framework version once a new one gets out?
 
 Thanks for your answers, people: you shine! I hope I'll have 
 some more specific questions soon!
 
 go, c, go...
 
 
 
 --- In flexcoders@yahoogroups.com, Dominick Accattato
 [EMAIL PROTECTED] wrote:
 
  I've used as2patters and then moved to cairngorm for Flex. I think
 you will
  just find it very clean and simple to use. If your looking for
 advice on
  which side to choose, just try out the cairngorm flex2 sample login
 and I
  think that you will see how simple the framework makes 
 Flex. In other 
  words, I would use cairngorm forward on.
  
  
  On 4/20/06, Douglas Knudsen [EMAIL PROTECTED] wrote:
  
  
  
 http://www.google.com/search?hl=enhs=L7Fsafe=offclient=fire
fox-arls=org.mozilla:en-US:officialsa=Xoi=spellresnum=0
ct=resultcd=1q=cairngormspell=1
  
   Maybe, you need to know how to play the pipes before you can 
   correctly say it, eh? Heehee
  
   DK
  
   On 4/20/06, judah [EMAIL PROTECTED] wrote:
What I want to know is how do you say it? Is there history
 behind the
   name?
   
Judah
   
   
Steven Webster wrote:
Oh man, I write a 6 page article series and still people go on
 and on
and on about ViewLocators :) We innovated the ModelLocator
 pattern in
Cairngorm, and have done our best to communicate the practices
 around
using the ModelLocator, over ViewLocator (a relic from 
 our Flash 
RIA days).
   
Cairngorm and ARP are both implementations of the same design
 patterns;
so the approach in terms of breaking down your application's
 technical
architecture over a microarchitecture will be very 
 similar. You'll 
start thinking in terms of all the same concepts, you'll
 approach your
application development the same way. The frameworks are more
 similar
than different, imho.
   
We took a very strategic decision with Cairngorm, only to
 support the
Flex framework; the framework started life in the Flash world,
 but we
believed that Flex would become the defacto technology for
 building RIAs
of any complexity that merits a microarchitecture, and so have 
made conscious decision not to support back to Flash or 
 any other 
Flash platform technologies. In that way, we can focus on 
leveraging
 the Flex
framework without concering ourselves deeply with how this
 translates to
the non-Flex world. We do have developers using 
 Cairngorm on Flash 
projects - but that's not the expected use-case.
   
There's a 6-page article series on Cairngorm on 
 Macromedia Devnet, 
starting here:
   

 http://www.macromedia.com/devnet/flex/articles/cairngorm_pt1.html
   
We'll continue to make these articles available to you through
 devnet,
and through blogs, to enable you to be successful in 
 building more 
complex RIAs upon this architecture, and to guide you in how we
 think
the architecture fits with new features of the Flex framework,
 be that
States, Internationalisation, Flex Data Services, etc.
   
If you follow that article series, you'll be ready in a 
 few hours 
to start building RIAs today, with Flex 2 and 
 ActionScript 3.0, on 
Cairngorm. As we start to move through the final betas, 
 and into 
release of Flex 2.0, a number of us within Adobe Consulting are 
absolutely committed and ready to ship the community updated
 versions of
Cairngorm as required - we're using it on a significant number
 of our
own Flex 2.0 projects here, and are a step ahead of the public 
beta programs that you have access to.
   
There's a huge number of people on the flexcoders list 
successfully using Cairngorm; so once you have more specific 
questions, I'm sure we'll be able to help you in your 
 application development.
   
Good luck !
   
Best,
   
Steven
   
--
Steven Webster
Practice Director (Rich Internet Applications) Adobe Consulting 
Westpoint, 4 Redheughs Rigg, South Gyle, 

[flexcoders] Re: Flex2B2 - How to show a button label over 2 lines

2006-04-21 Thread bhaq1972



sounds like a lot of work for something that was straight forward in 
flex1.5.

 however, a button with multiple lines of text as label iskinda 
weird.

not as weird as you might think. in our flex 1.5 app, we had our own 
version of a buttonbar which appeared below a datagrid showing stock 
(for eg). 
usually a two word description on a button label eg release 
stock, hold stock, better describes the action of the button  
as well as significantly reducing the width of the overall button 
bar.



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

 don't have FB at hand to check the code, but I think button's 
using a
 mx.controls.Label component to show the text as label, and label 
component
 only allow single line content.
 
 you might have to extends Button and override createChildren() and
 updateDisplayList() to swap out the label component then use a 
plain
 textfield instead.
 
 however, a button with multiple lines of text as label iskinda 
weird.
 
 On 4/21/06, bhaq1972 [EMAIL PROTECTED] wrote:
 
  in flex1.5 i could do this
 
  mx:Button label=Hello
  World height=40/
 
  the same thing in flex2b2 doesn't work. any ideas how i can 
achieve
  this.
 
  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] Re: Flex2B2 :: Changing State :: Problem with parent child

2006-04-21 Thread Michael Schmalle



Well,

I have downloded it and researched but, not implemented it yet. From
reading the 6 part artical, it seemed that this app I am making wasn't
big enough to warrant it.

If you want, post the example. I could just implement the pattern anyway(without the framework).

Peace, MikeOn 4/21/06, Tim Hoff [EMAIL PROTECTED] wrote:



You might try changing the state of the child component before the 
parent. I've noticed, probably because of Flex's asynchronous 
nature, that sometimes code doesn't execute before the screen is 
rendered. 

If you were using cairngorm, I would recomend that you control all 
of the states in your application in the modelLocator. By binding 
the currentState property of a component to a variable in the 
model, you can simply update the variable to the desired state for 
the component and the view automatically reflects the change. I can 
provide you with an example if you want. But, if you're not using 
cairngorm yet, it probably won't fit your need.

Tim

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

 hi,
 
 No, that was just a typo from the email, I am getting no errors.
 
 Peace, Mike
 
 On 4/20/06, Tim Hoff [EMAIL PROTECTED] wrote:
 
 
  Looks like you need an equal sign.
 
  modifierCheckGroup.currentState matchState;
 
  should be:
 
  modifierCheckGroup.currentState = matchState;
 
  - Tim
 
 
  --- In flexcoders@yahoogroups.com, Michael Schmalle
 
  teoti.graphix@ wrote:
  
   Hi,
  
   Real quick is there a problem with changing a parent component 
state
  and in
   the next call calling one if it's children's state changes?
  
   I cannot get this to work, but in the mxml component the child
  component
   changes state fine.
  
   IE
  
   if (event.label == Match) {
   trace(Match);
   currentState = matchState;
   modifierCheckGroup.currentState matchState;
   }
  
   Peace, Mike
  
   --
   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
 
 
  --
  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/.
 
 
  --
 
 
 
 
 --
 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





  




  
  
  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] Uncaught exceptions in Flex 1.5

2006-04-21 Thread Sergey Kovalyov



Hi All!

How to deal with uncaught exceptions in Flex 1.5? Actually they kill
application running via terminating the current script.

Due to the fact Flex application has a lot of entry points (each and every
event handling delegate), I need either put try..catch..finally statements
in each and every function assigned as an event handler that is wrong copy
and paste method or create own Delegate class that is much more better by
design.

But on the other hand using the second approach force me not to assign event
handlers in MXML (like mx:Button click=onClick()). Instead we need to
assign those handlers in linked ActionScript class. It's very difficult when
you deal with complex nested structures, repeaters, ViewStack, Accordion and
their successors.

Any suggestions?

Thank you in advance.

Regards, Sergey.







--
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: Flex2B2 :: Changing State :: Problem with parent child

2006-04-21 Thread Michael Schmalle



Oh yeah,

Now that is the morning and I remeber what I did, it was the call. For
now, I just over road the Application's currentState and called what I
need from there. Since I use a lot of modules, the scope is only one
child deep for this. Works fine.

If you still want to post that example that would be great.

Peace, MikeOn 4/21/06, Michael Schmalle [EMAIL PROTECTED] wrote:
Well,

I have downloded it and researched but, not implemented it yet. From
reading the 6 part artical, it seemed that this app I am making wasn't
big enough to warrant it.

If you want, post the example. I could just implement the pattern anyway(without the framework).

Peace, MikeOn 4/21/06, Tim Hoff 
[EMAIL PROTECTED] wrote:



You might try changing the state of the child component before the 
parent. I've noticed, probably because of Flex's asynchronous 
nature, that sometimes code doesn't execute before the screen is 
rendered. 

If you were using cairngorm, I would recomend that you control all 
of the states in your application in the modelLocator. By binding 
the currentState property of a component to a variable in the 
model, you can simply update the variable to the desired state for 
the component and the view automatically reflects the change. I can 
provide you with an example if you want. But, if you're not using 
cairngorm yet, it probably won't fit your need.

Tim

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

 hi,
 
 No, that was just a typo from the email, I am getting no errors.
 
 Peace, Mike
 
 On 4/20/06, Tim Hoff [EMAIL PROTECTED] wrote:
 
 
  Looks like you need an equal sign.
 
  modifierCheckGroup.currentState matchState;
 
  should be:
 
  modifierCheckGroup.currentState = matchState;
 
  - Tim
 
 
  --- In flexcoders@yahoogroups.com, Michael Schmalle
 
  teoti.graphix@ wrote:
  
   Hi,
  
   Real quick is there a problem with changing a parent component 
state
  and in
   the next call calling one if it's children's state changes?
  
   I cannot get this to work, but in the mxml component the child
  component
   changes state fine.
  
   IE
  
   if (event.label == Match) {
   trace(Match);
   currentState = matchState;
   modifierCheckGroup.currentState matchState;
   }
  
   Peace, Mike
  
   --
   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
 
 
  --
  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/.
 
 
  --
 
 
 
 
 --
 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.

-- 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





  




  
  
  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: flex newbie - dispatchEvent question - Part 2 (Cairngorm)

2006-04-21 Thread Andrea Varga



Doug Lowder wrote:

Hmm, the code you posted for Login.mxml dispatches a login event, 
not test, so that's one thing to be aware of. 

Yes, this was definitely a problem, but not THE problem.

You'll need to add 
the listener to the Login object, which you can do by giving the 
Login component an id (Login id=loginComponentId ...) and then 
calling something similar to:

loginComponentId.addEventListener(login, onLoginEvent).
 

Yes, this works, but I don't want to do that. My application won't know 
who dispathes the event, just wants to know that it was dispatched.

I created this test just to get a bit confortable with events, and to 
try to catch what is the problem in my original project which uses 
Cairngorm.
In Cairngorm, in the FrontController's addCommand method, the listener 
is registered to Application.application. But it is not working in my 
project, and obviusly the problem is not in Cairngorm.

Thanks
Andi



Doug

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

Well, this worked, but in the Cairngorm framework this was correct 
 

and 
 

the problem is somewhere else.
Below is my new little test.
This time the button that does the dispatchEvent is not in the 
application, but inside another component

The Main.mxml code is almost the same as before, just the Login 
component is new.
The button with Login1 has the same code as the Login2 button 
 

inside the 
 

Login component (both dispatch a test event).
But the Application catches just the Login1 event.
What am I mmissing this time?

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=*
layout=absolute applicationComplete=onComplete()
 mx:Script
 ![CDATA[

 [Bindable]
 public var status:String = ;

 public function onComplete():void {
 status += Add Event Listener...\n;
 
Application.application.addEventListener(test,onTestEvent);
 }

 public function onTestEvent(event:Event):void {
 Application.application.status += Test Event 
 

occured...\n;
 

 }

 public function dispatchTextEvent():void {
 var event:Event = new Event(test);
 dispatchEvent( event );
 status += Event Dispatched...\n;
 }
 ]]
 /mx:Script

 mx:Button x=66 y=56 label=Login1 
 

click=dispatchTextEvent() /
 

 mx:TextArea x=66 y=123 width=393 height=243 
 

text={status}/
 

 Login x=333 y=56 /
/mx:Application

The Login.mxml code:
?xml version=1.0 encoding=utf-8?
mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml xmlns=*
 mx:Script
 ![CDATA[ 
 public function loginUser():void
 {
 var event:Event = new Event(login);
 dispatchEvent( event );
 Application.application.status += Dispatch login 
event...\n;
 }
 
 ]]
 /mx:Script
 mx:ControlBar
 mx:Button label=Login2 click=loginUser() /
 /mx:ControlBar
/mx:Canvas


[EMAIL PROTECTED] wrote:

 

Try changing


public function onTestEvent()
to
public function onTestEvent(event:Event)


 You should add event:Event in your listener.


 

 







--
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



 

 



-- 
Andrea Varga
Managing Partner / Project Manager
Certified Macromedia Flash MX 2004 Developer 

--
Spin Development Srl

Tel: +44 207 043 1304
Fax: +44 207 681 1376
Skype ID: vargaandrea

Mon-Fri : 8 AM - 5 PM GMT+2
Saturday: 8 AM - 4 PM GMT+2 (Support only)
--







--
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: Can't use RemoteObject on HTTPS ONLY Server?

2006-04-21 Thread Steven Toth



I was able to get the secure AMF channel to work over HTTPS running 
under standalone JRUN. By configuring and running the SSLService in 
JRUN I was able to execute a secure AMF call over HTTPS. 

It seems that there is an issue between Apache and JRun. I'm not 
sure if it's an issue in the communication, or if it's an issue in 
my configuration. I'm looking into the configuration of the 
mod_jrun20.so. It's odd that I get some of the messages in the JRun 
console window when going over HTTPS through Apache. It's apparent 
there is communication established between the two.

Has anyone else gotten HTTPS-Apache-JRun-SecureAMF to work???




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

 Interesting, has anyone gotten Flex 2 Beta 2 to work over HTTPS 
with
 AMF? Also adding the complexity of proxying through Apache SSL?
 
 --- In flexcoders@yahoogroups.com, Steven Toth steventoth@ 
wrote:
 
  Here are the console messages from the non-secure amf:
  
  [Flex] Channel endpoint my-amf received request.
  [Flex] Deserializing AMF/HTTP request
  Version: 3
  (Message #0 targetURI=null, responseURI=/1)
  (Array #0)
  [0] = (Typed Object 
  #0 'flex.messaging.messages.CommandMessage')
  messageRefType = null
  operation = 6
  correlationId = 
  headers = (Object #1)
  messageId = 7872E161-B9A4-4841-5F6D232B
  timeToLive = 0
  timestamp = 0
  clientId = null
  body = (Object #2)
  destination = 
  
  [Flex] Executed command: (default service)
  commandMessage: Flex Message 
  (flex.messaging.messages.CommandMessage)
  operation = client_ping
  messageRefType = null
  clientId = 233EDFBE-1D0A-4948-4537-EC592DCACD7F
  correlationId =
  destination =
  messageId = 7872E161-B9A4-4841-5F6D232B
  timestamp = 1145493517421
  timeToLive = 0
  body = {}
  replyMessage: Flex Message 
  (flex.messaging.messages.AcknowledgeMessage)
  clientId = 233EDFBE-1D0A-4948-4537-EC592DCACD7F
  correlationId = 7872E161-B9A4-4841-5F6D232B
  destination = null
  messageId = 233EDFBE-1D1D-C0FC-936D-FA6B34623DC5
  timestamp = 1145493517421
  timeToLive = 0
  body = null
  
  [Flex] Serializing AMF/HTTP response
  Version: 3
  (Message #0 targetURI=/1/onResult, responseURI=)
  (Typed Object 
#0 'flex.messaging.messages.AcknowledgeMessage')
  destination = null
  headers = (Object #1)
  correlationId = 7872E161-B9A4-4841-5F6D232B
  messageId = 233EDFBE-1D1D-C0FC-936D-FA6B34623DC5
  timeToLive = 0.0
  timestamp = 1.145493517421E12
  clientId = 233EDFBE-1D0A-4948-4537-EC592DCACD7F
  body = null
  
  [Flex] Channel endpoint my-amf received request.
  [Flex] Deserializing AMF/HTTP request
  Version: 3
  (Message #0 targetURI=null, responseURI=/2)
  (Array #0)
  [0] = (Typed Object 
  #0 'flex.messaging.messages.RemotingMessage')
  source = null
  operation = authenticateUser
  headers = (Object #1)
  endpoint = my-amf
  messageId = 09226E93-C2DA-A5E4-CCE6D97E
  timeToLive = 0
  timestamp = 0
  clientId = null
  body = (Array #2)
  [0] = (Typed Object 
  #3 'com.logicseries.services.security.authenticati
  on.AuthenticatedUserValue')
  currentLogonDateTime = null
  username = XX
  lastLogonDateTime = null
  password = XX
  invalidLogonAttempts = NaN
  name = null
  profile = "">
  authorizedRoles = null
  personId = NaN
  destination = lsSecurity
  
  
  
  
  Here are the console messages from the secure amf:
  
  [Flex] Channel endpoint my-secure-amf received request.
  [Flex] Deserializing AMF/HTTP request
  Version: 3
  (Message #0 targetURI=null, responseURI=/1)
  (Array #0)
  [0] = (Typed Object 
  #0 'flex.messaging.messages.CommandMessage')
  operation = 6
  messageRefType = null
  correlationId = 
  messageId = E41A269A-9553-977E-525A3BB0
  timeToLive = 0
  timestamp = 0
  clientId = null
  body = (Object #1)
  destination = 
  headers = (Object #2)
  
  [Flex] Serializing AMF/HTTP response
  Version: 3
  (Header #0 name=AppendToGatewayUrl, mustUnderstand=false)
  ;jsessionid=c030f64fa6665e267f2d
  
  (Message #0 targetURI=/1/onResult, responseURI=)
  (Typed Object 
#0 'flex.messaging.messages.AcknowledgeMessage')
  destination = null
  headers = (Object #1)
  correlationId = E41A269A-9553-977E-525A3BB0
  messageId = 2345E298-890B-5740-1E8D-72D6ED468800
  timeToLive = 0.0
  timestamp = 1.145493705625E12
  clientId = 2345E271-790C-307C-1DE9-1CB848FC58D2
  body = null
  
  
  
  On the non-secure amf channel I get RemotingMessage traces after 
the 
  AcknowledgeMessage. I never get anything on the secure amf 
channel 
  after the AcknowledgeMessage. Any thought???
  
  
  
  
  --- In flexcoders@yahoogroups.com, Steven Toth steventoth@ 
  wrote:
  
   Thanks for the notes. I wasn't aware of the fact that you 
need to 
   specify the context root on the compiler. I assumed (I know 
it's 
  not 
   good to assume) that whatever was in the config files in WEB-
  INF/flex 
   directory of the web app would be loaded and used at runtime. 
I 
   guess it's 

[flexcoders] Re: Flex Remoting

2006-04-21 Thread murtuza_ab



Hi 

I have tried with the passing the argument as string it works but 
when we send the array or custom object it fails

Example:

var gatewayUrl : String = http://localhost:8080/demoApp/gateway;
   var gateway_conn:NetConnection = new 
NetConnection();
   
   gateway_conn.objectEncoding = 
flash.net.ObjectEncoding.DEFAULT
   gateway_conn.connect( gatewayUrl );
   
   /* This call works prefect */
   gateway_conn.call
(com.tis.demoApp.dao.SampleDAO.validateUser, new 
flash.net.Responder(onResult, 
onFault),loginVO.loginName,loginVO.password);

/* This call fail */

var userList:Array = new Array();
userList.push(12);
userList.push(12);

   gateway_conn.call
(com.tis.demoApp.dao.SampleDAO.updateEmployeeList, new 
flash.net.Responder(onResult, onFault),userList);


/* This call fail */

   gateway_conn.call
(com.tis.demoApp.dao.SampleDAO.demoValueObjectList, new 
flash.net.Responder(onResult, onFault),loginVO);


Server Side API
public void validateUser(String userId, String password)
public ArrayList updateEmployeeList(ArrayList dataList)
public void demoValueObjectList(LoginVO loginVo)


LoginVO as sample Replica Object as Flex with 
[RemoteClass(alias=com.tis.demoApp.value.LoginVO)]
 public class LoginVO {
  
  public var loginId:String;
  public var loginName:String
  public var userTokenId:String
  public var password:String

  public function LoginVO(){
   //
  }
  
 }

Server Side Object

package com.tis.demoApp.value;

public class LoginVO {

 private String loginId;
 private String loginName;
 private String userTokenId;
 private String password;

 public LoginVO() {

 }

 public LoginVO(String loginId, String loginName,String 
userTokenId,String password) {
 this.loginId = loginId;
 this.loginName = loginName;
 this.userTokenId = userTokenId;
  this.password = password;
 }

 public String getId() {
 return loginId;
 }

 public void setId(String loginId) {
 this.loginId = loginId;
 }

 public String getName() {
 return loginName;
 }

 public void setName(String loginName) {
 this.loginName = loginName;
 }
}

is that bug in flex 2.0 beta 2 , need help


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

 It depends on what the method signature for SampleDAO.getPersons 
looks
 like. Where did you find this sample?
 
 Note that the AS signature for NetConnection.call() is:
 
 public function call(command:String, responder:Responder, ...
 arguments):void
 
 So the ... syntax in AS means the rest of the arguments which is 
an
 Array.
 
 So, if the getPersons signature was something like this:
 
 public Person[] getPersons(List ids);
 
 then the call would look like this:
 
 gateway_conn.call(com.tis.dao.SampleDAO.getPersons, 
responder,
 userList);
 
 
 Or, if the getPersons signature was like this:
 
 public Person[] getPersons(id1, id2, id3);
 
 then the call would look like this:
 
 gateway_conn.call(com.tis.dao.SampleDAO.getPersons, 
responder,
 12, 13, 15);
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of murtuza_ab
 Sent: Thursday, April 20, 2006 10:55 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Flex Remoting
 
 Hi,
 
 Need help in the Remoting Implementation I have tried example of 
below,
 with the method which does not take any param it works but what is 
the
 syntax for passing the argument to the remote method.
 
 We are using this example as we are not using flex data service 
server
 side component. if any has related example with different way to 
achieve
 also help
 
 var gatewayUrl : String = http://localhost:8080/demoApp/gateway;
gateway_conn = new NetConnection();
gateway_conn.objectEncoding =
 flash.net.ObjectEncoding.AMF0;
gateway_conn.connect( gatewayUrl );
 var userList:Array = new Array(12,13,15);
 /*
 what is the syntax for passing the
 userList Array to the remote method
 com.tis.dao.SampleDAO.getPersons
*/
 
 
gateway_conn.call
 (com.tis.dao.SampleDAO.getPersons, new flash.net.Responder(
 onQueryResult, onQueryStatus ) );
 
 
 
 
 
 
 
 --
 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] Dynamic create child in Flex1.5

2006-04-21 Thread sinacapho



Dear all,
 
i have a container that i need to create different custom component on
it. I find that the function createChild() only accept hard code
component. For example createChild(Button,undefined);

Does it have some method that can run like this?

var c_component = Button; // Actually it may be my custom component.

XX.createChild(c_component,undefined);

thx
capho










--
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] Setting background color of DataGrid row and column

2006-04-21 Thread Mustaq Pradhan



I have been trying these for considerable amount of time without any 
real success. I am new to Flex and using Flex 2 Beta 2.

My GataGrid gets displayed with some data from a DB. To group data I 
want to set backgroundColor of collection of consecutive rows (not 
alternate row) with one color and next lot with another color, and 
so on.

Any help on this?

Another problem is to set backgroundColor of columns. I managed to 
set this at runtime (compile time methods as stated in the docs 
doesn't work) using dgColumn.setStyle(backgroundColor, 0x00); 
But this works only after the comiplation of page loading. That is, 
if I call this from a button click event it works. If I call this 
from creationComplete event of the Application, it doesn't work.

Any idea?

Thanks for your help.










--
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: DataGridItemRenderer with AS3

2006-04-21 Thread Webdevotion



Isn't there anyone with some tips on this topic ?
On 4/20/06, Webdevotion [EMAIL PROTECTED] wrote:


Hello,I'm trying to create a datagriditemrenderer using Actionscript.I know I'm importing to much right now, it's for testing purposes ; )Does anyone have some insight into this techniques ?All I am seeing now is 
false in the cells of my datagrid.Another question: I can't use addChildAt, but I want to place some png files into the renderer. How do I do this ?Thanks!
My code: 
package{import flash.display.*;import flash.events.*;import flash.util.*;import mx.core.*;import mx.controls.dataGridClasses.DataGridItemRenderer;import 
mx.controls.dataGridClasses.DataGridListData;import mx.controls.Label;  public class Rating extends DataGridItemRenderer{ // embed the solid start [Embed (source='assets/star.png')] 
private var Star:Class;
 // embed the solid start [Embed (source='assets/star_empty.png')]private var StarEmpty:Class;  private var myListData:DataGridListData; private var ratingLabel:Label; 
  public function Rating() { super(); var pic:Bitmap; var i:int; myListData = DataGridListData(listData);  for(i=0;idata;i++)
 { if((i+1)=data) { pic = new Star(); }else{ pic = new StarEmpty(); } pic.x = i*25; //this.addChildAt( pic,i ); } 
 ratingLabel = new Label(); ratingLabel.text = data.rating; }}}






--
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] Flex 2 Instalation And Development Guide

2006-04-21 Thread Bora Ünal





Hi 
All,

I'm 
new to this list. I tried Flex 1.0. In Flex 1.0 we needed some Java Server to 
deploy Flex Server. But In Flex 2.0 I could not figure out what to install to 
run Flex server. Actually I want to use Flex with ColdFusion 7. What components 
should I install? Are there any tutorials about CF  
Flex?

Best 
Regards

Bora 
Unal





--
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] Skinning on a global level

2006-04-21 Thread KR



I am new to Flex. can you provide me with an example for writing a 
custom skinning class which will extend the ButtonSkin class of 
Flex, which can be applied to any custom component across my 
application.

This is what I tried:

CUSTOM BUTTON CLASS

package org.tis.inetoo.common.components.controls 
{
 import mx.controls.Button;
 
 public class TISButton extends Button 
 { 
  public function TISButton()
  {
   super();
  }
 }
}

APPLICATION INTERFACE

?xml version=1.0 encoding=utf-8?
mx:HDividedBox horizontalGap=0 verticalGap=1 
xmlns:mx=http://www.adobe.com/2006/mxml 
xmlns:cmp=org.tis.inetoo.common.components.custom.* 
xmlns:comp=org.tis.inetoo.common.components.controls.* 
width=100% height=100% creationComplete=createObject()
 mx:Script
  ![CDATA[
   import 
org.tis.inetoo.common.skinning.TISGLBSkinButton;
  
   [EMAIL PROTECTED](source=assets/images/up.gif)]
   public var up:Class;
   
   [EMAIL PROTECTED](source=assets/images/over.gif)]
   public var over:Class;
   
   [EMAIL PROTECTED](source=assets/images/down.gif)]
   public var down:Class;
   
   import 
org.tis.inetoo.common.components.controls.TISButton;
   import mx.controls.Alert;
   import org.tis.inetoo.event.LoginEvent;
   import org.tis.inetoo.common.*;
   import org.tis.inetoo.model.*;
   import mx.controls.Button;
   import flash.display.*;
   
   [Bindable]
public var model:LoginModel = 
LoginModel.getInstance();
public var loginEvent:LoginEvent = new 
LoginEvent();

public var fPasswd:TISButton;

public function createObject():void
{
 fPasswd = new TISButton();
 fPasswd.label = Forgot your 
password?;
loginPanel.addChild(fPasswd);
   fPasswd.setStyle(upSkin,up);
   fPasswd.setStyle(overSkin,over);
   fPasswd.setStyle(downSkin,down);
  }
  ]]
 /mx:Script
  mx:Panel id=loginBGImage width=75% 
height=100%
   mx:Image id=inetooImg 
source=assets/images/inetoo_bg.jpg/
  /mx:Panel
  cmp:LeftNavigation/
  mx:Panel id=loginPanel width=25% height=100%
   mx:Label text=INETOO autoSize=right/
   mx:Label text=Username autoSize=right/
   mx:TextInput id=username 
text={model.loginName} change={model.loginName=username.text}/
   mx:Label text=Password autoSize=center/
 
   mx:HBox
mx:TextInput id=password 
text={model.loginPassword} 
change={model.loginPassword=password.text}/
mx:Button id=submit label=Login 
click=loginEvent.onLoginClick(event);/
   /mx:HBox
   !--mx:Button label=Forgot your 
password?/
   comp:TISButton label=Forgot your 
password?/--
  /mx:Panel 
/mx:HDividedBox











--
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] How i use timer????????

2006-04-21 Thread anil thakur










Thanks a lot.





Regards
Anil kumar
[EMAIL PROTECTED]
Software Engineer(Java)
Vanguard
Info-Solutions Limited
78, JIL
Tower-II, Sector-18, Gurgaon-122001 (INDIA)













From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt
Sent: Tuesday, April 18, 2006
11:56 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How i
use timer





Below is a sample app that uses
setInterval() to add a row to a DataGrid every few seconds.

Perhaps it whill help you get started.

Tracy

?xml
version=1.0 encoding=utf-8?

mx:Application
xmlns:mx=http://www.macromedia.com/2003/mxml xmlns=* 


creationComplete=startApp()

mx:Script![CDATA[



var _aDP:Array


function startApp() 


{ 


_aDP = new Array();


setInterval(this,do_output,5000); 


} 


function do_output() { 


var mydate = new Date(); 


_aDP.addItem({day:mydate.getDay(),month:mydate.getMonth(),year:mydate.getFullYear()})



} 

]]/mx:Script


mx:DataGrid id=dg dataProvider={_aDP}
width=600 


mx:columns


mx:Array


mx:DataGridColumn columnName=day
headerText=Day/


mx:DataGridColumn columnName=month headerText=Month/


mx:DataGridColumn columnName=year
headerText=Year/


/mx:Array


/mx:columns


/mx:DataGrid

/mx:Application











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of anil thakur
Sent: Tuesday, April 18, 2006
10:26 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How i use
timer





Hi Sir

I want to take the date from
database I am using select getDate() for that .But the date on mxml page is
refreshed after 1 or 2 second .There is timer but it gives error 

I am using flex1.5 .Can sir u give me
solution how can I use timer in mxml using my action script.

I am using java/j2ee with macromedia
flex.





Regards
Anil kumar
[EMAIL PROTECTED]
Software Engineer
Vanguard Info-Solutions Limited
78, JIL Tower-II, Sector-18,
Gurgaon-122001 (INDIA)












--
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.



  








-- "The information in this e-mail is the property of VanGuard Info-Solution Ltd.and may be confidential and privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you receive this message in error, please notify the sender immediately  forward a copy of this e-mail to [EMAIL PROTECTED].An E-mail reply to this address may be subject to interception or monitoring for operational reasons or for lawful business practices.This e-mail and any attachments has been scanned for the presence of computer viruses.Vanguard accept no responsibility for computer viruses once e-mail has been transmitted" -- 



[flexcoders] New to Flex, couple of questions

2006-04-21 Thread Sascha Balkau



Hi list,

I'm familiar with ActionScript 2.0 but new to Flex and just started learning
Flex 2.0 and AS3.0. I'm amazed how easy and flexible components can be used
with Flex but I got a few questions about it...

So far I have only seen MXML code with embedded ActionScript. But I prefer
to write the ActionScript in a class structure. Is it possible to keep both
ActionScript Classes and MXML code in their own files and somehow link
these? If so, how do I do that?

I'd like use an Ant build file to compile the Flex apps but I'm not very
familiar with the compiler syntax yet. Does somebody know of any examples on
the web on how to use the compiler in a command line or an example Ant build
file for it?

Thanks for any help!
Sascha








--
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: Developing Flex Book Example not working in Flex 2 Beta 2

2006-04-21 Thread sof4real03



Anybody run into this issue when creating custom components extending
mx containers?

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

 I'm trying to use a similar function as in Chapter 8 of the flex book
 regarding Forms. In the chapter, we create a base custom component
 that extends the Form component. We then use that base custom
 component to make the individual child forms which will be the
 different panes in the accordian component. When I apply this in Flex
 2 Beta 2, the player gives me an error that says:
 
 Error: Multiple sets of visual children have been specified for this
 component (base component definition and derived component definition)
 
 Any insight?











--
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] Dynamic create child in Flex1.5

2006-04-21 Thread Karl Johnson



The createChild method is able to create any type of component. I use it
to create custom components and controls and runtime all the time.

What is the error you are seeing? If you have your component in a
package (like net.xyz.me.componentClass) make sure to specify the full
class path (unless you have imported it).

Container.createChild(net.myCompany.myButtonComponent, undefined);

|

Karl Johnson
Cynergy Systems, Inc.
http://www.cynergysystems.com 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sinacapho
Sent: Friday, April 21, 2006 2:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Dynamic create child in Flex1.5

Dear all,
 
i have a container that i need to create different custom component on
it. I find that the function createChild() only accept hard code
component. For example createChild(Button,undefined);

Does it have some method that can run like this?

var c_component = Button; // Actually it may be my custom component.

XX.createChild(c_component,undefined);

thx
capho






--
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.



  











RE: [flexcoders] Re: DataGridItemRenderer with AS3

2006-04-21 Thread B.Brey





Well i 
figured it out ;)

What 
you want is a custom item renderer.
You 
must implement "IDropInListItemRenderer " and use a 
HBox component for example.
Look 
the "IDropInListItemRenderer "up in 
the help and you will see how to"implement" it.

For 
examplei use a "container" and my code looks like 
this:

public 
class CellItem extends Container implements 
IDropInListItemRenderer{
 // Internal variable for the property 
value. private var 
__listData:BaseListData; // Make the listData property 
bindable. [Bindable("dataChange")]

 public function get 
listData():BaseListData 
{ return 
__listData; }

 public function set 
listData(value:BaseListData):void 
{ __listData = 
value;

 dispatchEvent(new 
FlexEvent(FlexEvent.DATA_CHANGE)); 
}

}


With 
this class you can add components as you like ;)




  -Original Message-From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED]On Behalf Of 
  WebdevotionSent: vrijdag 21 april 2006 12:40To: 
  flexcoders@yahoogroups.comSubject: [flexcoders] Re: 
  DataGridItemRenderer with AS3
  Isn't there anyone with some tips on this topic 
  ?
  On 4/20/06, Webdevotion [EMAIL PROTECTED] 
  wrote: 
  

Hello,I'm trying to create a datagriditemrenderer using 
Actionscript.I know I'm importing to much right now, it's for testing 
purposes ; )Does anyone have some insight into this techniques 
?All I am seeing now is false in the cells of my datagrid.Another question: I can't 
use addChildAt, but I want to place some png files into the 
renderer. How do I do this ?Thanks! My 
code: 
package{import 
flash.display.*;import flash.events.*;import 
flash.util.*;import mx.core.*;import 
mx.controls.dataGridClasses.DataGridItemRenderer;import 
mx.controls.dataGridClasses.DataGridListData;import 
mx.controls.Label; 
 public class Rating extends 
DataGridItemRenderer{ // 
embed the solid start [Embed 
(source='assets/star.png')] private var 
Star:Class;
 // 
embed the solid start [Embed 
(source='assets/star_empty.png')]private var 
StarEmpty:Class;  
private var myListData:DataGridListData; 
private var ratingLabel:Label;  
 public function 
Rating() 
{ 
super(); var 
pic:Bitmap; var 
i:int; myListData = 
DataGridListData(listData); 
 
for(i=0;idata;i++) 
{ 
if((i+1)=data) 
{ 
pic = new Star(); 
}else{ 
pic = new StarEmpty(); 
} 
pic.x = i*25; 
//this.addChildAt( pic,i ); 
}  
ratingLabel = new Label(); 
ratingLabel.text = 
"data.rating"; 
}}}





--
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, couple of questions

2006-04-21 Thread JB



Hi,Check out Simeon Bateman sitehttp://www.simb.net/blog/Sascha Balkau [EMAIL PROTECTED] wrote:Hi list,  I'm familiar with ActionScript 2.0 but new to Flex and just started learning Flex 2.0 and AS3.0. I'm amazed how easy and flexible components can be used with Flex but I got a few questions about it...  So far I have only seen MXML code with embedded ActionScript. But I prefer to write the ActionScript in a class structure. Is it possible to keep both ActionScript Classes and MXML code in their own files and somehow link these? If so, how do I do that?  I'd like use an Ant build file to compile the Flex apps but I'm not very familiar with the compiler syntax yet. Does somebody know of any examples on the web on how to use the compiler in a command line or an example
 Ant build file for it?  Thanks for any help! Sascha   
		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] Flex 2 Instalation And Development Guide

2006-04-21 Thread Thomas Rühl -akitogo-

Hi Bora,

I came around some installation issues as well in the last couple of 
days. For me, the folliwing works:

1.  Install a Java Runtime Environment (JRE) -
 anything above(!) version 1.4.2_05 should be okay.
2.  Install JRun4 or another J2EE server
2b. Make sure, the application server uses the correct
 installation of the jre you installed beofre!
3.  Create two server instances on the application server -
 one for Coldfusion, one for Flex - and assign ports and stuff...

--  Coldfusion installation

4.  Execute the Coldfusion installation package. Select 'Deploy as
 Enteprise Application', for that, it generates a cfusion.ear file
 in the destination directory.
5.  Deploy the file on the COLDFUSION server instance using
 the corresponding method of your application server.
6.  Restart the server instance and try if the sample files work!

--  Flex installation

7.  Execute the Flex Data Services install package and also select
 to create J2EE application files, not the standalone version!
8.  Deploy the three generated files on the FLEX server instance
 using the corresponding method of your application server again.
9.  Restart the server instance and try if the sample files work!

Notes:
- To access cf via flex, it should be neccessary to install the Flex 
Coldfusion Bridge-files...


Hope, that helps!
Greetings, Thomas



Bora Ünal wrote:
 Hi All,
  
 I'm new to this list. I tried Flex 1.0. In Flex 1.0 we needed some Java 
 Server to deploy Flex Server. But In Flex 2.0 I could not figure out 
 what to install to run Flex server. Actually I want to use Flex with 
 ColdFusion 7. What components should I install? Are there any tutorials 
 about CF  Flex?
  
 Best Regards
  
 Bora Unal
 
 
 --
 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
   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/. 
 
 
 
 

-- 



   Thomas Rühl
   Design, Programming  Concepts

   akitogo OHG
   Hanauer Landstrasse 188
   60314 Frankfurt

   Telefon +49 (0) 69 800 69 445
   Fax +49 (0) 69 800 69 449
   Mobil   +49 (0) 179 750 75 87
   E-Mail  [EMAIL PROTECTED]
   Web http://www.akitogo.com






--
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: Problem with AMFGateway and Sessions - please help

2006-04-21 Thread Peter Farland



Is this a simple Java POJO based unnamed service for remote-object? I'm
not sure what you mean by the event handler class's methods... do you
mean the POJO that functions as your remote object service has static
methods? If so, then are you trying to do something in a static context
like initialize the class before it is invoked? Is anything else
possibly initializing that class besides RemoteObject? 

Note that while the getHttpRequest() method is accessed as a static
method on flashgateway.Gateway, it is backed by a thread-local variable
that is only populated when the request comes through the servlet at
invocation time and is destroyed after the servlet sends the response.




-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dmitry Miller
Sent: Thursday, April 20, 2006 8:39 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Problem with AMFGateway and Sessions - please
help

I assume so. The event handler class's methods are all static. This is
also unnamed service.

Thanks, 

--- Dmitry

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

 Did the request come through the gateway servlet? 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 On Behalf Of Dmitry Miller
 Sent: Wednesday, April 19, 2006 8:18 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Problem with AMFGateway and Sessions - please 
 help
 
 trying to retrieve session in my request handler class via
 
 flashgateway.Gateway.getHttpRequest().getSession(true);
 
 The problem is that flashgateway.Gateway.getHttpRequest() returns null
 
 I am using Flex 1.5
 Any suggestions?
 
 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



 








--
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] i can't use mx.controls - source not found... (yes...i'm a newbie)

2006-04-21 Thread federico.ferri



My problem is that i can't use the class mx.controls.Menu even if i
import in my script.

i'm looking for the solution till this morning,searching and
searching, but with no resultsthat's why i decide to post this
stupid question

i try to execute the Example: creating a simple Menu control, taken
from the livedocs.macromedia, but it doesn't work.
it seem like it doesn't link the main library of actions scripts 3,
but i tried in all ways to make Flex Builder link to.

envirorment: winxp, Flex Builder
this is the code:
=
?xml version=1.0?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml 
 mx:Script
 ![CDATA[
 // Import the Menu control.
 import mx.controls.Menu;
 // Create and display the Menu control.
 private function createAndShow():void {
 // The third parameter sets the showRoot property to
false.
 // You must set this property in the createMenu
method, not later.
 var myMenu:Menu = Menu.createMenu(null, myMenuData,
false); --1st ERROR HERE***
 myMenu.labelField=@label;
 myMenu.show(10, 10);
 }
 ]]
 /mx:Script

 !-- Define the menu data. --
 mx:XML format=e4x id=myMenuData
 menuitem label=MenuItem A 
 menuitem label=SubMenuItem A-1 enabled=False /
 menuitem label=SubMenuItem A-2 /
 /menuitem
 menuitem label=MenuItem B type=check selected=true /
 menuitem label=MenuItem C type=check selected=false/
 menuitem type=separator / 
 menuitem label=MenuItem D 
 menuitem label=SubMenuItem D-1 type=radio
groupName=one /
 menuitem label=SubMenuItem D-2 type=radio
groupName=one
 selected=true /
 menuitem label=SubMenuItem D-3 type=radio
groupName=one /
 /menuitem
 /mx:XML

 mx:VBox
 !-- Define a Button control to open the menu --
 mx:Button id=myButton label=Open Menu
click=createAndShow() /
 /mx:VBox
/mx:Application
=
tha's the errors:
1 - Call to a possibly undefined method 'createMenu' through a
reference with static type 'Class'
2 - Access of possibly undefined property 'labelField' through a
reference with static type 'Menu'
3 - Call to a possibly undefined method 'show' through a reference
with static type 'Menu'


tnx!!
FF









--
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: DataGridItemRenderer with AS3

2006-04-21 Thread Webdevotion



Thanks :)This will be off great value to me!As I'm pretty new to Flex, how can I add png files to the stage ?I'm using [embed...]






--
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: Flex2B2 :: Changing State :: Problem with parent child

2006-04-21 Thread Tim Hoff



Hey Mike, just look back a couple of messages to #34516 Flex2B2: 
Cairngorm - Controlling View State Example.

Regards,
Tim

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

 Oh yeah,
 
 Now that is the morning and I remeber what I did, it was the call. 
For now,
 I just over road the Application's currentState and called what I 
need from
 there. Since I use a lot of modules, the scope is only one child 
deep for
 this. Works fine.
 
 If you still want to post that example that would be great.
 
 Peace, Mike
 
 On 4/21/06, Michael Schmalle [EMAIL PROTECTED] wrote:
 
  Well,
 
  I have downloded it and researched but, not implemented it yet. 
From
  reading the 6 part artical, it seemed that this app I am making 
wasn't big
  enough to warrant it.
 
  If you want, post the example. I could just implement the pattern
  anyway(without the framework).
 
  Peace, Mike
 
 
  On 4/21/06, Tim Hoff [EMAIL PROTECTED] wrote:
  
   You might try changing the state of the child component 
before the
   parent. I've noticed, probably because of Flex's asynchronous
   nature, that sometimes code doesn't execute before the screen 
is
   rendered.
  
   If you were using cairngorm, I would recomend that you control 
all
   of the states in your application in the modelLocator. By 
binding
   the currentState property of a component to a variable in the
   model, you can simply update the variable to the desired state 
for
   the component and the view automatically reflects the change. 
I can
   provide you with an example if you want. But, if you're not 
using
   cairngorm yet, it probably won't fit your need.
  
  
   Tim
  
   --- In flexcoders@yahoogroups.com, Michael Schmalle
   teoti.graphix@ wrote:
   
hi,
   
No, that was just a typo from the email, I am getting no 
errors.
   
Peace, Mike
   
On 4/20/06, Tim Hoff TimHoff@ wrote:


 Looks like you need an equal sign.

 modifierCheckGroup.currentState matchState;

 should be:

 modifierCheckGroup.currentState = matchState;

 - Tim


 --- In flexcoders@yahoogroups.com, Michael Schmalle

 teoti.graphix@ wrote:
 
  Hi,
 
  Real quick is there a problem with changing a parent 
component
   state
 and in
  the next call calling one if it's children's state 
changes?
 
  I cannot get this to work, but in the mxml component the 
child
 component
  changes state fine.
 
  IE
 
  if (event.label == Match) {
  trace(Match);
  currentState = matchState;
  modifierCheckGroup.currentState matchState;
  }
 
  Peace, Mike
 
  --
  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%
http://www.mail-archive.com/flexcoders%25
   40yahoogroups.com


 --
 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/.


 --
  

   
   
   
--
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 developmenthttp://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 developmenthttp://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 developmenthttp://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
   flexhttp://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 practicehttp://groups.yahoo.com/gads?

[flexcoders] Viewing a base64Binary image in flex1.5

2006-04-21 Thread digital_eyezed



Hi,

I am accessing a web service which returns a base64Binary image.

Can I convert this to a PNG or GIF in flex?

This is the part of the return which includes the image:

Map
 bitsbase64Binary/bits
 typestring/type
/Map

Cheers,

Iain










--
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] i can't use mx.controls - source not found... ( yes...i'm a newbie)

2006-04-21 Thread Oscar . Cortes



Ciao Federico,

 This example worked fine for me. I am using Eclispe though. Is it
something missing in your Flex installation?


|-+-
| | |
| | federico.ferri |
| | [EMAIL PROTECTED] |
| | Sent by: |
| | flexcoders@yahoogroups.com |
| | 04/21/2006 10:21 AM |
| | Please respond to |
| | flexcoders |
| | |
|-+-
 -|
 | |
 | To: flexcoders@yahoogroups.com |
 | cc: |
 | Subject: [flexcoders] i can't use mx.controls - source not found... ( yes...i'm a newbie) |
 -|




My problem is that i can't use the class mx.controls.Menu even if i
import in my script.

i'm looking for the solution till this morning,searching and
searching, but with no resultsthat's why i decide to post this
stupid question

i try to execute the Example: creating a simple Menu control, taken
from the livedocs.macromedia, but it doesn't work.
it seem like it doesn't link the main library of actions scripts 3,
but i tried in all ways to make Flex Builder link to.

envirorment: winxp, Flex Builder
this is the code:
=
?xml version=1.0?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml 
 mx:Script
 ![CDATA[
 // Import the Menu control.
 import mx.controls.Menu;
 // Create and display the Menu control.
 private function createAndShow():void {
 // The third parameter sets the showRoot property to
false.
 // You must set this property in the createMenu
method, not later.
 var myMenu:Menu = Menu.createMenu(null, myMenuData,
false); --1st ERROR HERE***
 myMenu.labelField=@label;
 myMenu.show(10, 10);
 }
 ]]
 /mx:Script

 !-- Define the menu data. --
 mx:XML format=e4x id=myMenuData
 menuitem label=MenuItem A 
 menuitem label=SubMenuItem A-1 enabled=False /
 menuitem label=SubMenuItem A-2 /
 /menuitem
 menuitem label=MenuItem B type=check selected=true /
 menuitem label=MenuItem C type=check selected=false/
 menuitem type=separator /
 menuitem label=MenuItem D 
 menuitem label=SubMenuItem D-1 type=radio
groupName=one /
 menuitem label=SubMenuItem D-2 type=radio
groupName=one
 selected=true /
 menuitem label=SubMenuItem D-3 type=radio
groupName=one /
 /menuitem
 /mx:XML

 mx:VBox
 !-- Define a Button control to open the menu --
 mx:Button id=myButton label=Open Menu
click=createAndShow() /
 /mx:VBox
/mx:Application
=
tha's the errors:
1 - Call to a possibly undefined method 'createMenu' through a
reference with static type 'Class'
2 - Access of possibly undefined property 'labelField' through a
reference with static type 'Menu'
3 - Call to a possibly undefined method 'show' through a reference
with static type 'Menu'


tnx!!
FF





--
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












---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure. If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited. If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---








--
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.



  












RE: [flexcoders] Developing Flex Book Example not working in Flex 2 Beta 2

2006-04-21 Thread Stephen Gilson



Can you be more specific on the code that you are trying? What section
or page in the book is it in?

Thanks,

Stephen

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sof4real03
Sent: Friday, April 21, 2006 1:06 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Developing Flex Book Example not working in Flex 2
Beta 2

I'm trying to use a similar function as in Chapter 8 of the flex book
regarding Forms. In the chapter, we create a base custom component that
extends the Form component. We then use that base custom component to
make the individual child forms which will be the different panes in the
accordian component. When I apply this in Flex
2 Beta 2, the player gives me an error that says:

Error: Multiple sets of visual children have been specified for this
component (base component definition and derived component definition)

Any insight?





--
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] Viewing a base64Binary image in flex1.5

2006-04-21 Thread Peter Farland



Don't know of a way to do that in Flex 1.5... I don't think base64Binary
was supported in WS in that release... But, fwiw, when Flex 2 Beta 3
comes out I could see it being done.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of digital_eyezed
Sent: Friday, April 21, 2006 11:50 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Viewing a base64Binary image in flex1.5

Hi,

I am accessing a web service which returns a base64Binary image.

Can I convert this to a PNG or GIF in flex?

This is the part of the return which includes the image:

Map
 bitsbase64Binary/bits
 typestring/type
/Map

Cheers,

Iain






--
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.



  











RE: [flexcoders] Re: update Datagrid but stay in edit mode (Flex 1.5)

2006-04-21 Thread Tracy Spratt



Also, how are you updating the dataProvider? You should be using the
dataProvider API, and not the low level array methods.

Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bhaq1972
Sent: Friday, April 21, 2006 3:55 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: update Datagrid but stay in edit mode (Flex
1.5)

if you want to set focus on an editable cell, just use focusedCell 
property. eg

dg.focusedCell = {itemIndex:1, columnIndex:1}


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

 Hi everyone
 
 I have a Datagrid with editable cells. Pressing tab or enter key 
while
 editing a Cell, calls the function updateTotal which calculates 
other
 non-editable fields in the grid and updates the dataProvider. The
 problem is now, that the non-editable values dont show up in the 
grid,
 although there present in the dataProvider
 
 dg.invalidate() never worked.
 reassigning the dataprovider or using editField made the values 
show up,
 but the cell lost focus
 
 How can I update the cells with the celleditor staying active?
 
 
 Thomas








--
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: Viewing a base64Binary image in flex1.5

2006-04-21 Thread Doug Lowder



Is it just the decoded bits you want, or do you want the decoded 
image to be displayed in an mx:Image tag? You could write your 
own code that decodes base64 encoded data, but what you would end up 
with couldn't be used as the source property for an Image tag; the 
source property wants a relative of absolute URL of the image. 
Also, in Flex 1.5, only JPEG and SWF formats can be dynamically 
loaded at runtime, so you need to use @Embed for other formats.

What I typically do in a situation like this is create a separate 
page on the Flex server (JSP, CFM, PHP, or the technology of your 
choice) that does whatever it needs to (in this csae, access the 
webservice to retrieve the base64-encoded image and decode it) and 
then writes the results to the output stream. In your flex app, you 
could then access the image by using the url to that new page on 
your Flex server. 

 mx:Image source=@Embed('path/to/decoder/page/?optionalParams')/

Easy to test, too: just type the URL of the new page in your browser 
and verify that you see the correct PNG or GIF image.

Hope that helps.
Doug

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

 Hi,
 
 I am accessing a web service which returns a base64Binary image.
 
 Can I convert this to a PNG or GIF in flex?
 
 This is the part of the return which includes the image:
 
 Map
 bitsbase64Binary/bits
 typestring/type
 /Map
 
 Cheers,
 
 Iain











--
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] Scrapblog is hiring Flex Developers!

2006-04-21 Thread Carlos Garcia



Scrapblog (www.scrapblog.com) is an early stage, privately funded, consumer Internet company based in MIAMI, FL. Scrapblog is the world�s first online scrapbooking website. It offers its users the storytelling capabilities of scrapbooks combined with the sharing power of blogs. At the core of Scrapblog is a Rich Internet Application (RIA) we call the Scrapblog Builder. (The current version is developed in Flex 1.5, but we are developing now in Flex 2.0)We are growing fast and so is our user-base. We�re looking to add top talent to join our product development team and participate of success of Scrapblog. If you're a superstar RIA developer who is looking to work on one of the fastest growing, most exciting new sites in the East Coast, read on... Desired Qualifications: +  Extensive experience creating usable, fun, and consumer friendly Rich Internet Applications using Flex 1.5 and Flex 2.0+  Advanced Knowledge of ActionScript2 and strong interest in ActionScript3+ Ability to leverage object oriented service architecture to build web applications + Strong sense for building good user-experiences+ Plus: Experience developing dynamic web pages using HTML, DHTML, CSS, _javascript_/Ajax, SOAP, XML/XSLT + Plus: Experience with ASP/.Net + Must be a team player and be able to work hand in hand with designer + Must have examples of work to highlight your skills This full-time position is located in Coral Gables, FL. Compensation includes salary, stock options, generous benefits. Qualified candidates can send their resume along with an introduction letter to jobs (at) scrapblog (dot) com. Please, include "Flex Developer" in the subject line. 






--
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.



  









RE: [flexcoders] New to Flex, couple of questions

2006-04-21 Thread Tracy Spratt



I am not doing 2.0 yet, but in 1.5 you can put your AS code in a class
file, and then either instantiate it in a tag, or make the class methods
static, import it and then use the static methods.

I have a simple example in 1.5 if you want to see it.

Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sascha Balkau
Sent: Friday, April 21, 2006 12:26 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] New to Flex, couple of questions

Hi list,

I'm familiar with ActionScript 2.0 but new to Flex and just started
learning
Flex 2.0 and AS3.0. I'm amazed how easy and flexible components can be
used
with Flex but I got a few questions about it...

So far I have only seen MXML code with embedded ActionScript. But I
prefer
to write the ActionScript in a class structure. Is it possible to keep
both
ActionScript Classes and MXML code in their own files and somehow link
these? If so, how do I do that?

I'd like use an Ant build file to compile the Flex apps but I'm not very
familiar with the compiler syntax yet. Does somebody know of any
examples on
the web on how to use the compiler in a command line or an example Ant
build
file for it?

Thanks for any help!
Sascha




--
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] Flex2B2: Cairngorm - Controlling View State Example v2

2006-04-21 Thread Tim Hoff



This versionshould be easier to read (with a magnifying glass :). Remember to register the command in the FrontController and dispatch the commands' event somewhere. Cheers,Tim Hoff//*** ModelLocator//***package code.model { import org.nevis.cairngorm.model.ModelLocator;  [Bindable] public class ModelLocator implements org.nevis.cairngorm.model.ModelLocator  {  private static var modelLocator:code.model.ModelLocator;  public static function getInstance() : code.model.ModelLocator  { if ( modelLocator == null ) modelLocator = new code.model.ModelLocator(); return modelLocator;  }  //---   public function ModelLocator(){if ( code.model.ModelLocator.modelLocator != null ) throw new Error( "Only one ModelLocator instance should be instantiated" );}  //---  public var mainPanelViewCurrentState : String = "logo"; // Default public static const VIEWING_MAIN_LOGO : String = "logo"; public static const VIEWING_MAIN_SEARCH : String = "search"; public static const VIEWING_MAIN_SEARCHING : String = "searching"; public var searchViewCurrentState : String = "authors"; // Default public static const VIEWING_SEARCH_AUTHORS : String = "authors"; public static const VIEWING_SEARCH_CONTACTS : String = "contacts"; } }//*** Component MXML//***?xml version="1.0" encoding="utf-8"?mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" height="100%" width="100%" paddingTop="10" horizontalScrollPolicy="off" verticalScrollPolicy="off"  xmlns:logo="code.view.mainPanel.logo.*" xmlns:search="code.view.mainPanel.search.*" xmlns:searching="code.view.mainPanel.searching.*" currentState="{ModelLocator.getInstance().mainPanelViewCurrentState}" mx:Script ![CDATA[ import code.model.ModelLocator;]] /mx:Script   mx:Canvas id="mainCanvas" width="100%" height="100%"/  mx:states mx:State name="{ModelLocator.VIEWING_MAIN_LOGO}"  id="logo" mx:AddChild target="{mainCanvas}" position="lastChild" logo:LogoView/ /mx:AddChild /mx:State mx:State name="{ModelLocator.VIEWING_MAIN_SEARCH}"  id="search" mx:AddChild target="{mainCanvas}" position="lastChild" search:SearchView currentState="{ModelLocator.getInstance().searchViewCurrentState}"/ /mx:AddChild /mx:State mx:State name="{ModelLocator.VIEWING_MAIN_SEARCHING}" id="searching" mx:AddChild target="{mainCanvas}" position="lastChild" searching:SearchingView/ /mx:AddChild /mx:State /mx:states/mx:Panel//*** Command//***package code.commands{ import org.nevis.cairngorm.commands.Command;import org.nevis.cairngorm.control.CairngormEvent; import code.model.ModelLocator;  public class getContactsCommand implements Command { //---  public function execute( cairngormEvent:CairngormEvent ):void { // Get Data or Do Something; // Change currentState of mainPanel and search Views;  ModelLocator.getInstance().mainPanelViewCurrentState = ModelLocator.VIEWING_MAIN_SEARCH; ModelLocator.getInstance().searchViewCurrentState = ModelLocator.VIEWING_SEARCH_CONTACTS; }  }}






--
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] Flex2B2: JAVA to AS object serialization issue

2006-04-21 Thread Valy Sivec



Hello,I ran into something I woudn't expect to be a problem. Here is the story.Have a simple data object in Java that is passed to the Flash player via remote object call. I see in the log that the object type is what I expect to have but when I trace the object value via Alert message I get Object. I believe is something wrong but can't figure out what... Below is the Java class, the AS2 calss and also the message from the log. Am I missing something?  === JAVA CLASS ==package org.ifm.model;  import java.io.Serializable;import java.util.Date;import org.apache.commons.lang.builder.EqualsBuilder;import org.apache.commons.lang.builder.HashCodeBuilder;import org.apache.commons.lang.builder.ToStringBuilder;  public class PhoneNumber implements Serializable
 {   private long phnuId;  private String phnuPt1Code; private String phnuPhoneNumber; private String phnuExtension; private String phnuIsSource;  private Date phnuCreateTs; private Date phnuUpdateTs;  private Long phnuIndiId;  public PhoneNumber() { }   public long getPhnuId() { return this.phnuId; }   public void setPhnuId(long phnuId) { this.phnuId = phnuId; }   public String getPhnuPt1Code() { return
 this.phnuPt1Code; }   public void setPhnuPt1Code(String phnuPt1Code) { this.phnuPt1Code = phnuPt1Code; }   public String getPhnuPhoneNumber() { return this.phnuPhoneNumber; }   public void setPhnuPhoneNumber(String phnuPhoneNumber) { this.phnuPhoneNumber = phnuPhoneNumber; }   public String getPhnuExtension() { return this.phnuExtension; }   public void setPhnuExtension(String phnuExtension) { this.phnuExtension = phnuExtension; }
  public Date getPhnuCreateTs() { return this.phnuCreateTs; }   public void setPhnuCreateTs(Date phnuCreateTs) { this.phnuCreateTs = phnuCreateTs; }   public Date getPhnuUpdateTs() { return this.phnuUpdateTs; }   public void setPhnuUpdateTs(Date phnuUpdateTs) { this.phnuUpdateTs = phnuUpdateTs; }  public String getPhnuIsSource() { return this.phnuIsSource; }   public void setPhnuIsSource(String phnuIsSource) {
 this.phnuIsSource = phnuIsSource; }   public String toString() {  return new ToStringBuilder(this) .append("phnuId", getPhnuId()) .toString(); } public Long getPhnuIndiId() {return phnuIndiId;}  public void setPhnuIndiId(Long phnuIndiId) {this.phnuIndiId = phnuIndiId;}public boolean equals(Object other) { if ( !(other instanceof PhoneNumber) ) return false; PhoneNumber castOther = (PhoneNumber) other; return new
 EqualsBuilder() .append(this.getPhnuId(), castOther.getPhnuId()) .isEquals(); }   public int hashCode() { return new HashCodeBuilder() .append(getPhnuId()) .toHashCode(); }}   AS3 class package org.ifm.model { [Bindable] [RemoteClass(alias="org.ifm.model.PhoneNumber")]  public class PhoneNumber {   public function TlcPhoneNumber(){} public var phnuId : Number; public var phnuPt1Code :
 String; public var phnuPhoneNumber : String; public var phnuExtension : String; public var phnuIsSource : String; public var phnuCreateTs : Date; public var phnuUpdateTs : Date; public var phnuIndiId : Number; public function toString() : String { var msg : String = "[***PHONE_NUMBER***PHNU_PHONE_NUMBER" + phnuPhoneNumber + "]"; return msg;  } }}  [Flex] Adapter 'java-object' called 'org.ifm.business.AppFacade.findIndividualById([4339083])'[Flex] Result: '[EMAIL PROTECTED]'[Flex]
 Serializing AMF/HTTP responseVersion: 3 (Message #0 targetURI=/5/onResult, responseURI=) (Typed Object #0 'flex.messaging.messages.AcknowledgeMessage') destination = null headers = (Object #1) correlationId = "7C792757-AD11-2E1C-844E7E9F" messageId = "39378036-8C0B-5897-38C2-CBDA80793946" timeToLive = 0.0 timestamp = 1.145644502348E12 clientId = "39377FC3-CD0A-7DC0-F431-E58CC6883B8C" body = (Typed Object #2 'org.ifm.model.TlcPhoneNumber') phnuCreateTs = null phnuIsSource = "WEB"
 phnuUpdateTs = null phnuPhoneNumber = "1231231234" phnuIndiId = null phnuPt1Code = null phnuExtension = null phnuId = 0.0When display it: Alert.show("Phone:"+ event.result, "Alert Box",Alert.OK);it shows Object, and I would expect to see something like that: "[***PHONE_NUMBER***PHNU_PHONE_NUMBER" + phnuPhoneNumber + "]";I don't see this hapening for other java objects I have.   
		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





  




  
  
  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] [OT] Collaborative App demo

2006-04-21 Thread Daniel Cascais



Can anyone remember a RIA/Flex demo of a collaborative application
that involved a nice agent (video stream) helping the customer out
with a problem, live.

If you have the link to the demo or the actual SWF, please let me know.

Thanks,
Daniel






--
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: [OT] Collaborative App demo

2006-04-21 Thread Doug Lowder



Christophe Coenraets has one on his site, for Flex 1.5:

Collaboration-Enabled RIAs using Flex and Flash Communication Server
http://coenraets.com/viewarticle.jsp?articleId=90


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

 Can anyone remember a RIA/Flex demo of a collaborative application
 that involved a nice agent (video stream) helping the customer out
 with a problem, live.
 
 If you have the link to the demo or the actual SWF, please let me 
know.
 
 Thanks,
 Daniel











--
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] FB 2 Beta 2 on Windows Vista Build 5308

2006-04-21 Thread John C. Bland II



Has anyone toyed with getting FlexBuilder 2 Beta 2 working on Vista (build 5308)? I'm almost convinced it has to do with the ini file looking for /Application Data in the users workspace path but changing that didn't help (Vista doesn't use /Application Data, it is now AppData and inside Users/{username}/). 
Either way, I've beat my brain enough with a fix so I figured I'd ask here. I guess I should post the error I get as well. Oh, I also run it as Administrator and even tried XP SP2 compatability...still no go. :-(
!SESSION 2006-04-21 20:46:24.781 ---eclipse.buildId=unknownjava.version=1.4.2_09java.vendor=Sun Microsystems Inc.BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86!ENTRY org.eclipse.osgi 2006-04-21 20:46:25.186!MESSAGE Startup error!STACK 1java.lang.NumberFormatException: For input string: 
 at java.lang.NumberFormatException.forInputString(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at org.eclipse.core.runtime.adaptor.FileManager.updateTable
(FileManager.java:479) at org.eclipse.core.runtime.adaptor.FileManager.open(FileManager.java:665) at org.eclipse.core.runtime.adaptor.EclipseAdaptor.initFileManager(EclipseAdaptor.java:818) at org.eclipse.core.runtime.adaptor.EclipseAdaptor.initialize
(EclipseAdaptor.java:139) at org.eclipse.osgi.framework.internal.core.Framework.initialize(Framework.java:128) at org.eclipse.osgi.framework.internal.core.Framework.init(Framework.java:106) at 
org.eclipse.osgi.framework.internal.core.OSGi.createFramework(OSGi.java:90) at org.eclipse.osgi.framework.internal.core.OSGi.init(OSGi.java:31) at org.eclipse.core.runtime.adaptor.EclipseStarter.startup
(EclipseStarter.java:272) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:159) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke
(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
 at org.eclipse.core.launcher.Main.basicRun(Main.java:278) at org.eclipse.core.launcher.Main.run(Main.java:973) at org.eclipse.core.launcher.Main.main(Main.java:948)!SESSION Fri Apr 21 20:46:25 GMT 2006 --
!ENTRY org.eclipse.core.launcher 4 0 2006-04-21 20:46:25.200!MESSAGE Exception launching the Eclipse Platform:!STACKjava.lang.NullPointerException at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:172) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke
(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334) at org.eclipse.core.launcher.Main.basicRun(Main.java:278) at 
org.eclipse.core.launcher.Main.run(Main.java:973) at org.eclipse.core.launcher.Main.main(Main.java:948)-- John C. Bland III do what I can do when I can do it. - Chris Tucker, Money Talks
http://www.gotoandstop.org - Home of FMUG.az






--
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: [OT] Collaborative App demo

2006-04-21 Thread Doug Lowder



I should add the below link is to a tutorial with sample code, not a 
demo or actual SWF.

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

 Christophe Coenraets has one on his site, for Flex 1.5:
 
 Collaboration-Enabled RIAs using Flex and Flash Communication 
Server
 http://coenraets.com/viewarticle.jsp?articleId=90
 
 
 --- In flexcoders@yahoogroups.com, Daniel Cascais 
 daniel.cascais@ wrote:
 
  Can anyone remember a RIA/Flex demo of a collaborative 
application
  that involved a nice agent (video stream) helping the customer 
out
  with a problem, live.
  
  If you have the link to the demo or the actual SWF, please let 
me 
 know.
  
  Thanks,
  Daniel
 











--
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.



  











Re: [flexcoders] Re: [OT] Collaborative App demo

2006-04-21 Thread Daniel Cascais



Hi Doug,

Yeah, what I'm after is an actual demo, rather than a sample application.

Thanks,
Daniel

On 4/21/06, Doug Lowder [EMAIL PROTECTED] wrote:
 I should add the below link is to a tutorial with sample code, not a
 demo or actual SWF.

 --- In flexcoders@yahoogroups.com, Doug Lowder [EMAIL PROTECTED]
 wrote:
 
  Christophe Coenraets has one on his site, for Flex 1.5:
 
  Collaboration-Enabled RIAs using Flex and Flash Communication
 Server
  http://coenraets.com/viewarticle.jsp?articleId=90
 
 
  --- In flexcoders@yahoogroups.com, Daniel Cascais
  daniel.cascais@ wrote:
  
   Can anyone remember a RIA/Flex demo of a collaborative
 application
   that involved a nice agent (video stream) helping the customer
 out
   with a problem, live.
  
   If you have the link to the demo or the actual SWF, please let
 me
  know.
  
   Thanks,
   Daniel
  
 






 --
 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









--
Daniel Cascais
Tel: +56 (0)2 4589495
Cel: +56 (0)9 9417355






--
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: FB 2 Beta 2 on Windows Vista Build 5308

2006-04-21 Thread John C. Bland II



I forgot to mention this is not the plugin. The plugin won't let me beyond the eclipse directory screen. Even though my path is right, Eclipse runs fine (after reinstall), and I'm running as an admin it still fails.
Just thought I'd add another piece to the puzzle.Thanks in advance...On 4/21/06, John C. Bland II 
[EMAIL PROTECTED] wrote:Has anyone toyed with getting FlexBuilder 2 Beta 2 working on Vista (build 5308)? I'm almost convinced it has to do with the ini file looking for /Application Data in the users workspace path but changing that didn't help (Vista doesn't use /Application Data, it is now AppData and inside Users/{username}/). 
Either way, I've beat my brain enough with a fix so I figured I'd ask here. I guess I should post the error I get as well. Oh, I also run it as Administrator and even tried XP SP2 compatability...still no go. :-(
!SESSION 2006-04-21 20:46:24.781 ---eclipse.buildId=unknownjava.version=1.4.2_09java.vendor=Sun Microsystems Inc.BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86!ENTRY org.eclipse.osgi 2006-04-21 20:46:25.186!MESSAGE Startup error!STACK 1java.lang.NumberFormatException: For input string: 

 at java.lang.NumberFormatException.forInputString(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at org.eclipse.core.runtime.adaptor.FileManager.updateTable

(FileManager.java:479) at org.eclipse.core.runtime.adaptor.FileManager.open(FileManager.java:665) at org.eclipse.core.runtime.adaptor.EclipseAdaptor.initFileManager(EclipseAdaptor.java:818) at org.eclipse.core.runtime.adaptor.EclipseAdaptor.initialize

(EclipseAdaptor.java:139) at org.eclipse.osgi.framework.internal.core.Framework.initialize(Framework.java:128) at org.eclipse.osgi.framework.internal.core.Framework.init(Framework.java:106) at 
org.eclipse.osgi.framework.internal.core.OSGi.createFramework(OSGi.java:90) at org.eclipse.osgi.framework.internal.core.OSGi.init(OSGi.java:31) at org.eclipse.core.runtime.adaptor.EclipseStarter.startup

(EclipseStarter.java:272) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:159) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke

(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)

 at org.eclipse.core.launcher.Main.basicRun(Main.java:278) at org.eclipse.core.launcher.Main.run(Main.java:973) at org.eclipse.core.launcher.Main.main(Main.java:948)!SESSION Fri Apr 21 20:46:25 GMT 2006 --
!ENTRY org.eclipse.core.launcher 4 0 2006-04-21 20:46:25.200!MESSAGE Exception launching the Eclipse Platform:!STACKjava.lang.NullPointerException at org.eclipse.core.runtime.adaptor.EclipseStarter.run

(EclipseStarter.java:172) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke

(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334) at org.eclipse.core.launcher.Main.basicRun(Main.java:278) at 
org.eclipse.core.launcher.Main.run(Main.java:973) at org.eclipse.core.launcher.Main.main(Main.java:948)-- John C. Bland III do what I can do when I can do it. - Chris Tucker, Money Talks
http://www.gotoandstop.org - Home of FMUG.az

-- John C. Bland III do what I can do when I can do it. - Chris Tucker, Money Talkshttp://www.gotoandstop.org
 - Home of FMUG.az






--
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: Flex framework: ARP, Cairngorm... Which to use?

2006-04-21 Thread arieltools



loud and clear..

Thanks.

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

 Hi there,
 
 We typically release a SWC version of the framework, as well as the
 source. Those that want to amend or update the framework can work from
 the source, the rest can just replace the old SWC with the new, and
 that's all folks !
 
 Best,
 
 Steven
 
 Steven Webster
 Practice Director (Rich Internet Applications)
 Adobe Consulting
 Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK
 p: +44 (0) 131 338 6108
 m: +44 (0) 7917 428 947 
 [EMAIL PROTECTED] 
 
 
 
  -Original Message-
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of arieltools
  Sent: 20 April 2006 23:53
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Flex framework: ARP, Cairngorm... 
  Which to use?
  
  OK, ok, I see you are more prone to jewels (hmm, cairngorm 
  is a kind of quartz to make jewels) than music instruments 
  (arp...), moreover, I see more people using C than A, so I'll 
  go for cFlex than aFlex.
  
  The other BIG question I have is:
  
  How would you update the framework version once a new one gets out?
  
  Thanks for your answers, people: you shine! I hope I'll have 
  some more specific questions soon!
  
  go, c, go...
  
  
  
  --- In flexcoders@yahoogroups.com, Dominick Accattato
  daccattato@ wrote:
  
   I've used as2patters and then moved to cairngorm for Flex. I think
  you will
   just find it very clean and simple to use. If your looking for
  advice on
   which side to choose, just try out the cairngorm flex2 sample login
  and I
   think that you will see how simple the framework makes 
  Flex. In other 
   words, I would use cairngorm forward on.
   
   
   On 4/20/06, Douglas Knudsen douglasknudsen@ wrote:
   
   
   
  http://www.google.com/search?hl=enhs=L7Fsafe=offclient=fire
 fox-arls=org.mozilla:en-US:officialsa=Xoi=spellresnum=0
 ct=resultcd=1q=cairngormspell=1
   
Maybe, you need to know how to play the pipes before you can 
correctly say it, eh? Heehee
   
DK
   
On 4/20/06, judah judah@ wrote:
 What I want to know is how do you say it? Is there history
  behind the
name?

 Judah


 Steven Webster wrote:
 Oh man, I write a 6 page article series and still people go on
  and on
 and on about ViewLocators :) We innovated the ModelLocator
  pattern in
 Cairngorm, and have done our best to communicate the practices
  around
 using the ModelLocator, over ViewLocator (a relic from 
  our Flash 
 RIA days).

 Cairngorm and ARP are both implementations of the same design
  patterns;
 so the approach in terms of breaking down your application's
  technical
 architecture over a microarchitecture will be very 
  similar. You'll 
 start thinking in terms of all the same concepts, you'll
  approach your
 application development the same way. The frameworks are more
  similar
 than different, imho.

 We took a very strategic decision with Cairngorm, only to
  support the
 Flex framework; the framework started life in the Flash world,
  but we
 believed that Flex would become the defacto technology for
  building RIAs
 of any complexity that merits a microarchitecture, and so have 
 made conscious decision not to support back to Flash or 
  any other 
 Flash platform technologies. In that way, we can focus on 
 leveraging
  the Flex
 framework without concering ourselves deeply with how this
  translates to
 the non-Flex world. We do have developers using 
  Cairngorm on Flash 
 projects - but that's not the expected use-case.

 There's a 6-page article series on Cairngorm on 
  Macromedia Devnet, 
 starting here:

 
  http://www.macromedia.com/devnet/flex/articles/cairngorm_pt1.html

 We'll continue to make these articles available to you through
  devnet,
 and through blogs, to enable you to be successful in 
  building more 
 complex RIAs upon this architecture, and to guide you in how we
  think
 the architecture fits with new features of the Flex framework,
  be that
 States, Internationalisation, Flex Data Services, etc.

 If you follow that article series, you'll be ready in a 
  few hours 
 to start building RIAs today, with Flex 2 and 
  ActionScript 3.0, on 
 Cairngorm. As we start to move through the final betas, 
  and into 
 release of Flex 2.0, a number of us within Adobe Consulting are 
 absolutely committed and ready to ship the community updated
  versions of
 Cairngorm as required - we're using it on a significant number
  of our
 own Flex 2.0 projects here, and are a step ahead of the public 
 beta programs that you have access to.

 There's a huge number of people on the flexcoders list 
 successfully using Cairngorm; so once you have more specific 
 questions, I'm sure we'll be able to 

[flexcoders] Re: Flex framework: ARP, Cairngorm... Which to use?

2006-04-21 Thread arieltools



mmmh

I'm getting a little bit of confusion here:

I read that on February Adobe Consulting or www.richinternetapps.com
had released Cairngorm 2 Alpha, but iteration::two has on their page
the version 0.99, together with the 0.95  

So what version should I have to use if I'm going to work with Flex2
???



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

 Hi there,
 
 We typically release a SWC version of the framework, as well as the
 source. Those that want to amend or update the framework can work from
 the source, the rest can just replace the old SWC with the new, and
 that's all folks !
 
 Best,
 
 Steven
 
 Steven Webster
 Practice Director (Rich Internet Applications)
 Adobe Consulting
 Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK
 p: +44 (0) 131 338 6108
 m: +44 (0) 7917 428 947 
 [EMAIL PROTECTED] 
 
 
 
  -Original Message-
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of arieltools
  Sent: 20 April 2006 23:53
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Flex framework: ARP, Cairngorm... 
  Which to use?
  
  OK, ok, I see you are more prone to jewels (hmm, cairngorm 
  is a kind of quartz to make jewels) than music instruments 
  (arp...), moreover, I see more people using C than A, so I'll 
  go for cFlex than aFlex.
  
  The other BIG question I have is:
  
  How would you update the framework version once a new one gets out?
  
  Thanks for your answers, people: you shine! I hope I'll have 
  some more specific questions soon!
  
  go, c, go...
  
  
  
  --- In flexcoders@yahoogroups.com, Dominick Accattato
  daccattato@ wrote:
  
   I've used as2patters and then moved to cairngorm for Flex. I think
  you will
   just find it very clean and simple to use. If your looking for
  advice on
   which side to choose, just try out the cairngorm flex2 sample login
  and I
   think that you will see how simple the framework makes 
  Flex. In other 
   words, I would use cairngorm forward on.
   
   
   On 4/20/06, Douglas Knudsen douglasknudsen@ wrote:
   
   
   
  http://www.google.com/search?hl=enhs=L7Fsafe=offclient=fire
 fox-arls=org.mozilla:en-US:officialsa=Xoi=spellresnum=0
 ct=resultcd=1q=cairngormspell=1
   
Maybe, you need to know how to play the pipes before you can 
correctly say it, eh? Heehee
   
DK
   
On 4/20/06, judah judah@ wrote:
 What I want to know is how do you say it? Is there history
  behind the
name?

 Judah


 Steven Webster wrote:
 Oh man, I write a 6 page article series and still people go on
  and on
 and on about ViewLocators :) We innovated the ModelLocator
  pattern in
 Cairngorm, and have done our best to communicate the practices
  around
 using the ModelLocator, over ViewLocator (a relic from 
  our Flash 
 RIA days).

 Cairngorm and ARP are both implementations of the same design
  patterns;
 so the approach in terms of breaking down your application's
  technical
 architecture over a microarchitecture will be very 
  similar. You'll 
 start thinking in terms of all the same concepts, you'll
  approach your
 application development the same way. The frameworks are more
  similar
 than different, imho.

 We took a very strategic decision with Cairngorm, only to
  support the
 Flex framework; the framework started life in the Flash world,
  but we
 believed that Flex would become the defacto technology for
  building RIAs
 of any complexity that merits a microarchitecture, and so have 
 made conscious decision not to support back to Flash or 
  any other 
 Flash platform technologies. In that way, we can focus on 
 leveraging
  the Flex
 framework without concering ourselves deeply with how this
  translates to
 the non-Flex world. We do have developers using 
  Cairngorm on Flash 
 projects - but that's not the expected use-case.

 There's a 6-page article series on Cairngorm on 
  Macromedia Devnet, 
 starting here:

 
  http://www.macromedia.com/devnet/flex/articles/cairngorm_pt1.html

 We'll continue to make these articles available to you through
  devnet,
 and through blogs, to enable you to be successful in 
  building more 
 complex RIAs upon this architecture, and to guide you in how we
  think
 the architecture fits with new features of the Flex framework,
  be that
 States, Internationalisation, Flex Data Services, etc.

 If you follow that article series, you'll be ready in a 
  few hours 
 to start building RIAs today, with Flex 2 and 
  ActionScript 3.0, on 
 Cairngorm. As we start to move through the final betas, 
  and into 
 release of Flex 2.0, a number of us within Adobe Consulting are 
 absolutely committed and ready to ship the community updated
  versions of
 Cairngorm as required - we're using it on a significant number
  of our

Re: [flexcoders] Re: Flex framework: ARP, Cairngorm... Which to use?

2006-04-21 Thread Daniel Cascais



Flex 2 (beta x) -- Cairngorm 2 (Alpha)






--
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: [OT] Collaborative App demo

2006-04-21 Thread Daniel Cascais



Never mind... found it.






--
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: [OT] Collaborative App demo

2006-04-21 Thread Doug Lowder



Sounds interesting. Can you post the link?


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

 Never mind... found it.











--
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] Grabbing a chunk of a chart into an image

2006-04-21 Thread Joel Reymont



Folks,

I would like to stuff an arbitrary portion of a chart into an image. Is this possible?

I understand that I can use BitmapData.Draw(Image, ...) to grab an image into a bitmap but 
how would I do it with a chart and convert the bitmap into an image?

Alternatively, it does not have to be an image, just something that I can drag aside.

 Thanks, Joel











--
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]

2006-04-21 Thread Webdevotion



Hello,I ran into this problem which has been haunting me for about 3 hours now :sAnyone with the solution to my possible very simple problem ?How can I add an embedded png to my class which extends the HBox class ?
I'm going to use the class as a datagridcellrenderer.TypeError: Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] to mx.core.IUIComponent
// all kind of importspublic class Rating extends HBox implements IDropInListItemRenderer{
// embed the solid star [Embed (source='assets/star.png')]private var Star:Class;

.

override protected function createChildren():void{var s:Bitmap = new Star();addChild( s );// call the createChildren method of the superclasssuper.createChildren();
} 
.
}






--
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] cannot convert to mx.core.IUIComponent

2006-04-21 Thread Webdevotion




( Sorry, I posted without subject line in my previous mail )Hello,I ran into this problem which has been haunting me for about 3 hours now :sAnyone with the solution to my possible very simple problem ?
How can I add an embedded png to my class which extends the HBox class ? I'm going to use the class as a datagridcellrenderer.TypeError: Error #1034: Type Coercion failed: cannot convert 
[EMAIL PROTECTED] to mx.core.IUIComponent// all kind of importspublic class Rating extends 
HBox implements IDropInListItemRenderer{
// embed the solid star [Embed (source='assets/star.png')]private var Star:Class;

.

override protected function createChildren():void{var s:Bitmap = new Star();addChild( s );// call the createChildren method of the superclasssuper.createChildren();
} 
.
}






--
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] Disable themeColor

2006-04-21 Thread Joe



Is there a way to disable the themeColor on a button so the style does 
not change on mouseover or mousedown









--
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.



  











Re: [flexcoders] cannot convert to mx.core.IUIComponent

2006-04-21 Thread jeremy lu




try this:

var u:UIComponent = new UIComponent()
u.addChild( s );
this.addChild( u );

you must wrap graphics inside UIComponent to add it to mxml application.

jeremy.

// embed the solid star
 [Embed (source='assets/star.png')]private var Star:Class;

.

override protected function createChildren():void{var s:Bitmap = new Star();addChild( s );// call the createChildren method of the superclasssuper.createChildren();

} 
.
}






--
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 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.