RE: [flexcoders] Call component for String name

2008-06-06 Thread Alex Harui
createPopUp requires a Class.  You can use getDefinitionByName to
convert a string to a class as long as that class got linked into the
SWF somehow.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Fernando Lobos
Sent: Friday, June 06, 2008 5:56 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Call component for String name

 

hi, i try to call a component titlewindows with you name but in string

 

 

example

 

 

 

var object1:Object

 

Object.name = "frm_titlewindows_sales"

 

puWin = PopUpManager.createPopUp(this, Object, true);

 



RE: RES: [flexcoders] Using CSS with custom item renderers

2008-06-06 Thread Alex Harui
File an enhancement request and we'll see what we can do for Flex 4.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Amy
Sent: Friday, June 06, 2008 9:21 PM
To: flexcoders@yahoogroups.com
Subject: Re: RES: [flexcoders] Using CSS with custom item renderers

 

--- In flexcoders@yahoogroups.com 
, "Stephen Gilson" <[EMAIL PROTECTED]> 
wrote:
>
> One more note on this one:
> 
> Renderers have their TypeSelectors blocked for the styles:
> 
> backgroundColor
> borderStyle
> 
> borderStyle is blocked because DataGrid/List has a borderStyle and 
if
> you put a container in as your renderer, it would pick up that
> borderStyle by default.
> 
> Similarly, backgroundColor is blocked, but also for another 
reason. We
> want the renderers to not have a background so the 
selection/highlight
> colors can be drawn behind them and show through.
> 
> We can add this to the doc.

Thanks :-). It's certainly helpful to have as much information as 
possible. In my case, I wanted to hide the highlight colors except 
around the edges (past the border of the itemRenderers). Would it 
make any sense to provide an override to allow people to set a 
property that lets the component use its CSS style? The fix I found 
is fairly easy, but a property would be even easier ;-).

-Amy

 



RE: [flexcoders] Flex Unload SWFLoader issues

2008-06-06 Thread Alex Harui
I don't see any code, but in general, if the SWF you loaded does not
clean up after itself, there's no way to force it to unload.  You'll
need to find a way to stop the video and audio before loading something
else.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ben Reed
Sent: Friday, June 06, 2008 11:31 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex Unload SWFLoader issues

 

Hi guys,

I have just today signed up with this mailing list after stumbling
across an issue I cannot resolve! Seems to be a flaw with the SWFLoader
in Flex 3. Basically my problem is this, I have to create a youtube
player for a client and am using the wrapper classes from martin legris
to aid me. All is working ok, I have a datagrid being populated by an
array, and when a video is selected, the SWFLoader loads it into place
as it should. The problem comes when selecting another video from the
list, several things happen (or dont!), the loaded Youtube player
disappears as if another one will be loaded into its place (the desired
effect) but nothing is loaded, also the sound from the original swf is
still audible.

Any suggestions or modifications to the code below would be most
welcome. I have read that possibly using Loader as oppose to SWFLoader
could be the way to go, or maybe Module Loader? I am ver new to flex but
not to actionscript and I seem to recall a similar problem once before
but I am damned if I can remember how (or if) i resolved it.

Anyway, I hope this hasn't been answered ages ago and if it has please
accept my apologies. I hope I can be of some use to some of you in
future postings! 

Cheers

Ben Reed

 



RE: [flexcoders] Re: How to change the Width and Height of drawHighlightIndicator function?

2008-06-06 Thread Alex Harui
The renderer is passed into drawHighlightIndicator so you can introspect
it

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flexawesome
Sent: Friday, June 06, 2008 6:37 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How to change the Width and Height of
drawHighlightIndicator function?

 


is it possible to retrieve the content information( width, height, x, 
y) inside of renderer?

Cheers

--- In flexcoders@yahoogroups.com 
, "flexawesome" <[EMAIL PROTECTED]> 
wrote:
>
> pic is the picture in my itemRenderer, here is my itemRenderer for 
> the tilelist, this renderer will be used for other tilelist.
> 
> So, I would like to get the image size dynamically in my customize 
> TileList, uses drawHighlightIndicator function to set the 
> highlighting 5 more pix height and width.
> 
> does this make sence? :)
> 
> 
> == itemRenderer 
> 
> 
> http://www.adobe.com/2006/mxml
 ">
> 
> 
> 
> 
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com
 , "Alex Harui"  wrote:
> >
> > What is pic?
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com
  
> [mailto:flexcoders@yahoogroups.com
 ] On
> > Behalf Of flexawesome
> > Sent: Friday, June 06, 2008 9:48 AM
> > To: flexcoders@yahoogroups.com 

> > Subject: [flexcoders] How to change the Width and Height of
> > drawHighlightIndicator function?
> > 
> > 
> > 
> > Hey, I was working on the customize renderer for the TileList. I 
> would 
> > like override the drawHighlightIndicator function to change the 
> size of 
> > highlighting.
> > 
> > For example: my pic size was 40x60 and the renderer size was 
50x80, 
> I 
> > was going to change the highlighting size to 45 x 65 ( adding 
5pix 
> for 
> > Height and Width ). 
> > 
> > Do you know how to get the pic size? if so I could change the 
width 
> and 
> > height in the following code.
> > 
> > http://www.privatepaste.com/1cqtF1O6bW
 
> >  > 
> > 
> > Thank you
> >
>

 



RE: [flexcoders] Back-button Help

2008-06-06 Thread Alex Harui
One way is to really use the browser's backbutton by hooking in
BrowserManager to your application.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Laila Towailib
Sent: Friday, June 06, 2008 10:30 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Back-button Help

 

I need to create a back button in my Application, but I don't know how
!! 
any help with that ? 
My application contains 3 custom components. All of them are dataGrids.
Each components is inside a state ! 

 



[flexcoders] Back-button Help

2008-06-06 Thread Laila Towailib
I need to create a back button in my Application, but I don't know how !!
any help with that ?
My application contains 3 custom components. All of them are dataGrids. Each
components is inside a state !


Re: RES: [flexcoders] Using CSS with custom item renderers

2008-06-06 Thread Amy
--- In flexcoders@yahoogroups.com, "Stephen Gilson" <[EMAIL PROTECTED]> 
wrote:
>
> One more note on this one:
>  
> Renderers have their TypeSelectors blocked for the styles:
>  
> backgroundColor
> borderStyle
>  
> borderStyle is blocked because DataGrid/List has a borderStyle and 
if
> you put a container in as your renderer, it would pick up that
> borderStyle by default.
>  
> Similarly, backgroundColor is blocked, but also for another 
reason.  We
> want the renderers to not have a background so the 
selection/highlight
> colors can be drawn behind them and show through.
>  
> We can add this to the doc.

Thanks :-).  It's certainly helpful to have as much information as 
possible.  In my case, I wanted to hide the highlight colors except 
around the edges (past the border of the itemRenderers).  Would it 
make any sense to provide an override to allow people to set a 
property that lets the component use its CSS style?  The fix I found 
is fairly easy, but a property would be even easier ;-).

-Amy



Re: [flexcoders] DataGrid Item Editor Question

2008-06-06 Thread Dan Vega
Alex,
That worked out great! Thanks for the tip..

Dan

On Fri, Jun 6, 2008 at 7:05 PM, Alex Harui <[EMAIL PROTECTED]> wrote:

>Yes, or aggregate.  It is more or less up to you.
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Dan Vega
> *Sent:* Friday, June 06, 2008 2:51 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] DataGrid Item Editor Question
>
>
>
> In the end I want to post the data to a form. I already have a working
> model that uploads file to ColdFusion but I want to be able to pass
> additional data as well. If I understand you correctly I should create a new
> data type that extends FileReference and just add to it what i need?
>
> Dan
>
> On Fri, Jun 6, 2008 at 4:35 PM, Alex Harui <[EMAIL PROTECTED]> wrote:
>
> The answer depends on what you plan to do with the rating?  Are you storing
> the rating somewhere? Sending it to the server?  Normally, you will need to
> keep track of that field somewhere on the client and the best place is in
> your data, so adding a field to FileReference via subclassing or aggregation
> (a new class that contains a FileReference plus a new field) is recommended.
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Dan Vega
> *Sent:* Friday, June 06, 2008 12:27 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] DataGrid Item Editor Question
>
>
>
> I have this data grid that holds a list of files. These files are
> fileReferences that are selected by a user browsing the system. After the
> select a file the data shows the name/ext/size. What I want is a 4th column
> for the user to select a value from the drop down. I get an error with the
> code below because there is no default value. I am not sure how I would go
> about this because the fileReference object does not hold this data so I can
> not give it a dataField. I am sure this is because Im a new, any help is
> appreciated!
>
>
>  dataProvider="{_files}" editable="true">
> 
>  editable="false"/>
>  dataField="extension" editable="false"/>
>  labelFunction="bytesToKilobytes" editable="false"/>
> 
> 
> 
> 
> 
> 1
> 2
> 3
> 4
> 5
> 
> 
> 
> 
> 
> 
> 
>
>
> --
> Thank You
> Dan
>
>
>
>
> --
> Thank You
> Dan Vega
> [EMAIL PROTECTED]
> http://www.danvega.org
>   
>



-- 
Thank You
Dan Vega
[EMAIL PROTECTED]
http://www.danvega.org


[flexcoders] Re: hiding a cell within a datagrid dynamically

2008-06-06 Thread Tim Hoff

Here's another way:


 
 
 
 
 
 
 
 
 

 

 
 
 



This works because the data property in an itemRenderer contains all of
the fields for a row in a dataGrid's dataProvider.

-TH

--- In flexcoders@yahoogroups.com, Manu Dhanda <[EMAIL PROTECTED]>
wrote:
>
>
> Ok, one more idea, but not sure about it's performance.
> Just use a viewstack with your custom itemrenderer and use a text
component
> to implement your blank box logic, keeping the text="".
> Here is my idea:
>
> 
> 
>
> 
>  itemRenderer="..MyCheckBox" />
>
> 
> 
>
> MyCheckBox.mxml:
> 
> http://www.adobe.com/2006/mxml";
> horizontalAlign="center">
>
> 
> 
> 
>
> 
> 
> 
> 
> 
>
> Thanks,
> Manu.
>
>
> anthony_morsey wrote:
> >
> > Thanks, but this technique seems to work for all values in the
column,
> > not just the value in each individual row. It seems that if one of
> > the values for grant_year in a column meets the condition, then all
> > checkboxes are either hidden or visible. I want to do this row by
row
> > and turn visible on or off based on the grant_year value in that
row.
> >
> > Any other ideas?
> >
> > Thanks
> >
> > --- In flexcoders@yahoogroups.com, Manu Dhanda manuraj.dhanda@
wrote:
> >>
> >>
> >> Here it is:
> >> 
> >> 
> >>
> >> 
> >>
> >>  >> itemRenderer="mx.controls.CheckBox"
visible="{!grant_year=='somevalue'
> >> implement ur logic here}"/>
> >>
> >> 
> >>  >>
> >>
> >>
> >> anthony_morsey wrote:
> >> >
> >> > Here is my code:
> >> >
> >> > 
> >> > 
> >> >
> >> > 
> >> >
> >> >  >> > itemRenderer="mx.controls.CheckBox" />
> >> >
> >> > 
> >> >  >> >
> >> >
> >> >
> >> > I want to hide the "cashoutshares" column (or turn off the
> >> > itemrenderer in that column) based on the data value of
"grant_year".
> >> >
> >> > Thanks
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > --- In flexcoders@yahoogroups.com, "jmfillman" 
wrote:
> >> >>
> >> >> Anthony,
> >> >>
> >> >> If you are passing the data from the columns of each row to the
> >> >> itemRenderer, you should be able to set visibility conditions
> > from the
> >> >> itemRenderer.
> >> >>
> >> >> If you post your code, I or someone else here might be able to
> > provide
> >> >> a more specific suggestion.
> >> >>
> >> >> JF
> >> >> --- In flexcoders@yahoogroups.com, "anthony_morsey" 
wrote:
> >> >> >
> >> >> > I have a datagrid with multiple columns and rows. One of the
> > columns
> >> >> > contains a checkbox which is rendered with an itemRenderer.
> > I'd like
> >> >> > to conditionally hide some of these checkboxes based on values
from
> >> >> > other columns with the same row.
> >> >> >
> >> >> > Any ideas?
> >> >> >
> >> >> > Thanks
> >> >> >
> >> >>
> >> >
> >> >
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >
http://www.nabble.com/hiding-a-cell-within-a-datagrid-dynamically-tp1767\
3007p17688100.html
> >> Sent from the FlexCoders mailing list archive at Nabble.com.
> >>
> >
> >
> >
> >
>
> --
> View this message in context:
http://www.nabble.com/hiding-a-cell-within-a-datagrid-dynamically-tp1767\
3007p17703698.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
>




[flexcoders] Re: How to change the Width and Height of drawHighlightIndicator function?

2008-06-06 Thread flexawesome

is it possible to retrieve the content information( width, height, x, 
y) inside of renderer?

Cheers

--- In flexcoders@yahoogroups.com, "flexawesome" <[EMAIL PROTECTED]> 
wrote:
>
> pic is the picture in my itemRenderer, here is my itemRenderer for 
> the tilelist, this renderer will be used for other tilelist.
> 
> So, I would like to get the image size dynamically in my customize 
> TileList, uses drawHighlightIndicator function to set the 
> highlighting 5 more pix height and width.
> 
> does this make sence? :)
> 
> 
> == itemRenderer 
> 
> 
> http://www.adobe.com/2006/mxml";>
> 
> 
> 
> 
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "Alex Harui"  wrote:
> >
> > What is pic?
> > 
> >  
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On
> > Behalf Of flexawesome
> > Sent: Friday, June 06, 2008 9:48 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] How to change the Width and Height of
> > drawHighlightIndicator function?
> > 
> >  
> > 
> > Hey, I was working on the customize renderer for the TileList. I 
> would 
> > like override the drawHighlightIndicator function to change the 
> size of 
> > highlighting.
> > 
> > For example: my pic size was 40x60 and the renderer size was 
50x80, 
> I 
> > was going to change the highlighting size to 45 x 65 ( adding 
5pix 
> for 
> > Height and Width ). 
> > 
> > Do you know how to get the pic size? if so I could change the 
width 
> and 
> > height in the following code.
> > 
> > http://www.privatepaste.com/1cqtF1O6bW
> >  
> > 
> > Thank you
> >
>




RE: [flexcoders] Crossdomain Policy Problems

2008-06-06 Thread Tracy Spratt
I think you will need that new thingy, hold on...yeah,



And maybe:



 

I'm clucking fooless about what they mean, and you probably don't want
so many "*" in a production environment, so you might want to see the
FlashPlayer security whitepapers.

 

Also, the crossdomain file goes on the server that is serving the *data*
or other asset, not on the one that is serving the application swf.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Erin
Sent: Friday, June 06, 2008 1:10 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Crossdomain Policy Problems

 

Hello,

Per updating to the new flash player; my server admin and I have been
having a heck of a time trying to get the new crossdomain policy
working. Right now we don't need any security on the policy, since
it's being called from two internal domains. The file itself is
residing in the root web directory of the flash files, and it is
trying to access a web service under a different domain. Prior to the
new crossdomain update, the policy was working fine, so I do not
believe it is the location of the file itself.

We are trying to use just a generic policy:

http://www.adobe.com/xml/dtds/cross-domain-policy.dtd
 ">






Any ideas what could be causing problems?

Thanks :)

 



RE: [flexcoders] webservice e4x-result can not be filtered??

2008-06-06 Thread Tracy Spratt
I always advise working up complex expressions slowly, tracing
toXMLString() at each step to be sure you are still going correctly.

 

private function photoDataHandler(event:ResultEvent):void{
  var xmlResult:XML =XML(event.result)

  trace(xmlResult.toXMLString());

  var xlTemp:XMLList = xmlResult.getBronnenResult;

  trace(xlTemp.toXMLString());   //if this doesn't work you probably
have a namespace issue

 //then continue building the expression checking as you go.
}

 

In fact, I suspect you have a namespace issue.  It looks like your xml
has a default namespace:

xmlns="http://tempuri.org/  "

 

I suspect you need to declare this.  I always forget the exact syntax.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Douglas Knudsen
Sent: Friday, June 06, 2008 8:31 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] webservice e4x-result can not be filtered??

 

why?  use e4x, eh?
have a look at http://livedocs.adobe.com/flex/3/langref/XML.html
 
there are examples at this URL of searching/matching using e4x

DK

On Fri, Jun 6, 2008 at 3:57 PM, mariovandeneynde
<[EMAIL PROTECTED]  > wrote:

Greetings!

I have the following situation:

[Application]

http://www.adobe.com/2006/mxml
 " 
layout="absolute" creationComplete="this.croplifedata.getBronnen.send
()">



http://xxx.xxx.xxx.xx/getData.asmx?
 
wsdl" id="croplifedata" useProxy="false" showBusyCursor="false">



{this.sKeyWord}

{this.sMediaTypes}

{this.sMediaSubTypes}
en
1




[/Application]

this gives me the following xml:

http://tempuri.org/  " 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/
 " 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
 " 
xmlns:xsd="http://www.w3.org/2001/XMLSchema
 ">


81
260
Plant grown from cell culture tissue in test tube
100121
180
134


83
260
Scientist observing test plants
100123
180
180




Now, my question:

How can I convert this result to a xml/xmllist/...on wich I can 
filter?

for example getBronnenResult.Bronnen.(child(id).toString() == '83');

I just can't get this to work...

thanks you for the ones who can help!




-- 
Douglas Knudsen
http://www.cubicleman.com  
this is my signature, like it? 

 



[flexcoders] Call component for String name

2008-06-06 Thread Fernando Lobos
hi, i try to call a component titlewindows with you name but in string


example



var object1:Object

Object.name = "frm_titlewindows_sales"

puWin = PopUpManager.createPopUp(this, Object, true);


Re: [flexcoders] webservice e4x-result can not be filtered??

2008-06-06 Thread Douglas Knudsen
why?  use e4x, eh?
have a look at http://livedocs.adobe.com/flex/3/langref/XML.html
there are examples at this URL of searching/matching using e4x

DK

On Fri, Jun 6, 2008 at 3:57 PM, mariovandeneynde <[EMAIL PROTECTED]>
wrote:

>   Greetings!
>
> I have the following situation:
>
> [Application]
> 
> http://www.adobe.com/2006/mxml";
> layout="absolute" creationComplete="this.croplifedata.getBronnen.send
> ()">
> 
> 
> 
> http://xxx.xxx.xxx.xx/getData.asmx?
> wsdl" id="croplifedata" useProxy="false" showBusyCursor="false">
>  result="photoDataHandler(event);">
> 
> 
> {this.sKeyWord}
> 
> {this.sMediaTypes}
> 
> {this.sMediaSubTypes}
> en
> 1
> 
> 
> 
> 
> [/Application]
>
> this gives me the following xml:
>
> http://tempuri.org/";
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
> 
> 
> 81
> 260
> Plant grown from cell culture tissue in test tube
> 100121
> 180
> 134
> 
> 
> 83
> 260
> Scientist observing test plants
> 100123
> 180
> 180
> 
> 
> 
>
> Now, my question:
>
> How can I convert this result to a xml/xmllist/...on wich I can
> filter?
>
> for example getBronnenResult.Bronnen.(child(id).toString() == '83');
>
> I just can't get this to work...
>
> thanks you for the ones who can help!
>
>  
>



-- 
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


Re: [flexcoders] hiding a cell within a datagrid dynamically

2008-06-06 Thread Manu Dhanda

Ok, one more idea, but not sure about it's performance.
Just use a viewstack with your custom itemrenderer and use a text component
to implement your blank box logic, keeping the text="".
Here is my idea:

 
   
 
 
 
 
   
 

MyCheckBox.mxml:

http://www.adobe.com/2006/mxml"; 
horizontalAlign="center">











Thanks,
Manu.


anthony_morsey wrote:
> 
> Thanks, but this technique seems to work for all values in the column,
> not just the value in each individual row.  It seems that if one of
> the values for grant_year in a column meets the condition, then all
> checkboxes are either hidden or visible. I want to do this row by row
> and turn visible on or off based on the grant_year value in that row.
> 
> Any other ideas?
> 
> Thanks
> 
> --- In flexcoders@yahoogroups.com, Manu Dhanda <[EMAIL PROTECTED]> wrote:
>>
>> 
>> Here it is:
>> 
>>   
>> 
>> 
>> 
>> > itemRenderer="mx.controls.CheckBox"  visible="{!grant_year=='somevalue'
>> implement ur logic here}"/>
>> 
>>   
>> > 
>> 
>> 
>> anthony_morsey wrote:
>> > 
>> > Here is my code:
>> > 
>> > 
>> >   
>> > 
>> > 
>> > 
>> > > > itemRenderer="mx.controls.CheckBox" />
>> > 
>> >   
>> > > > 
>> > 
>> > 
>> > I want to hide the "cashoutshares" column (or turn off the
>> > itemrenderer in that column)  based on the data value of "grant_year".
>> > 
>> > Thanks
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > --- In flexcoders@yahoogroups.com, "jmfillman"  wrote:
>> >>
>> >> Anthony,
>> >> 
>> >> If you are passing the data from the columns of each row to the 
>> >> itemRenderer, you should be able to set visibility conditions
> from the 
>> >> itemRenderer.
>> >> 
>> >> If you post your code, I or someone else here might be able to
> provide 
>> >> a more specific suggestion.
>> >> 
>> >> JF
>> >> --- In flexcoders@yahoogroups.com, "anthony_morsey"  wrote:
>> >> >
>> >> > I have a datagrid with multiple columns and rows.  One of the
> columns
>> >> > contains a checkbox which is rendered with an itemRenderer. 
> I'd like
>> >> > to conditionally hide some of these checkboxes based on values from
>> >> > other columns with the same row.
>> >> > 
>> >> > Any ideas?
>> >> > 
>> >> > Thanks
>> >> >
>> >>
>> > 
>> > 
>> > 
>> > 
>> 
>> -- 
>> View this message in context:
> http://www.nabble.com/hiding-a-cell-within-a-datagrid-dynamically-tp17673007p17688100.html
>> Sent from the FlexCoders mailing list archive at Nabble.com.
>>
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/hiding-a-cell-within-a-datagrid-dynamically-tp17673007p17703698.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] Re: Unable to Display Hindi

2008-06-06 Thread Paul Hastings
tanarijay wrote:
> I embedded the "Microsoft San Serif (True Type)" font in to my app &
> changed my controls to use it using the "font family" attribute. The
> font did change when I ran the app, but Hindi glyphs still showed up
> as squares. English & French still display correctly.

it might help if you chose a font that contained your glyphs. what writing 
script does "hindi" use? devanagari?

as a general rule, boxes means chars can't be rendered using the given font 
(though i just found out buzzword uses "..." instead, what a wacky idea), 
question marks means your data is completely garbaged by encoding error(s).



Re: [flexcoders] know if .browse() was executed or not

2008-06-06 Thread Alberto Brealey-Guzmán
On Fri, Jun 6, 2008 at 2:26 AM, David Pariente <[EMAIL PROTECTED]> wrote:
> i tried this, but crashes when file is not selected:
>
> if (myFileReference.name.length>0) { myFileReference.upload() }

It raises a runtime error because if you haven't selected a file
fileReference.name is null. you should check for this condition:

if (myFileReference.name && myFileReference.name.length > 0)
myFileReference.upload();


hope this helps,

-- 
Alberto Brealey-Guzmán


[flexcoders] Loading arial.ttf style at run time

2008-06-06 Thread pratikshah83
Hi , 

I would like to know what would be the best way to include the
arial.ttf font at runtime. As currently its embedded which increases
the swf size by 100Kb. 

I have found out a way but would like to know if there is any other
better way of doing it, or this one is appropriate.

http://blog.flexmonkeypatches.com/2007/02/23/using-runtime-css-to-change-embedded-true-type-fonts-at-runtime-in-flex-applications/

Thanks 
Pratik




[flexcoders] webservice e4x-result can not be filtered??

2008-06-06 Thread mariovandeneynde
Greetings!

I have the following situation:

[Application]

http://www.adobe.com/2006/mxml"; 
layout="absolute" creationComplete="this.croplifedata.getBronnen.send
()">



http://xxx.xxx.xxx.xx/getData.asmx?
wsdl" id="croplifedata" useProxy="false" showBusyCursor="false">



{this.sKeyWord}

{this.sMediaTypes}

{this.sMediaSubTypes}
en
1




[/Application]

this gives me the following xml:

http://tempuri.org/"; 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
  

  81
  260
  Plant grown from cell culture tissue in test tube
  100121
  180
  134


  83
  260
  Scientist observing test plants
  100123
  180
  180

  



Now, my question:

How can I convert this result to a xml/xmllist/...on wich I can 
filter?

for example getBronnenResult.Bronnen.(child(id).toString() == '83');

I just can't get this to work...

thanks you for the ones who can help!



[flexcoders] Flex Unload SWFLoader issues

2008-06-06 Thread Ben Reed
Hi guys,

I have just today signed up with this mailing list after stumbling across an 
issue I cannot resolve! Seems to be a flaw with the SWFLoader in Flex 3. 
Basically my problem is this, I have to create a youtube player for a client 
and am using the wrapper classes from martin legris to aid me. All is working 
ok, I have a datagrid being populated by an array, and when a video is 
selected, the SWFLoader loads it into place as it should. The problem comes 
when selecting another video from the list, several things happen (or dont!), 
the loaded Youtube player disappears as if another one will be loaded into its 
place (the desired effect) but nothing is loaded, also the sound from the 
original swf is still audible.

Any suggestions or modifications to the code below would be most welcome. I 
have read that possibly using Loader as oppose to SWFLoader could be the way to 
go, or maybe Module Loader? I am ver new to flex but not to actionscript and I 
seem to recall a similar problem once before but I am damned if I can remember 
how (or if) i resolved it.

Anyway, I hope this hasn't been answered ages ago and if it has please accept 
my apologies. I hope I can be of some use to some of you in future postings! 

Cheers
 
Ben Reed


  



[flexcoders] Re: How can i customize grouping row renderer in AdvancedDataGrid ?

2008-06-06 Thread gregolux
Brilliant!  But I had to specify a depth so that the renderer only affects the 
group items but not 
the leaf nodes:


 


I can't imagine using grouping in an ADG any other way-- this method saves 
space by not 
having to dedicate a column to the group label.  You still might want a 
grouplabel column to 
shift the leaf nodes over to the right a bit for elegance, but it can be much 
narrower than would 
be required to accommodate the groupLabel text.

--- In flexcoders@yahoogroups.com, "sreeni_r" <[EMAIL PROTECTED]> wrote:
>
> 
> This should be possible by using
> 
> 
>columnSpan="0"
> renderer="AdvancedDataGridGroupItemRenderer" />
> 
> 
> -Sreenivas
> 
> --- In flexcoders@yahoogroups.com, "adisak_impol"  
> wrote:
> >
> > Hi guys,
> > 
> > Is is possible to customize the way grouping rows are rendered. 
> Specifically, colspan to all 
> > columns such the way OSX spotlight results did. I saw in examples 
> that customizing renderer 
> > is possible with RendererProvider. But is it work with grouping row 
> too ? If not, is there any 
> > work around to make it possible ?
> > 
> > Thanks
> >
>



[flexcoders] Crossdomain Policy Problems

2008-06-06 Thread Erin
Hello,

Per updating to the new flash player; my server admin and I have been
having a heck of a time trying to get the new crossdomain policy
working.  Right now we don't need any security on the policy, since
it's being called from two internal domains.  The file itself is
residing in the root web directory of the flash files, and it is
trying to access a web service under a different domain.  Prior to the
new crossdomain update, the policy was working fine, so I do not
believe it is the location of the file itself.

We are trying to use just a generic policy:

http://www.adobe.com/xml/dtds/cross-domain-policy.dtd";>


   
   


Any ideas what could be causing problems?


Thanks :)




[flexcoders] Crossdomain Policy Problems

2008-06-06 Thread Erin Wentworth
Hiyas,

 

Per updating to the new flash player; my server admin and I have been
having a heck of a time trying to get the new crossdomain policy
working.  Right now we don't need any security on the policy, since it's
being called from two internal domains.  The file itself is residing in
the root web directory of the flash files, and it is trying to access a
web service under a different domain.  Prior to the new crossdomain
update, the policy was working fine, so I do not believe it is the
location of the file itself.

 

We are trying to use just a generic policy:



http://www.adobe.com/xml/dtds/cross-domain-policy.dtd";>

 









 

Any ideas what could be causing problems?



RE: [flexcoders] DataGrid Item Editor Question

2008-06-06 Thread Alex Harui
Yes, or aggregate.  It is more or less up to you.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dan Vega
Sent: Friday, June 06, 2008 2:51 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] DataGrid Item Editor Question

 

In the end I want to post the data to a form. I already have a working
model that uploads file to ColdFusion but I want to be able to pass
additional data as well. If I understand you correctly I should create a
new data type that extends FileReference and just add to it what i need?


Dan

On Fri, Jun 6, 2008 at 4:35 PM, Alex Harui <[EMAIL PROTECTED]
 > wrote:

The answer depends on what you plan to do with the rating?  Are you
storing the rating somewhere? Sending it to the server?  Normally, you
will need to keep track of that field somewhere on the client and the
best place is in your data, so adding a field to FileReference via
subclassing or aggregation (a new class that contains a FileReference
plus a new field) is recommended.

 



From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com  ]
On Behalf Of Dan Vega
Sent: Friday, June 06, 2008 12:27 PM
To: flexcoders@yahoogroups.com  
Subject: [flexcoders] DataGrid Item Editor Question

 

I have this data grid that holds a list of files. These files are
fileReferences that are selected by a user browsing the system. After
the select a file the data shows the name/ext/size. What I want is a 4th
column for the user to select a value from the drop down. I get an error
with the code below because there is no default value. I am not sure how
I would go about this because the fileReference object does not hold
this data so I can not give it a dataField. I am sure this is because Im
a new, any help is appreciated! 












1
2
3
4
5









-- 
Thank You
Dan 




-- 
Thank You
Dan Vega
[EMAIL PROTECTED]  
http://www.danvega.org   

 



[flexcoders] Flex 2 Development on Flex 3

2008-06-06 Thread Varun Shetty
Hi,

I want to use some flex 3 builder IDE features and my current project is
developed in Flex 2.

Can I port my application (Without any changes) and use Flex 3 IDE.

I believe I will have to use backward compatibility flags to do this.
http://learn.adobe.com/wiki/display/Flex/Backwards+Compatibility+Issues

has anyone played with this and found any issues.

Flex 3 IDE features that I want to use are.
- Refactoring
- memory and performance profilers

My application is using a lot of RAM, any best practices document that I can
use, will be really helpful.
Also, is there a way we can check for available ram in flash or javascript
and redirect users to appropriate (html) version of the application.

thank you
Varun Shetty


Re: [flexcoders] DataGrid Item Editor Question

2008-06-06 Thread Dan Vega
In the end I want to post the data to a form. I already have a working model
that uploads file to ColdFusion but I want to be able to pass additional
data as well. If I understand you correctly I should create a new data type
that extends FileReference and just add to it what i need?

Dan

On Fri, Jun 6, 2008 at 4:35 PM, Alex Harui <[EMAIL PROTECTED]> wrote:

>The answer depends on what you plan to do with the rating?  Are you
> storing the rating somewhere? Sending it to the server?  Normally, you will
> need to keep track of that field somewhere on the client and the best place
> is in your data, so adding a field to FileReference via subclassing or
> aggregation (a new class that contains a FileReference plus a new field) is
> recommended.
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Dan Vega
> *Sent:* Friday, June 06, 2008 12:27 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] DataGrid Item Editor Question
>
>
>
> I have this data grid that holds a list of files. These files are
> fileReferences that are selected by a user browsing the system. After the
> select a file the data shows the name/ext/size. What I want is a 4th column
> for the user to select a value from the drop down. I get an error with the
> code below because there is no default value. I am not sure how I would go
> about this because the fileReference object does not hold this data so I can
> not give it a dataField. I am sure this is because Im a new, any help is
> appreciated!
>
>
>  dataProvider="{_files}" editable="true">
> 
>  editable="false"/>
>  dataField="extension" editable="false"/>
>  labelFunction="bytesToKilobytes" editable="false"/>
> 
> 
> 
> 
> 
> 1
> 2
> 3
> 4
> 5
> 
> 
> 
> 
> 
> 
> 
>
>
> --
> Thank You
> Dan
>   
>



-- 
Thank You
Dan Vega
[EMAIL PROTECTED]
http://www.danvega.org


Re: [flexcoders] Math.abs() Limitation?

2008-06-06 Thread Daniel Freiman
I figured it out.  The trace made it obvious (as opposed the debugger which
is what I was previously using).  I was using Number.MAX_VALUE, not
int.MAX_VALUE.  Number.MAX_VALUE doesn't have enough precision to handle
what I was trying to do.

Thanks,

- Daniel Freiman

On Fri, Jun 6, 2008 at 2:29 PM, Gordon Smith <[EMAIL PROTECTED]> wrote:

>What do you get when you trace out the following values?
>
>
>
> int.MAX_VALUE - 1290
>
> Math.abs(int.MAX_VALUE - 1290)
>
> int.MAX_VALUE - 1284
>
> Math.abs(int.MAX_VALUE - 1284)
>
>
>
> Gordon Smith
>
> Adobe Flex SDK Team
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Alex Harui
> *Sent:* Friday, June 06, 2008 11:18 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* RE: [flexcoders] Math.abs() Limitation?
>
>
>
> What if you use temporary variables?
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Daniel Freiman
> *Sent:* Friday, June 06, 2008 9:09 AM
> *To:* flexcoders
> *Subject:* [flexcoders] Math.abs() Limitation?
>
>
>
> According to my code the following statement returns true.
>
> Math.abs(int.MAX_VALUE - 1290) == Math.abs(int.MAX_VALUE - 1284)
>
> I tried converting everything to type Number that didn't help.  Getting
> ride of the abs() makes the calculation work correctly but then I don't have
> the absolute value.
>
> Thoughts?
>
> - Daniel Freiman
>
>  
>


RE: [flexcoders] Re: How should we access our Flex apps from the browser?

2008-06-06 Thread Tracy Spratt
Dan, unless you are using the LCDS web tier compiler, or the Apache
equivalent, what you are describing is pretty much impossible.  The
browser cannot interpret mxml.

 

But calling the html wrapper is the normal way to access a flex app
through a browser.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Andrews
Sent: Friday, June 06, 2008 3:05 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: How should we access our Flex apps from
the browser?

 

So, if you provide a url where the file is an .mxml file to the browser,
it 
runs your application - you don't see the source file?

Paul
- Original Message - 
From: "Dan" <[EMAIL PROTECTED]  >
To: mailto:flexcoders%40yahoogroups.com> >
Sent: Friday, June 06, 2008 5:33 PM
Subject: [flexcoders] Re: How should we access our Flex apps from the 
browser?

> Nope, Flex 3.
>
> --- In flexcoders@yahoogroups.com
 , "Paul Andrews" <[EMAIL PROTECTED]> 
wrote:
>>
>> It's not Flex 1.5 is it?
>>
>> Paul
>> - Original Message - 
>> From: "Dan" <[EMAIL PROTECTED]>
>> To: mailto:flexcoders%40yahoogroups.com>
>
>> Sent: Friday, June 06, 2008 3:39 PM
>> Subject: [flexcoders] Re: How should we access our Flex apps from the
>> browser?
>>
>>
>> > Paul,
>> >
>> > Thanks for your reply.
>> >
>> > When I access the .mxml file through my browser, it doesn't serve
up
>> > the source. Instead, it serves up a functioning Flex application.
>> >
>> > Per your advice however, I'll focus on accessing the application
via
>> > it's "HTML wrapper".
>> >
>> > --Dan
>> >
>> > --- In flexcoders@yahoogroups.com
 , "Paul Andrews"  wrote:
>> >>
>> >> The swf file is what is run by the flash player plugin, it's not
>> > usual to
>> >> run this directly in the browser.
>> >> The mxm file is the source used within your application - it won't
be
>> >> usefull to look at this in a browser.
>> >> The html file checks the users environment for the flash player
and
>> > calls
>> >> your .swf file.
>> >>
>> >> html is the way to go.
>> >>
>> >> Paul
>> >> - Original Message - 
>> >> From: "Dan" 
>> >> To: mailto:flexcoders%40yahoogroups.com> >
>> >> Sent: Friday, June 06, 2008 3:01 PM
>> >> Subject: [flexcoders] How should we access our Flex apps from the
>> > browser?
>> >>
>> >>
>> >> > Hello,
>> >> >
>> >> > It's not clear to me how we should access our Flex apps from the
>> >> > browser. It appears that accessing them using .swf, .mxml and
> .html
>> >> > all work but each with slightly different effects.
>> >> >
>> >> > For example, I can access a Flex application "helloWorld" using
the
>> >> > following URLs. They all work (to varying degrees) but which
> one am I
>> >> > actually supposed to use?
>> >> >
>> >> > http://localhost/helloWorld.swf
 
>> >> > http://localhost/helloWorld.mxml
 
>> >> > http://localhost/helloWorld.html
 
>> >> >
>> >> > --Dan
>> >> >
>> >> >
>> >> > 
>> >> >
>> >> > --
>> >> > Flexcoders Mailing List
>> >> > FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 
>> >> > Search Archives:
>> >> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo
 !
> Groups
>> >> > Links
>> >> >
>> >> >
>> >> >
>> >> >
>> >>
>> >
>> >
>> >
>> > 
>> >
>> > --
>> > Flexcoders Mailing List
>> > FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 
>> > Search Archives:
>> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo
 ! Groups
>> > Links
>> >
>> >
>> >
>> >
>>
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo
 ! Groups

> Links
>
>
>
> 

 



RE: [flexcoders] DataGrid Item Editor Question

2008-06-06 Thread Alex Harui
The answer depends on what you plan to do with the rating?  Are you
storing the rating somewhere? Sending it to the server?  Normally, you
will need to keep track of that field somewhere on the client and the
best place is in your data, so adding a field to FileReference via
subclassing or aggregation (a new class that contains a FileReference
plus a new field) is recommended.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dan Vega
Sent: Friday, June 06, 2008 12:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DataGrid Item Editor Question

 

I have this data grid that holds a list of files. These files are
fileReferences that are selected by a user browsing the system. After
the select a file the data shows the name/ext/size. What I want is a 4th
column for the user to select a value from the drop down. I get an error
with the code below because there is no default value. I am not sure how
I would go about this because the fileReference object does not hold
this data so I can not give it a dataField. I am sure this is because Im
a new, any help is appreciated! 












1
2
3
4
5









-- 
Thank You
Dan 

 



[flexcoders] Re: setting fillcolor with actionscript and stylename

2008-06-06 Thread Tim Hoff

Hi,

fillColors is not a supported property (style) for a Panel.  Unless you
draw your own gradiant background with a programatic skin (borderSkin)
or use a background image, you're going to be stuck with a solid
backgroundColor on a container; except the Application tag.

-TH

--- In flexcoders@yahoogroups.com, "netdeep" <[EMAIL PROTECTED]> wrote:
>
> I have a panel component:
>
> 
> 
> .gradientBgrd {
> borderStyle: applicationControlBar;
> }
> 
>
> And I want to update the fillColors in actionscript:
>
> panel.setStyle("fillColors", [0xFF, 0x00]);
>
> but this doesn't work. What is the proper syntax?
>
> Thanks.
>





[flexcoders] setting fillcolor with actionscript and stylename

2008-06-06 Thread netdeep
I have a panel component:



.gradientBgrd { 
borderStyle: applicationControlBar; 
}   


And I want to update the fillColors in actionscript:

panel.setStyle("fillColors", [0xFF, 0x00]);

but this doesn't work.  What is the proper syntax?

Thanks.





[flexcoders] Re: adding images to a panel

2008-06-06 Thread sudha_bsb
Thanks a lot Tim

Sudha.

--- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
> 
> Sorry Sudha,
> 
> I've never done this, but you can also set layout="absolute" on a Panel.
> oops.
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com, "Tim Hoff"  wrote:
> >
> >
> > Hi Sudha,
> >
> > A Panel container uses relative positioning. For absolute positioning,
> > use a Canvas.
> >
> > -TH
> >
> > --- In flexcoders@yahoogroups.com, "sudha_bsb" sudha_bsb@ wrote:
> > >
> > > Hi,
> > >
> > > I have a long horizontal panel. I want to add images to it at a
> > > particular position for each image.
> > >
> > > Say I have a panel of width 250 and height 50, with x as 0 and y as
> 0
> > >
> > > I want to add images at (0,0) (50,0), (150,0), (200,0)
> > >
> > > Setting the x and y for images is not helping.
> > >
> > > for(var i:int =0;i > > {
> > > var img:Image = new Image();
> > > img.source = "img/separator_vert.png";
> > > img.x = i*50;
> > > img.y = 0; panel.addChild(img);
> > > }
> > >
> > > please help...am I missing something or do I need to use some other
> > > container for this...
> > >
> > > Thanks,
> > > Sudha.
> > >
> >
>




Re: [flexcoders] Re: #2038: File I/O Error only in firefox

2008-06-06 Thread Dennis Falling
I finally got around to implementing the fix and am having issues on the
server... It basically is thinking that the ;jsessionid... is part of the
command name being called:
UnsupportedCommandException: cmd
'uploadfile;jsessionid=4913B7A92119CA91D683D8F884829475' is not supported.
Anyone know a fix for this, or a forum that would be more appropriate to
ask, as this is more of a Tomcat/jboss question?

Thanks.



On Thu, Jun 5, 2008 at 5:27 PM, Dennis Falling <[EMAIL PROTECTED]> wrote:

> Thanks for the reply...  That information was exactly what I needed.  I'm
> actually really surprised that I hadn't run across any of it- I've spent
> several hours googling trying to find a solution.  Thanks a lot!
>
> -dennis
>
>
> On Thu, Jun 5, 2008 at 12:12 PM, Jon Bradley <[EMAIL PROTECTED]>
> wrote:
>
>>   I'm guessing it's because the session is not retained when performing a
>> file upload to the server - a new session id is created for each
>> FileReference upload attempt.
>>
>> This is a known issue with various workarounds.
>> Modify your server code to ignore any session or login details to be sure
>> this is the problem you are seeing. If it works when you remove any
>> requirement for authentication or any check of the session info, then you're
>> one step closer to fixing the issue.
>>
>> You will then need to:
>>
>> 1. Store the session number in Flex and send it back. On the server you
>> validate against the sent session (a new one will still be created), then
>> send back the new session details.
>>
>> or...
>>
>> 2. Ignore a requirement on the session when doing the actual upload. Find
>> another way of verifying the user is logged in.
>>
>> http://bugs.adobe.com/jira/browse/SDK-12851
>> http://bugs.adobe.com/jira/browse/FP-78
>> http://thanksmister.com/?p=59
>> http://www.mail-archive.com/flexcoders@yahoogroups.com/msg58372.html
>>
>>
>> good luck,
>>
>> jon
>>
>>
>> On Jun 5, 2008, at 12:58 PM, Dennis Falling wrote:
>>
>>  I have this problem for standard uploads too, not just SSL...  Again, it
>> works fine in IE, so I know that the address and file are valid.  Any ideas?
>>
>> On Wed, Jun 4, 2008 at 1:48 PM, Dennis Falling <[EMAIL PROTECTED]>
>> wrote:
>>
>>> I searched the web and the group and found a thread going about this
>>> without a resolution (started with msg. 88102).  Does anyone know a way
>>> around this?  I need to allow the user to upload files over SSL, which works
>>> fine from IE but explodes in Firefox.
>>>
>>> Code:
>>> var url:String =
>>> Services.getCommandServiceURL(FileDelegate.UPLOAD_FILE_COMMAND);
>>> var request:URLRequest = new URLRequest(url);
>>> request.method = URLRequestMethod.POST;
>>> _file.upload(request,"fileData",false);
>>>
>>> When run in Firefox, I get a flash exception:
>>> Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O Error.
>>>
>>> Watching it in Wireshark I see the initial post, then a number of
>>> subsequent lines "Continuation or non-HTTP traffic".
>>>
>>> Thanks!
>>
>>
>>  
>>
>
>


[flexcoders] DataGrid Item Editor Question

2008-06-06 Thread Dan Vega
I have this data grid that holds a list of files. These files are
fileReferences that are selected by a user browsing the system. After the
select a file the data shows the name/ext/size. What I want is a 4th column
for the user to select a value from the drop down. I get an error with the
code below because there is no default value. I am not sure how I would go
about this because the fileReference object does not hold this data so I can
not give it a dataField. I am sure this is because Im a new, any help is
appreciated!












1
2
3
4
5









-- 
Thank You
Dan


[flexcoders] Re: adding images to a panel

2008-06-06 Thread Tim Hoff

Sorry Sudha,

I've never done this, but you can also set layout="absolute" on a Panel.
oops.

-TH

--- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
>
> Hi Sudha,
>
> A Panel container uses relative positioning. For absolute positioning,
> use a Canvas.
>
> -TH
>
> --- In flexcoders@yahoogroups.com, "sudha_bsb" sudha_bsb@ wrote:
> >
> > Hi,
> >
> > I have a long horizontal panel. I want to add images to it at a
> > particular position for each image.
> >
> > Say I have a panel of width 250 and height 50, with x as 0 and y as
0
> >
> > I want to add images at (0,0) (50,0), (150,0), (200,0)
> >
> > Setting the x and y for images is not helping.
> >
> > for(var i:int =0;i > {
> > var img:Image = new Image();
> > img.source = "img/separator_vert.png";
> > img.x = i*50;
> > img.y = 0; panel.addChild(img);
> > }
> >
> > please help...am I missing something or do I need to use some other
> > container for this...
> >
> > Thanks,
> > Sudha.
> >
>




RE: RES: [flexcoders] Using CSS with custom item renderers

2008-06-06 Thread Stephen Gilson
One more note on this one:
 
Renderers have their TypeSelectors blocked for the styles:
 
backgroundColor
borderStyle
 
borderStyle is blocked because DataGrid/List has a borderStyle and if
you put a container in as your renderer, it would pick up that
borderStyle by default.
 
Similarly, backgroundColor is blocked, but also for another reason.  We
want the renderers to not have a background so the selection/highlight
colors can be drawn behind them and show through.
 
We can add this to the doc.
 
Stephen
 




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Michael Schmalle
Sent: Tuesday, June 03, 2008 12:43 PM
To: flexcoders@yahoogroups.com
Subject: Re: RES: [flexcoders] Using CSS with custom item renderers



Simply put, the IDataRenderer interface.

ItemRenderers are supposed to be encapsulated, if Adobe used anything
other than the styleName of the renderer's parent, they would be
breaking this encapsulation rule.

You could try un setting the styleName in commit properties and then try
your TypeSelector again. If that dosn't work, override
updateDisplayList() and unset it after super().

Mike


On Tue, Jun 3, 2008 at 11:48 AM, Amy <[EMAIL PROTECTED]
 > wrote:




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

> The solution
> 
> 
>  xmlns:mx="http://www.adobe.com/2006/mxml
 "
> width="200" height="50">
> 
> 
> 
> 
> 
> 
> 
> 


I meant a CSS solution. I could possibly create a classFactory
and 
pass in the styleName in that, but that's not nearly as clean as
just 
using the TypeSelector. I could also pass in a reference to the 
Application and/or its styles and have the component look at
that to 
see if there is a style that matches the ClassName, but that's
sort 
of icky too.

Why is the List component set up to break this?

Thanks;

Amy







-- 
Teoti Graphix, LLC
http://www.teotigraphix.com  

Teoti Graphix Blog
http://www.blog.teotigraphix.com  

You can find more by solving the problem then by 'asking the question'. 

 


[flexcoders] Re: adding images to a panel

2008-06-06 Thread Tim Hoff

Hi Sudha,

A Panel container uses relative positioning.  For absolute positioning,
use a Canvas.

-TH

--- In flexcoders@yahoogroups.com, "sudha_bsb" <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I have a long horizontal panel. I want to add images to it at a
> particular position for each image.
>
> Say I have a panel of width 250 and height 50, with x as 0 and y as 0
>
> I want to add images at (0,0) (50,0), (150,0), (200,0)
>
> Setting the x and y for images is not helping.
>
> for(var i:int =0;i {
> var img:Image = new Image();
> img.source = "img/separator_vert.png";
> img.x = i*50;
> img.y = 0; panel.addChild(img);
> }
>
> please help...am I missing something or do I need to use some other
> container for this...
>
> Thanks,
> Sudha.
>





Re: [flexcoders] Re: How should we access our Flex apps from the browser?

2008-06-06 Thread Paul Andrews
So, if you provide a url where the file is an .mxml file to the browser, it 
runs your application - you don't see the source file?

Paul
- Original Message - 
From: "Dan" <[EMAIL PROTECTED]>
To: 
Sent: Friday, June 06, 2008 5:33 PM
Subject: [flexcoders] Re: How should we access our Flex apps from the 
browser?


> Nope, Flex 3.
>
> --- In flexcoders@yahoogroups.com, "Paul Andrews" <[EMAIL PROTECTED]> wrote:
>>
>> It's not Flex 1.5 is it?
>>
>> Paul
>> - Original Message - 
>> From: "Dan" <[EMAIL PROTECTED]>
>> To: 
>> Sent: Friday, June 06, 2008 3:39 PM
>> Subject: [flexcoders] Re: How should we access our Flex apps from the
>> browser?
>>
>>
>> > Paul,
>> >
>> > Thanks for your reply.
>> >
>> > When I access the .mxml file through my browser, it doesn't serve up
>> > the source.  Instead, it serves up a functioning Flex application.
>> >
>> > Per your advice however, I'll focus on accessing the application via
>> > it's "HTML wrapper".
>> >
>> > --Dan
>> >
>> > --- In flexcoders@yahoogroups.com, "Paul Andrews"  wrote:
>> >>
>> >> The swf file is what is run by the flash player plugin, it's not
>> > usual to
>> >> run this directly in the browser.
>> >> The mxm file is the source used within your application - it won't be
>> >> usefull to look at this in a browser.
>> >> The html file checks the users environment for the flash player and
>> > calls
>> >> your .swf file.
>> >>
>> >> html is the way to go.
>> >>
>> >> Paul
>> >> - Original Message - 
>> >> From: "Dan" 
>> >> To: 
>> >> Sent: Friday, June 06, 2008 3:01 PM
>> >> Subject: [flexcoders] How should we access our Flex apps from the
>> > browser?
>> >>
>> >>
>> >> > Hello,
>> >> >
>> >> > It's not clear to me how we should access our Flex apps from the
>> >> > browser.  It appears that accessing them using .swf, .mxml and
> .html
>> >> > all work but each with slightly different effects.
>> >> >
>> >> > For example, I can access a Flex application "helloWorld" using the
>> >> > following URLs.  They all work (to varying degrees) but which
> one am I
>> >> > actually supposed to use?
>> >> >
>> >> > http://localhost/helloWorld.swf
>> >> > http://localhost/helloWorld.mxml
>> >> > http://localhost/helloWorld.html
>> >> >
>> >> > --Dan
>> >> >
>> >> >
>> >> > 
>> >> >
>> >> > --
>> >> > Flexcoders Mailing List
>> >> > FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>> >> > Search Archives:
>> >> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
> Groups
>> >> > Links
>> >> >
>> >> >
>> >> >
>> >> >
>> >>
>> >
>> >
>> >
>> > 
>> >
>> > --
>> > Flexcoders Mailing List
>> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>> > Search Archives:
>> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
>> > Links
>> >
>> >
>> >
>> >
>>
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups 
> Links
>
>
>
> 



[flexcoders] adding images to a panel

2008-06-06 Thread sudha_bsb
Hi,

I have a long horizontal panel. I want to add images to it at a
particular position for each image.

Say I have a panel of width 250 and height 50, with x as 0 and y as 0

I want to add images at (0,0) (50,0), (150,0), (200,0)

Setting the x and y for images is not helping.

for(var i:int =0;i

[flexcoders] Re: Object name from a mouse click

2008-06-06 Thread markgoldin_2000
objDG = new myDG();
I want to know objDG. I have a number of GDs based on the same class. 
Based on objDG I need to run different parts of my code.


--- In flexcoders@yahoogroups.com, "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> What do you mean by "the actual object name"? The 'id' that you
> specified in MXML?
> 
>  
> 
> And what object are you talking about? A component inside your item
> renderer?
> 
>  
> 
> Gordon Smith
> 
> Adobe Flex SDK Team
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of markgoldin_2000
> Sent: Friday, June 06, 2008 7:12 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Object name from a mouse click
> 
>  
> 
> I am overriding mouseDoubleClickHandler event for a custom dataGrid.
> How can I get the actual object name (not a class name) when I 
dblclick?
> 
> Thanks
>




[flexcoders] Re: How to change the Width and Height of drawHighlightIndicator function?

2008-06-06 Thread flexawesome
pic is the picture in my itemRenderer, here is my itemRenderer for 
the tilelist, this renderer will be used for other tilelist.

So, I would like to get the image size dynamically in my customize 
TileList, uses drawHighlightIndicator function to set the 
highlighting 5 more pix height and width.

does this make sence? :)


== itemRenderer 


http://www.adobe.com/2006/mxml";>








--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> What is pic?
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of flexawesome
> Sent: Friday, June 06, 2008 9:48 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] How to change the Width and Height of
> drawHighlightIndicator function?
> 
>  
> 
> Hey, I was working on the customize renderer for the TileList. I 
would 
> like override the drawHighlightIndicator function to change the 
size of 
> highlighting.
> 
> For example: my pic size was 40x60 and the renderer size was 50x80, 
I 
> was going to change the highlighting size to 45 x 65 ( adding 5pix 
for 
> Height and Width ). 
> 
> Do you know how to get the pic size? if so I could change the width 
and 
> height in the following code.
> 
> http://www.privatepaste.com/1cqtF1O6bW
>  
> 
> Thank you
>




RE: [flexcoders] Math.abs() Limitation?

2008-06-06 Thread Gordon Smith
What do you get when you trace out the folllowing values?

 

int.MAX_VALUE - 1290

Math.abs(int.MAX_VALUE - 1290)

int.MAX_VALUE - 1284

Math.abs(int.MAX_VALUE - 1284)

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Friday, June 06, 2008 11:18 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Math.abs() Limitation?

 

What if you use temporary variables?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Daniel Freiman
Sent: Friday, June 06, 2008 9:09 AM
To: flexcoders
Subject: [flexcoders] Math.abs() Limitation?

 

According to my code the following statement returns true.

Math.abs(int.MAX_VALUE - 1290) == Math.abs(int.MAX_VALUE - 1284)

I tried converting everything to type Number that didn't help.  Getting
ride of the abs() makes the calculation work correctly but then I don't
have the absolute value.

Thoughts?

- Daniel Freiman

 



RE: [flexcoders] Object name from a mouse click

2008-06-06 Thread Gordon Smith
What do you mean by "the actual object name"? The 'id' that you
specified in MXML?

 

And what object are you talking about? A component inside your item
renderer?

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markgoldin_2000
Sent: Friday, June 06, 2008 7:12 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Object name from a mouse click

 

I am overriding mouseDoubleClickHandler event for a custom dataGrid.
How can I get the actual object name (not a class name) when I dblclick?

Thanks

 



RE: [flexcoders] Re: VerifyError: Error #1063: Argument count mismatch on ... ResourceBundle().

2008-06-06 Thread Gordon Smith
Where are your resources coming from? Are you compiling them from
.properties files? Or linking against resource bundle SWCs? Where did
the SWCs come from? Were they compiled with Flex 2?

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dan
Sent: Friday, June 06, 2008 6:34 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: VerifyError: Error #1063: Argument count
mismatch on ... ResourceBundle().

 

Gordon,

Thanks for your reply.

Could you please help me understand how this might be happening? Are
there for instance some settings within Eclipse/Flexbuilder that I
could verify?

--Dan

--- In flexcoders@yahoogroups.com 
, "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> The constructor for the ResourceBundle class had no arguments in Flex
2
> but two optional arguments were added in Flex 3. So it sounds like you
> are somehow mixing Flex 2 and Flex 3 code.
> 
> 
> 
> Gordon Smith
> 
> Adobe Flex SDK Team
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of Dan
> Sent: Thursday, June 05, 2008 8:14 AM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] VerifyError: Error #1063: Argument count
mismatch
> on ... ResourceBundle().
> 
> 
> 
> Hello,
> 
> I'm wondering if someone can please help me. I'm quite new to Flex
> development. I am working on a Flex 3 project and am getting the
> following error when trying to load modules using . 
> I've been hitting my head against the wall on this issue for several
> hours now.
> 
> Thanks,
> Dan
> 
> VerifyError: Error #1063: Argument count mismatch on
> mx.resources::ResourceBundle(). Expected 0, got 2.
> 
> at en_US$collections_properties()
> at
>
mx.resources::ResourceManagerImpl/http://www.adobe.com/2006/flex/mx/inte
 
> rnal::installCompiledResourceBundle
>
 
> le>
>
()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\resources\ResourceM
> anagerImpl.as:310]
> at
>
mx.resources::ResourceManagerImpl/installCompiledResourceBundles()[E:\de
>
v\3.0.x\frameworks\projects\framework\src\mx\resources\ResourceManagerIm
> pl.as:234]
> at
>
mx.core::FlexModuleFactory/installCompiledResourceBundles()[E:\dev\3.0.x
> \frameworks\projects\framework\src\mx\core\FlexModuleFactory.as:441]
> at
>
mx.core::FlexModuleFactory/docFrameHandler()[E:\dev\3.0.x\frameworks\pro
> jects\framework\src\mx\core\FlexModuleFactory.as:411]
>

 



RE: [flexcoders] How to change the Width and Height of drawHighlightIndicator function?

2008-06-06 Thread Alex Harui
What is pic?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flexawesome
Sent: Friday, June 06, 2008 9:48 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to change the Width and Height of
drawHighlightIndicator function?

 

Hey, I was working on the customize renderer for the TileList. I would 
like override the drawHighlightIndicator function to change the size of 
highlighting.

For example: my pic size was 40x60 and the renderer size was 50x80, I 
was going to change the highlighting size to 45 x 65 ( adding 5pix for 
Height and Width ). 

Do you know how to get the pic size? if so I could change the width and 
height in the following code.

http://www.privatepaste.com/1cqtF1O6bW
 

Thank you

 



RE: [flexcoders] Math.abs() Limitation?

2008-06-06 Thread Alex Harui
What if you use temporary variables?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Daniel Freiman
Sent: Friday, June 06, 2008 9:09 AM
To: flexcoders
Subject: [flexcoders] Math.abs() Limitation?

 

According to my code the following statement returns true.

Math.abs(int.MAX_VALUE - 1290) == Math.abs(int.MAX_VALUE - 1284)

I tried converting everything to type Number that didn't help.  Getting
ride of the abs() makes the calculation work correctly but then I don't
have the absolute value.

Thoughts?

- Daniel Freiman

 



[flexcoders] How to change the Width and Height of drawHighlightIndicator function?

2008-06-06 Thread flexawesome
Hey, I was working on the customize renderer for the TileList. I would 
like override the drawHighlightIndicator function to change the size of 
highlighting.

For example: my pic size was 40x60 and the renderer size was 50x80, I 
was going to change the highlighting size to 45 x 65 ( adding 5pix for 
Height and Width ). 

Do you know how to get the pic size? if so I could change the width and 
height in the following code.


http://www.privatepaste.com/1cqtF1O6bW


Thank you






[flexcoders] Re: JAXB for actionscript

2008-06-06 Thread gianlucavatinno
cool
i'm finding for a solution like this.
can you send me the project please.
thanks a lot

--- In flexcoders@yahoogroups.com, "Everson Alves" <[EMAIL PROTECTED]> wrote:
>
> Hello,
> 
> I haven´t seen any but i´ve written a air application that gets Java code
> generated with JAXB and creates the corresponding actionscript classes. The
> code is messy but it works. I can give it to you if you are interested.
> 
> On 5/26/08, gianlucavatinno <[EMAIL PROTECTED]> wrote:
> 
> >   hello to all,
> >
> > I'm searching for program like JAXB (for java) that compiles xsd into
> > actionscript 3 class.
> > is there anything like that?
> >
> >
>





Re: [flexcoders] Re: How to expose Hibernate 'non' conventional beans into flex apps via remoting

2008-06-06 Thread Jens Halm

>  Robert, I am going to try out the DTO/Assembler approach (Something
>  tells me it is worth the initial investment). Any pointers, samples,
>  whatever will be great. If you dont have anything, no worries, will
>  figure it out. Thank you.
>  And again, great Blog...! Will be adding my experience once I am done
>  looking at the second alternative.

While this isn't going to help you now, you might be interested in
that we intend to solve a lot of these issues with our forthcoming
Pimento data management framework (Open Source):

http://www.spicefactory.org/pimento/

The problems with closed sessions and huge object graphs will be
solved through "FetchPlans". There will be a default fetch plan which
is to not serialize any uninitialized Hibernate proxy or collection
but to include all simple properties and initialized associations.
But the default can be overwritten for individual calls with FetchPlan
instances created in AS3.


Jens Halm
Spicefactory



[flexcoders] Flash player vs Vista: security issues?

2008-06-06 Thread Lorenzo Benvenuti
Hi,

has someone experienced issues using FileReference.download on Vista?
A customer is unable to download files from our app. Actually he can't 
open the "browser" window that allows to choose the destination of the 
file: it's like the OS is denying the access to the file system. 
Everything works fine for other customers using other operating systems; 
this is the first one using MS Vista. I've never used Vista, nor do I 
have a pc with Vista installed to try to reproduce the issue.
I searched Google and the only interesting thing I found is about the 
"protected mode" of IE7 in Vista. It sounds like IE (and all the ActiveX 
controls) are run with partial privileges even if you log into the 
system as an admin.

Ideas? Suggestions?

Thank you.

Lorenzo

-- 
Lorenzo Benvenuti

Senior Programmer

Tagetik Software
Via Farnesi, 141
55100 Lucca

Tel. (+39)058396811
Fax. (+39)058391199

[EMAIL PROTECTED]
http://www.tagetik.com

Questo messaggio puo' contenere informazioni di carattere estremamente
riservato e confidenziale. Qualora non foste i destinatari, vogliate
immediatamente informarci con lo stesso mezzo ed eliminare il messaggio,
con gli eventuali allegati, senza trattenerne copia. Qualsivoglia
utilizzo non autorizzato del contenuto di questo messaggio costituisce
violazione dell'obbligo di non prendere cognizione della corrispondenza
tra altri soggetti, salvo piu' grave illecito, ed espone il responsabile
alle relative conseguenze civili e penali.
http://www.tagetik.it/azienda/privacy_form per cancellare o modificare il
profilo. Nel rispetto della vostra privacy
http://www.tagetik.it/azienda/privacy-policy-1 per visionare la nostra
policy.

This message is being sent from Tagetik  and may contain information
which is confidential or privileged. If you are not the intended
recipient, please advise the sender immediately by reply e-mail and
delete this message and any attachments without retaining a copy. Any
unauthorized use of the content of this message is a breach of your duty
to respect the confidentiality of the correspondence between other
persons and can expose the responsible party to civil and/or criminal
penalties, and may constitute a more serious offense.
http://www.tagetik.com/company/privacy_form?set_language=en to
unsubscribe or modify your profile. We respect your right to privacy -
http://www.tagetik.com/company/privacy-policy?set_language=en to view
our policy.


[flexcoders] Re: Using AdvancedDataGridRendererProvider for AdvancedDatagrid

2008-06-06 Thread Adrian Gillette
Tom,

Thanks for replying.

I think found a workable solution to my problem, which was the need to
have the itemrenderer know its position it was in relation to the
hierarchicalCollectionView that is used by an advancedDataGrid.  I was
trying to use an itemrenderer that would hide a "remove" button if it
was the 1st child in a branch.

Here's my solution code:
override public function set data( value:Object ) : void
{
   super.data = value;

   var temp:*  = listData.owner;
   var dh:HierarchicalCollectionView  =
temp.hierarchicalCollectionView as HierarchicalCollectionView;
   var cursor:IHierarchicalCollectionViewCursor = dh.createCursor() as
IHierarchicalCollectionViewCursor;

   var isFirst:Boolean = true;

   while(!cursor.afterLast)
   {
  var node:Object = cursor.current;
  if(node.mx_internal_uid == value.mx_internal_uid){
 var myBookmark:CursorBookmark = cursor.bookmark;
 cursor.seek(myBookmark, -1);
 var previousNodeDepth:int = cursor.currentDepth;
 if (previousNodeDepth == 2) {
isFirst = false;
break;
 }
 cursor.moveNext();
  }
  removeButton.visible = isFirst;
}

I would greatly appreciate anyone's comments and/or suggestions on
this solution.

Thanks,

Adrian


--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]>
wrote:
>
> On Monday 02 Jun 2008, Adrian Gillette wrote:
> > But I having a problem with trying to determine whether a cell in the
> > advanced datagrid is the 1st child.  Does anyone know of a good
solution?
> 
> You mean it's rendering the first row's first column ?
> 
> 
> -- 
> Tom Chiverton
> 
> 
> 
> This email is sent for and on behalf of Halliwells LLP.
> 
> Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at Halliwells LLP, 3 Hardman Square, Spinningfields,
Manchester, M3 3EB.  A list of members is available for inspection at
the registered office. Any reference to a partner in relation to
Halliwells LLP means a member of Halliwells LLP.  Regulated by The
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] feedback on RIA social networking site

2008-06-06 Thread John Moore
I just launched http://www.riaspot.com as a social networking site.
It's totally non-commercial, just a way to connect to people in the
RIA world.

It's still beta - no content, but I'd love any feedback from fellow
flexperts. It also doesn't cost anything to sign up, if you so choose.

Thanks



[flexcoders] Re: Unable to Display Hindi

2008-06-06 Thread tanarijay
I embedded the "Microsoft San Serif (True Type)" font in to my app &
changed my controls to use it using the "font family" attribute.  The
font did change when I ran the app, but Hindi glyphs still showed up
as squares.  English & French still display correctly.

--- In flexcoders@yahoogroups.com, "Andrew Wetmore" <[EMAIL PROTECTED]> wrote:
>
> Dumb question, but are you using a font that does not display special
> characters? Can you display, say, Mandarin or Japanese? If you cannot
> display ANY non-Western characters, try switching to a sans-serif font.
> 
> If this relates to Hindi only, and languages such as Japanese
display well,
> then I am at a loss.
> 
> a
> 
> 
> 
> 
> 
> -- 
> Andrew Wetmore
> User Experience Director
> Open Learning Exchange - www.ole.org
> 978-319-7324
>




[flexcoders] Re: How should we access our Flex apps from the browser?

2008-06-06 Thread Dan
Nope, Flex 3.

--- In flexcoders@yahoogroups.com, "Paul Andrews" <[EMAIL PROTECTED]> wrote:
>
> It's not Flex 1.5 is it?
> 
> Paul
> - Original Message - 
> From: "Dan" <[EMAIL PROTECTED]>
> To: 
> Sent: Friday, June 06, 2008 3:39 PM
> Subject: [flexcoders] Re: How should we access our Flex apps from the 
> browser?
> 
> 
> > Paul,
> >
> > Thanks for your reply.
> >
> > When I access the .mxml file through my browser, it doesn't serve up
> > the source.  Instead, it serves up a functioning Flex application.
> >
> > Per your advice however, I'll focus on accessing the application via
> > it's "HTML wrapper".
> >
> > --Dan
> >
> > --- In flexcoders@yahoogroups.com, "Paul Andrews"  wrote:
> >>
> >> The swf file is what is run by the flash player plugin, it's not
> > usual to
> >> run this directly in the browser.
> >> The mxm file is the source used within your application - it won't be
> >> usefull to look at this in a browser.
> >> The html file checks the users environment for the flash player and
> > calls
> >> your .swf file.
> >>
> >> html is the way to go.
> >>
> >> Paul
> >> - Original Message - 
> >> From: "Dan" 
> >> To: 
> >> Sent: Friday, June 06, 2008 3:01 PM
> >> Subject: [flexcoders] How should we access our Flex apps from the
> > browser?
> >>
> >>
> >> > Hello,
> >> >
> >> > It's not clear to me how we should access our Flex apps from the
> >> > browser.  It appears that accessing them using .swf, .mxml and
.html
> >> > all work but each with slightly different effects.
> >> >
> >> > For example, I can access a Flex application "helloWorld" using the
> >> > following URLs.  They all work (to varying degrees) but which
one am I
> >> > actually supposed to use?
> >> >
> >> > http://localhost/helloWorld.swf
> >> > http://localhost/helloWorld.mxml
> >> > http://localhost/helloWorld.html
> >> >
> >> > --Dan
> >> >
> >> >
> >> > 
> >> >
> >> > --
> >> > Flexcoders Mailing List
> >> > FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> >> > Search Archives:
> >> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
Groups
> >> > Links
> >> >
> >> >
> >> >
> >> >
> >>
> >
> >
> >
> > 
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives: 
> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups 
> > Links
> >
> >
> >
> >
>




[flexcoders] Re: How should we access our Flex apps from the browser?

2008-06-06 Thread Dan
Actually it is running on port 7001 (Weblogic default).  I simply
chose to omit it from the example URLs because I didn't think it was
pertinent.

--- In flexcoders@yahoogroups.com, "Fidel Viegas" <[EMAIL PROTECTED]>
wrote:
>
> On Fri, Jun 6, 2008 at 4:02 PM, Nikunj Shroff <[EMAIL PROTECTED]> wrote:
> >
> > you must deploy your application on some server. then you can
access your access your html on url. moreover your url must have a
port as well.
> >
> > for ex: localhost:8080
> >
> 
> You only use a port if it isn't the default port 80. I presume he is
> using port 80, which is why he is omitted it from the url.
> 
> Fidel.
>




[flexcoders] Re: Unable to Display Hindi

2008-06-06 Thread tanarijay
I deleted the original file, & created a new one using WinXP notepad,
saving it as UTF-8.  I then opened the file and added my name/value
pairs using Hindi for the value's.  Notepad displayed the Hindi
characters as squares as well.  Perhaps this is a Windows XP
environment issue, rather then a Flex environment issue.

I should have noted earlier that when I created the file in Flex 3,
the hindi characters display in the IDE when I edit the file, but not
when the application displays the same text.

--- In flexcoders@yahoogroups.com, "benjidudu" <[EMAIL PROTECTED]> wrote:
>
> I never had success in editing properties files in Flex Builder. It
> always screw up the Chinese characters. So now I always edit them in
> Notepad, saving as UTF8, and it works.
> What you can try is, copy and paste your text in Notepad. Delete your
> "appStrings.properties" file. In Notepad, save your file as
> "appStrings.properties" using UTF8 encoding. See if that works.
> 
> 
> Benjamin Durin.
> 
> 
> --- In flexcoders@yahoogroups.com, "tanarijay"  wrote:
> >
> > I am creating an application that displays in a few character sets:
> > English, French, & Hindi.
> > 
> > I am using resource bundles (name/value pairs in UTF-8 encoded text
> > files named "appStrings.properties") and Flex 3 to create my
> > application.  I am using the resource manager to retrieve the strings:
> > 
> > e.g.
> > 
> >  
> > 
> > 
> > Additionally, I use the following code to set the locale of choice in
> > my app:
> > 
> > 
> >  
> > 
> > 
> > 
> >  
> >   >initialize="localeComboBox_initializeHandler(event)" 
> > change="localeComboBox_changeHandler(event)"/>
> > 
> > 
> > The problem is that English & French characters display correctly, but
> > Hindi characters do not. They show up as a a series of squares.
> > 
> > Has anyone encountered this before?  Does anyone have an idea what the
> > problem is?
> >
>




[flexcoders] Math.abs() Limitation?

2008-06-06 Thread Daniel Freiman
According to my code the following statement returns true.

Math.abs(int.MAX_VALUE - 1290) == Math.abs(int.MAX_VALUE - 1284)

I tried converting everything to type Number that didn't help.  Getting ride
of the abs() makes the calculation work correctly but then I don't have the
absolute value.

Thoughts?

- Daniel Freiman


Re: [flexcoders] Re: How should we access our Flex apps from the browser?

2008-06-06 Thread Paul Andrews
It's not Flex 1.5 is it?

Paul
- Original Message - 
From: "Dan" <[EMAIL PROTECTED]>
To: 
Sent: Friday, June 06, 2008 3:39 PM
Subject: [flexcoders] Re: How should we access our Flex apps from the 
browser?


> Paul,
>
> Thanks for your reply.
>
> When I access the .mxml file through my browser, it doesn't serve up
> the source.  Instead, it serves up a functioning Flex application.
>
> Per your advice however, I'll focus on accessing the application via
> it's "HTML wrapper".
>
> --Dan
>
> --- In flexcoders@yahoogroups.com, "Paul Andrews" <[EMAIL PROTECTED]> wrote:
>>
>> The swf file is what is run by the flash player plugin, it's not
> usual to
>> run this directly in the browser.
>> The mxm file is the source used within your application - it won't be
>> usefull to look at this in a browser.
>> The html file checks the users environment for the flash player and
> calls
>> your .swf file.
>>
>> html is the way to go.
>>
>> Paul
>> - Original Message - 
>> From: "Dan" <[EMAIL PROTECTED]>
>> To: 
>> Sent: Friday, June 06, 2008 3:01 PM
>> Subject: [flexcoders] How should we access our Flex apps from the
> browser?
>>
>>
>> > Hello,
>> >
>> > It's not clear to me how we should access our Flex apps from the
>> > browser.  It appears that accessing them using .swf, .mxml and .html
>> > all work but each with slightly different effects.
>> >
>> > For example, I can access a Flex application "helloWorld" using the
>> > following URLs.  They all work (to varying degrees) but which one am I
>> > actually supposed to use?
>> >
>> > http://localhost/helloWorld.swf
>> > http://localhost/helloWorld.mxml
>> > http://localhost/helloWorld.html
>> >
>> > --Dan
>> >
>> >
>> > 
>> >
>> > --
>> > Flexcoders Mailing List
>> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>> > Search Archives:
>> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
>> > Links
>> >
>> >
>> >
>> >
>>
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups 
> Links
>
>
>
> 



Re: [flexcoders] Flex for desktop application

2008-06-06 Thread Fidel Viegas
On Fri, Jun 6, 2008 at 2:30 PM, p.prasha <[EMAIL PROTECTED]> wrote:
> Hi Friendns,
>
> Is it possible to use flex for desktop application.
> If i have a java application(desktop application not web application)
> can i use flex as front end for it.
> I mean to say can i replace applet with flex.
> I have worked on flex for web application and as you know it uses
> HttpService to get data from server and remote object in dats service.
>
> But I want to cal a java method which will return me an xml.
>
> Is it possible
>

Have I look at Adobe AIR. That allows you to run your flex
applications on the desktop.

All the best,

Fidel.


Re: [flexcoders] How should we access our Flex apps from the browser?

2008-06-06 Thread Fidel Viegas
On Fri, Jun 6, 2008 at 4:02 PM, Nikunj Shroff <[EMAIL PROTECTED]> wrote:
>
> you must deploy your application on some server. then you can access your 
> access your html on url. moreover your url must have a port as well.
>
> for ex: localhost:8080
>

You only use a port if it isn't the default port 80. I presume he is
using port 80, which is why he is omitted it from the url.

Fidel.


[flexcoders] Re: How should we access our Flex apps from the browser?

2008-06-06 Thread Dan
Paul,

Thanks for your reply.

When I access the .mxml file through my browser, it doesn't serve up
the source.  Instead, it serves up a functioning Flex application.

Per your advice however, I'll focus on accessing the application via
it's "HTML wrapper".

--Dan

--- In flexcoders@yahoogroups.com, "Paul Andrews" <[EMAIL PROTECTED]> wrote:
>
> The swf file is what is run by the flash player plugin, it's not
usual to 
> run this directly in the browser.
> The mxm file is the source used within your application - it won't be 
> usefull to look at this in a browser.
> The html file checks the users environment for the flash player and
calls 
> your .swf file.
> 
> html is the way to go.
> 
> Paul
> - Original Message - 
> From: "Dan" <[EMAIL PROTECTED]>
> To: 
> Sent: Friday, June 06, 2008 3:01 PM
> Subject: [flexcoders] How should we access our Flex apps from the
browser?
> 
> 
> > Hello,
> >
> > It's not clear to me how we should access our Flex apps from the
> > browser.  It appears that accessing them using .swf, .mxml and .html
> > all work but each with slightly different effects.
> >
> > For example, I can access a Flex application "helloWorld" using the
> > following URLs.  They all work (to varying degrees) but which one am I
> > actually supposed to use?
> >
> > http://localhost/helloWorld.swf
> > http://localhost/helloWorld.mxml
> > http://localhost/helloWorld.html
> >
> > --Dan
> >
> >
> > 
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives: 
> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups 
> > Links
> >
> >
> >
> >
>




Re: [flexcoders] How should we access our Flex apps from the browser?

2008-06-06 Thread Nikunj Shroff

you must deploy your application on some server. then you can access your 
access your html on url. moreover your url must have a port as well.
for ex: localhost:8080
Regards,
Nikunj

--- On Fri, 6/6/08, Dan <[EMAIL PROTECTED]> wrote:

From: Dan <[EMAIL PROTECTED]>
Subject: [flexcoders] How should we access our Flex apps from the browser?
To: flexcoders@yahoogroups.com
Date: Friday, June 6, 2008, 7:31 PM






Hello,

It's not clear to me how we should access our Flex apps from the
browser. It appears that accessing them using .swf, .mxml and .html
all work but each with slightly different effects.

For example, I can access a Flex application "helloWorld" using the
following URLs. They all work (to varying degrees) but which one am I
actually supposed to use?

http://localhost/ helloWorld. swf
http://localhost/ helloWorld. mxml
http://localhost/ helloWorld. html

--Dan

 














  

Re: [flexcoders] How should we access our Flex apps from the browser?

2008-06-06 Thread Paul Andrews
The swf file is what is run by the flash player plugin, it's not usual to 
run this directly in the browser.
The mxm file is the source used within your application - it won't be 
usefull to look at this in a browser.
The html file checks the users environment for the flash player and calls 
your .swf file.

html is the way to go.

Paul
- Original Message - 
From: "Dan" <[EMAIL PROTECTED]>
To: 
Sent: Friday, June 06, 2008 3:01 PM
Subject: [flexcoders] How should we access our Flex apps from the browser?


> Hello,
>
> It's not clear to me how we should access our Flex apps from the
> browser.  It appears that accessing them using .swf, .mxml and .html
> all work but each with slightly different effects.
>
> For example, I can access a Flex application "helloWorld" using the
> following URLs.  They all work (to varying degrees) but which one am I
> actually supposed to use?
>
> http://localhost/helloWorld.swf
> http://localhost/helloWorld.mxml
> http://localhost/helloWorld.html
>
> --Dan
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups 
> Links
>
>
>
> 



[flexcoders] Re: Getting PropertyChangeEvent to work properly

2008-06-06 Thread superbokbok
Hi Amy,
I created the bindable event as suggested but still nothing :(
Is there a sample usage of the PropertyChange class that I could look
over to get a good sense of how to use this correctly?

Again, I can get the event to work when I create a custom event and
dispatch that to one of the instances listening for the event, but in
this situation, I want a field to update when an instances variable,
'lastChecked' in this case, is updated. In this way, I'm not creating
any explicit eventListeners as the data updates the variable and changes
the view on screen automatically.
Thx for your help!

cheers
erick
> I think you need to use [Bindable (event="propertyChange")] to get it
> to work with a property that has a getter only.
>
> HTH;
>
> Amy
>




[flexcoders] Object name from a mouse click

2008-06-06 Thread markgoldin_2000
I am overriding mouseDoubleClickHandler event for a custom dataGrid.
How can I get the actual object name (not a class name) when I dblclick?

Thanks



[flexcoders] Problems with showDataEffect trigger looping on Chart Seris in Flex 3

2008-06-06 Thread mgrayfmr
Has anyone run into this issue in Flex 3?
The showDataEffect is looping endlessly, causing a transtion to run 
over and over again.

I have two charts, one a LineChart and one a ColumnChart.
On the series of each, I have set the 
showDataEffect="{nameOfEffectHere}"
For the LineChart, the effect is declared as:



For the ColumnChart, it is declared as:


In both cases, the effect loops.
I cannot find what is causing the showDataEffect to be triggered.
This code worked fine in Flex 2.0, but breaks in Flex 3.0.

Any info would be appreciated!!!
Mike



[flexcoders] How should we access our Flex apps from the browser?

2008-06-06 Thread Dan
Hello,

It's not clear to me how we should access our Flex apps from the
browser.  It appears that accessing them using .swf, .mxml and .html
all work but each with slightly different effects.

For example, I can access a Flex application "helloWorld" using the
following URLs.  They all work (to varying degrees) but which one am I
actually supposed to use?

http://localhost/helloWorld.swf
http://localhost/helloWorld.mxml
http://localhost/helloWorld.html

--Dan



Re: [flexcoders] Re: PDF into Flex

2008-06-06 Thread Jon Bradley


On Jun 6, 2008, at 9:17 AM, valdhor wrote:


You can if you are using AIR. From the manual...

AIR applications can render not only SWF and HTML content but also PDF
content. AIR applications render PDF content using the HTMLLoader
class, the WebKit engine, and the Adobe Reader browser plug-in.


Yea, I probably should've mentioned it was an AIR only capability.

cheers,

jn

[flexcoders] Re: VerifyError: Error #1063: Argument count mismatch on ... ResourceBundle().

2008-06-06 Thread Dan
Gordon,

Thanks for your reply.

Could you please help me understand how this might be happening?  Are
there for instance some settings within Eclipse/Flexbuilder that I
could verify?

--Dan

--- In flexcoders@yahoogroups.com, "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> The constructor for the ResourceBundle class had no arguments in Flex 2
> but two optional arguments were added in Flex 3. So it sounds like you
> are somehow mixing Flex 2 and Flex 3 code.
> 
>  
> 
> Gordon Smith
> 
> Adobe Flex SDK Team
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Dan
> Sent: Thursday, June 05, 2008 8:14 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] VerifyError: Error #1063: Argument count mismatch
> on ... ResourceBundle().
> 
>  
> 
> Hello,
> 
> I'm wondering if someone can please help me. I'm quite new to Flex
> development. I am working on a Flex 3 project and am getting the
> following error when trying to load modules using . 
> I've been hitting my head against the wall on this issue for several
> hours now.
> 
> Thanks,
> Dan
> 
> VerifyError: Error #1063: Argument count mismatch on
> mx.resources::ResourceBundle(). Expected 0, got 2.
> 
> at en_US$collections_properties()
> at
> mx.resources::ResourceManagerImpl/http://www.adobe.com/2006/flex/mx/inte
> rnal::installCompiledResourceBundle
>  le>
> ()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\resources\ResourceM
> anagerImpl.as:310]
> at
> mx.resources::ResourceManagerImpl/installCompiledResourceBundles()[E:\de
> v\3.0.x\frameworks\projects\framework\src\mx\resources\ResourceManagerIm
> pl.as:234]
> at
> mx.core::FlexModuleFactory/installCompiledResourceBundles()[E:\dev\3.0.x
> \frameworks\projects\framework\src\mx\core\FlexModuleFactory.as:441]
> at
> mx.core::FlexModuleFactory/docFrameHandler()[E:\dev\3.0.x\frameworks\pro
> jects\framework\src\mx\core\FlexModuleFactory.as:411]
>




[flexcoders] Flex for desktop application

2008-06-06 Thread p.prasha
Hi Friendns,

Is it possible to use flex for desktop application.
If i have a java application(desktop application not web application)
can i use flex as front end for it.
I mean to say can i replace applet with flex.
I have worked on flex for web application and as you know it uses
HttpService to get data from server and remote object in dats service.

But I want to cal a java method which will return me an xml. 

Is it possible

Thanks in advance.

-Prash.



[flexcoders] Re: PDF into Flex

2008-06-06 Thread valdhor
You can if you are using AIR. From the manual...

AIR applications can render not only SWF and HTML content but also PDF
content. AIR applications render PDF content using the HTMLLoader
class, the WebKit engine, and the Adobe Reader browser plug-in.


--- In flexcoders@yahoogroups.com, Jon Bradley <[EMAIL PROTECTED]> wrote:
>
> 
> On Jun 5, 2008, at 10:17 PM, Dels wrote:
> 
> > My question is, can I embed the PDF into the first half of the
> > HDividedBox? if it's a yes, how do I do it?
> 
> Embed a PDF file? You can't put PDF files in Flex (Flash) - unless  
> I'm missing something.
> 
> You can use Flash Paper though...
> 
> -jon
>




OT >>>> RE: [flexcoders] Re: Thinking about going to the dark side....Apple Mac Book

2008-06-06 Thread David Kramer
Uh, this is Major OT. 

 

(And I can't get one decent answer, or even non-vague guidance, to slightly
OT code design patterns for localization/globalization/skinning?)

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of valdhor
Sent: Friday, June 06, 2008 6:02 AM
To: flexcoders@yahoogroups.com
Subject: [Norton AntiSpam] [flexcoders] Re: Thinking about going to the dark
sideApple Mac Book

 

Something that I have always noted is that the resale value of used
Mac's tends to be a lot higher than a PC. After two years you can
generally get 50% of what you paid back when you sell a Mac. With a
PC, that value drops to 30% or less.

 

<<~WRD000.jpg>><><>

[flexcoders] Re: Thinking about going to the dark side....Apple Mac Book

2008-06-06 Thread valdhor
Something that I have always noted is that the resale value of used
Mac's tends to be a lot higher than a PC. After two years you can
generally get 50% of what you paid back when you sell a Mac. With a
PC, that value drops to 30% or less.



[flexcoders] Reflect column sorting in AdvancedDataGrid

2008-06-06 Thread Dennis van Nooij
I'm using an AdvancedDatagrid where my sorting is done on the server
(total result set is bigger than the list shown at client). So when I
click a header, sort info is added to the request and result comes
back sorted correctly. My question is: How can I provide feedback on
how the results are sorted? Arrows on the columns are gone, probably
because dataprovider was refreshed. Is there a way to manually enable
those arrows again ?



[flexcoders] Re: hiding a cell within a datagrid dynamically

2008-06-06 Thread anthony_morsey
Thanks, but this technique seems to work for all values in the column,
not just the value in each individual row.  It seems that if one of
the values for grant_year in a column meets the condition, then all
checkboxes are either hidden or visible. I want to do this row by row
and turn visible on or off based on the grant_year value in that row.

Any other ideas?

Thanks

--- In flexcoders@yahoogroups.com, Manu Dhanda <[EMAIL PROTECTED]> wrote:
>
> 
> Here it is:
> 
>   
> 
> 
> 
>  itemRenderer="mx.controls.CheckBox"  visible="{!grant_year=='somevalue'
> implement ur logic here}"/>
> 
>   
>  
> 
> 
> anthony_morsey wrote:
> > 
> > Here is my code:
> > 
> > 
> >   
> > 
> > 
> > 
> >  > itemRenderer="mx.controls.CheckBox" />
> > 
> >   
> >  > 
> > 
> > 
> > I want to hide the "cashoutshares" column (or turn off the
> > itemrenderer in that column)  based on the data value of "grant_year".
> > 
> > Thanks
> > 
> > 
> > 
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "jmfillman"  wrote:
> >>
> >> Anthony,
> >> 
> >> If you are passing the data from the columns of each row to the 
> >> itemRenderer, you should be able to set visibility conditions
from the 
> >> itemRenderer.
> >> 
> >> If you post your code, I or someone else here might be able to
provide 
> >> a more specific suggestion.
> >> 
> >> JF
> >> --- In flexcoders@yahoogroups.com, "anthony_morsey"  wrote:
> >> >
> >> > I have a datagrid with multiple columns and rows.  One of the
columns
> >> > contains a checkbox which is rendered with an itemRenderer. 
I'd like
> >> > to conditionally hide some of these checkboxes based on values from
> >> > other columns with the same row.
> >> > 
> >> > Any ideas?
> >> > 
> >> > Thanks
> >> >
> >>
> > 
> > 
> > 
> > 
> 
> -- 
> View this message in context:
http://www.nabble.com/hiding-a-cell-within-a-datagrid-dynamically-tp17673007p17688100.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
>




Re: [flexcoders] PDF into Flex

2008-06-06 Thread Jon Bradley


On Jun 5, 2008, at 10:17 PM, Dels wrote:


My question is, can I embed the PDF into the first half of the
HDividedBox? if it's a yes, how do I do it?


Embed a PDF file? You can't put PDF files in Flex (Flash) - unless  
I'm missing something.


You can use Flash Paper though...

-jon




RE: [flexcoders] initialize a fileReference object

2008-06-06 Thread Rick Winscot
You really should take a look at the livedocs for FileReferenceList for the 
recommended path for acquiring file references.

 

http://livedocs.adobe.com/flex/3/langref/flash/net/FileReferenceList.html#includeExamplesSummary

 

Also… you have something interesting going on with your variable initialization 
which should probably look a little more like:

 

Var fileRef:FileReference;

 

Public function initiateNotice():void

{

  filreRef = new FileReference();

}

 

 

Rick Winscot

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David 
Pariente
Sent: Friday, June 06, 2008 5:52 AM
To: flexcoders
Subject: [flexcoders] initialize a fileReference object

 

Hello,

my project is almost finished, but i'm new to flex and found a problem i don't 
know how to solve...
I need to initialize a fileReference object.

This object is on a form, and everytime i get inside the form i need the object 
like new, with no content at all.

i tried:

var file_imgb:FileReference=new FileReference();
var file_imgs:FileReference=new FileReference();

public function iniciafiles_noticias():void
{
  file_imgb=null;
  file_imgs=null;
 
  var file_imgb:FileReference=new FileReference();
  var file_imgs:FileReference=new FileReference();

}

but after calling the function "iniciafiles_noticias()" the content of the 
objects still there :(

please, help me...T__T

 

  _  


Enviado desde Correo 

  Yahoo!
La bandeja de entrada más inteligente.

 



Re: [flexcoders] know if .browse() was executed or not

2008-06-06 Thread Jon Bradley


On Jun 6, 2008, at 4:26 AM, David Pariente wrote:

The point is that, IN ANOTHER POINT OF THE CODE, i wanna send the  
files.
the on_select is not useful for me. i will not send anything  
on_select, just put a pair of lines of code there.



My opinion is that you are thinking about this too much. You do not  
need to have a boolean to determine if a file was selected.


What you need is an array that you populate with the filled  
FileReference instances in the Event.SELECTED event handler. When the  
user clicks SEND on your application, you loop over your array of  
stored FileReference instances and upload each of them.


So in the onSelect function for Event.SELECTED, just push the  
FileReference into the array. Event.SELECTED shouldn't get broadcast  
unless a file is actually selected anyway.


Whether or not your FileReference elements are stored in different  
views doesn't matter - just so long as your array is accessible by  
all of them so the FileReference instance can be added.


private var fileList:Array = new Array();
private function onSelectFile(event:Event):void
{
var file:FileReference = FileReference(event.target);
  fileList.push(file);
}


jon

Re: [flexcoders] Re: Thinking about going to the dark side....Apple Mac Book

2008-06-06 Thread Ralf Bokelberg
If you want to use Windows on Macbooks you also need an external
keyboard and a mouse maybe. Not the most convenient package, if you
need to travel.
Cheers
Ralf.


[flexcoders] Scale up and down Y axis

2008-06-06 Thread kirilminevgroups
I have a chart on which I am plotting numerous points and in some
cases I need to be able to zoom in and out the y-axis to spread out
the values if they are too close and too many on the same region.

Any suggestion, direction on that manner?

Any input will greatly appreciated.

Thanks.



[flexcoders] Re: Thinking about going to the dark side....Apple Mac Book

2008-06-06 Thread stephen.smithstone
I would say take the plunge and get a decent mac either a Macbook pro
or PowerMac , then run VMWare Fusion as a virtual machine and do you
.net dev in that environment you can run it as a guest inside of your
OS X env and either do unity view which basically makes you windows
app native on the os x desktop take a look on their website.

--- In flexcoders@yahoogroups.com, David Pariente <[EMAIL PROTECTED]> wrote:
>
> select name from OS order by QUALITY desc;
> 
> name
> 
> linux
> macOS
> ...
> ...
> Vista, XP SP3...etc...
> 
> now, i think best option for working on media and have no hardware
problems would be macOS, so i recommend u to make the switch.
> Of course, u will miss many things from MS world, but also will get
many extra things u won't find on MS world.
> So just be optimistic, changes, even changes for good, allways imply
adpatation problems. :)
> MAKE THE CHANGE AND MAKE ME JEALOUS!
> 
> 
> - Mensaje original 
> De: Nancy Gill <[EMAIL PROTECTED]>
> Para: flexcoders@yahoogroups.com
> Enviado: jueves, 5 de junio, 2008 20:54:46
> Asunto: Re: [flexcoders] Re: Thinking about going to the dark
sideApple Mac Book
> 
> 
> Microsoft is already on record as pushing Windows 7 
> out the door as soon as possible (probably late 2009) due to the
Vista debacle 
> .. remember Windows ME?   :)
>  
> Nancy
>  
> - Original Message - 
> From: Joseph Balderson 
> To: [EMAIL PROTECTED] ups.com 
> Sent: Thursday, June 05, 2008 11:20  AM
> Subject: Re: [flexcoders] Re: Thinking  about going to the dark
sideApple Mac Book
> 
> I'm not trying to be glib, but don't use Vista. Use XP  SP3.
> 
>  _ _ _ _ 
> 
> Joseph  Balderson | http://joeflash. ca |  705-466-6345
> 
> b_alen wrote:
> > Interesting. Me and my colleagues  are also thinking of switching to
> > Mac due to Vista crappiness. In fact  we're 80% sure that next laptops
> > will be Macs. My only concern is how  to do .Net development and
> > integration with Flex then. Anyone has a  solution to that?
> > 
> > 
> > 
> > 
> > 
> > --- In [EMAIL PROTECTED] ups.com,  "scottyale2008"

> > wrote:
> >> How  many Flex developers here are using a Mac for development? I've 
> >>  been a die hard Microsoft guy since ... well, since Microsoft first 
> >> started. I went from CPM on a Morrow Meadows to Microsoft DOS (on 
> >> computers with a Turbo button!), then Windows, now Vista. I do 
have an 
> >> iPhone and it is an incredible device and the GUI is  extremely well 
> >> done. I've never used a Mac, but many of my  friends have taken the 
> >> plunge. Is it time to make the switch? I'm  thinking about a Mac
Book 
> >> Pro. Is a Mac Book even worth  considering for a Flex dev machine
or is 
> >> a Mac Book Pro the way  to go? Anybody else make the switch recently 
> >> from Windows to  Mac?
> >>
> > 
> > 
> > 
> >   - - --
> > 
> >  --
> > Flexcoders Mailing List
> > FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder
sFAQ.txt
> >  Search Archives: http://www.mail- archive.com/ flexcoders%
40yahoogroups. comYahoo!  Groups Links
> > 
> > 
> > 
> > 
> 
> 
> __ Information from ESET NOD32  Antivirus, version of virus
signature database 3162 (20080605)  __
> 
> The message was checked by ESET NOD32 Antivirus.
> 
> http://www.eset. com
> 
> 
> 
>   __ 
> Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.
>




[flexcoders] Display datatips from lookup field

2008-06-06 Thread kirilminevgroups
I have a feature build in to my Flex Plots chart that searches my data
points by given value and than it select the points on chart. This
part works fine, but also need to display the datatips associated with
this data point and let them remain opened.

Any help!!! will very much appreciated.

Thanks in advance.

Here is some of the code I am using to select the data points:

public function selectItems(event:Event):void {


// Create an array of all the chart's series.   

var allSeries:Array = bigChart.series;

// Iterate over each series.
for (var i:int=0; i < allSeries.length; i++) 
{
var selectedData:Array = [];

for (var j:int=0; j< mainData.length; 
j++) 
{
if (mainData.getItemAt(j).A == 
Number(txtOrderNum.text)) 
{
selectedData.push(j);
}

}

allSeries[i].selectedIndices = selectedData;

}
txtOrderNum.text = '';

txtOrderNum.text, 'Alert Box', mx.controls.Alert.OK);
//}
}



[flexcoders] PDF into Flex

2008-06-06 Thread Dels
Hi. 

I'm very new to Flex. Trying to play around with it at the moment. I'm
not so good with my ActionScript. But i'm well conversed with html :).

I have a HDividedBox.
on the left is the space for me to embed a pdf file.
on the right I have an Accordion.

The accordion is filled with text inputs. Reference for the text
inputs is from the left hand side pdf (meaning the pdf file is
basically just a file to refer)

My question is, can I embed the PDF into the first half of the
HDividedBox? if it's a yes, how do I do it?

Thanks in advnace,
Dela



Re: [flexcoders] Re: Flex and CFC issues

2008-06-06 Thread Paul L. Cathcart III
Thanks for the heads up Don. It looks like my issue
was in my application.cfm file. It seems there was a
redirect if you didn't have a Session.ID set and that
is why it wasn't getting to my CFC. Now when I log
into the server apps, it's working perfectly.
Definitely won't forget that in the future! 

Paul C.

--- Don Kerr <[EMAIL PROTECTED]> wrote:

> 
> Looks like you're not even getting a connection to
> the flex2gateway. 
> 
> Few things to check:
> 1) do you get a blank screen when you go to
> ../flex2gateway/ ?
> 2) In CF8 Administrator, do you have Flex enabled
> under Flex Integration?
> 3) When you compile your flex app do you have
> -services 
>
"C:\ColdFusion8\wwwroot\web-inf\flex\services-config.xml"
> in your
> arguments (project properties>>compiler . If so, try
> going to
> Project>>Clean.
> 4) If using IIS, use CF's Web Server Config tool to
> re-install your
> connectors. This can help with connecting to the
> gateway.
> 
> This shouldn't have anything to do with your CFC,
> since it never gets
> to the point of hitting it. You'll get different
> errors if it is a CFC
> issue.
> 
> Hope this helps.
> Don Kerr
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "Just give a
> guess..."
> <[EMAIL PROTECTED]> wrote:
> >
> > All,
> > 
> > I am extremely new to Flex but I have been doing
> ColdFusion for a 
> > while now. I am having an issue with data from a
> CFC getting back to 
> > my Flex app. I have put code into my CFC to write
> to the log file if 
> > it gets hit. I can run a .cfm file against it and
> it works. However, 
> > the moment I try to hit it with Flex, I get
> nothing back. 
> > 
> > I have searched all over the web (over 30 hours)
> and it seems that I 
> > am not the only one getting this issue. It's quite
> common and I've 
> > tried everything they suggested and more.
> > 
> > This is the error that I am getting:
> > 
> > [RPC Fault faultString="Send failed" 
> > faultCode="Client.Error.MessageSend" 
> > faultDetail="Channel.Connect.Failed error
> NetConnection.Call.Failed: 
> > HTTP: Failed: url:
> 'http://localhost/flex2gateway/'"]
> > at 
> >
>
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::fa
> > ultHandler()
> > at mx.rpc::Responder/fault()
> > at mx.rpc::AsyncRequest/fault()
> > at mx.messaging::ChannelSet/::faultPendingSends()
> > at mx.messaging::ChannelSet/channelFaultHandler()
> > at 
> >
>
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv
> > entFunction()
> > at flash.events::EventDispatcher/dispatchEvent()
> > at
>
mx.messaging::Channel/mx.messaging:Channel::connectFailed()
> > at 
> >
>
mx.messaging.channels::PollingChannel/mx.messaging.channels:PollingCha
> > nnel::connectFailed()
> > at 
> >
>
mx.messaging.channels::AMFChannel/mx.messaging.channels:AMFChannel::st
> > atusHandler()
> > 
> > Also, someone suggested I use ServiceCapture and
> this is what I got 
> > as an error:
> > 
> > rootCause (null): null
> > destination (String): ColdFusion
> > headers (Object): 
> > 
> > correlationId (String):
> > A5DFBE78-9536-1CF0-23E5-59EBBA214D71
> > faultString (String):
> > coldfusion.runtime.AbortException
> > messageId (String):
> > 5588792D-3119-89F1-9677-EED9F71D7018
> > faultCode (String): Server.Processing
> > timeToLive (Number): 0
> > extendedData (Object): 
> >   stacktrace (Array): 
> > 0 (String):
> >
>
coldfusion.tagext.net.LocationTag.doEndTag(LocationTag.java:161)
> > 1 (String):
> >
>
coldfusion.runtime.CfJspPage._emptyTag(CfJspPage.java:1916)
> > 2 (String):
> > cfApplication2ecfm941020151.runPage
> > (E:\Inetpub\wwwroot_tmo\Application.cfm:92)
> > 3 (String):
> >
>
coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152)
> > 4 (String):
> >
>
coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:349)
> > 5 (String):
> >
>
coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
> > 6 (String):
> >
>
coldfusion.filter.CfincludeFilter.include(CfincludeFilter.java:33)
> > 7 (String):
> >
>
coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:172)
> > 8 (String):
> >
> coldfusion.flash.filter.CFCInvokeDebugFilter.invoke
> > (CFCInvokeDebugFilter.java:54)
> > 9 (String):
> > coldfusion.flash.filter.CFCInvokePathFilter.invoke
> > (CFCInvokePathFilter.java:53)
> > 10 (String):
> >
>
coldfusion.filter.ClientScopePersistenceFilter.invoke
> > (ClientScopePersistenceFilter.java:28)
> > 11 (String):
> >
>
coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
> > 12 (String):
> >
>
coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
> > 13 (String):
> >
> coldfusion.flash.messaging.ColdFusionAdapter.invoke
> > (ColdFusionAdapter.java:197)
> > 14 (String):
> >
>
flex.messaging.services.RemotingService.serviceMessage
> > (RemotingService.java:115)
> > 15 (String):
> > flex.messaging.MessageBroker.routeMessageToService
> > (MessageBroker.java:548)
> > 16 (String):
> >

[flexcoders] DND, change default effect, registering custom DragProxy in DragManager. How?

2008-06-06 Thread ndkamp
I need to change the default Zoom/Move effect at the end of a drag
operation. I traced into the DND-Classes and found that the effects
are hardcoded right into the mouseUpHandler of the DragProxy-Class - a
internal helper class for the DragManager. Overwriting the handler
would be a way to go but I can't find a way to register a custom
DragProxy in the DragManager(Impl).

I don't quite get the Design behind this but must miss something obvious.

1.) is there a way to change the default-effects for the drag-operations?
2.) If not, how would I register a custom DragProxy in the
DragManager, without changing the Flex-Framework?

thanks for any help.
andy




[flexcoders] Re: Itemrenderer combo's dataprovider from ModelLocator???

2008-06-06 Thread Tim Hoff

Hey Jerry,

No, referencing the model from anywhere in your application is the power
of MVC.  Most times you can get what you need from data or listData in
an itemRenderer.  But, there's nothing keeping you from using the model
any way that you need.

-TH

--- In flexcoders@yahoogroups.com, "slash_n_rose" <[EMAIL PROTECTED]>
wrote:
>
> Hi
> I'm using a Combobox control in my itemrenderer and its dataprovider
> is a Cairngorm ModelLocator variable. So my itemrenderer has a
> reference to ModelLocator. Is it a bad method by referencing model in
> Item Renderer,? If yes is there any other methods? Thanks in advance.
>
> Regards
> Jerry
>





Re: [flexcoders] Re: Thinking about going to the dark side....Apple Mac Book

2008-06-06 Thread David Pariente
About that, i used to read an article about price comparing between DELL and 
MACS...

They took the most powerfull Mac, and looked for an equal DELL. Equal i mean 
the same type of data bus speed, same ammount and memory speeds, same processor 
models (4 processors actually), etc. So, exactly the EQUAL machine.

The results: Dell one was 100us$ more expensive. what was almost same price 
cause was over 3000us$

of course, u can get a cheaper PC, but hardware and power will have NOTHING to 
be.

Later i did same, i looked for a Sony VAIO with EQUAL characteristics than a 
MacBook Pro. The VAIO was around same price, even slightly more expensive.

So...REALLY...when u buy a mac, u dont pay ANYTHING for it's beautifull design, 
but for its powerfull hardware.
I do leave that clear for everyone who choosing a mac or a pc.



- Mensaje original 
De: Josh McDonald <[EMAIL PROTECTED]>
Para: flexcoders@yahoogroups.com
Enviado: viernes, 6 de junio, 2008 0:50:45
Asunto: Re: [flexcoders] Re: Thinking about going to the dark sideApple Mac 
Book


They're not really pricey if you care about build and component quality and 
style though - Sure I could buy a cheap fugly dell for 2/3 the price, but if I 
were stuck in Windows I wouldn't be caught dead using "consumer" laptops. Lousy 
components, ugly and too much cheap plastic. I'd have to go for a Vaio, which 
is priced like a Mackbook Pro anyway.


On Fri, Jun 6, 2008 at 8:32 AM, Rob Rusher <[EMAIL PROTECTED] com> wrote:

For years I said that I couldn't/wouldn't switch to a Mac because I always need 
to do Windows specific tasks. But, with the Intel-based MacBook Pro and 
Parallels, I have install Windows XP SP3 on a separate partition and can run 
the two OS in tandem.

So I've been on a Mac for a little over a year now. I love the form factor of 
the machine; light and small. It is very powerful. I can test alpha/beta 
software on Windows and Mac. I can do .NET development on Windows. I do 
Flex/AIR development on both platforms.

I'd say that I'm fat and happy, but I only weigh a buck forty. But I'm am happy!

The down side, Macs are a little pricey.

Regards,
Rob


On Thu, Jun 5, 2008 at 4:20 PM, Josh McDonald <[EMAIL PROTECTED] com> wrote:

Anecdote of the minute: I'm fine on my bigass iMac, but there's 2 or 3 vista 
laptops in the office, and soapUI seems to have some Vista incompatibilities. 
Could be the fact we're using 2.0.3 which AFAIK is still unreleased, but it 
could be Vista too :)


On Fri, Jun 6, 2008 at 4:54 AM, Nancy Gill <[EMAIL PROTECTED] com> wrote:

Microsoft is already on record as pushing Windows 7 
out the door as soon as possible (probably late 2009) due to the Vista debacle 
.. remember Windows ME?   :)
 
Nancy
 
- Original Message - 
From: Joseph Balderson 
To: [EMAIL PROTECTED] ups.com 
Sent: Thursday, June 05, 2008 11:20  AM
Subject: Re: [flexcoders] Re: Thinking  about going to the dark sideApple 
Mac Book

I'm not trying to be glib, but don't use Vista. Use XP  SP3.

 _ _ _ _ 

Joseph  Balderson | http://joeflash. ca |  705-466-6345

b_alen wrote:
> Interesting. Me and my colleagues  are also thinking of switching to
> Mac due to Vista crappiness. In fact  we're 80% sure that next laptops
> will be Macs. My only concern is how  to do .Net development and
> integration with Flex then. Anyone has a  solution to that?
> 
> 
> 
> 
> 
> --- In [EMAIL PROTECTED] ups.com,  "scottyale2008" 
> wrote:
>> How  many Flex developers here are using a Mac for development? I've 
>>  been a die hard Microsoft guy since ... well, since Microsoft first 
>> started. I went from CPM on a Morrow Meadows to Microsoft DOS (on 
>> computers with a Turbo button!), then Windows, now Vista. I do  have an 
>> iPhone and it is an incredible device and the GUI is  extremely well 
>> done. I've never used a Mac, but many of my  friends have taken the 
>> plunge. Is it time to make the switch? I'm  thinking about a Mac Book 
>> Pro. Is a Mac Book even worth  considering for a Flex dev machine or is 
>> a Mac Book Pro the way  to go? Anybody else make the switch recently 
>> from Windows to  Mac?
>>
> 
> 
> 
>   - - --
> 
>  --
> Flexcoders Mailing List
> FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt
>  Search Archives: http://www.mail- archive.com/ flexcoders% 40yahoogroups. 
> comYahoo!  Groups Links
> 
> 
> 
> 


__ Information from ESET NOD32  Antivirus, version of virus signature 
database 3162 (20080605)  __

The message was checked by ESET NOD32 Antivirus.

http://www.eset. com
 



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED] com  


-- 
-- 
Regards,
Rob Rusher

Adobe Certified AIR, Connect, ColdFusion MX and Flex Instructor
m: 303-885-7044
im: robrusher  


-- 
"Therefore, send not to know For whom the bell tolls. It to

[flexcoders] initialize a fileReference object

2008-06-06 Thread David Pariente
Hello,

my project is almost finished, but i'm new to flex and found a problem i don't 
know how to solve...
I need to initialize a fileReference object.

This object is on a form, and everytime i get inside the form i need the object 
like new, with no content at all.

i tried:

var file_imgb:FileReference=new FileReference();
var file_imgs:FileReference=new FileReference();

public function iniciafiles_noticias():void
{
  file_imgb=null;
  file_imgs=null;
 
  var file_imgb:FileReference=new FileReference();
  var file_imgs:FileReference=new FileReference();

}

but after calling the function "iniciafiles_noticias()" the content of the 
objects still there :(

please, help me...T__T



  __ 
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.

[flexcoders] Re: Thinking about going to the dark side....Apple Mac Book

2008-06-06 Thread Tim Hoff

I don't knoow Anotole, but you probably have blinders on.  I'm as
successful, if not more than you, and a Vaio works just fine.  I'm sure
if power builder was on the block there would be different comments. 
Please all, stay on the Flex thread.

-TH

--- In flexcoders@yahoogroups.com, "Anatole Tartakovsky"
<[EMAIL PROTECTED]> wrote:
>
> I would stay away from Vaio for developers machine - a lot of
components
> with proprietary Sony drivers, XP models are not compatible with Vista
ones,
> no driver upgrades - they are OK for occasional/office user, but hard
to
> work with if you need to re-image or add/replace hardware. The only
one
> laptop comparable in my mind to MBP is Thinkpad T61 - good LCDs and
hard
> drives, power supply that does work on airplane, cheap memory and
comparable
> performance - but the quality has been declining steadily for years,
so it
> becomes chancy. However, the parts and design are still OK for machine
with
> lifespan of 2 years. We still buy them for our staff that goes to
Windows
> only shops - the difference in the price for identical hardware spec
is
> about 30%.
> HTH,
> Anatole
>
> On Thu, Jun 5, 2008 at 6:50 PM, Josh McDonald [EMAIL PROTECTED] wrote:
>
> > They're not really pricey if you care about build and component
quality
> > and style though - Sure I could buy a cheap fugly dell for 2/3 the
price,
> > but if I were stuck in Windows I wouldn't be caught dead using
"consumer"
> > laptops. Lousy components, ugly and too much cheap plastic. I'd have
to go
> > for a Vaio, which is priced like a Mackbook Pro anyway.
> >
> >
> > On Fri, Jun 6, 2008 at 8:32 AM, Rob Rusher [EMAIL PROTECTED] wrote:
> >
> >> For years I said that I couldn't/wouldn't switch to a Mac because I
> >> always need to do Windows specific tasks. But, with the Intel-based
MacBook
> >> Pro and Parallels, I have install Windows XP SP3 on a separate
partition and
> >> can run the two OS in tandem.
> >>
> >> So I've been on a Mac for a little over a year now. I love the form
factor
> >> of the machine; light and small. It is very powerful. I can test
alpha/beta
> >> software on Windows and Mac. I can do .NET development on Windows.
I do
> >> Flex/AIR development on both platforms.
> >>
> >> I'd say that I'm fat and happy, but I only weigh a buck forty. But
I'm am
> >> happy!
> >>
> >> The down side, Macs are a little pricey.
> >>
> >> Regards,
> >> Rob
> >>
> >> On Thu, Jun 5, 2008 at 4:20 PM, Josh McDonald [EMAIL PROTECTED] wrote:
> >>
> >>> Anecdote of the minute: I'm fine on my bigass iMac, but there's 2
or 3
> >>> vista laptops in the office, and soapUI seems to have some Vista
> >>> incompatibilities. Could be the fact we're using 2.0.3 which AFAIK
is still
> >>> unreleased, but it could be Vista too :)
> >>>
> >>> On Fri, Jun 6, 2008 at 4:54 AM, Nancy Gill [EMAIL PROTECTED] wrote:
> >>>
>  Microsoft is already on record as pushing Windows 7 out the door
as
>  soon as possible (probably late 2009) due to the Vista debacle ..
remember
>  Windows ME? :)
> 
>  Nancy
> 
> 
>  - Original Message -
>  *From:* Joseph Balderson [EMAIL PROTECTED]
>  *To:* flexcoders@yahoogroups.com
>  *Sent:* Thursday, June 05, 2008 11:20 AM
>  *Subject:* Re: [flexcoders] Re: Thinking about going to the dark
>  sideApple Mac Book
> 
>  I'm not trying to be glib, but don't use Vista. Use XP SP3.
> 
>  
> 
>  Joseph Balderson | http://joeflash.ca | 705-466-6345
> 
>  b_alen wrote:
>  > Interesting. Me and my colleagues are also thinking of
switching to
>  > Mac due to Vista crappiness. In fact we're 80% sure that next
laptops
>  > will be Macs. My only concern is how to do .Net development and
>  > integration with Flex then. Anyone has a solution to that?
>  >
>  >
>  >
>  >
>  >
>  > --- In flexcoders@yahoogroups.com
,
>  "scottyale2008" scottyale2008@
>  > wrote:
>  >> How many Flex developers here are using a Mac for development?
I've
>  >> been a die hard Microsoft guy since ... well, since Microsoft
first
>  >> started. I went from CPM on a Morrow Meadows to Microsoft DOS
(on
>  >> computers with a Turbo button!), then Windows, now Vista. I do
have
>  an
>  >> iPhone and it is an incredible device and the GUI is extremely
well
>  >> done. I've never used a Mac, but many of my friends have taken
the
>  >> plunge. Is it time to make the switch? I'm thinking about a
Mac Book
>  >> Pro. Is a Mac Book even worth considering for a Flex dev
machine or
>  is
>  >> a Mac Book Pro the way to go? Anybody else make the switch
recently
>  >> from Windows to Mac?
>  >>
>  >
>  >
>  >
>  > 
>  >
>  > --
>  > Flexcoders Mailing List
>  > FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>  > Search Archi

Re: [flexcoders] hiding a cell within a datagrid dynamically

2008-06-06 Thread Manu Dhanda

Here it is:

  





  
 
> Here is my code:
> 
> 
>   
> 
> 
> 
>  itemRenderer="mx.controls.CheckBox" />
> 
>   
>  
> 
> 
> I want to hide the "cashoutshares" column (or turn off the
> itemrenderer in that column)  based on the data value of "grant_year".
> 
> Thanks
> 
> 
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "jmfillman" <[EMAIL PROTECTED]> wrote:
>>
>> Anthony,
>> 
>> If you are passing the data from the columns of each row to the 
>> itemRenderer, you should be able to set visibility conditions from the 
>> itemRenderer.
>> 
>> If you post your code, I or someone else here might be able to provide 
>> a more specific suggestion.
>> 
>> JF
>> --- In flexcoders@yahoogroups.com, "anthony_morsey"  wrote:
>> >
>> > I have a datagrid with multiple columns and rows.  One of the columns
>> > contains a checkbox which is rendered with an itemRenderer.  I'd like
>> > to conditionally hide some of these checkboxes based on values from
>> > other columns with the same row.
>> > 
>> > Any ideas?
>> > 
>> > Thanks
>> >
>>
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/hiding-a-cell-within-a-datagrid-dynamically-tp17673007p17688100.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] Re: Thinking about going to the dark side....Apple Mac Book

2008-06-06 Thread David Pariente
select name from OS order by QUALITY desc;

name

linux
macOS
...
...
Vista, XP SP3...etc...

now, i think best option for working on media and have no hardware problems 
would be macOS, so i recommend u to make the switch.
Of course, u will miss many things from MS world, but also will get many extra 
things u won't find on MS world.
So just be optimistic, changes, even changes for good, allways imply adpatation 
problems. :)
MAKE THE CHANGE AND MAKE ME JEALOUS!


- Mensaje original 
De: Nancy Gill <[EMAIL PROTECTED]>
Para: flexcoders@yahoogroups.com
Enviado: jueves, 5 de junio, 2008 20:54:46
Asunto: Re: [flexcoders] Re: Thinking about going to the dark sideApple Mac 
Book


Microsoft is already on record as pushing Windows 7 
out the door as soon as possible (probably late 2009) due to the Vista debacle 
.. remember Windows ME?   :)
 
Nancy
 
- Original Message - 
From: Joseph Balderson 
To: [EMAIL PROTECTED] ups.com 
Sent: Thursday, June 05, 2008 11:20  AM
Subject: Re: [flexcoders] Re: Thinking  about going to the dark sideApple 
Mac Book

I'm not trying to be glib, but don't use Vista. Use XP  SP3.

 _ _ _ _ 

Joseph  Balderson | http://joeflash. ca |  705-466-6345

b_alen wrote:
> Interesting. Me and my colleagues  are also thinking of switching to
> Mac due to Vista crappiness. In fact  we're 80% sure that next laptops
> will be Macs. My only concern is how  to do .Net development and
> integration with Flex then. Anyone has a  solution to that?
> 
> 
> 
> 
> 
> --- In [EMAIL PROTECTED] ups.com,  "scottyale2008" 
> wrote:
>> How  many Flex developers here are using a Mac for development? I've 
>>  been a die hard Microsoft guy since ... well, since Microsoft first 
>> started. I went from CPM on a Morrow Meadows to Microsoft DOS (on 
>> computers with a Turbo button!), then Windows, now Vista. I do  have an 
>> iPhone and it is an incredible device and the GUI is  extremely well 
>> done. I've never used a Mac, but many of my  friends have taken the 
>> plunge. Is it time to make the switch? I'm  thinking about a Mac Book 
>> Pro. Is a Mac Book even worth  considering for a Flex dev machine or is 
>> a Mac Book Pro the way  to go? Anybody else make the switch recently 
>> from Windows to  Mac?
>>
> 
> 
> 
>   - - --
> 
>  --
> Flexcoders Mailing List
> FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt
>  Search Archives: http://www.mail- archive.com/ flexcoders% 40yahoogroups. 
> comYahoo!  Groups Links
> 
> 
> 
> 


__ Information from ESET NOD32  Antivirus, version of virus signature 
database 3162 (20080605)  __

The message was checked by ESET NOD32 Antivirus.

http://www.eset. com



  __ 
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.

Re: [flexcoders] know if .browse() was executed or not

2008-06-06 Thread David Pariente
I really think i didnt explain the real problem properly.

i did what u said without any problem. studied all documentation about 
fileReference too.

The point is that, IN ANOTHER POINT OF THE CODE, i wanna send the files.
the on_select is not useful for me. i will not send anything on_select, just 
put a pair of lines of code there.

But later, user will click the button SEND, and send all the files that he 
actually selected (with several browse() actions over several fileReference 
objects)

so when user click SEND i should check for all FileReference Objects, and send 
ONLY the ones that where actually selected.

So i need a fileReference.selected:boolean function or property, but there is 
no function like that. I tried to access to any property from the object, like 
.name but it would crash my app if the file was not selected.

so finally, what i need is something like this:

if (myFileReference.selected()=true) { myFileReference.upload() }

i tried this, but crashes when file is not selected:

if (myFileReference.name.length>0) { myFileReference.upload() }

i guess i could create a myFRselected variable for EVERY fileReference i 
have...but is not really a nice option :/


thnx




- Mensaje original 
De: Jon Bradley <[EMAIL PROTECTED]>
Para: flexcoders@yahoogroups.com
Enviado: jueves, 5 de junio, 2008 19:57:18
Asunto: Re: [flexcoders] know if .browse() was executed or not




On Jun 5, 2008, at 1:40 PM, David Pariente wrote:

Im not using a fileReferenceList, but a FileReference. And it seems i can't 
access any property of FileReference unless i have choosen a file. So there is 
no way to know if a file was selected.


Ok.  Then all you need to do is use FileReference instead of FileReferenceList. 
There is not much to change in the code.

Any attempt to get the .name property before the select event is dispatched 
will result in an IllegalOperationErr or (because you can't even look at name 
until Event.SELECT is dispatched).

So, in the onSelectFile method that I posted, .name will then be available - it 
will be null if no file was selected. Additionally, check the documentation on 
browse(). You might be doing something else funky that is wrong - such as 
messing with typelist and not providing descriptions or extension strings. 
There are a few things that would cause the browse() not to return true.

The following should work (not tested).

private var isBrowsingFile: Boolean = false;
private function addFiles():void 
{
myFileReference = new FileReference( );
if (!isBrowsingFile) {

 try
 {
isBrowsingFile  = myFileReference .browse() ;
myFileReference. addEventListener (Event.SELECT, onSelectFile) ;
 }
 catch (error:Error)
 {
isBrowsingFile = false;
 // Handle errors, or add listeners in the try block for errors
 // This is where you would get the IllegalOperationErr or

 }
}
else

{

trace("already browsing for a file");

}
}

// Called when file is selected
private function onSelectFile( event:Event) :void
{
isBrowsingFile = false;
if (myFileReference. name)
{
// whatever you want to do with the selected file
}
else
{
//no file selected
}
}

good luck with it,

jon



  __ 
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.

[flexcoders] LCDS: java.util.Date is not a supported type

2008-06-06 Thread benjidudu
I have a strange error with LCDS 2.5.1
I am using Microsoft Sql Server 2005 Express with Microsoft SQL Server
2005 JDBC Driver 1.2
When I do an update with the SQL assembler, I have the following error:

06/06 07:35:08 user [Flex] SQL Assembler jdbc exception on
operation=update-item
error=com.microsoft.sqlserver.jdbc.SQLServerException: The Java type
java.util.Date is not a supported type.
at
com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(Unknown
Source)
at
com.microsoft.sqlserver.jdbc.AppDTVImpl$SetValueOp.executeDefault(Unknown
Source)
at com.microsoft.sqlserver.jdbc.DTV.executeOp(Unknown Source)
at com.microsoft.sqlserver.jdbc.AppDTVImpl.setValue(Unknown Source)
at com.microsoft.sqlserver.jdbc.DTV.setValue(Unknown Source)
at com.microsoft.sqlserver.jdbc.Parameter.setValue(Unknown Source)
at
com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.setObject(Unknown
Source)
at
com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.setObject(Unknown
Source)
at
flex.data.assemblers.SQLAssembler.setSQLParameters(SQLAssembler.java:1342)
at flex.data.assemblers.SQLAssembler.updateItem(SQLAssembler.java:1206)
at flex.data.adapters.JavaAdapter.doUpdateItem(JavaAdapter.java:1659)
at
flex.data.adapters.JavaAdapter.invokeAssemblerSync(JavaAdapter.java:1545)
at
flex.data.adapters.JavaAdapter.invokeBatchOperation(JavaAdapter.java:1410)
at flex.data.adapters.JavaAdapter.invoke(JavaAdapter.java:545)
at
flex.messaging.services.MessageService.serviceMessage(MessageService.java:252)
at flex.data.DataService.sendBatchToAdapter(DataService.java:1213)
at flex.data.DataService.serviceTransactedMessage(DataService.java:737)
at flex.data.DataService.serviceMessage(DataService.java:429)
at
flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1165)
at
flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:757)
at
flex.messaging.endpoints.rtmp.AbstractRTMPServer.dispatchMessage(AbstractRTMPServer.java:888)
at
flex.messaging.endpoints.rtmp.NIORTMPConnection$RTMPReader.run(NIORTMPConnection.java:424)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
at java.lang.Thread.run(Unknown Source)


Any ideas what I am doing wrong?

If that can help, this is the vo I use:
package com.janusmediasoft.ctcsp.model.vo
{
[Managed]
[RemoteClass]
public class AccountVO
{
public var acc_no:String = "";
public var acc_name:String = "";
public var status:Boolean = false;
public var email:String = "";
public var tel:String = "";
public var mobile:String = "";
public var group_id:Number;
public var vpn_id:String = "";
public var start_d:Date;
public var stop_d:Date;
public var reset: Boolean = false;
public var apply:String = "";
public var apply_d:Date;
public var prog_allow_all:Boolean = false;
public var cir_allow_all:Boolean = false;
public var stype_allow_all:Boolean = false;
}
}

Thanks,

Benjamin



[flexcoders] Re: Thinking about going to the dark side....Apple Mac Book

2008-06-06 Thread fb6668
I use a little ole' MacBook for most of my development. All my .NET
stuff runs on my Windows partition using Parallels and Virtue
Desktops, faster than my fully-fledged PC lappy, and then enerything
else is done on OSX. I was a little dubious at first when this
configuration was advised to me, but it works fantastically. Devving,
testing and debugging in the two environments within one little
(beautifully crafted and developed) box. Awesome. 
If you are looking to get one, the new MacBook Pro is rumoured to be
announced on 9th June, so wait for that, and whatver you do, buy the
minimum RAM from Apple and upgrade it yourself, cuz theirs is a rip-off!

Personally, I would never buy a Dell after years of having problems
with their cheap and shoddy components. They may have got better in
recent years, but my previous experiences make me shudder every time I
hear the word "Dell". 

--- In flexcoders@yahoogroups.com, Joseph Balderson <[EMAIL PROTECTED]> wrote:
>
> (Slightly off-topic) Recently I wanted to get a fully-loaded, workhorse 
> PC with XP-OEM installed, no crapware, and a matt screen (cause I
cannot 
> STAND the highly reflective screens that seem to be all the rage 
> nowadays) -- and I found it in the Dell Latitude D830. My review here:
>
http://www.joeflash.ca/blog/2008/04/how-i-bought-my-perfect-xp-laptop.html
> 
> The other reason I bought it is that it's got a really solid 
> construction, no cheap plastic, and without weighing a ton -- and at my 
> former employers', that's all they would buy were the Latitude, so I 
> know they can take quite a beating.
> 
> So if you're going to buy a PC laptop, it pays to dig for the 
> not-so-newest-fad to find quality.
> 
> 
> ___
> 
> Joseph Balderson, Flash Platform Developer | http://joeflash.ca
> 
> 
> Anatole Tartakovsky wrote:
> > I would stay away from Vaio for developers machine - a lot of
components 
> > with proprietary Sony drivers, XP models are not compatible with
Vista 
> > ones, no driver upgrades - they are OK for occasional/office user,
but 
> > hard to work with if you need to re-image or add/replace hardware.
The 
> > only one laptop comparable in my mind to MBP is Thinkpad T61 -
good LCDs 
> > and hard drives, power supply that does work on airplane, cheap
memory 
> > and comparable performance - but the quality has been declining
steadily 
> > for years, so it becomes chancy. However, the parts and design are
still 
> > OK for machine with lifespan of 2 years. We still buy them for our
staff 
> > that goes to Windows only shops - the difference in the price for 
> > identical hardware spec is about 30%.
> > 
> > HTH,
> > Anatole   
> > 
> > On Thu, Jun 5, 2008 at 6:50 PM, Josh McDonald <[EMAIL PROTECTED] 
> > > wrote:
> > 
> > They're not really pricey if you care about build and component
> > quality and style though - Sure I could buy a cheap fugly dell for
> > 2/3 the price, but if I were stuck in Windows I wouldn't be caught
> > dead using "consumer" laptops. Lousy components, ugly and too much
> > cheap plastic. I'd have to go for a Vaio, which is priced like a
> > Mackbook Pro anyway.
> > 
> > 
> > 
> > On Fri, Jun 6, 2008 at 8:32 AM, Rob Rusher <[EMAIL PROTECTED]
> > > wrote:
> > 
> > For years I said that I couldn't/wouldn't switch to a Mac
> > because I always need to do Windows specific tasks. But, with
> > the Intel-based MacBook Pro and Parallels, I have install
> > Windows XP SP3 on a separate partition and can run the two
OS in
> > tandem.
> > 
> > So I've been on a Mac for a little over a year now. I love the
> > form factor of the machine; light and small. It is very
> > powerful. I can test alpha/beta software on Windows and Mac. I
> > can do .NET development on Windows. I do Flex/AIR
development on
> > both platforms.
> > 
> > I'd say that I'm fat and happy, but I only weigh a buck forty.
> > But I'm am happy!
> > 
> > The down side, Macs are a little pricey.
> > 
> > Regards,
> > Rob
> > 
> > On Thu, Jun 5, 2008 at 4:20 PM, Josh McDonald <[EMAIL PROTECTED]
> > > wrote:
> > 
> > Anecdote of the minute: I'm fine on my bigass iMac, but
> > there's 2 or 3 vista laptops in the office, and soapUI
seems
> > to have some Vista incompatibilities. Could be the fact
> > we're using 2.0.3 which AFAIK is still unreleased, but it
> > could be Vista too :)
> > 
> > On Fri, Jun 6, 2008 at 4:54 AM, Nancy Gill
> > <[EMAIL PROTECTED] > wrote:
> > 
> > Microsoft is already on record as pushing Windows
7 out
> > the door as soon as possible (probably late 2009)
due to
> > the Vista d