Re: [flexcoders] Re: Flex address/handle for toString() tracing

2010-01-15 Thread Alex Harui
I doubt there is an existing bug.  Log it against the Flash Player project, and 
don’t hold your breath.  Most of us have our own trace output class like 
mx.log.Logger.


On 1/15/10 4:00 PM, "yaksaver"  wrote:








Thanks for the response, Alex.

What's the bug/feature-request ID this is logged under, please?  I'd love to 
vote for it.

(I found it hard to find, probably since I wasn't sure what it was called!  ... 
bit of a case of "knowing a thing's name gives you power over it", huh!)

Thanks, R.

--- In flexcoders@yahoogroups.com  , Alex 
Harui  wrote:
>
> There is no API for it.  Maybe someday
>
>
> On 1/14/10 5:03 AM, "yaksaver"  wrote:
>
> Hi,
>
> How can one programmatically retrieve the address / handle that is seen in 
> Flex Debugger?
>
> Example:
>   flash.system.ApplicationDomain (@788d1f1)
>
> Background:
> Classes without an explicit toString() method give the default Object String 
> (e.g. "[object ApplicationDomain]") for trace() or logging statements.  This 
> means one cannot spot the difference between different instances in the logs.
>
> In Java (sorry, yes I'm more a Java guy but have been using Flex for the last 
> 6-odd months), the default toString() method gives the instance handle (the 
> address-like thing).
>
> Obviously, this exists within the AVM.  So my question is how to access it 
> programmatically?  (perhaps some namespace, perhaps some me! thod we've 
> overlooked?)
>
> Some thoughts:
>
>  *   The tripple-equals test must compare by this value so things like 
> Dictionary must be indexing off it (but we can't find the source for this 
> class)
>  *
>  *   It would be an obvious thing to use as default for a hash-table 
> implementation.
>  *   Obviously, since it's used for sending and offlining, describeType() 
> doesn't include this information. (it would change per run)
>  *
>  *   ObjectUtil.toString() gives a something with "#0" at the end rather than 
> this instance info.
>
> All hints and thoughts welcome!
> Cheers,
> YakS[h]aver R.

> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


[flexcoders] Re: Displaying additional child nodes in Datatip

2010-01-15 Thread turbo_vb
Assuming that you have assigned an id to each series
("baseline","2009-8"), you could use something like this:

private function dtFunction( o:HitData ):String

{

  var index:int = ( LineSeries( o.element ).id == "baseline" ) ? 0 :
1;

  var s:String = "Book rate: " + o.item.session[ index
].bookrate;

  return s;

}




-TH



--- In flexcoders@yahoogroups.com, "Monette"  wrote:
>
> Tim,
> Your recommendation sounds so simple and logical but I am not getting
it
> to work.  My problem is parsing the XML and returning the correct info
> for the datapoints.  Following, is a sample of my XML file:
>
> 
>  
>  
>  Baseline
>  0
>  2
>  red
>  
>  
>  2009-8
>  0
>  6
>  red
>  
>  
>  
>  
>  Baseline
>  0
>  3
>  red
>  
>  
>  2009-8
>  0
>  1
>  red
>  
>  
> 
>
> What are your thoughts?
> Thanks.
> Monette
>
> --- In flexcoders@yahoogroups.com, "turbo_vb" TimHoff@ wrote:
> >
> > Yeah, you're very close.  Now it's just a matter of xml.  I'd start
by
> tracing o.  If the children are still in o, then drill down. 
Otherwise,
> you'll have to go and find the nodes; like you're trying below.  Some
> things that you can start with:
> >
> > trace( o.toXMLString() );
> >
> > var myXMLChildren:XMLList = o.children();
> >
> > o.child("myProperty")[0].valueOf();
> >
> > -TH
> >
> > --- In flexcoders@yahoogroups.com, "Monette" monettemm@ wrote:
> > >
> > > Below is my DataTipFunction.  The commented part on top works
fine.
> > > However, there is additional information that I need to include
from
> the
> > > XML file into the data tip.
> > > When I mouse over the datapoint I would like to retrieve from the
> XML
> > > file the additional child nodes that correspond with that
datapoint.
> I
> > > feel that I am very close and missing one piece. How can I
> accomplish
> > > this dynamically by displaying the correct data for the series?
> Note, I
> > > can have more than 1 series in the XML data file.
> > >
> > > private  function DTPFunction(o:HitData):String
> > >  {
> > >  //WORKS for data that is used on the chart x and
y
> > > values
> > >  //var s:String;
> > >  //s =  "" + LineSeries(o.element).displayName
+
> "
> > > \n";
> > >  //s += "Books: " +
> > > LineSeriesItem(o.chartItem).yValue + "\n" + "Book rate: " +
> > > series. o.item.session.bookrate + "\n" ;
> > >  //s += "Status: " + o.item.session.status
+
> "\n"
> > > ;
> > >   //END WORKS
> > >
> > >  var s:String;
> > >  var a:int=0;
> > >  var fNode:XML = chart.dataProvider[0];
> > >  if ((LineSeries(o.element).displayName) ==
> > > fNode.child('sessionname'))
> > >  {
> > >  s =  "" + o.item.session.sessionname[a] +
"
> \n";
> > >  s += "Books: " + o.item.session.books[a] +
> "\n" +
> > > "Book rate: " + o.item.session.bookrate[a] +  "\n" ;
> > >  s += "Status: " + o.item.session.status[a]
+
> > > "\n" ;
> > >  a++
> > >  }
> > >  return s;
> > >  }
> > >
> > > Thanks.
> > > Monette
> > >
> > > --- In flexcoders@yahoogroups.com, "turbo_vb"  wrote:
> > > >
> > > > If the dataTipFunction doesn't give you enough flexibility, you
> could
> > > try a dataTipRenderer.  In either case, you can drill down to the
> child
> > > nodes there.
> > > >
> > > > -TH
> > > >
> > > > --- In flexcoders@yahoogroups.com, "Monette" monettemm@ wrote:
> > > > >
> > > > > The line chart displays multiple series created with the
> > > seriesDataFunction (assigning the x and y points).  The XML file
> > > includes additional child nodes per item that I would like to
> include in
> > > the datatip.  How do I include those items?  When I use
o.item.rate,
> it
> > > lists all the rates for each series in the datatip.
> > > > > Thanks.
> > > > > Monette
> > > > >
> > > >
> > >
> >
>



[flexcoders] Looking for change - Exp Flash/Flex 4 yrs

2010-01-15 Thread Pankaj Munjal
Hi all,

Greeting for the day .

i am looking for change. if some have requirment as Flash/Flex developer in 
your organization  pls respond to me. will send you reusme

Exp : 4 yrs.

Skill Set - AS 3.0/2.0/1.0, Flex 3 , Blaze DS, FMS 3.5, Flash/flex Remoting, 
XML , HTML , JS , Java , PHP .

 Thanks,
Pankaj



  

[flexcoders] Unable Create a Flex project on the RDS enabled Coldfusion 8 Server Using FB 3

2010-01-15 Thread bharani
Hello I am trying to create a flex Project

 error ::
Invalid root. The WEB-INF/flex folder must contain either
flex-config.xml or services-config.xm,I am not sure where it is going wrong...

My primary Task is to create a Flex project and run it from the server..

Please help 




[flexcoders] spark Form

2010-01-15 Thread Ariel J
Hi all. I need help debugging a port of the halo Form to spark.

I can't get the FormItem to layout its children correctly. The TextInput in the 
example below sizes past the edge of the FormItem.

Any help would be appreciated.









The files for the Form control are located in this Google Docs directory: 




Re: [flexcoders] LocalConnection has me really confused

2010-01-15 Thread Alex Harui
Did you use “_” as described here? 
http://livedocs.adobe.com/flex/3/html/help.html?content=17_Networking_and_communications_4.html


On 1/15/10 3:51 PM, "djhatrick"  wrote:






I can't get localConnection working with flashplayer and the air app.  Is this 
going to be fixed in 10.1.  I'm into about 5 hours of trying to make this to 
work and getting nowhere.

I've read about connections staying open, but have yet to send anything 
successfully between flash and air.

Thanks, please fix tomorrow ;P
Patrick






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


[flexcoders] Re: Flex address/handle for toString() tracing

2010-01-15 Thread yaksaver


Thanks for the response, Alex.

What's the bug/feature-request ID this is logged under, please?  I'd love to 
vote for it.

(I found it hard to find, probably since I wasn't sure what it was called!  ... 
bit of a case of "knowing a thing's name gives you power over it", huh!)

Thanks, R.


--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> There is no API for it.  Maybe someday
> 
> 
> On 1/14/10 5:03 AM, "yaksaver"  wrote:
> 
> Hi,
> 
> How can one programmatically retrieve the address / handle that is seen in 
> Flex Debugger?
> 
> Example:
>   flash.system.ApplicationDomain (@788d1f1)
> 
> Background:
> Classes without an explicit toString() method give the default Object String 
> (e.g. "[object ApplicationDomain]") for trace() or logging statements.  This 
> means one cannot spot the difference between different instances in the logs.
> 
> In Java (sorry, yes I'm more a Java guy but have been using Flex for the last 
> 6-odd months), the default toString() method gives the instance handle (the 
> address-like thing).
> 
> Obviously, this exists within the AVM.  So my question is how to access it 
> programmatically?  (perhaps some namespace, perhaps some me! thod we've 
> overlooked?)
> 
> Some thoughts:
> 
>  *   The tripple-equals test must compare by this value so things like 
> Dictionary must be indexing off it (but we can't find the source for this 
> class)
>  *
>  *   It would be an obvious thing to use as default for a hash-table 
> implementation.
>  *   Obviously, since it's used for sending and offlining, describeType() 
> doesn't include this information. (it would change per run)
>  *
>  *   ObjectUtil.toString() gives a something with "#0" at the end rather than 
> this instance info.
> 
> All hints and thoughts welcome!
> Cheers,
> YakS[h]aver R.

> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>




[flexcoders] LocalConnection has me really confused

2010-01-15 Thread djhatrick
I can't get localConnection working with flashplayer and the air app.  Is this 
going to be fixed in 10.1.  I'm into about 5 hours of trying to make this to 
work and getting nowhere.

I've read about connections staying open, but have yet to send anything 
successfully between flash and air.

Thanks, please fix tomorrow ;P
Patrick



[flexcoders] Re: Displaying additional child nodes in Datatip

2010-01-15 Thread Monette
Tim,
Your recommendation sounds so simple and logical but I am not getting it
to work.  My problem is parsing the XML and returning the correct info
for the datapoints.  Following, is a sample of my XML file:


 
 
 Baseline
 0
 2
 red
 
 
 2009-8
 0
 6
 red
 
 
 
 
 Baseline
 0
 3
 red
 
 
 2009-8
 0
 1
 red
 
 


What are your thoughts?
Thanks.
Monette

--- In flexcoders@yahoogroups.com, "turbo_vb"  wrote:
>
> Yeah, you're very close.  Now it's just a matter of xml.  I'd start by
tracing o.  If the children are still in o, then drill down.  Otherwise,
you'll have to go and find the nodes; like you're trying below.  Some
things that you can start with:
>
> trace( o.toXMLString() );
>
> var myXMLChildren:XMLList = o.children();
>
> o.child("myProperty")[0].valueOf();
>
> -TH
>
> --- In flexcoders@yahoogroups.com, "Monette" monettemm@ wrote:
> >
> > Below is my DataTipFunction.  The commented part on top works fine.
> > However, there is additional information that I need to include from
the
> > XML file into the data tip.
> > When I mouse over the datapoint I would like to retrieve from the
XML
> > file the additional child nodes that correspond with that datapoint.
I
> > feel that I am very close and missing one piece. How can I
accomplish
> > this dynamically by displaying the correct data for the series? 
Note, I
> > can have more than 1 series in the XML data file.
> >
> > private  function DTPFunction(o:HitData):String
> >  {
> >  //WORKS for data that is used on the chart x and y
> > values
> >  //var s:String;
> >  //s =  "" + LineSeries(o.element).displayName +
"
> > \n";
> >  //s += "Books: " +
> > LineSeriesItem(o.chartItem).yValue + "\n" + "Book rate: " +
> > series. o.item.session.bookrate + "\n" ;
> >  //s += "Status: " + o.item.session.status +
"\n"
> > ;
> >   //END WORKS
> >
> >  var s:String;
> >  var a:int=0;
> >  var fNode:XML = chart.dataProvider[0];
> >  if ((LineSeries(o.element).displayName) ==
> > fNode.child('sessionname'))
> >  {
> >  s =  "" + o.item.session.sessionname[a] + "
\n";
> >  s += "Books: " + o.item.session.books[a] +
"\n" +
> > "Book rate: " + o.item.session.bookrate[a] +  "\n" ;
> >  s += "Status: " + o.item.session.status[a] +
> > "\n" ;
> >  a++
> >  }
> >  return s;
> >  }
> >
> > Thanks.
> > Monette
> >
> > --- In flexcoders@yahoogroups.com, "turbo_vb"  wrote:
> > >
> > > If the dataTipFunction doesn't give you enough flexibility, you
could
> > try a dataTipRenderer.  In either case, you can drill down to the
child
> > nodes there.
> > >
> > > -TH
> > >
> > > --- In flexcoders@yahoogroups.com, "Monette" monettemm@ wrote:
> > > >
> > > > The line chart displays multiple series created with the
> > seriesDataFunction (assigning the x and y points).  The XML file
> > includes additional child nodes per item that I would like to
include in
> > the datatip.  How do I include those items?  When I use o.item.rate,
it
> > lists all the rates for each series in the datatip.
> > > > Thanks.
> > > > Monette
> > > >
> > >
> >
>




Re: [flexcoders] Re: apply style in newly created component

2010-01-15 Thread Vivian Richard
   Worked liked charm!!! I guess valdhor also suggested something
   like this in one of his initial mails. Thanks to all




On Fri, Jan 15, 2010 at 12:45 PM, Amy  wrote:

>
>
>
>
> --- In flexcoders@yahoogroups.com ,
> "valdhor"  wrote:
> >
> > Hm I don't use charts.
> >
> > Maybe you could try...
> >
> > myComp.myChart.styleName = "noGutterChart";
> >
> > Actaully, the myChart component may not have been instantiated at that
> point. I would add a creationComplete event handler to the myChart component
> that dispatches a custom event that will bubble up to the component that you
> are in. When that event comes in, apply the style.
>
> My guess is that the setStyle functionality bypasses some of the controls
> in the life cycle logic of the chart, whereas styleName will just set a flag
> somewhere and the logic will just wait until the appropriate moment to apply
> the styles to the objects, which will have been instantiated at that point.
>
> MPO is that if you use styleName you should not need to add an event
> listener for initialized or creationcomplete. Be aware that neither of these
> events will fire until the component has already been added to the Canvas
> and the Canvas has been added to the display list.
>
> HTH;
>
> Amy
>
>  
>


Re: [flexcoders] Can a canvas be scrollable without the scrollbars?

2010-01-15 Thread Fotis Chatzinikos
You can use horizontal and verticalScrollPosition with scrollpolicies set to
false

On Fri, Jan 15, 2010 at 10:11 PM, flexaustin  wrote:

>
>
> Anyone know of a way to set the horizontalScrollPolicy and
> verticalScrollPolicy both to false so that the scrollbars don't show, but
> still have the canvas scroll?
>
> I have content that inside the canvas that will always be larger than the
> canvas so I want to be able to scroll without showing any scrollbars.
>
> This is like the little zoom panel/control in the bottom right-hand corner
> of Google maps.
>
> thx, j
>
>  
>



-- 
Fotis Chatzinikos, Ph.D.
Founder,
LivinData Technologies
www.styledropper.com
fotis.chatzini...@gmail.com,


[flexcoders] Can a canvas be scrollable without the scrollbars?

2010-01-15 Thread flexaustin
Anyone know of a way to set the horizontalScrollPolicy and verticalScrollPolicy 
both to false so that the scrollbars don't show, but still have the canvas 
scroll?

I have content that inside the canvas that will always be larger than the 
canvas so I want to be able to scroll without showing any scrollbars.

This is like the little zoom panel/control in the bottom right-hand corner of 
Google maps.

thx, j



[flexcoders] Re: Flash Player Standalone vs Browser performance

2010-01-15 Thread Matt
Tom-
   I was actually unaware of the GPU options.  I will take a look at
those options (direct and gpu) or perhaps just eliminate our use of
wmode=transparent, which may be unnecessary for what we need to do. 
Thanks for the heads up.

   Matt

--- In flexcoders@yahoogroups.com, Tom Chiverton 
wrote:
>
> On Tuesday 12 Jan 2010, Matt wrote:
> > I am trying to figure out whether such a great disparity is
expected.
>
> It doesn't surprise me.
> Outside the browser, Flash has to do a lot less work.
>
> > 4. The Browser Flash Players are inferior implementations. 
There
>
> Well, 'different' certainly :-)
> As a native application, it's probable (likely ?) that the standalone
player
> is able to make use of more efficient operating system features,
rather than
> having everything go via the plugin API.
>
> Did you try GPU-acceleration options in the HTML page's embed code,
for
> instance ?
>
> --
> Helping to confidentially synergize prospective services as part of
the IT
> team of the year, '09 and '08
>
> 
>
> This email is sent for and on behalf of Halliwells LLP.
>
> Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at Halliwells LLP, 3 Hardman Square, Spinningfields,
Manchester, M3 3EB.  A list of members is available for inspection at
the registered office together with a list of those non members who are
referred to as partners.  We use the word ?partner? to refer to a member
of the LLP, or an employee or consultant with equivalent standing and
qualifications. Regulated by the Solicitors Regulation Authority.
>
> CONFIDENTIALITY
>
> This email is intended only for the use of the addressee named above
and may be confidential or legally privileged.  If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells LLP
or the addressee of its existence or contents.  If you have received
this email in error please delete it and notify Halliwells LLP IT
Department on 0870 365 2500.
>
> For more information about Halliwells LLP visit www.halliwells.com.
>




Re: [flexcoders] Java Question

2010-01-15 Thread Dan Pride
Curious, how many of the 20 were cairngorm?
Thanks
Dan Pride

--- On Fri, 1/15/10, Kelly  wrote:

From: Kelly 
Subject: Re: [flexcoders] Java Question
To: flexcoders@yahoogroups.com
Date: Friday, January 15, 2010, 1:31 PM







 



  



  
  
  



Out of 20+
large flex projects I have worked on 2 were .NET backends, 1 was a CF
backend, none were PHP, and all the rest were Java.



So you if you want to do enterprise Flex development for work it would
not hurt to learn Java.







If I wanted to build a simple html app I might consider CF because its
super simple to slap together html with CF's tag based logic. But I
would probably still end up using Java/Wicket even though the
complexity is slightly higher.



That is just my preference though.





CF was the first server side technology I learned. I thought it was
great when I learned it. 



Then I learned Java. I have never wanted to use CF since then.









Paul Andrews wrote:
 

  
  Kelly wrote:

>

>

> Most of the certs require you to learn tons of crap you will never
use 

> with Java/Flex development.

>

> I would suggest just learning core Java, Servlets, Java Servers, 

> BlazeDS, and Spring. After that decide if you care about getting 

> certified.

>

>

> Tom suggested learning CF instead.

>

> I would not recommend that.

>

>

> I know CF and Java and I would never use CF for a Flex backend.

>

> Java is so much nicer to work with and so much more powerful.

As a Java developer and having had a small dip in coldfusion 

development, I wouldn't dismiss coldfusion so easily.

  

If you're looking to build straightforward database functionality, 

coldfusion is superb and you'll get a solution rapidly. As well as that
  

you'll have a route to providing reports and such with the help of 

coldfusion functionality.

  

I'm not telling anyone not to learn Java, or to adopt ColdFusion, but 

suggesting Java is nicer to work with or more powerful, is not so clear
  

cut as you would suggest and for some scenarios the opposite is true.

  

I know that for some projects I've worked on, ColdFusion would have cut
  

development costs drastically.

  

I suspect that most Flex projects are driven by PHP rather than Java.

  

I think the choice of server technology depends on a pile of things, 

some technical, some political, some monetary.

  

>

>

> Dan Pride wrote:

>> 

>>

>> I am thinking of making the jump to Java

>> Seems like its the platform of choice for Flex Data

>> Two quick questions

>> 1) Whats the best exam to certifiy for

>> 2) Whats the cheapest

>> 3) How long to get by the cert for a normal bright level (not
genius 

>> but bright) programmer?

>> 4) Will the Cert do me any good.

>>

>> Thanks

>> Dan Pride

>>

>

>

> 

  

  
  








 





 



  






  

Re: [flexcoders] Java Question

2010-01-15 Thread Dan Pride
Thanks. I have an Oracle Cert but is PLSQL, never did the j2ee unfortunately. 
Php is all going to object oriented which is fine but my past experience with C 
apps that try to become OOP tells me to avoid it like the plague.

Procedural languages that try to morph to objects always seem to be one big 
messy ball of twine when its said and done. Cold Fusion does not seem to have 
enough market share in Flex to spit at.

Appreciate your reply, I prefer working on big apps so I guess its Java time.
Dan Pride

--- On Fri, 1/15/10, Kelly  wrote:

From: Kelly 
Subject: Re: [flexcoders] Java Question
To: flexcoders@yahoogroups.com
Date: Friday, January 15, 2010, 1:31 PM







 



  



  
  
  



Out of 20+
large flex projects I have worked on 2 were .NET backends, 1 was a CF
backend, none were PHP, and all the rest were Java.



So you if you want to do enterprise Flex development for work it would
not hurt to learn Java.







If I wanted to build a simple html app I might consider CF because its
super simple to slap together html with CF's tag based logic. But I
would probably still end up using Java/Wicket even though the
complexity is slightly higher.



That is just my preference though.





CF was the first server side technology I learned. I thought it was
great when I learned it. 



Then I learned Java. I have never wanted to use CF since then.









Paul Andrews wrote:
 

  
  Kelly wrote:

>

>

> Most of the certs require you to learn tons of crap you will never
use 

> with Java/Flex development.

>

> I would suggest just learning core Java, Servlets, Java Servers, 

> BlazeDS, and Spring. After that decide if you care about getting 

> certified.

>

>

> Tom suggested learning CF instead.

>

> I would not recommend that.

>

>

> I know CF and Java and I would never use CF for a Flex backend.

>

> Java is so much nicer to work with and so much more powerful.

As a Java developer and having had a small dip in coldfusion 

development, I wouldn't dismiss coldfusion so easily.

  

If you're looking to build straightforward database functionality, 

coldfusion is superb and you'll get a solution rapidly. As well as that
  

you'll have a route to providing reports and such with the help of 

coldfusion functionality.

  

I'm not telling anyone not to learn Java, or to adopt ColdFusion, but 

suggesting Java is nicer to work with or more powerful, is not so clear
  

cut as you would suggest and for some scenarios the opposite is true.

  

I know that for some projects I've worked on, ColdFusion would have cut
  

development costs drastically.

  

I suspect that most Flex projects are driven by PHP rather than Java.

  

I think the choice of server technology depends on a pile of things, 

some technical, some political, some monetary.

  

>

>

> Dan Pride wrote:

>> 

>>

>> I am thinking of making the jump to Java

>> Seems like its the platform of choice for Flex Data

>> Two quick questions

>> 1) Whats the best exam to certifiy for

>> 2) Whats the cheapest

>> 3) How long to get by the cert for a normal bright level (not
genius 

>> but bright) programmer?

>> 4) Will the Cert do me any good.

>>

>> Thanks

>> Dan Pride

>>

>

>

> 

  

  
  








 





 



  






  

[flexcoders] Re: apply style in newly created component

2010-01-15 Thread Amy


--- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>
> Hm I don't use charts.
> 
> Maybe you could try...
> 
> myComp.myChart.styleName = "noGutterChart";
> 
> Actaully, the myChart component may not have been instantiated at that point. 
> I would add a creationComplete event handler to the myChart component that 
> dispatches a custom event that will bubble up to the component that you are 
> in. When that event comes in, apply the style.

My guess is that the setStyle functionality bypasses some of the controls in 
the life cycle logic of the chart, whereas styleName will just set a flag 
somewhere and the logic will just wait until the appropriate moment to apply 
the styles to the objects, which will have been instantiated at that point.

MPO is that if you use styleName you should not need to add an event listener 
for initialized or creationcomplete.  Be aware that neither of these events 
will fire until the component has already been added to the Canvas and the 
Canvas has been added to the display list.

HTH;

Amy



[flexcoders] Re: apply style in newly created component

2010-01-15 Thread valdhor
Try this...


http://www.adobe.com/2006/mxml";
xmlns:local="*"
 creationComplete="onCreationComplete()">
 
 .noGutterChart
 {
 gutterLeft:0;
 gutterBottom:0;
 gutterTop:0;
 gutterRight:0;
 }
 
 
 
 
 


ChartComp.mxml:

http://www.adobe.com/2006/mxml";
 creationComplete="dispatchEvent(new Event('myChartCompleted', true,
true))">
 
 
  
 
 

 
 


 
  


--- In flexcoders@yahoogroups.com, Vivian Richard  wrote:
>
> I just tried as suggested and still the same. May be it does
not get
> instantiated
> until it is added in its parent. May be!!!
>
>
>
> On Fri, Jan 15, 2010 at 10:50 AM, valdhor valdhorli...@...wrote:
>
> >
> >
> > Hm I don't use charts.
> >
> > Maybe you could try...
> >
> > myComp.myChart.styleName = "noGutterChart";
> >
> > Actaully, the myChart component may not have been instantiated at
that
> > point. I would add a creationComplete event handler to the myChart
component
> > that dispatches a custom event that will bubble up to the component
that you
> > are in. When that event comes in, apply the style.
> >
> >
> > --- In flexcoders@yahoogroups.com ,
Vivian
> > Richard kanpsack@ wrote:
> > >
> > > Actually I am trying to apply a very simple style to a chart. My
chart is
> > > inside a
> > > canvas component and in a separate file. I want to add this chart
> > containing
> > > canvas in dynamically. This component is like this:
> > >
> > > 
> > > 
> > > 
> > > 
> > > 
> > >
> > > Now I have this simple styles for the the chart which are:
> > >
> > > .noGutterChart {
> > > gutterLeft:0;
> > > gutterBottom:0;
> > > gutterTop:0;
> > > gutterRight:0;
> > > }
> > >
> > > Now as I am trying to create the component dunamically and want to
apply
> > > the
> > > style to the chart I get the error message.
> > >
> > > var myComp:ChartComp = new ChartComp;
> > > myComp.myChart.setStyle("styleName","noGutterChart");
> > >
> > > This gives me the error message that I cannot access a function of
a
> > > null object.
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > On Fri, Jan 15, 2010 at 9:49 AM, valdhor valdhorli...@wrote:
> >
> > >
> > > >
> > > >
> > > > In that case he should use the styleName property...
> > > >
> > > > .myStyle
> > > > {
> > > > cornerRadius: 9;
> > > > fillAlphas: 1, 1, 1, 1;
> > > > fillColors: #6699ff, #6699ff, #6699ff, #6699ff;
> > > > themeColor: #00ff00;
> > > > fontSize: 24;
> > > > }
> > > >
> > > >
> > > > var button:Button = new Button;
> > > > button.label = "My Fancy New Button";
> > > > button.styleName = "myStyle";
> > > > this.addChild(button);
> > > >
> > > >
> > > > --- In flexcoders@yahoogroups.com
, Erik
> > de Bruin  wrote:
> > > > >
> > > > > Hi,
> > > > >
> > > > > I think he's trying to set a named CSS style ("myStyle") on
the
> > Button
> > > > using
> > > > > setStyle(). I don't think that's possible?
> > > > >
> > > > > EdB
> > > > >
> > > > > On Fri, Jan 15, 2010 at 3:02 PM, valdhor valdhorlists@:
> >
> > > >
> > > > >
> > > > > >
> > > > > >
> > > > > > I don't understand. Once you use the "new" operator, the
button is
> > > > > > instantiated. You can apply all sorts of styles to it before
adding
> > it
> > > > to
> > > > > > the displayList. For example, this works for me...
> > > > > >
> > > > > > var button:Button = new Button;
> > > > > > button.label = "My Fancy New Button";
> > > > > > button.setStyle("cornerRadius", 9);
> > > > > > button.setStyle("fontSize", 24);
> > > > > > button.setStyle("themeColor", '#00FF00');
> > > > > > button.setStyle("fillColors", ['#6699ff', '#6699ff',
> > > > > > '#6699ff', '#6699ff']);
> > > > > > button.setStyle("fillAlphas", [1, 1, 1, 1]);
> > > > > > this.addChild(button);
> > > > > >
> > > > > >
> > > > > >
> > > > > > --- In flexcoders@yahoogroups.com
,
> > "hworke" kanpsack@ wrote:
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Hi I am trying to apply style in a newly created component
> > > > > > > but since it is not instantiated it gives me error
message.
> > > > > > >
> > > > > > > My code is like this:
> > > > > > >
> > > > > > > var button:Button = new Button;
> > > > > > > button.setStyle("styleName", "myStyle");
> > > > > > > canvas.addChild(button);
> > > > > > > I need to create the component dynamically and also need
> > > > > > > to apply the style dynamically. How can I do that?
> > > > > > >
> > > > > > > Regards,
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Ix Multimedia Software
> > > > >
> > > > > Jan Luykenstraat 27
> > > > > 3521 VB Utrecht
> > > > >
> > > > > T. 06-51952295
> > > > > I. www.ixsoftware.nl
> > > > >
> > > >
> > > >
> > >
> >
> >
> >
>



Re: [flexcoders] Java Question

2010-01-15 Thread Paul Andrews
Fotis Chatzinikos wrote:
>
>
> And to clarify an earlier post Cold Fusion IS A Java backend with 
> extra functionality geared towards easier application development 
> (never used it thought so i might be wrong :-)
ColdFusion is written in Java, but it is NOT a Java development system.




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search 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/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
flexcoders-dig...@yahoogroups.com 
flexcoders-fullfeatu...@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
flexcoders-unsubscr...@yahoogroups.com

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



Re: [flexcoders] Java Question

2010-01-15 Thread Fotis Chatzinikos
And to clarify an earlier post Cold Fusion IS A Java backend with extra
functionality geared towards easier application development (never used it
thought so i might be wrong :-)

On Fri, Jan 15, 2010 at 8:11 PM, Fotis Chatzinikos <
fotis.chatzini...@gmail.com> wrote:

> I would leave Spring for the end it has quite a learning curve even for
> experienced java developers plus you will not need it for most cases -
> except if you develop for sites that have millions of hits per day and you
> cannot do without caching and similar technologies...
>
> If you know a programming language (by know i mean inside out) learning a
> new one will not take ages...If you know C++ you already know java (same
> staff minus pointers) (any geek here please do not reply that there are
> other differences :-)
>
> Start simple, download blazeds and check its samples...
>
>
> On Fri, Jan 15, 2010 at 8:02 PM, Dan Pride  wrote:
>
>>
>>
>>  just learning core Java, Servlets, Java Servers, BlazeDS, and Spring.
>> Can you suggest a source for learning them that would be most applicable
>> for Flex?
>>
>> Also,... Any idea of the time required for most for this? Like how would
>> it compare to an Oracle Cert for example? Weeks, Months or Years?
>> Thanks
>>
>> --- On *Fri, 1/15/10, Kelly * wrote:
>>
>>
>> From: Kelly 
>> Subject: Re: [flexcoders] Java Question
>> To: flexcoders@yahoogroups.com
>> Date: Friday, January 15, 2010, 12:44 PM
>>
>>
>>
>>
>> Most of the certs require you to learn tons of crap you will never use
>> with Java/Flex development.
>>
>> I would suggest just learning core Java, Servlets, Java Servers, BlazeDS,
>> and Spring. After that decide if you care about getting certified.
>>
>>
>> Tom suggested learning CF instead.
>>
>> I would not recommend that.
>>
>>
>> I know CF and Java and I would never use CF for a Flex backend.
>>
>> Java is so much nicer to work with and so much more powerful.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> Dan Pride wrote:
>>
>>
>>
>> I am thinking of making the jump to Java
>> Seems like its the platform of choice for Flex Data
>> Two quick questions
>> 1) Whats the best exam to certifiy for
>> 2) Whats the cheapest
>> 3) How long to get by the cert for a normal bright level (not genius but
>> bright) programmer?
>> 4) Will the Cert do me any good.
>>
>> Thanks
>> Dan Pride
>>
>>
>>  
>>
>
>
>
> --
> Fotis Chatzinikos, Ph.D.
> Founder,
> LivinData Technologies
> www.styledropper.com
> fotis.chatzini...@gmail.com,
>



-- 
Fotis Chatzinikos, Ph.D.
Founder,
LivinData Technologies
www.styledropper.com
fotis.chatzini...@gmail.com,


Re: [flexcoders] Java Question

2010-01-15 Thread Paul Andrews
Kelly wrote:
>
>
> Most of the certs require you to learn tons of crap you will never use 
> with Java/Flex development.
>
> I would suggest just learning core Java, Servlets, Java Servers, 
> BlazeDS, and Spring. After that decide if you care about getting 
> certified.
>
>
> Tom suggested learning CF instead.
>
> I would not recommend that.
>
>
> I know CF and Java and I would never use CF for a Flex backend.
>
> Java is so much nicer to work with and so much more powerful.
As a Java developer and having had a small dip in coldfusion 
development, I wouldn't dismiss coldfusion so easily.

If you're looking to build straightforward database functionality, 
coldfusion is superb and you'll get a solution rapidly. As well as that 
you'll have a route to providing reports and such with the help of 
coldfusion functionality.

I'm not telling anyone not to learn Java, or to adopt ColdFusion, but 
suggesting Java is nicer to work with or more powerful, is not so clear 
cut as you would suggest and for some scenarios the opposite is true.

I know that for some projects I've worked on, ColdFusion would have cut 
development costs drastically.

I suspect that most Flex projects are driven by PHP rather than Java.

I think the choice of server technology depends on a pile of things, 
some technical, some political, some monetary.

>
>
> Dan Pride wrote:
>>  
>>
>> I am thinking of making the jump to Java
>> Seems like its the platform of choice for Flex Data
>> Two quick questions
>> 1) Whats the best exam to certifiy for
>> 2) Whats the cheapest
>> 3) How long to get by the cert for a normal bright level (not genius 
>> but bright) programmer?
>> 4) Will the Cert do me any good.
>>
>> Thanks
>> Dan Pride
>>
>
>
> 



Re: [flexcoders] Java Question

2010-01-15 Thread Fotis Chatzinikos
I would leave Spring for the end it has quite a learning curve even for
experienced java developers plus you will not need it for most cases -
except if you develop for sites that have millions of hits per day and you
cannot do without caching and similar technologies...

If you know a programming language (by know i mean inside out) learning a
new one will not take ages...If you know C++ you already know java (same
staff minus pointers) (any geek here please do not reply that there are
other differences :-)

Start simple, download blazeds and check its samples...

On Fri, Jan 15, 2010 at 8:02 PM, Dan Pride  wrote:

>
>
> just learning core Java, Servlets, Java Servers, BlazeDS, and Spring.
> Can you suggest a source for learning them that would be most applicable
> for Flex?
>
> Also,... Any idea of the time required for most for this? Like how would it
> compare to an Oracle Cert for example? Weeks, Months or Years?
> Thanks
>
> --- On *Fri, 1/15/10, Kelly * wrote:
>
>
> From: Kelly 
> Subject: Re: [flexcoders] Java Question
> To: flexcoders@yahoogroups.com
> Date: Friday, January 15, 2010, 12:44 PM
>
>
>
>
> Most of the certs require you to learn tons of crap you will never use with
> Java/Flex development.
>
> I would suggest just learning core Java, Servlets, Java Servers, BlazeDS,
> and Spring. After that decide if you care about getting certified.
>
>
> Tom suggested learning CF instead.
>
> I would not recommend that.
>
>
> I know CF and Java and I would never use CF for a Flex backend.
>
> Java is so much nicer to work with and so much more powerful.
>
>
>
>
>
>
>
>
>
> Dan Pride wrote:
>
>
>
> I am thinking of making the jump to Java
> Seems like its the platform of choice for Flex Data
> Two quick questions
> 1) Whats the best exam to certifiy for
> 2) Whats the cheapest
> 3) How long to get by the cert for a normal bright level (not genius but
> bright) programmer?
> 4) Will the Cert do me any good.
>
> Thanks
> Dan Pride
>
>
>  
>



-- 
Fotis Chatzinikos, Ph.D.
Founder,
LivinData Technologies
www.styledropper.com
fotis.chatzini...@gmail.com,


Re: [flexcoders] Java Question

2010-01-15 Thread Dan Pride
 just learning core Java, Servlets, Java Servers,
BlazeDS, and Spring.
Can you suggest a source for learning them that would be most applicable for 
Flex?

Also,... Any idea of the time required for most for this? Like how would it 
compare to an Oracle Cert for example? Weeks, Months or Years?
Thanks

--- On Fri, 1/15/10, Kelly  wrote:

From: Kelly 
Subject: Re: [flexcoders] Java Question
To: flexcoders@yahoogroups.com
Date: Friday, January 15, 2010, 12:44 PM







 



  



  
  
  



Most of the
certs require you to learn tons of crap you will never use with
Java/Flex development.



I would suggest just learning core Java, Servlets, Java Servers,
BlazeDS, and Spring. After that decide if you care about getting
certified.





Tom suggested learning CF instead.



I would not recommend that.





I know CF and Java and I would never use CF for a Flex backend.



Java is so much nicer to work with and so much more powerful.



















Dan Pride wrote:
 

  
  I am thinking of making the jump to Java

Seems like its the platform of choice for Flex Data

Two quick questions

1) Whats the best exam to certifiy for

2) Whats the cheapest

3) How long to get by the cert for a normal bright level (not genius
but bright) programmer?

4) Will the Cert do me any good.

  

Thanks

Dan Pride

  

  
  








 





 



  






  

[flexcoders] Re: IGraphicElement and LayoutBase

2010-01-15 Thread Ariel J
You can. It's just that the constraint based sizing of the inner rect doesn't 
work when you use a vertical layout. Change them to height and width values of 
100% and you'll see.

--- In flexcoders@yahoogroups.com, "Florian"  wrote:
>
> 
> Why is it not possible to draw an IGraphicElement into a Group which has
> a LayoutBase instance applied to it?
> 
> 
> 
> http://ns.adobe.com/mxml/2009";
> 
>xmlns:s="library://ns.adobe.com/flex/spark"
> 
>xmlns:mx="library://ns.adobe.com/flex/halo" minWidth="1024"
> minHeight="768">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  top="0" />
> 
> 
> 
> 
>




Re: [flexcoders] Java Question

2010-01-15 Thread Paul Hastings
On 1/16/2010 12:44 AM, Kelly wrote:
> I know CF and Java and I would never use CF for a Flex backend.
>
> Java is so much nicer to work with and so much more powerful.

sorry but it doesn't sound like you know cf very well. whatever you think you 
can do in java, you can do in cf though with much less effort. cf is a 
perfectly 
suitable backend for flex/air.


[flexcoders] Re: flex 4 text styling

2010-01-15 Thread Ariel J
Thank you for that.

--- In flexcoders@yahoogroups.com, "Ariel J"  wrote:
>
> In the language reference, I see styles such as fontSharpness and 
> fontAntiAliasType for Label, but I am not seeing them as styles for the spark 
> Label or RichText. Are they no longer being used?
>




[flexcoders] Re: Issue with packages and folders - ui

2010-01-15 Thread jer_ela
A better workaround is to drag it into gauge and then use move to put it into 
controls which will get expanded and you will be able to drag stuff to it 
thereafter.  

I like the way they roll up the empty packages, as it saves a lot of clicks if 
you have a deep package structure.  That does leave no drag target, but on the 
few instances where it is an issue, the workaround is pretty easy.

--- In flexcoders@yahoogroups.com, "djhatrick"  wrote:
>
> I have a package 'flexlib.controls.gauge' and there are no class files in 
> controls, just the folder/package gauge
> 
> The way flashbuilder works with packages, I can't drag/save a file into the 
> flexlib.controls folder...The workaround is to drag and drop outside flex 
> into the my flexlib.controls
> 
> Is this intended,seems like a ui oversight to me.
> 
> 
> Also, why can't we drag and drop multiple files into packages from our 
> desktop into flashbuilder.  That bug has been really annoying, and affected 
> flex/flashbuilder 4eva.
> 
> 
> Thanks for helping,
> Patrick
>




[flexcoders] Re: Displaying additional child nodes in Datatip

2010-01-15 Thread turbo_vb
Yeah, you're very close.  Now it's just a matter of xml.  I'd start by tracing 
o.  If the children are still in o, then drill down.  Otherwise, you'll have to 
go and find the nodes; like you're trying below.  Some things that you can 
start with:

trace( o.toXMLString() );

var myXMLChildren:XMLList = o.children();

o.child("myProperty")[0].valueOf();

-TH

--- In flexcoders@yahoogroups.com, "Monette"  wrote:
>
> Below is my DataTipFunction.  The commented part on top works fine. 
> However, there is additional information that I need to include from the
> XML file into the data tip.
> When I mouse over the datapoint I would like to retrieve from the XML
> file the additional child nodes that correspond with that datapoint.  I
> feel that I am very close and missing one piece. How can I accomplish
> this dynamically by displaying the correct data for the series?  Note, I
> can have more than 1 series in the XML data file.
> 
> private  function DTPFunction(o:HitData):String
>  {
>  //WORKS for data that is used on the chart x and y
> values
>  //var s:String;
>  //s =  "" + LineSeries(o.element).displayName + "
> \n";
>  //s += "Books: " +
> LineSeriesItem(o.chartItem).yValue + "\n" + "Book rate: " +
> series. o.item.session.bookrate + "\n" ;
>  //s += "Status: " + o.item.session.status + "\n"
> ;
>   //END WORKS
> 
>  var s:String;
>  var a:int=0;
>  var fNode:XML = chart.dataProvider[0];
>  if ((LineSeries(o.element).displayName) ==
> fNode.child('sessionname'))
>  {
>  s =  "" + o.item.session.sessionname[a] + " \n";
>  s += "Books: " + o.item.session.books[a] + "\n" +
> "Book rate: " + o.item.session.bookrate[a] +  "\n" ;
>  s += "Status: " + o.item.session.status[a] +
> "\n" ;
>  a++
>  }
>  return s;
>  }
> 
> Thanks.
> Monette
> 
> --- In flexcoders@yahoogroups.com, "turbo_vb"  wrote:
> >
> > If the dataTipFunction doesn't give you enough flexibility, you could
> try a dataTipRenderer.  In either case, you can drill down to the child
> nodes there.
> >
> > -TH
> >
> > --- In flexcoders@yahoogroups.com, "Monette" monettemm@ wrote:
> > >
> > > The line chart displays multiple series created with the
> seriesDataFunction (assigning the x and y points).  The XML file
> includes additional child nodes per item that I would like to include in
> the datatip.  How do I include those items?  When I use o.item.rate, it
> lists all the rates for each series in the datatip.
> > > Thanks.
> > > Monette
> > >
> >
>




Re: [flexcoders] Re: apply style in newly created component

2010-01-15 Thread Vivian Richard
I just tried as suggested and still the same. May be it does not get
instantiated
until it is added in its parent. May be!!!



On Fri, Jan 15, 2010 at 10:50 AM, valdhor wrote:

>
>
> Hm I don't use charts.
>
> Maybe you could try...
>
> myComp.myChart.styleName = "noGutterChart";
>
> Actaully, the myChart component may not have been instantiated at that
> point. I would add a creationComplete event handler to the myChart component
> that dispatches a custom event that will bubble up to the component that you
> are in. When that event comes in, apply the style.
>
>
> --- In flexcoders@yahoogroups.com , Vivian
> Richard  wrote:
> >
> > Actually I am trying to apply a very simple style to a chart. My chart is
> > inside a
> > canvas component and in a separate file. I want to add this chart
> containing
> > canvas in dynamically. This component is like this:
> >
> > 
> > 
> > 
> > 
> > 
> >
> > Now I have this simple styles for the the chart which are:
> >
> > .noGutterChart {
> > gutterLeft:0;
> > gutterBottom:0;
> > gutterTop:0;
> > gutterRight:0;
> > }
> >
> > Now as I am trying to create the component dunamically and want to apply
> > the
> > style to the chart I get the error message.
> >
> > var myComp:ChartComp = new ChartComp;
> > myComp.myChart.setStyle("styleName","noGutterChart");
> >
> > This gives me the error message that I cannot access a function of a
> > null object.
> >
> >
> >
> >
> >
> >
> >
> >
> > On Fri, Jan 15, 2010 at 9:49 AM, valdhor wrote:
>
> >
> > >
> > >
> > > In that case he should use the styleName property...
> > >
> > > .myStyle
> > > {
> > > cornerRadius: 9;
> > > fillAlphas: 1, 1, 1, 1;
> > > fillColors: #6699ff, #6699ff, #6699ff, #6699ff;
> > > themeColor: #00ff00;
> > > fontSize: 24;
> > > }
> > >
> > >
> > > var button:Button = new Button;
> > > button.label = "My Fancy New Button";
> > > button.styleName = "myStyle";
> > > this.addChild(button);
> > >
> > >
> > > --- In flexcoders@yahoogroups.com , Erik
> de Bruin  wrote:
> > > >
> > > > Hi,
> > > >
> > > > I think he's trying to set a named CSS style ("myStyle") on the
> Button
> > > using
> > > > setStyle(). I don't think that's possible?
> > > >
> > > > EdB
> > > >
> > > > On Fri, Jan 15, 2010 at 3:02 PM, valdhor valdhorli...@...:
>
> > >
> > > >
> > > > >
> > > > >
> > > > > I don't understand. Once you use the "new" operator, the button is
> > > > > instantiated. You can apply all sorts of styles to it before adding
> it
> > > to
> > > > > the displayList. For example, this works for me...
> > > > >
> > > > > var button:Button = new Button;
> > > > > button.label = "My Fancy New Button";
> > > > > button.setStyle("cornerRadius", 9);
> > > > > button.setStyle("fontSize", 24);
> > > > > button.setStyle("themeColor", '#00FF00');
> > > > > button.setStyle("fillColors", ['#6699ff', '#6699ff',
> > > > > '#6699ff', '#6699ff']);
> > > > > button.setStyle("fillAlphas", [1, 1, 1, 1]);
> > > > > this.addChild(button);
> > > > >
> > > > >
> > > > >
> > > > > --- In flexcoders@yahoogroups.com ,
> "hworke" kanpsack@ wrote:
> > > > > >
> > > > > >
> > > > > >
> > > > > > Hi I am trying to apply style in a newly created component
> > > > > > but since it is not instantiated it gives me error message.
> > > > > >
> > > > > > My code is like this:
> > > > > >
> > > > > > var button:Button = new Button;
> > > > > > button.setStyle("styleName", "myStyle");
> > > > > > canvas.addChild(button);
> > > > > > I need to create the component dynamically and also need
> > > > > > to apply the style dynamically. How can I do that?
> > > > > >
> > > > > > Regards,
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Ix Multimedia Software
> > > >
> > > > Jan Luykenstraat 27
> > > > 3521 VB Utrecht
> > > >
> > > > T. 06-51952295
> > > > I. www.ixsoftware.nl
> > > >
> > >
> > >
> >
>
>  
>


[flexcoders] Re: apply style in newly created component

2010-01-15 Thread valdhor
Hm I don't use charts.

Maybe you could try...

myComp.myChart.styleName = "noGutterChart";

Actaully, the myChart component may not have been instantiated at that point. I 
would add a creationComplete event handler to the myChart component that 
dispatches a custom event that will bubble up to the component that you are in. 
When that event comes in, apply the style.

--- In flexcoders@yahoogroups.com, Vivian Richard  wrote:
>
> Actually I am trying to apply a very simple style to a chart. My chart is
> inside a
> canvas component and in a separate file. I want to add this chart containing
> canvas in dynamically. This component is like this:
> 
> 
> 
> 
> 
> 
> 
> Now I have this simple styles for the the chart which are:
> 
> .noGutterChart {
>gutterLeft:0;
>gutterBottom:0;
>gutterTop:0;
>gutterRight:0;
> }
> 
> Now as I am trying to create the component dunamically and want to apply
> the
> style to the chart I get the error message.
> 
>   var myComp:ChartComp = new ChartComp;
>   myComp.myChart.setStyle("styleName","noGutterChart");
> 
> This gives me the error message that I cannot access a function of a
> null object.
> 
> 
> 
> 
> 
> 
> 
> 
> On Fri, Jan 15, 2010 at 9:49 AM, valdhor wrote:
> 
> >
> >
> > In that case he should use the styleName property...
> >
> > .myStyle
> > {
> >cornerRadius: 9;
> >fillAlphas: 1, 1, 1, 1;
> >fillColors: #6699ff, #6699ff, #6699ff, #6699ff;
> >themeColor: #00ff00;
> >fontSize: 24;
> > }
> >
> >
> > var button:Button = new Button;
> > button.label = "My Fancy New Button";
> > button.styleName = "myStyle";
> > this.addChild(button);
> >
> >
> > --- In flexcoders@yahoogroups.com, Erik de Bruin  wrote:
> > >
> > > Hi,
> > >
> > > I think he's trying to set a named CSS style ("myStyle") on the Button
> > using
> > > setStyle(). I don't think that's possible?
> > >
> > > EdB
> > >
> > > On Fri, Jan 15, 2010 at 3:02 PM, valdhor valdhorli...@...:
> >
> > >
> > > >
> > > >
> > > > I don't understand. Once you use the "new" operator, the button is
> > > > instantiated. You can apply all sorts of styles to it before adding it
> > to
> > > > the displayList. For example, this works for me...
> > > >
> > > > var button:Button = new Button;
> > > > button.label = "My Fancy New Button";
> > > > button.setStyle("cornerRadius", 9);
> > > > button.setStyle("fontSize", 24);
> > > > button.setStyle("themeColor", '#00FF00');
> > > > button.setStyle("fillColors", ['#6699ff', '#6699ff',
> > > > '#6699ff', '#6699ff']);
> > > > button.setStyle("fillAlphas", [1, 1, 1, 1]);
> > > > this.addChild(button);
> > > >
> > > >
> > > >
> > > > --- In flexcoders@yahoogroups.com, "hworke" kanpsack@ wrote:
> > > > >
> > > > >
> > > > >
> > > > > Hi I am trying to apply style in a newly created component
> > > > > but since it is not instantiated it gives me error message.
> > > > >
> > > > > My code is like this:
> > > > >
> > > > > var button:Button = new Button;
> > > > > button.setStyle("styleName", "myStyle");
> > > > > canvas.addChild(button);
> > > > > I need to create the component dynamically and also need
> > > > > to apply the style dynamically. How can I do that?
> > > > >
> > > > > Regards,
> > > > >
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Ix Multimedia Software
> > >
> > > Jan Luykenstraat 27
> > > 3521 VB Utrecht
> > >
> > > T. 06-51952295
> > > I. www.ixsoftware.nl
> > >
> >  
> >
>




[flexcoders] Re: apply style in newly created component

2010-01-15 Thread invertedspear
use the styleName option if your applying a CSS to it:
mychart.styleName = "noGutterChart";

--- In flexcoders@yahoogroups.com, Vivian Richard  wrote:
>
> Actually I am trying to apply a very simple style to a chart. My chart is
> inside a
> canvas component and in a separate file. I want to add this chart containing
> canvas in dynamically. This component is like this:
> 
> 
> 
> 
> 
> 
> 
> Now I have this simple styles for the the chart which are:
> 
> .noGutterChart {
>gutterLeft:0;
>gutterBottom:0;
>gutterTop:0;
>gutterRight:0;
> }
> 
> Now as I am trying to create the component dunamically and want to apply
> the
> style to the chart I get the error message.
> 
>   var myComp:ChartComp = new ChartComp;
>   myComp.myChart.setStyle("styleName","noGutterChart");
> 
> This gives me the error message that I cannot access a function of a
> null object.



Re: [flexcoders] Flash Player Standalone vs Browser performance

2010-01-15 Thread Tom Chiverton
On Tuesday 12 Jan 2010, Matt wrote:
> I am trying to figure out whether such a great disparity is expected.

It doesn't surprise me.
Outside the browser, Flash has to do a lot less work.

> 4. The Browser Flash Players are inferior implementations.  There

Well, 'different' certainly :-) 
As a native application, it's probable (likely ?) that the standalone player 
is able to make use of more efficient operating system features, rather than 
having everything go via the plugin API.

Did you try GPU-acceleration options in the HTML page's embed code, for 
instance ?

-- 
Helping to confidentially synergize prospective services as part of the IT 
team of the year, '09 and '08



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

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

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

Re: [flexcoders] Re: apply style in newly created component

2010-01-15 Thread Vivian Richard
Actually I am trying to apply a very simple style to a chart. My chart is
inside a
canvas component and in a separate file. I want to add this chart containing
canvas in dynamically. This component is like this:







Now I have this simple styles for the the chart which are:

.noGutterChart {
   gutterLeft:0;
   gutterBottom:0;
   gutterTop:0;
   gutterRight:0;
}

Now as I am trying to create the component dunamically and want to apply
the
style to the chart I get the error message.

  var myComp:ChartComp = new ChartComp;
  myComp.myChart.setStyle("styleName","noGutterChart");

This gives me the error message that I cannot access a function of a
null object.








On Fri, Jan 15, 2010 at 9:49 AM, valdhor wrote:

>
>
> In that case he should use the styleName property...
>
> .myStyle
> {
>cornerRadius: 9;
>fillAlphas: 1, 1, 1, 1;
>fillColors: #6699ff, #6699ff, #6699ff, #6699ff;
>themeColor: #00ff00;
>fontSize: 24;
> }
>
>
> var button:Button = new Button;
> button.label = "My Fancy New Button";
> button.styleName = "myStyle";
> this.addChild(button);
>
>
> --- In flexcoders@yahoogroups.com, Erik de Bruin  wrote:
> >
> > Hi,
> >
> > I think he's trying to set a named CSS style ("myStyle") on the Button
> using
> > setStyle(). I don't think that's possible?
> >
> > EdB
> >
> > On Fri, Jan 15, 2010 at 3:02 PM, valdhor valdhorli...@...wrote:
>
> >
> > >
> > >
> > > I don't understand. Once you use the "new" operator, the button is
> > > instantiated. You can apply all sorts of styles to it before adding it
> to
> > > the displayList. For example, this works for me...
> > >
> > > var button:Button = new Button;
> > > button.label = "My Fancy New Button";
> > > button.setStyle("cornerRadius", 9);
> > > button.setStyle("fontSize", 24);
> > > button.setStyle("themeColor", '#00FF00');
> > > button.setStyle("fillColors", ['#6699ff', '#6699ff',
> > > '#6699ff', '#6699ff']);
> > > button.setStyle("fillAlphas", [1, 1, 1, 1]);
> > > this.addChild(button);
> > >
> > >
> > >
> > > --- In flexcoders@yahoogroups.com, "hworke" kanpsack@ wrote:
> > > >
> > > >
> > > >
> > > > Hi I am trying to apply style in a newly created component
> > > > but since it is not instantiated it gives me error message.
> > > >
> > > > My code is like this:
> > > >
> > > > var button:Button = new Button;
> > > > button.setStyle("styleName", "myStyle");
> > > > canvas.addChild(button);
> > > > I need to create the component dynamically and also need
> > > > to apply the style dynamically. How can I do that?
> > > >
> > > > Regards,
> > > >
> > >
> > >
> >
> >
> >
> > --
> > Ix Multimedia Software
> >
> > Jan Luykenstraat 27
> > 3521 VB Utrecht
> >
> > T. 06-51952295
> > I. www.ixsoftware.nl
> >
>  
>


[flexcoders] Re: apply style in newly created component

2010-01-15 Thread valdhor
In that case he should use the styleName property...

 .myStyle
 {
cornerRadius: 9;
fillAlphas: 1, 1, 1, 1;
fillColors: #6699ff, #6699ff, #6699ff, #6699ff;
themeColor: #00ff00;
fontSize: 24;
 }

 var button:Button = new Button;
 button.label = "My Fancy New Button";
 button.styleName = "myStyle";
 this.addChild(button);

--- In flexcoders@yahoogroups.com, Erik de Bruin 
wrote:
>
> Hi,
>
> I think he's trying to set a named CSS style ("myStyle") on the Button
using
> setStyle(). I don't think that's possible?
>
> EdB
>
> On Fri, Jan 15, 2010 at 3:02 PM, valdhor valdhorli...@...wrote:
>
> >
> >
> > I don't understand. Once you use the "new" operator, the button is
> > instantiated. You can apply all sorts of styles to it before adding
it to
> > the displayList. For example, this works for me...
> >
> > var button:Button = new Button;
> > button.label = "My Fancy New Button";
> > button.setStyle("cornerRadius", 9);
> > button.setStyle("fontSize", 24);
> > button.setStyle("themeColor", '#00FF00');
> > button.setStyle("fillColors", ['#6699ff', '#6699ff',
> > '#6699ff', '#6699ff']);
> > button.setStyle("fillAlphas", [1, 1, 1, 1]);
> > this.addChild(button);
> >
> >
> >
> > --- In flexcoders@yahoogroups.com, "hworke" kanpsack@ wrote:
> > >
> > >
> > >
> > > Hi I am trying to apply style in a newly created component
> > > but since it is not instantiated it gives me error message.
> > >
> > > My code is like this:
> > >
> > > var button:Button = new Button;
> > > button.setStyle("styleName", "myStyle");
> > > canvas.addChild(button);
> > > I need to create the component dynamically and also need
> > > to apply the style dynamically. How can I do that?
> > >
> > > Regards,
> > >
> >
> >
>
>
>
> --
> Ix Multimedia Software
>
> Jan Luykenstraat 27
> 3521 VB Utrecht
>
> T. 06-51952295
> I. www.ixsoftware.nl
>



Re: [flexcoders] Java Question

2010-01-15 Thread Tom Chiverton
On Friday 15 Jan 2010, Dan Pride wrote:
> I am thinking of making the jump to Java

I think around these parts you'll be given the impression that on the desktop, 
AIR is a better path :-)

> Seems like its the platform of choice for Flex Data
> Two quick questions

Oh, you're talking about servers ?
Why not look at ColdFusion ? Adobe's implementation comes with the vast 
majority of the FDS toys built in, and the language and deployment process is 
a lot easier.

-- 
Helping to administratively maintain niches as part of the IT team of the 
year, '09 and '08



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

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

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

[flexcoders] Re: Displaying additional child nodes in Datatip

2010-01-15 Thread Monette
Below is my DataTipFunction.  The commented part on top works fine. 
However, there is additional information that I need to include from the
XML file into the data tip.
When I mouse over the datapoint I would like to retrieve from the XML
file the additional child nodes that correspond with that datapoint.  I
feel that I am very close and missing one piece. How can I accomplish
this dynamically by displaying the correct data for the series?  Note, I
can have more than 1 series in the XML data file.

private  function DTPFunction(o:HitData):String
 {
 //WORKS for data that is used on the chart x and y
values
 //var s:String;
 //s =  "" + LineSeries(o.element).displayName + "
\n";
 //s += "Books: " +
LineSeriesItem(o.chartItem).yValue + "\n" + "Book rate: " +
series. o.item.session.bookrate + "\n" ;
 //s += "Status: " + o.item.session.status + "\n"
;
  //END WORKS

 var s:String;
 var a:int=0;
 var fNode:XML = chart.dataProvider[0];
 if ((LineSeries(o.element).displayName) ==
fNode.child('sessionname'))
 {
 s =  "" + o.item.session.sessionname[a] + " \n";
 s += "Books: " + o.item.session.books[a] + "\n" +
"Book rate: " + o.item.session.bookrate[a] +  "\n" ;
 s += "Status: " + o.item.session.status[a] +
"\n" ;
 a++
 }
 return s;
 }

Thanks.
Monette

--- In flexcoders@yahoogroups.com, "turbo_vb"  wrote:
>
> If the dataTipFunction doesn't give you enough flexibility, you could
try a dataTipRenderer.  In either case, you can drill down to the child
nodes there.
>
> -TH
>
> --- In flexcoders@yahoogroups.com, "Monette" monettemm@ wrote:
> >
> > The line chart displays multiple series created with the
seriesDataFunction (assigning the x and y points).  The XML file
includes additional child nodes per item that I would like to include in
the datatip.  How do I include those items?  When I use o.item.rate, it
lists all the rates for each series in the datatip.
> > Thanks.
> > Monette
> >
>




Re: [flexcoders] Re: apply style in newly created component

2010-01-15 Thread Erik de Bruin
Hi,

I think he's trying to set a named CSS style ("myStyle") on the Button using
setStyle(). I don't think that's possible?

EdB

On Fri, Jan 15, 2010 at 3:02 PM, valdhor wrote:

>
>
> I don't understand. Once you use the "new" operator, the button is
> instantiated. You can apply all sorts of styles to it before adding it to
> the displayList. For example, this works for me...
>
> var button:Button = new Button;
> button.label = "My Fancy New Button";
> button.setStyle("cornerRadius", 9);
> button.setStyle("fontSize", 24);
> button.setStyle("themeColor", '#00FF00');
> button.setStyle("fillColors", ['#6699ff', '#6699ff',
> '#6699ff', '#6699ff']);
> button.setStyle("fillAlphas", [1, 1, 1, 1]);
> this.addChild(button);
>
>
>
> --- In flexcoders@yahoogroups.com, "hworke"  wrote:
> >
> >
> >
> > Hi I am trying to apply style in a newly created component
> > but since it is not instantiated it gives me error message.
> >
> > My code is like this:
> >
> > var button:Button = new Button;
> > button.setStyle("styleName", "myStyle");
> > canvas.addChild(button);
> > I need to create the component dynamically and also need
> > to apply the style dynamically. How can I do that?
> >
> > Regards,
> >
>  
>



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl


Re: [flexcoders] How to set minWidth/minHeight property?

2010-01-15 Thread Fotis Chatzinikos
What exactly is the problem? They do what they say: They keep the component
from getting smaller than what you set:




This box can now be any width larger than 100.

if you stick it inside a container that is lets say 500 pixels then it
becomes 500 hundrend

if your container is less than 100 the component remains 100 pixels and a
scroll bar is used from the container (if horizontal scroll policy is not
off)

On Fri, Jan 15, 2010 at 4:53 PM, markflex2007 wrote:

>
>
> Hi,
>
> I am very confuse how to use the properties?
>
> Do you have a demo to explain to give me a idea?
>
> Thanks
>
> Mark
>
>  
>



-- 
Fotis Chatzinikos, Ph.D.
Founder,
LivinData Technologies
www.styledropper.com
fotis.chatzini...@gmail.com,


[flexcoders] How to set minWidth/minHeight property?

2010-01-15 Thread markflex2007
Hi,

I am very confuse how to use the properties?

Do you have a demo to explain to give me a idea?

Thanks

Mark



[flexcoders] Java Question

2010-01-15 Thread Dan Pride
I am thinking of making the jump to Java
Seems like its the platform of choice for Flex Data
Two quick questions
1) Whats the best exam to certifiy for
2) Whats the cheapest
3) How long to get by the cert for a normal bright level (not genius but 
bright) programmer?
4) Will the Cert do me any good.

Thanks
Dan Pride


  


[flexcoders] Selected item is not a visual component => FlexBuilder3

2010-01-15 Thread Davis Ford
Hi, if I create my own custom MXML component, e.g.

<
http://www.adobe.com/2006/mxml
" width="100%" height="100%">



...and I try to drop it in FB design view inside some other component, I
can't seem to visualize it in design view.  When I select it in the outline,
FB properties says, "Selected item is not a visual component".

It really is a visual component, however, and if I run the app I can see it
there, and it works, but design view seems to be messed up.  The odd thing
is, we have a number of custom widgets like this, and they do show in design
view.  I'm comparing the differences between them, and I see nothing that
should make any difference in the design view behavior.

Anyone have any insight on why it is behaving this way -- or if there is a
workaround / fix?

TIA

Regards,
Davis


[flexcoders] Re: apply style in newly created component

2010-01-15 Thread valdhor
I don't understand. Once you use the "new" operator, the button is
instantiated. You can apply all sorts of styles to it before adding it
to the displayList. For example, this works for me...

 var button:Button = new Button;
 button.label = "My Fancy New Button";
 button.setStyle("cornerRadius", 9);
 button.setStyle("fontSize", 24);
 button.setStyle("themeColor", '#00FF00');
 button.setStyle("fillColors", ['#6699ff', '#6699ff',
'#6699ff', '#6699ff']);
 button.setStyle("fillAlphas", [1, 1, 1, 1]);
 this.addChild(button);



--- In flexcoders@yahoogroups.com, "hworke"  wrote:
>
>
>
> Hi I am trying to apply style in a newly created component
> but since it is not instantiated it gives me error message.
>
> My code is like this:
>
> var button:Button = new Button;
> button.setStyle("styleName", "myStyle");
> canvas.addChild(button);
> I need to create the component dynamically and also need
> to apply the style dynamically. How can I do that?
>
> Regards,
>



[flexcoders] Iframe issue

2010-01-15 Thread praveeen kg
Hi,

I'm using an iframe in my flex application to load a pdf file. Now the
problem that i'm facing with this is that when i try to save the file using
the save button available in the pdf viewer the file name of the downloaded
file will be the entire link to the loaded pdf file. How can i get rid of
the issue?

-- 
Thanks,
Praveen kg
praveenkg_...@yahoo.co.in


[flexcoders] IGraphicElement and LayoutBase

2010-01-15 Thread Florian

Why is it not possible to draw an IGraphicElement into a Group which has
a LayoutBase instance applied to it?



http://ns.adobe.com/mxml/2009";

   xmlns:s="library://ns.adobe.com/flex/spark"

   xmlns:mx="library://ns.adobe.com/flex/halo" minWidth="1024"
minHeight="768">









































Re: [flexcoders] Flex4: getChildById or getElementById

2010-01-15 Thread Ondina F
So obvious and
simple! Thank you!! 
[Shame on me: my
first posting in here looks like spam. Once
again, I'm sorry.]
Ondina





From: Gordon Smith 
To: "flexcoders@yahoogroups.com" 
Sent: Fri, January 15, 2010 8:00:33 AM
Subject: RE: [flexcoders] Flex4: getChildById or getElementById

   
You can write code like
 
if ("mycomponent" in this)
{
this["mycomponent"].doSomething( )
}
 
to avoid an FTE with mycomponent does not exist.
 
Gordon Smith
Adobe Flex SDK Team
 
From:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
Behalf Of Ondina F
Sent: Thursday, January 14, 2010 3:02 AM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] Flex4: getChildById or getElementById
 
  
Hi,
Oftentimes I
need to check if a component( for example a  TextInput) exists before
populating it with data. 
The
getChildByName( )is the only method I know of, that can do this.
I wish there was
a getChildById( ) as well, so I wouldn’t have to set the name for all my
components( could be hundreds )in addition to their id.
[
If the
component( myComponent ) doesn’t exist:
this[“myComponent”]
throws the RE ReferenceError: Error #1069
and 
this.contains( myComponent)
doesn’t compile of course
1120: Access of
undefined property myComponentId.
]
I know,
Christmas time is over, no more gifts for us from Adobe:)
Should I put it on
my next flex-xmas list?
Or do you guys
know about other ways of checking the existence of components? Any input would
be much appreciated.
Cheers,
Ondina
P.S. My message
didn’t show up on the mailing list after tryingto create a new topic on the
Yahoo Groups. I must have done something wrong. Sorry for any inconvenience I
might have caused.
 
 


  

Re: [flexcoders] flex-iframe (resize panel container based on html doc height)

2010-01-15 Thread Julien Nicoulaud
Those examples don't work ?
http://flex-iframe.googlecode.com/svn/trunk/examples/build/SimpleHtml/SimpleHtml.html
http://flex-iframe.googlecode.com/svn/trunk/examples/build/Dashboard/dashboardsample.html
http://flex-iframe.googlecode.com/svn/trunk/examples/build/IFrameDemo/IFrameDemo.html
http://flex-iframe.googlecode.com/svn/trunk/examples/build/HTMLTest/HTMLTest.html
http://flex-iframe.googlecode.com/svn/trunk/examples/build/IFrameWithLoadIndicator/IFrameWithLoadIndicator.html

2010/1/14 flexfortress 

>
>
> I have been tasked with a proof of concept for a Flex application, and I've
> been asked to render html within a panel and have the panel resize during
> runtime depending upon the height of the html content.
>
> I've check out the code for Christophe's exmaple - which is a good start:
> http://www.deitte.com/IFrameDemo3/IFrameDemo.html
>
> However, I need to have the panel resize on the fly; therefore, making the
> browser implement scrollbars, and not the panel.
>
> I checked out flex-iframe which looks very promising, but I have not been
> able to get the examples to render.
> http://code.google.com/p/flex-iframe/
>
> Any help? Insights? Has anyone dealt with this? (I know iframes blow, but
> it's a requirement)
>
> It seems like I can embed a Javascript function in the html file that
> announces the dimensions to ActionScript and then an AS function resizes the
> panel - which one of the flex-iframe examples proves. but, so far, I haven't
> been able to do this.
>
> Thanks for any assistance!
>
> David
>
>  
>