Re: [flexcoders] Ely's Flexbook

2008-10-06 Thread Haykel BEN JEMIA
The only case where it seems to happen is when you have covers and one page!
This is anyway a seldom situation because when you have covers you should
have at least 2 pages (the internal sides of the covers). I think you just
have to account for this case and you should be able to use this wonderful
control.
Now if you want to know why this is happening, then we have to do some
debugging!


On Mon, Oct 6, 2008 at 11:40 AM, Uday M. Shankar <[EMAIL PROTECTED]>wrote:

>   I am trying to use Ely's FlexBook component in one of my projects.
>
> But, I keep running into a problem which I am not able to fix.
>
> Let me explain...
>
> I can replicate this issue in the boundaries example @
> http://demo.quietlyscheming.com/book/boundaries.html.
>
> Follow these steps in the boundaries example.
> 1. Check the Add Covers checkbox on the left side.
> 2. Then, click on Add Page button to add a page to the book. Now PAGE A
> is added to the book. (as inner front cover)
> 3. Now, try to close the book by click-dragging the back cover.
>
> At this point, the book will throw the following error -
> ArgumentError: Error #2025: The supplied DisplayObject must be a child
> of the caller.
> at flash.display::DisplayObjectContainer/removeChild()
> at
> mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::$remove\
> Child ()
> at mx.core::UIComponent/removeChild()
> at qs.controls.bookClasses::BookPageImpl/set rightRenderer()
> at qs.controls.bookClasses::BookPageImpl/clearContent()
> at qs.controls::Book/commitProperties()
> at mx.core::UIComponent/validateProperties()
> at mx.managers::LayoutManager/validateProperties()
> at mx.managers::LayoutManager/doPhasedInstantiation()
> at Function/http://adobe.com/AS3/2006/builtin::apply()
> 
>
> Can anybody help me with this?
> am stuck in my project because am not able to fix this.
>
>  
>



-- 
Haykel Ben Jemia

Allmas
Web & RIA Development
http://www.allmas-tn.com


Re: [flexcoders] Ely's Flexbook

2008-10-06 Thread Uday M. Shankar
actually I tried out using Ruben's component But, I am facing the exact
same error when I try to add pages to the book, dynamically...


On Mon, Oct 6, 2008 at 6:33 PM, wkolcz <[EMAIL PROTECTED]> wrote:

>  Check out: http://www.rubenswieringa.com/blog/flex-book-component-alpha
>
> I have been using it and its really easy to work with
>
> --
> *From*: "Uday M. Shankar" <[EMAIL PROTECTED]>
> *Sent*: Monday, October 06, 2008 6:02 AM
> *To*: flexcoders@yahoogroups.com
> *Subject*: [flexcoders] Ely's Flexbook
>
>
> I am trying to use Ely's FlexBook component in one of my projects.
>
> But, I keep running into a problem which I am not able to fix.
>
> Let me explain...
>
> I can replicate this issue in the boundaries example @
> http://demo.quietlyscheming.com/book/boundaries.html.
>
> Follow these steps in the boundaries example.
> 1. Check the Add Covers checkbox on the left side.
> 2. Then, click on Add Page button to add a page to the book. Now PAGE A
> is added to the book. (as inner front cover)
> 3. Now, try to close the book by click-dragging the back cover.
>
> At this point, the book will throw the following error -
> ArgumentError: Error #2025: The supplied DisplayObject must be a child
> of the caller.
> at flash.display::DisplayObjectContainer/removeChild()
> at
> mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::$remove\
> Child ()
> at mx.core::UIComponent/removeChild()
> at qs.controls.bookClasses::BookPageImpl/set rightRenderer()
> at qs.controls.bookClasses::BookPageImpl/clearContent()
> at qs.controls::Book/commitProperties()
> at mx.core::UIComponent/validateProperties()
> at mx.managers::LayoutManager/validateProperties()
> at mx.managers::LayoutManager/doPhasedInstantiation()
> at Function/http://adobe.com/AS3/2006/builtin::apply()
> 
>
> Can anybody help me with this?
> am stuck in my project because am not able to fix this.
>
>
> 
>


Re: [flexcoders] Log4J like library

2008-10-06 Thread Anatole Tartakovsky
have you looked at myflex.org?Thank you
Anatole


On Mon, Oct 6, 2008 at 5:14 AM, Shahid Faiz <[EMAIL PROTECTED]> wrote:

>   Hi,
>
> Does anyone know log4j like library for AIR applications? It is really hard
> to trace a problem when application is in testing or production without such
> utility.
>
> Thanks,
> Shahid
>
>  
>


Re: [flexcoders] handling data within a datagrid

2008-10-06 Thread Greg Morphis
That was a typo instead of copying and pasting..
mySelectedRow is an ArrayCollection
I'm assignin the event.target.selectedItem which is a datagrid row to it..
I want to knmow why it's not working the way it should...

To learn I'm creating a budgetbook of sorts.. so here's what I have
copied and pasted..

public function handleChangeEvent(event:DataGridEvent):void
{
MyModel.getInstance().SelectedBudgetAC = event.target.selectedItem as
ArrayCollection;
Alert.show(MyModel.getInstance().SelectedBudgetAC.getItemAt(0).payee);
var evt:CairngormEvent = new CairngormEvent(MyControl.EVENT_GET_BUDGET_DETAILS);
CairngormEventDispatcher.getInstance().dispatchEvent(evt);  


}


public var Budget:BudgetVO;
public var BudgetAC:ArrayCollection;
public var budgetID:Number;
public var SelectedBudgetAC:ArrayCollection;

sorry about that..





On Mon, Oct 6, 2008 at 9:02 PM, Tracy Spratt <[EMAIL PROTECTED]> wrote:
> Then how are you expecting that setting "mySelectedRow" property will do
> anything regarding the "SelectedBudgetAC" property?
>
> Tracy
>
>
>
> 
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Greg Morphis
> Sent: Monday, October 06, 2008 8:02 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] handling data within a datagrid
>
>
>
> No, just global variables
>
> On Mon, Oct 6, 2008 at 7:13 PM, Tracy Spratt <[EMAIL PROTECTED]> wrote:
>> Does MyModel handle the relationship between mySelectedRow and
>> SelectedBudgetAC? Using setters or getters?
>>
>> Tracy
>>
>>
>>
>> 
>>
>> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
>> Behalf Of Greg Morphis
>> Sent: Monday, October 06, 2008 7:48 PM
>> To: flexcoders@yahoogroups.com
>> Subject: [flexcoders] handling data within a datagrid
>>
>>
>>
>> I've got my datagrid populating but I need to see that data in aother
>> location within my app.
>> In my MyModel.as
>> I have a "global" variable
>> public var mySelectedRow:ArrayCollection;
>>
>> I've tried setting this variable in the dataGrid change event...
>> public function handleChangeEvent(event:Event):void
>> {
>> MyModel.getInstance().mySelectedRow = event.target.selectedItem as
>> ArrayCollection;
>> Alert.show(MyModel.getInstance().SelectedBudgetAC.getItemAt(0).amount);
>> var evt:CairngormEvent = new
>> CairngormEvent(MyControl.EVENT_GET_DATA_DETAILS);
>> CairngormEventDispatcher.getInstance().dispatchEvent(evt);
>>
>> }
>>
>> The Alert returns a null error.. but it looks like it should be working?
>> What I'm trying to do is I have a VO I need to populate.. I was going
>> to do that within a command (is that best practice? -- to seperate
>> display from logic)
>> So anywho I'm trying to populate that arraycollection and then in the
>> command do all the fun stuff...
>> var myVO:FootVO = MyModel.getInstance().FooVO;
>> myVO.amount = MyModel.getInstance().SelectedBudgetAC.getItemAt(0).amount;
>>
>> but I'm getting a null error.. is this the proper way to load a VO
>> from a selected DataGrid row?
>>
>> Thanks
>>
>>
>
> 


RE: [flexcoders] handling data within a datagrid

2008-10-06 Thread Tracy Spratt
Then how are you expecting that setting "mySelectedRow" property will do
anything regarding the "SelectedBudgetAC" property?

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Greg Morphis
Sent: Monday, October 06, 2008 8:02 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] handling data within a datagrid

 

No, just global variables

On Mon, Oct 6, 2008 at 7:13 PM, Tracy Spratt <[EMAIL PROTECTED]
 > wrote:
> Does MyModel handle the relationship between mySelectedRow and
> SelectedBudgetAC? Using setters or getters?
>
> Tracy
>
>
>
> 
>
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of Greg Morphis
> Sent: Monday, October 06, 2008 7:48 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] handling data within a datagrid
>
>
>
> I've got my datagrid populating but I need to see that data in aother
> location within my app.
> In my MyModel.as
> I have a "global" variable
> public var mySelectedRow:ArrayCollection;
>
> I've tried setting this variable in the dataGrid change event...
> public function handleChangeEvent(event:Event):void
> {
> MyModel.getInstance().mySelectedRow = event.target.selectedItem as
> ArrayCollection;
>
Alert.show(MyModel.getInstance().SelectedBudgetAC.getItemAt(0).amount);
> var evt:CairngormEvent = new
> CairngormEvent(MyControl.EVENT_GET_DATA_DETAILS);
> CairngormEventDispatcher.getInstance().dispatchEvent(evt);
>
> }
>
> The Alert returns a null error.. but it looks like it should be
working?
> What I'm trying to do is I have a VO I need to populate.. I was going
> to do that within a command (is that best practice? -- to seperate
> display from logic)
> So anywho I'm trying to populate that arraycollection and then in the
> command do all the fun stuff...
> var myVO:FootVO = MyModel.getInstance().FooVO;
> myVO.amount =
MyModel.getInstance().SelectedBudgetAC.getItemAt(0).amount;
>
> but I'm getting a null error.. is this the proper way to load a VO
> from a selected DataGrid row?
>
> Thanks
>
> 

 



RE: [flexcoders] flex application is not loading under HTTPS

2008-10-06 Thread Peter Farland
Note there are several variants of no-cache headers. This is a separate known 
issue with MSIE listed here:
http://support.microsoft.com/kb/323308



Re: [flexcoders] flex application is not loading under HTTPS

2008-10-06 Thread venkateswarlu naidu
Pete,

Sorry, Actually we are not using the GZip compression with chunked encoding but 
still i m seeing the same error both in IE6 and IE7.
But when we check the option 'Do not save encrypted pages to disk' in Internet 
options, then the SWF is loading into browser.
But we cant ask every user to check that option, right?

I am suspecting "Cache-Control : no-cache" http header which is getting added 
to the response headers, i tried to remove that but no luck.

Let me know if there is any solution other than setting the IE options.

Thanks for your help.

 Regards,
Venkat.



- Original Message 
From: Peter Farland <[EMAIL PROTECTED]>
To: "flexcoders@yahoogroups.com" 
Sent: Sunday, 5 October, 2008 6:55:09 PM
Subject: RE: [flexcoders] flex application is not loading under HTTPS


You may be running into something like this known MSIE issue:
http://support. microsoft. com/kb/871205

Pete

 - - - - - -
From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On Behalf Of 
venkateswarlu naidu
Sent: Sunday, October 05, 2008 11:56 AM
To: [EMAIL PROTECTED] ups.com
Subject: Re: [flexcoders] flex application is not loading under HTTPS

Hi Pete,

I ran IEWatch tool and saw one error ERROR_INTERNET_ UNABLE_TO_ CACHE_FILE as 
status while loading the SWF.
What could be the problem?

Thanks & Regards,
Venkat.



  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

[flexcoders] Re: FlexBuilder issue

2008-10-06 Thread Heidi Williams
You might try clearing your workspace. It sounds like you have a bad cache in 
there somewhere. Quit Flex Builder and then delete the .metadata and 
configuration folders in your workspace (but not your projects). You can then 
reimport your projects when you re-launch Flex Buider. The easiest way to find 
your workspace (if you don't know where it is) is to launch FB and choose 
Switch Workspace. The path shown is your current workspace. Then just cancel 
out of that dialog, quit FB and follow the steps above.

Hope that helps,
-Heidi


Re: [flexcoders] handling data within a datagrid

2008-10-06 Thread Greg Morphis
No, just global variables



On Mon, Oct 6, 2008 at 7:13 PM, Tracy Spratt <[EMAIL PROTECTED]> wrote:
> Does MyModel handle the relationship between mySelectedRow and
> SelectedBudgetAC?  Using setters or getters?
>
> Tracy
>
>
>
> 
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Greg Morphis
> Sent: Monday, October 06, 2008 7:48 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] handling data within a datagrid
>
>
>
> I've got my datagrid populating but I need to see that data in aother
> location within my app.
> In my MyModel.as
> I have a "global" variable
> public var mySelectedRow:ArrayCollection;
>
> I've tried setting this variable in the dataGrid change event...
> public function handleChangeEvent(event:Event):void
> {
> MyModel.getInstance().mySelectedRow = event.target.selectedItem as
> ArrayCollection;
> Alert.show(MyModel.getInstance().SelectedBudgetAC.getItemAt(0).amount);
> var evt:CairngormEvent = new
> CairngormEvent(MyControl.EVENT_GET_DATA_DETAILS);
> CairngormEventDispatcher.getInstance().dispatchEvent(evt);
>
> }
>
> The Alert returns a null error.. but it looks like it should be working?
> What I'm trying to do is I have a VO I need to populate.. I was going
> to do that within a command (is that best practice? -- to seperate
> display from logic)
> So anywho I'm trying to populate that arraycollection and then in the
> command do all the fun stuff...
> var myVO:FootVO = MyModel.getInstance().FooVO;
> myVO.amount = MyModel.getInstance().SelectedBudgetAC.getItemAt(0).amount;
>
> but I'm getting a null error.. is this the proper way to load a VO
> from a selected DataGrid row?
>
> Thanks
>
> 


RE: [flexcoders] handling data within a datagrid

2008-10-06 Thread Tracy Spratt
Does MyModel handle the relationship between mySelectedRow and
SelectedBudgetAC?  Using setters or getters?

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Greg Morphis
Sent: Monday, October 06, 2008 7:48 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] handling data within a datagrid

 

I've got my datagrid populating but I need to see that data in aother
location within my app.
In my MyModel.as
I have a "global" variable
public var mySelectedRow:ArrayCollection;

I've tried setting this variable in the dataGrid change event...
public function handleChangeEvent(event:Event):void
{
MyModel.getInstance().mySelectedRow = event.target.selectedItem as
ArrayCollection;
Alert.show(MyModel.getInstance().SelectedBudgetAC.getItemAt(0).amount);
var evt:CairngormEvent = new
CairngormEvent(MyControl.EVENT_GET_DATA_DETAILS);
CairngormEventDispatcher.getInstance().dispatchEvent(evt); 

}

The Alert returns a null error.. but it looks like it should be working?
What I'm trying to do is I have a VO I need to populate.. I was going
to do that within a command (is that best practice? -- to seperate
display from logic)
So anywho I'm trying to populate that arraycollection and then in the
command do all the fun stuff...
var myVO:FootVO = MyModel.getInstance().FooVO;
myVO.amount =
MyModel.getInstance().SelectedBudgetAC.getItemAt(0).amount;

but I'm getting a null error.. is this the proper way to load a VO
from a selected DataGrid row?

Thanks

 



Re: [flexcoders] Can I play a video in slow motion? or frame by frame?

2008-10-06 Thread Josh McDonald
Also, IIRC "seek" only goes to the nearest keyframe as well.

-Josh

On Tue, Oct 7, 2008 at 12:58 AM, Johannes Nel <[EMAIL PROTECTED]>wrote:

>  i would advise against that. if you are playing the video in slow motion
> i would recomed making bitmap snapshots and using those to play it any pace
> you desire.
>
>
> On Mon, Oct 6, 2008 at 4:53 PM, Tom Chiverton <
> [EMAIL PROTECTED]> wrote:
>
>> On Saturday 04 Oct 2008, luvfotography wrote:
>> > Is there a way for the video player to play in slow motion or step
>> > frame by frame, or play a video in reverse?
>>
>> You can play/pause and seek, so yes, probably.
>>
>>
>> --
>> Tom Chiverton
>> Helping to collaboratively promote high-yield turn-key patterns
>>
>>
>>
>> 
>>
>> 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 Mailing List
>> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>> Alternative FAQ location:
>> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
>> Search Archives:
>> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
>> Links
>>
>>
>>
>>
>
>
> --
> j:pn
> \\no comment
>  
>



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

http://flex.joshmcdonald.info/

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


[flexcoders] handling data within a datagrid

2008-10-06 Thread Greg Morphis
I've got my datagrid populating but I need to see that data in aother
location within my app.
In my MyModel.as
I have a "global" variable
public var mySelectedRow:ArrayCollection;


I've tried setting this variable in the dataGrid change event...
 public function handleChangeEvent(event:Event):void
 {
MyModel.getInstance().mySelectedRow = 
event.target.selectedItem as
ArrayCollection;

Alert.show(MyModel.getInstance().SelectedBudgetAC.getItemAt(0).amount);
var evt:CairngormEvent = new
CairngormEvent(MyControl.EVENT_GET_DATA_DETAILS);

CairngormEventDispatcher.getInstance().dispatchEvent(evt);  


 }


The Alert returns a null error.. but it looks like it should be working?
What I'm trying to do is I have a VO I need to populate.. I was going
to do that within a command (is that best practice? -- to seperate
display from logic)
So anywho I'm trying to populate that arraycollection and then in the
command do all the fun stuff...
var myVO:FootVO = MyModel.getInstance().FooVO;
myVO.amount = 
MyModel.getInstance().SelectedBudgetAC.getItemAt(0).amount;

but I'm getting a null error.. is this the proper way to load a VO
from a selected DataGrid row?

Thanks


[flexcoders] Remove

2008-10-06 Thread Betty Carr
Remove


  

[flexcoders] Re: Custom header renderer and headerText

2008-10-06 Thread Tim Hoff

You tell me.  The example below will display whatever you place in the
DataGridColumn headerText property.

-TH

--- In flexcoders@yahoogroups.com, "markgoldin_2000"
<[EMAIL PROTECTED]> wrote:
>
> And then I will be able to access headerText like this:
> columns[somevar].headerText ?
>
> --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> >
> >
> > Mark,
> >
> > Do something like this for the HeaderRenderer:
> >
> > 
> > http://www.adobe.com/2006/mxml";
> > horizontalAlign="center">
> > 
> > 
> >
> > -TH
> >
> > --- In flexcoders@yahoogroups.com, "markgoldin_2000"
> >  wrote:
> > >
> > > Anybody please help, I am really stuck with it.
> > >
> > > --- In flexcoders@yahoogroups.com, "markgoldin_2000"
> > > markgoldin_2000@ wrote:
> > > >
> > > > How do I get headerText if I use VBox + Label as a custom header
> > > > renderer?
> > > >
> > > > Thanks
> > > >
> > >
> >
>





[flexcoders] Re: datagrid itemRenderer help

2008-10-06 Thread Tim Hoff

Ha, well we wouldn't want the inmates running the asylum.  Props to Amy
too.

-TH

--- In flexcoders@yahoogroups.com, "Greg Morphis" <[EMAIL PROTECTED]> wrote:
>
> Tim, you nailed it..
> so set data keeps running until datagrid is full?
> I have to read up on this tonight.. but you saved my sanity! Thanks!
>
> On Mon, Oct 6, 2008 at 4:39 PM, Tim Hoff [EMAIL PROTECTED] wrote:
> > data is probably null the first time that updateDisplayList is
called. You
> > can either put your conditional logic in the commitProperties() or
set
> > data() methods.
> >
> > Override public function set data( value : Object ) : void
> > {
> > if (value != null)
> > {
> > super.data = value;
> > this.text = data.myField; // might want to debug this line to
> > see the data
> > {
> > }
> >
> > -TH
> >
> > --- In flexcoders@yahoogroups.com, "Greg Morphis" gmorphis@ wrote:
> >>
> >> I changed the PriceLabel.as file to this..
> >>
> >> package com.renderers {
> >> import mx.controls.Label;
> >> import mx.controls.listClasses.*;
> >> import mx.controls.Alert;
> >>
> >> public class PriceLabel extends Label {
> >>
> >> override public function set data( value : Object ) : void
> >> {
> >> if (value != null) super.data = value;
> >> }
> >>
> >>
> >> override protected function
> >> updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
{
> >> //super.updateDisplayList(unscaledWidth, unscaledHeight);
> >> //Alert.show(data.toString());
> >>
> >>
> >> }
> >> }
> >> }
> >>
> >>
> >> I added a breakpoint after the commented out alert and still
this.data
> >> shows null...
> >> Any other ideas? I'm out of them
> >>
> >>
> >> On Mon, Oct 6, 2008 at 4:23 PM, Greg Morphis gmorphis@ wrote:
> >> > What do you mean?
> >> > The collection shows in the dataGrid just fine, it's the custom
> >> > itemRenderer that isn't working?
> >> > Is there something else I can provide to check this?
> >> >
> >> > Thanks
> >> >
> >> > On Mon, Oct 6, 2008 at 4:20 PM, Tim Hoff TimHoff@ wrote:
> >> >>
> >> >> Correct. Perhaps the collection isn't bound to the dataProvider
> >> >> correctly.
> >> >>
> >> >> -TH
> >> >>
> >> >> --- In flexcoders@yahoogroups.com, "Amy" amyblankenship@ wrote:
> >> >>>
> >> >>> --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> >> >>> >
> >> >>> >
> >> >>> > You might try adding this Greg:
> >> >>> >
> >> >>> > override public function set data( value : Object ) : void
> >> >>> > {
> >> >>> > if (value != null) super.data = value;
> >> >>> > }
> >> >>> >
> >> >>> > The data property will be null until the service call has
returned
> >> >> and
> >> >>> > populated the collection.
> >> >>>
> >> >>> Label already implements IDropInListItemRenderer and
IDataRenderer.
> >> >>> Presumably correctly...
> >> >>>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> 
> >> >>
> >> >> --
> >> >> Flexcoders Mailing List
> >> >> FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> >> >> Alternative FAQ location:
> >> >>
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-\
1e62079f6847
> >> >> Search Archives:
> >> >> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
Groups Links
> >> >>
> >> >>
> >> >>
> >> >>
> >> >
> >>
> >
> >
>





Re: [flexcoders] Re: datagrid itemRenderer help

2008-10-06 Thread Greg Morphis
Tim, you nailed it..
so set data keeps running until datagrid is full?
I have to read up on this tonight.. but you saved my sanity! Thanks!

On Mon, Oct 6, 2008 at 4:39 PM, Tim Hoff <[EMAIL PROTECTED]> wrote:
> data is probably null the first time that updateDisplayList is called.  You
> can either put your conditional logic in the commitProperties() or set
> data() methods.
>
> Override public function set data( value : Object ) : void
> {
> if (value != null)
> {
>  super.data = value;
>  this.text = data.myField;  // might want to debug this line to
> see the data
> {
> }
>
> -TH
>
> --- In flexcoders@yahoogroups.com, "Greg Morphis" <[EMAIL PROTECTED]> wrote:
>>
>> I changed the PriceLabel.as file to this..
>>
>> package com.renderers {
>> import mx.controls.Label;
>> import mx.controls.listClasses.*;
>> import mx.controls.Alert;
>>
>> public class PriceLabel extends Label {
>>
>> override public function set data( value : Object ) : void
>> {
>> if (value != null) super.data = value;
>> }
>>
>>
>> override protected function
>> updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
>> //super.updateDisplayList(unscaledWidth, unscaledHeight);
>> //Alert.show(data.toString());
>>
>>
>> }
>> }
>> }
>>
>>
>> I added a breakpoint after the commented out alert and still this.data
>> shows null...
>> Any other ideas? I'm out of them
>>
>>
>> On Mon, Oct 6, 2008 at 4:23 PM, Greg Morphis [EMAIL PROTECTED] wrote:
>> > What do you mean?
>> > The collection shows in the dataGrid just fine, it's the custom
>> > itemRenderer that isn't working?
>> > Is there something else I can provide to check this?
>> >
>> > Thanks
>> >
>> > On Mon, Oct 6, 2008 at 4:20 PM, Tim Hoff [EMAIL PROTECTED] wrote:
>> >>
>> >> Correct. Perhaps the collection isn't bound to the dataProvider
>> >> correctly.
>> >>
>> >> -TH
>> >>
>> >> --- In flexcoders@yahoogroups.com, "Amy" amyblankenship@ wrote:
>> >>>
>> >>> --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
>> >>> >
>> >>> >
>> >>> > You might try adding this Greg:
>> >>> >
>> >>> > override public function set data( value : Object ) : void
>> >>> > {
>> >>> > if (value != null) super.data = value;
>> >>> > }
>> >>> >
>> >>> > The data property will be null until the service call has returned
>> >> and
>> >>> > populated the collection.
>> >>>
>> >>> Label already implements IDropInListItemRenderer and IDataRenderer.
>> >>> Presumably correctly...
>> >>>
>> >>
>> >>
>> >>
>> >>
>> >> 
>> >>
>> >> --
>> >> Flexcoders Mailing List
>> >> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>> >> Alternative FAQ location:
>> >> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
>> >> Search Archives:
>> >> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups 
>> >> Links
>> >>
>> >>
>> >>
>> >>
>> >
>>
>
> 


[flexcoders] Re: datagrid itemRenderer help

2008-10-06 Thread Tim Hoff

data is probably null the first time that updateDisplayList is called. 
You can either put your conditional logic in the commitProperties() or
set data() methods.

Override public function set data( value : Object ) : void
{
 if (value != null)
 {
  super.data = value;
  this.text = data.myField;  // might want to debug this line to
see the data
 {
}

-TH

--- In flexcoders@yahoogroups.com, "Greg Morphis" <[EMAIL PROTECTED]> wrote:
>
> I changed the PriceLabel.as file to this..
>
> package com.renderers {
> import mx.controls.Label;
> import mx.controls.listClasses.*;
> import mx.controls.Alert;
>
> public class PriceLabel extends Label {
>
> override public function set data( value : Object ) : void
> {
> if (value != null) super.data = value;
> }
>
>
> override protected function
> updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
> //super.updateDisplayList(unscaledWidth, unscaledHeight);
> //Alert.show(data.toString());
>
>
> }
> }
> }
>
>
> I added a breakpoint after the commented out alert and still this.data
> shows null...
> Any other ideas? I'm out of them
>
>
> On Mon, Oct 6, 2008 at 4:23 PM, Greg Morphis [EMAIL PROTECTED] wrote:
> > What do you mean?
> > The collection shows in the dataGrid just fine, it's the custom
> > itemRenderer that isn't working?
> > Is there something else I can provide to check this?
> >
> > Thanks
> >
> > On Mon, Oct 6, 2008 at 4:20 PM, Tim Hoff [EMAIL PROTECTED] wrote:
> >>
> >> Correct. Perhaps the collection isn't bound to the dataProvider
> >> correctly.
> >>
> >> -TH
> >>
> >> --- In flexcoders@yahoogroups.com, "Amy" amyblankenship@ wrote:
> >>>
> >>> --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> >>> >
> >>> >
> >>> > You might try adding this Greg:
> >>> >
> >>> > override public function set data( value : Object ) : void
> >>> > {
> >>> > if (value != null) super.data = value;
> >>> > }
> >>> >
> >>> > The data property will be null until the service call has
returned
> >> and
> >>> > populated the collection.
> >>>
> >>> Label already implements IDropInListItemRenderer and
IDataRenderer.
> >>> Presumably correctly...
> >>>
> >>
> >>
> >>
> >>
> >> 
> >>
> >> --
> >> Flexcoders Mailing List
> >> FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> >> Alternative FAQ location:
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-\
1e62079f6847
> >> Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
Links
> >>
> >>
> >>
> >>
> >
>




Re: [flexcoders] Re: datagrid itemRenderer help

2008-10-06 Thread Greg Morphis
I changed the PriceLabel.as file to this..

package com.renderers {
import mx.controls.Label;
import mx.controls.listClasses.*;
import mx.controls.Alert;

public class PriceLabel extends Label {

override public function set data( value : Object ) : void
{
if (value != null)   super.data = value;
}


override protected function
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
//super.updateDisplayList(unscaledWidth, unscaledHeight);
//Alert.show(data.toString());


}
}
}


I added a breakpoint after the commented out alert and still this.data
shows null...
Any other ideas? I'm out of them


On Mon, Oct 6, 2008 at 4:23 PM, Greg Morphis <[EMAIL PROTECTED]> wrote:
> What do you mean?
> The collection shows in the dataGrid just fine, it's the custom
> itemRenderer that isn't working?
> Is there something else I can provide to check this?
>
> Thanks
>
> On Mon, Oct 6, 2008 at 4:20 PM, Tim Hoff <[EMAIL PROTECTED]> wrote:
>>
>> Correct.  Perhaps the collection isn't bound to the dataProvider
>> correctly.
>>
>> -TH
>>
>> --- In flexcoders@yahoogroups.com, "Amy" <[EMAIL PROTECTED]> wrote:
>>>
>>> --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
>>> >
>>> >
>>> > You might try adding this Greg:
>>> >
>>> > override public function set data( value : Object ) : void
>>> > {
>>> > if (value != null) super.data = value;
>>> > }
>>> >
>>> > The data property will be null until the service call has returned
>> and
>>> > populated the collection.
>>>
>>> Label already implements IDropInListItemRenderer and IDataRenderer.
>>> Presumably correctly...
>>>
>>
>>
>>
>>
>> 
>>
>> --
>> Flexcoders Mailing List
>> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>> Alternative FAQ location: 
>> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
>> Search Archives: 
>> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>>
>>
>>
>>
>


Re: [flexcoders] Re: datagrid itemRenderer help

2008-10-06 Thread Greg Morphis
What do you mean?
The collection shows in the dataGrid just fine, it's the custom
itemRenderer that isn't working?
Is there something else I can provide to check this?

Thanks

On Mon, Oct 6, 2008 at 4:20 PM, Tim Hoff <[EMAIL PROTECTED]> wrote:
>
> Correct.  Perhaps the collection isn't bound to the dataProvider
> correctly.
>
> -TH
>
> --- In flexcoders@yahoogroups.com, "Amy" <[EMAIL PROTECTED]> wrote:
>>
>> --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
>> >
>> >
>> > You might try adding this Greg:
>> >
>> > override public function set data( value : Object ) : void
>> > {
>> > if (value != null) super.data = value;
>> > }
>> >
>> > The data property will be null until the service call has returned
> and
>> > populated the collection.
>>
>> Label already implements IDropInListItemRenderer and IDataRenderer.
>> Presumably correctly...
>>
>
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>
>
>
>


[flexcoders] Re: Custom header renderer and headerText

2008-10-06 Thread markgoldin_2000
And then I will be able to access headerText like this:
columns[somevar].headerText ?

--- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
> 
> Mark,
> 
> Do something like this for the HeaderRenderer:
> 
> 
> http://www.adobe.com/2006/mxml";
> horizontalAlign="center">
>  
> 
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com, "markgoldin_2000"
>  wrote:
> >
> > Anybody please help, I am really stuck with it.
> >
> > --- In flexcoders@yahoogroups.com, "markgoldin_2000"
> > markgoldin_2000@ wrote:
> > >
> > > How do I get headerText if I use VBox + Label as a custom header
> > > renderer?
> > >
> > > Thanks
> > >
> >
>




[flexcoders] Re: datagrid itemRenderer help

2008-10-06 Thread Tim Hoff

Correct.  Perhaps the collection isn't bound to the dataProvider
correctly.

-TH

--- In flexcoders@yahoogroups.com, "Amy" <[EMAIL PROTECTED]> wrote:
>
> --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> >
> >
> > You might try adding this Greg:
> >
> > override public function set data( value : Object ) : void
> > {
> > if (value != null) super.data = value;
> > }
> >
> > The data property will be null until the service call has returned
and
> > populated the collection.
>
> Label already implements IDropInListItemRenderer and IDataRenderer.
> Presumably correctly...
>





[flexcoders] Re: Custom header renderer and headerText

2008-10-06 Thread Tim Hoff

Mark,

Do something like this for the HeaderRenderer:


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


-TH

--- In flexcoders@yahoogroups.com, "markgoldin_2000"
<[EMAIL PROTECTED]> wrote:
>
> Anybody please help, I am really stuck with it.
>
> --- In flexcoders@yahoogroups.com, "markgoldin_2000"
> markgoldin_2000@ wrote:
> >
> > How do I get headerText if I use VBox + Label as a custom header
> > renderer?
> >
> > Thanks
> >
>




[flexcoders] Re: datagrid itemRenderer help

2008-10-06 Thread Amy
--- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
> 
> You might try adding this Greg:
> 
> override public function set data( value : Object ) : void
> {
>  if (value != null)   super.data = value;
> }
> 
> The data property will be null until the service call has returned and
> populated the collection.

Label already implements IDropInListItemRenderer and IDataRenderer.  
Presumably correctly...



[flexcoders] Re: datagrid itemRenderer help

2008-10-06 Thread Tim Hoff

You might try adding this Greg:

override public function set data( value : Object ) : void
{
 if (value != null)   super.data = value;
}

The data property will be null until the service call has returned and
populated the collection.

-TH

--- In flexcoders@yahoogroups.com, "Greg Morphis" <[EMAIL PROTECTED]> wrote:
>
> by the way, I'm using RemoteObject to access my CFC, is it possible
> that the itemRenderer is firing before the data is back?
> How would I make the data populate the ArrayCollection fooAC first
> before rendering the datagrid? If this is the case anyways...
>
> On Mon, Oct 6, 2008 at 1:37 PM, Greg Morphis [EMAIL PROTECTED] wrote:
> > I'm trying to use a dataGrid itemRenderer and not sure I'm using it
right.
> > I get an error 1009 null error on data.*any_column*
> >
> >
> > My data is coming back fine from the database, the column I'm trying
> > to reference is "amount"
> >
> >  > dataProvider="{MyModel.getInstance().FooAC}"
> > click="clickHandler(event);" dataTipFunction="buildToolTip">
> >  > headerText="Amount:"
> > textAlign="right"
> > headerStyleName="centered"
> > labelFunction="price_labelFunc"
> > sortCompareFunction="price_sortCompareFunc"
> > itemRenderer="com.renderers.PriceLabel" />
> >
> >
> > The PriceLabel.as file exists in foo.com.renderers
> > and looks like :
> > package com.renderers {
> > import mx.controls.Label;
> > import mx.controls.listClasses.*;
> > import mx.controls.Alert;
> >
> > public class PriceLabel extends Label {
> >
> >
> > override protected function
> > updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
{
> > super.updateDisplayList(unscaledWidth, unscaledHeight);
> > //Alert.show(data.toString());
> >
> > }
> > }
> > }
> >
> >
> > What am I doing wrong?
> >
> > Thanks
> >
>




Re: [flexcoders] any way to integrate 3rd-party help into FB?

2008-10-06 Thread Pan Troglodytes
Michael - Thanks for the response, but I'm a little confused on what it is
you're suggesting.  Could you give a little more explanation on the steps to
do this, from the standpoint of someone who only has FB on their machine
right now?

Will this make your help show up in the context-sensitive help and search
results as well, or only in the contents page?  Is there also a way to make
your help fully linked in, so that that objects in your help like
UIComponent or EventDispatcher can be clicked on to link to the main help?

Thanks!

On Mon, Oct 6, 2008 at 1:19 PM, Michael Schmalle <[EMAIL PROTECTED]>wrote:

>   Hi Jason,
> Eclipse plugin project with a plugin.xml like
>
>
> 
> 
> 
>
>  point="org.eclipse.help.toc">
>file="toc.xml" primary="true">
>   
>
>
> 
>
>
> This is the only way you will get it to show up as a 'book' in the FB help.
>
> I've done it and it works great, you can even create an update site, that
> can keep the docs fresh.
>
> You need the PDE plugin to create a plugin. I use a different version of
> eclipse (not FB) to create plugins.
>
> See the Creating a plugin using the help extension point (in the PDE docs).
>  This might be worthy of a blog post someday. :)
>
> Mike
>
> On Mon, Oct 6, 2008 at 12:15 PM, Pan Troglodytes <[EMAIL PROTECTED]>wrote:
>
>>   I'm been hunting around to no avail on this question.  I have created
>> help for my components using ASDOC.  What's the recommended procedure to get
>> that help to show up in FB?  Is there one?
>>
>> Thanks.
>>
>> --
>> Jason
>>
>>
>
>
> --
> 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'.
>  
>



-- 
Jason


[flexcoders] Re: Custom header renderer and headerText

2008-10-06 Thread markgoldin_2000
Anybody please help, I am really stuck with it.

--- In flexcoders@yahoogroups.com, "markgoldin_2000" 
<[EMAIL PROTECTED]> wrote:
>
> How do I get headerText if I use VBox + Label as a custom header 
> renderer?
> 
> Thanks
>




Re: [flexcoders] itemRenderer layout question

2008-10-06 Thread Paul Andrews
How about:


  


  



 



  


Paul

- Original Message - 
From: "oneworld95" <[EMAIL PROTECTED]>
To: 
Sent: Monday, October 06, 2008 8:52 PM
Subject: [flexcoders] itemRenderer layout question


> Hi. I've got an itemRenderer in a DataGrid (please see below) and need
> to have the ProgressBar appear on a new line (below the text input and
> the 2 buttons) instead of stretching the column out. I've tried
> everything to no avail. Any ideas? Thanks.
>
>  wordWrap="true">
>  
>
>  
>
> click="outerDocument.doBrowse( event, this)"/>
> click="outerDocument.doSubmit( event )"/>
> fontWeight="bold" color="red" indeterminate="false"
> labelPlacement="right" visible="false" />
>  
>
>  
> 
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups 
> Links
>
>
>
> 



RE: [flexcoders] Odometer-like components

2008-10-06 Thread Christophe Jolif
Richard,
 
It does not indeed automatically scale, but you can bind the charHeight to a 
percentage of the parent container. It should do the trick.
 
Hope this helps,
--
Christophe



From: flexcoders@yahoogroups.com on behalf of Richard Rodseth
Sent: Mon 06/10/2008 20:46
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Odometer-like components


Thanks Christophe. Looks nice, but I'm guessing from the fact that there's a 
"character height" property that it doesn't automatically scale on resize the 
way the charts and gauges do. I still need to get my generic scale-to-fit 
component working...


On Mon, Oct 6, 2008 at 11:15 AM, Christophe Jolif <[EMAIL PROTECTED]> wrote:




Hi Richard,
 
The LED components are in the 2.0 preview, not in 1.0, that's probably 
why you can't find them. Feel free to download the 2.0 preview to check whether 
it fits your needs.
 
See:

http://blogs.ilog.com/elixir/2008/09/27/ilog-elixir-20-preview-program-third-drop/
 
Thanks,
--
Christophe
http://blogs.ilog.com/elixir/author/cjolif



From: flexcoders@yahoogroups.com on behalf of Richard Rodseth
Sent: Mon 06/10/2008 20:08
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Odometer-like components


Does anyone know of any Flex components or samples that display numbers 
of arbitrary size at arbitrary scale? Like an odometer, for example.

The Elixir demo page has some Indicators with LED-like appearance, but 
they don't seem to be included in the SWC.

Thanks.





 


[flexcoders] Override drawHighlightIndicator

2008-10-06 Thread Brad Keck
I am having a weird problem.  I have created a custom list class in 
order to customize the highlight behavior of the list.  Everything 
seems to be working great EXCEPT when I use the *mouse wheel* to 
scroll, my highlighting gets off.  (The wrong item in the list is 
highlighted as I roll over items.)

Any ideas of what might be going on here?




Here is my code:

override protected function drawHighlightIndicator(indicator:Sprite, 
x:Number, y:Number, width:Number, height:Number, color:uint, 
itemRenderer:IListItemRenderer):void
{
var g:Graphics = Sprite(indicator).graphics;
g.clear();
g.beginFill(color);
g.drawRoundRect(x,y+8,width-10,height-16,20,20);
g.endFill();
}


And for comparison, here is the code in listBase.as:

protected function drawHighlightIndicator(indicator:Sprite, x:Number, 
y:Number, width:Number, height:Number, 
color:uint, itemRenderer:IListItemRenderer):void
{
var g:Graphics = Sprite(indicator).graphics;
g.clear();
g.beginFill(color);
g.drawRect(0, 0, width, height);
g.endFill();

indicator.x = x;  (I have tried adding these lines in,
indicator.y = y;   but they just screw things up bad.)
}





[flexcoders] itemRenderer layout question

2008-10-06 Thread oneworld95
Hi. I've got an itemRenderer in a DataGrid (please see below) and need
to have the ProgressBar appear on a new line (below the text input and
the 2 buttons) instead of stretching the column out. I've tried
everything to no avail. Any ideas? Thanks. 


  

  




  

  




[flexcoders] Re: Problem handling RemoteObject Errors

2008-10-06 Thread reflexactions
Well that might be cause it an unusall situation, they problem would 
only show if there was a fault before the message is sent, if after 
sending i.e. if there is a server side failure the fault handling 
works becuase it doesnt run through the same mechanism of using the 
AsyncDispatcher.

So for us server fault are just great but client fault are the 
issue...

But I will try and put together a demo



--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]> 
wrote:
>
> On Monday 06 Oct 2008, reflexactions wrote:
> > Becuase its not the Operation that gets GC'd its the 
AsyncDispatcher
> > that gets GC'd but without the AD the Fault handler will never get
> > called.
> 
> Well, no one else has this problem with the fault event handler, so 
you must 
> be doing something different/unusual.
> Can you post a small self contained example ?
> 
> -- 
> Tom Chiverton
> Helping to administratively pursue viral content
> 
> 
> 
> 
> 
> 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.
>




RE: [flexcoders] Re: LiveCycleDS + Java Enums

2008-10-06 Thread Jeff Vroom
That EnumProxy stuff is for the use case where you want to have an ActionScript 
class which represents the enumerated type.   That gives you compile time 
type-checking of enumerated values but adds a bit more code to the process.   
If you do not mind using a String in AS to represent the enum, it works "out of 
the box"... no need to register the PropertyProxy.

Jeff

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of cwicky99
Sent: Monday, October 06, 2008 11:59 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: LiveCycleDS + Java Enums


Ok, so I don't need to use EnumProxy from the proposed work around
(https://bugs.adobe.com/jira/browse/BLZ-17) anymore?

--- In flexcoders@yahoogroups.com, Jeff 
Vroom <[EMAIL PROTECTED]> wrote:
>
> The enum handling is part of the AMF serialization so you should be
able to use that with LC DS2.6 as well. Since AS does not have a
native "enum" type, by default a Java5 enum gets serialized to the
client using the string value of the enum.
>
> Jeff
>
> From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com]
On Behalf Of cwicky99
> Sent: Monday, October 06, 2008 8:18 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] LiveCycleDS + Java Enums
>
>
> This post:
>
http://www.drflex.eu/2008/07/livecycle-es-data-services-data-management-and-java-enums/
>
> Says that LiveCycleDS 2.6 handles Java enum's out of the box. Does
> anyone know if this only works with DataService objects? I am using a
> Consumer to listen to a JMS topic...but it doesn't seem to work.
>

<><>

[flexcoders] Re: LiveCycleDS + Java Enums

2008-10-06 Thread cwicky99
Ok, so I don't need to use EnumProxy from the proposed work around
(https://bugs.adobe.com/jira/browse/BLZ-17) anymore?

--- In flexcoders@yahoogroups.com, Jeff Vroom <[EMAIL PROTECTED]> wrote:
>
> The enum handling is part of the AMF serialization so you should be
able to use that with LC DS2.6 as well.Since AS does not have a
native "enum" type, by default a Java5 enum gets serialized to the
client using the string value of the enum.
> 
> Jeff
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of cwicky99
> Sent: Monday, October 06, 2008 8:18 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] LiveCycleDS + Java Enums
> 
> 
> This post:
>
http://www.drflex.eu/2008/07/livecycle-es-data-services-data-management-and-java-enums/
> 
> Says that LiveCycleDS 2.6 handles Java enum's out of the box. Does
> anyone know if this only works with DataService objects? I am using a
> Consumer to listen to a JMS topic...but it doesn't seem to work.
>




[flexcoders] How to default an Accordian to a "closed" state (Flex 3)

2008-10-06 Thread Erich Cervantez
Anyone know of a simple (or not so simple) trick to default an
accordian to a "closed" state.  Basically, I'd like to have none of
the child containers open when the component is initially displayed.

Thanks in advance!
Erich



[flexcoders] Re: datagrid itemRenderer help

2008-10-06 Thread Greg Morphis
by the way, I'm using RemoteObject to access my CFC, is it possible
that the itemRenderer is firing before the data is back?
How would I make the data populate the ArrayCollection fooAC first
before rendering the datagrid? If this is the case anyways...

On Mon, Oct 6, 2008 at 1:37 PM, Greg Morphis <[EMAIL PROTECTED]> wrote:
> I'm trying to use a dataGrid itemRenderer and not sure I'm using it right.
> I get an error 1009 null error on data.*any_column*
>
>
> My data is coming back fine from the database, the column I'm trying
> to reference is "amount"
>
>  dataProvider="{MyModel.getInstance().FooAC}"
> click="clickHandler(event);" dataTipFunction="buildToolTip">
>  headerText="Amount:"
>textAlign="right"
>headerStyleName="centered"
>labelFunction="price_labelFunc"
>sortCompareFunction="price_sortCompareFunc"
>itemRenderer="com.renderers.PriceLabel" />
>
>
> The PriceLabel.as file exists in foo.com.renderers
> and looks like :
> package com.renderers {
>import mx.controls.Label;
>import mx.controls.listClasses.*;
>import mx.controls.Alert;
>
>public class PriceLabel extends Label {
>
>
>override protected function
> updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
>super.updateDisplayList(unscaledWidth, unscaledHeight);
>//Alert.show(data.toString());
>
>}
>}
> }
>
>
> What am I doing wrong?
>
> Thanks
>


Re: [flexcoders] Odometer-like components

2008-10-06 Thread Richard Rodseth
Thanks Christophe. Looks nice, but I'm guessing from the fact that there's a
"character height" property that it doesn't automatically scale on resize
the way the charts and gauges do. I still need to get my generic
scale-to-fit component working...

On Mon, Oct 6, 2008 at 11:15 AM, Christophe Jolif <[EMAIL PROTECTED]> wrote:

>Hi Richard,
>
> The LED components are in the 2.0 preview, not in 1.0, that's probably why
> you can't find them. Feel free to download the 2.0 preview to check whether
> it fits your needs.
>
> See:
>
> http://blogs.ilog.com/elixir/2008/09/27/ilog-elixir-20-preview-program-third-drop/
>
> Thanks,
> --
>  Christophe
> http://blogs.ilog.com/elixir/author/cjolif
>
> --
> *From:* flexcoders@yahoogroups.com on behalf of Richard Rodseth
> *Sent:* Mon 06/10/2008 20:08
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Odometer-like components
>
>  Does anyone know of any Flex components or samples that display numbers
> of arbitrary size at arbitrary scale? Like an odometer, for example.
>
> The Elixir demo page has some Indicators with LED-like appearance, but they
> don't seem to be included in the SWC.
>
> Thanks.
>  
>


[flexcoders] datagrid itemRenderer help

2008-10-06 Thread Greg Morphis
I'm trying to use a dataGrid itemRenderer and not sure I'm using it right.
I get an error 1009 null error on data.*any_column*


My data is coming back fine from the database, the column I'm trying
to reference is "amount"





The PriceLabel.as file exists in foo.com.renderers
and looks like :
package com.renderers {
import mx.controls.Label;
import mx.controls.listClasses.*;
import mx.controls.Alert;

public class PriceLabel extends Label {


override protected function
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
super.updateDisplayList(unscaledWidth, unscaledHeight);
//Alert.show(data.toString());

}
}
}


What am I doing wrong?

Thanks


[flexcoders] Re: Action script 3 JSON

2008-10-06 Thread Kyle

If you can't find the error, post the json output that is causing the
error to be thrown (the json encoded data that is being returned from
your php script), as well as the AS3 code that you wrote to decode the
json data here and I can take a look at it for you. However, like
Haykel said, more often than not this type of error is caused by a
simple syntax error in your json return.

-Kyle



--- In flexcoders@yahoogroups.com, "Haykel BEN JEMIA" <[EMAIL PROTECTED]>
wrote:
>
> Seems that you have a syntax error in the JSON string. Inspect its
content
> before sending it to the JSON decoder.
> 
> On Sat, Oct 4, 2008 at 2:35 PM, GYANPRAKASH PANDEY <
> [EMAIL PROTECTED]> wrote:
> 
> >   Dear all,
> >
> > I'm using JSON and php for back end data transfer in flex. But,
i'm getting
> > following error:
> > Error: Unexpected g encountered
> > at com.adobe.serialization.json::JSONTokenizer/parseError()
> > at com.adobe.serialization.json::JSONTokenizer/getNextToken()
> > at com.adobe.serialization.json::JSONDecoder/::nextToken()
> > at com.adobe.serialization.json::JSONDecoder$iinit()
> > at com.adobe.serialization.json::JSON$/decode()
> > at adminPage/handlePlainJSON()
> > at adminPage/__pendingOrderRpc_result()
> > at
> >
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
> > at flash.events::EventDispatcher/dispatchEvent()
> > at mx.rpc.http.mxml::HTTPService/
> >
http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
> > at mx.rpc::AbstractInvoker/
> >
http://www.adobe.com/2006/flex/mx/internal::resultHandler()
> > at mx.rpc::Responder/result()
> > at mx.rpc::AsyncRequest/acknowledge()
> > at ::DirectHTTPMessageResponder/completeHandler()
> > at
> >
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
> > at flash.events::EventDispatcher/dispatchEvent()
> > at flash.net::URLLoader/flash.net:URLLoader::onComplete()
> >
> >
> > Can u please help me out in this case..
> >
> > Thanx alot in advance..
> >
> > Regards,
> > Gyanprakash Pandey
> >
> >
> > --
> > Unlimited freedom, unlimited storage. Get it
now
> > 
> >
> 
> 
> 
> -- 
> Haykel Ben Jemia
> 
> Allmas
> Web & RIA Development
> http://www.allmas-tn.com
>




[flexcoders] Re: Did seem simple but not...

2008-10-06 Thread quantum_ohm
Yes, my code was pretty ugly...
I found out something better, and I'll keep your advice in mind :-)

Thx for responding :-)

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

> 
> Think very hard about changing your strategy completely. Having to keep 
> track of all those ids to remove items from the display list is totally 
> unnecessary and makes for difficullt to follow code. Check out 
> removeChild()   ( 
>
http://livedocs.adobe.com/flex/2/langref/flash/display/DisplayObjectContainer.html#removeChild()
) 
> .
> 
> Paul
> 
> snip
>




[flexcoders] Re: Did seem simple to do but not...

2008-10-06 Thread quantum_ohm
Thx for responding, I finally found out a solution :-)

--- In flexcoders@yahoogroups.com, "valdhor" <[EMAIL PROTECTED]> wrote:
>
> If it were me, I would put a trace statement around the line
> fi_mail_amis.removeChildAt( j ); and figure out what j was when the
> error occurs. This should point you in the right direction.
> 
> 
> --- In flexcoders@yahoogroups.com, "quantum_ohm" 
> wrote:
> >
> > Hello All,
> > 
> > I'm tryin' to add some TextInputs dynamically in a FormItem by
calling a
> > custom HBox component where the textinput is. To manage this I also
> create
> > dynamically a button in this custom component to add or remove the
> > corresponding component (textinput).
> > It's not far working but after a certain number of adds and removes,
> > I get the "range error: index out of bounds..."
> > 
> > I've been breaking my head for two days on this and can't figure out
> > how to solve it.
> > 
> > I would appreciate a little bit of help on this code, or maybe a link
> > to this kind of thing, I'm sure somebody has done this already,
> > but I didn't find anything on the web.
> > 
> > Thx for help.
> > 
> > [Bindable]
> > private var i:int;
> > private var ajout:MailAjoutHBox;
> > [Bindable]
> > private var btn_ajout:Button;
> > [Bindable]
> > private var idAjoutArray:Array = new Array();
> > [Bindable]
> > private var idBtnArray:Array = new Array();
> > 
> > 
> > private function minusAmisMail():void
> > {
> > 
> > ajout.id = idAjoutArray[i];
> > btn_ajout.id = idBtnArray[i];
> > 
> > btn_ajout.label = "-"+i;
> > 
> > btn_ajout.addEventListener( MouseEvent.MOUSE_UP, moinsHandler );
> > 
> > }
> > private function moinsHandler( evt:MouseEvent ):void
> > {
> > i--;
> > 
> > var s:String = evt.target.id;
> > var j:int = int( s.charAt(9) );
> > /here is the problem ! ///
> > fi_mail_amis.removeChildAt( j );
> > 
> > }
> > private function plusHandler( evt:MouseEvent ):void
> > {
> > 
> > ajout = new MailAjoutHBox();
> > ajout.id = "comp_ajout"+ i;
> > fi_mail_amis.addChild( ajout );
> > idAjoutArray.push( ajout.id );
> > 
> > btn_ajout = new Button();
> > btn_ajout.id = "btn_ajout" + i;
> > btn_ajout.label = "+"+i;
> > ajout.addChild( btn_ajout );
> > idBtnArray.push( btn_ajout.id );
> > 
> > minusAmisMail();
> > i++;
> > }
> > 
> > private function init():void
> > {
> > 
> > ajout = new MailAjoutHBox();
> > ajout.id = "comp_ajout"+ i;
> > fi_mail_amis.addChild( ajout );
> > idAjoutArray.push( ajout.id );
> > 
> > btn_ajout = new Button();
> > btn_ajout.id = "btn_ajout" + i;
> > btn_ajout.label = "+"+i;
> > ajout.addChild( btn_ajout );
> > idBtnArray.push( btn_ajout.id );
> > 
> > btn_ajout.id = idBtnArray[i];
> > if ( btn_ajout.id == "btn_ajout0" )
> > btn_ajout.addEventListener( MouseEvent.MOUSE_UP, plusHandler );
> > 
> > i++;
> > }
> >
>




RE: [flexcoders] LiveCycleDS + Java Enums

2008-10-06 Thread Jeff Vroom
The enum handling is part of the AMF serialization so you should be able to use 
that with LC DS2.6 as well.Since AS does not have a native "enum" type, by 
default a Java5 enum gets serialized to the client using the string value of 
the enum.

Jeff

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of cwicky99
Sent: Monday, October 06, 2008 8:18 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] LiveCycleDS + Java Enums


This post:
http://www.drflex.eu/2008/07/livecycle-es-data-services-data-management-and-java-enums/

Says that LiveCycleDS 2.6 handles Java enum's out of the box. Does
anyone know if this only works with DataService objects? I am using a
Consumer to listen to a JMS topic...but it doesn't seem to work.

<><>

[flexcoders] Custom header renderer and headerText

2008-10-06 Thread markgoldin_2000
How do I get headerText if I use VBox + Label as a custom header 
renderer?

Thanks



Re: [flexcoders] any way to integrate 3rd-party help into FB?

2008-10-06 Thread Michael Schmalle
Hi Jason,
Eclipse plugin project with a plugin.xml like






   
  
  
   




This is the only way you will get it to show up as a 'book' in the FB help.

I've done it and it works great, you can even create an update site, that
can keep the docs fresh.

You need the PDE plugin to create a plugin. I use a different version of
eclipse (not FB) to create plugins.

See the Creating a plugin using the help extension point (in the PDE docs).
 This might be worthy of a blog post someday. :)

Mike

On Mon, Oct 6, 2008 at 12:15 PM, Pan Troglodytes <[EMAIL PROTECTED]>wrote:

>   I'm been hunting around to no avail on this question.  I have created
> help for my components using ASDOC.  What's the recommended procedure to get
> that help to show up in FB?  Is there one?
>
> Thanks.
>
> --
> Jason
>
>  
>



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


RE: [flexcoders] Odometer-like components

2008-10-06 Thread Christophe Jolif
Hi Richard,
 
The LED components are in the 2.0 preview, not in 1.0, that's probably why you 
can't find them. Feel free to download the 2.0 preview to check whether it fits 
your needs.
 
See:
http://blogs.ilog.com/elixir/2008/09/27/ilog-elixir-20-preview-program-third-drop/
 
Thanks,
--
Christophe
http://blogs.ilog.com/elixir/author/cjolif



From: flexcoders@yahoogroups.com on behalf of Richard Rodseth
Sent: Mon 06/10/2008 20:08
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Odometer-like components


Does anyone know of any Flex components or samples that display numbers of 
arbitrary size at arbitrary scale? Like an odometer, for example.

The Elixir demo page has some Indicators with LED-like appearance, but they 
don't seem to be included in the SWC.

Thanks.

 


[flexcoders] Odometer-like components

2008-10-06 Thread Richard Rodseth
Does anyone know of any Flex components or samples that display numbers of
arbitrary size at arbitrary scale? Like an odometer, for example.

The Elixir demo page has some Indicators with LED-like appearance, but they
don't seem to be included in the SWC.

Thanks.


Re: [flexcoders] "Embedded Flex"

2008-10-06 Thread wkolcz
He doesnt want the 100% application. Just a sub app. I assume.


From: "Paul Andrews" <[EMAIL PROTECTED]>
Sent: Monday, October 06, 2008 10:59 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] "Embedded Flex" 

- Original Message - 

From: "tchredeemed" <[EMAIL PROTECTED]>

To: 

Sent: Monday, October 06, 2008 6:37 PM

Subject: [flexcoders] "Embedded Flex"

> Is it easy to embed a flex application inside of an HTML page instead

> of the app being standalone?

Err.. isn't that how flex applications are deployed anyway?

> Any tutorials?

> 

> Any help?





[flexcoders] Re: FlexBuilder issue

2008-10-06 Thread Greg Morphis
to complicate matters.. when I go to import a contol, for example
Alert.. I type import mx.
controls inst an option, collections and core others but no mx.controls..

reinstall in order?

On Mon, Oct 6, 2008 at 11:53 AM, Greg Morphis <[EMAIL PROTECTED]> wrote:
> I recently uninstalled the flex builder 2 plugin and reinstalled it.
> I'm having problems with autocomplete in mxml files and when I go to
> create a new MXML Component there's Canvas in the dropdown but nothing
> else.
> I can type in HBox or whatever but it's fairly annoying.. Any ideas to try?
>


Re: [flexcoders] "Embedded Flex"

2008-10-06 Thread Paul Andrews
- Original Message - 
From: "tchredeemed" <[EMAIL PROTECTED]>
To: 
Sent: Monday, October 06, 2008 6:37 PM
Subject: [flexcoders] "Embedded Flex"


> Is it easy to embed a flex application inside of an HTML page instead
> of the app being standalone?

Err.. isn't that how flex applications are deployed anyway?

> Any tutorials?
> 
> Any help?



re: [flexcoders] "Embedded Flex"

2008-10-06 Thread wkolcz
Also, nice to see another religious educational institute using CF and Flex.


From: "tchredeemed" <[EMAIL PROTECTED]>
Sent: Monday, October 06, 2008 10:37 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] "Embedded Flex" 

Is it easy to embed a flex application inside of an HTML page instead

of the app being standalone?

Any tutorials?

Any help?





re: [flexcoders] "Embedded Flex"

2008-10-06 Thread wkolcz

Just size the application to what size you want in the page and 
then add it as a normal swf. I done it a numbe 
r of time here. Building dynamic content for static HTML pages.



From: "tchredeemed" <[EMAIL PROTECTED]>
Sent: Monday, October 06, 2008 10:37 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] "Embedded Flex" 

Is it easy to embed a flex application inside of an HTML page instead

of the app being standalone?

Any tutorials?

Any help?






[flexcoders] "Embedded Flex"

2008-10-06 Thread tchredeemed
Is it easy to embed a flex application inside of an HTML page instead
of the app being standalone?

Any tutorials?

Any help?



[flexcoders] Re: Ely's Flexbook

2008-10-06 Thread gwangdesign
Mr. Ely's code was based on FB2... I guess he has been super busy!

I really want to get a book from him when I saw the subject of your
post! Something like "Custom Component in Flex Builder 4".

> 
> From: "Uday M. Shankar" <[EMAIL PROTECTED]>
> Sent: Monday, October 06, 2008 6:02 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Ely's Flexbook 
> 
> I am trying to use Ely's FlexBook component in one of my projects.
> 
> But, I keep running into a problem which I am not able to fix.
> 
> Let me explain...
> 
> I can replicate this issue in the boundaries example @
> http://demo.quietlyscheming.com/book/boundaries.html.
> 
> Follow these steps in the boundaries example.
> 
> 1. Check the Add Covers checkbox on the left side.
> 
> 2. Then, click on Add Page button to add a page to the book. Now PAGE A
> 
> is added to the book. (as inner front cover)
> 
> 3. Now, try to close the book by click-dragging the back cover.
> 
> At this point, the book will throw the following error -
> 
> ArgumentError: Error #2025: The supplied DisplayObject must be a child
> 
> of the caller.
> 
>  at flash.display::DisplayObjectContainer/removeChild()
> 
>  at
> 
>
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::$remove\
> 
> Child()
> 
>  at mx.core::UIComponent/removeChild()
> 
>  at qs.controls.bookClasses::BookPageImpl/set rightRenderer()
> 
>  at qs.controls.bookClasses::BookPageImpl/clearContent()
> 
>  at qs.controls::Book/commitProperties()
> 
>  at mx.core::UIComponent/validateProperties()
> 
>  at mx.managers::LayoutManager/validateProperties()
> 
>  at mx.managers::LayoutManager/doPhasedInstantiation()
> 
>  at Function/http://adobe.com/AS3/2006/builtin::apply()
> 
> 
> 
> Can anybody help me with this?
> 
> am stuck in my project because am not able to fix this.
>




[flexcoders] FlexBuilder issue

2008-10-06 Thread Greg Morphis
I recently uninstalled the flex builder 2 plugin and reinstalled it.
I'm having problems with autocomplete in mxml files and when I go to
create a new MXML Component there's Canvas in the dropdown but nothing
else.
I can type in HBox or whatever but it's fairly annoying.. Any ideas to try?


[flexcoders] Re: flex and JSON

2008-10-06 Thread valdhor
I have to ask the question...Why are you using JSON to send data to
PHP? AMF3 (WebORB, AMFPHP) is much easier, faster and uses compressed
data.


--- In flexcoders@yahoogroups.com, "karthikeyan.sivanantham"
<[EMAIL PROTECTED]> wrote:
>
> Hi guys,
>   I'm trying to send JSON encoded data from flex to php but I'm 
> clueless about it. I am able to recieve and decode JSON data from php 
> in flex.
>  Any pointers is greatly appreciated.
> 
> cheers,
> Karthik
>




RE: [flexcoders] Creating a Modal Window

2008-10-06 Thread Battershall, Jeff
The Canvas component doesn't have a backgroundColor unless you give it
one - in other words its background will be transparent and showing
everything underneath it by default.  By stipulating a backgroundColor
you should be OK.

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of wwwpl
Sent: Monday, October 06, 2008 11:02 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Creating a Modal Window


Is there an easy way to create a modal window without using the popup 
manager?  I want to gray out every window but the current one so no 
mouse clicks or keyboard input can happen except this window.  I have 
tried using the PopUpManager with a Canvas, but Canvas in the 
PopUpManager turns the background to transparent.  The whole screen 
looks grayed out.  I am using the Canvas to draw on over the top of 
another component.




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location:
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-
1e62079f6847
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
Links





[flexcoders] Re: Did seem simple to do but not...

2008-10-06 Thread valdhor
If it were me, I would put a trace statement around the line
fi_mail_amis.removeChildAt( j ); and figure out what j was when the
error occurs. This should point you in the right direction.


--- In flexcoders@yahoogroups.com, "quantum_ohm" <[EMAIL PROTECTED]>
wrote:
>
> Hello All,
> 
> I'm tryin' to add some TextInputs dynamically in a FormItem by calling a
> custom HBox component where the textinput is. To manage this I also
create
> dynamically a button in this custom component to add or remove the
> corresponding component (textinput).
> It's not far working but after a certain number of adds and removes,
> I get the "range error: index out of bounds..."
> 
> I've been breaking my head for two days on this and can't figure out
> how to solve it.
> 
> I would appreciate a little bit of help on this code, or maybe a link
> to this kind of thing, I'm sure somebody has done this already,
> but I didn't find anything on the web.
> 
> Thx for help.
> 
> [Bindable]
> private var i:int;
> private var ajout:MailAjoutHBox;
> [Bindable]
> private var btn_ajout:Button;
> [Bindable]
> private var idAjoutArray:Array = new Array();
> [Bindable]
> private var idBtnArray:Array = new Array();
> 
> 
> private function minusAmisMail():void
> {
> 
> ajout.id = idAjoutArray[i];
> btn_ajout.id = idBtnArray[i];
> 
> btn_ajout.label = "-"+i;
> 
> btn_ajout.addEventListener( MouseEvent.MOUSE_UP, moinsHandler );
> 
> }
> private function moinsHandler( evt:MouseEvent ):void
> {
> i--;
> 
> var s:String = evt.target.id;
> var j:int = int( s.charAt(9) );
> /here is the problem ! ///
> fi_mail_amis.removeChildAt( j );
> 
> }
> private function plusHandler( evt:MouseEvent ):void
> {
> 
> ajout = new MailAjoutHBox();
> ajout.id = "comp_ajout"+ i;
> fi_mail_amis.addChild( ajout );
> idAjoutArray.push( ajout.id );
> 
> btn_ajout = new Button();
> btn_ajout.id = "btn_ajout" + i;
> btn_ajout.label = "+"+i;
> ajout.addChild( btn_ajout );
> idBtnArray.push( btn_ajout.id );
> 
> minusAmisMail();
> i++;
> }
> 
> private function init():void
> {
> 
> ajout = new MailAjoutHBox();
> ajout.id = "comp_ajout"+ i;
> fi_mail_amis.addChild( ajout );
> idAjoutArray.push( ajout.id );
> 
> btn_ajout = new Button();
> btn_ajout.id = "btn_ajout" + i;
> btn_ajout.label = "+"+i;
> ajout.addChild( btn_ajout );
> idBtnArray.push( btn_ajout.id );
> 
> btn_ajout.id = idBtnArray[i];
> if ( btn_ajout.id == "btn_ajout0" )
> btn_ajout.addEventListener( MouseEvent.MOUSE_UP, plusHandler );
> 
> i++;
> }
>




[flexcoders] Accordian in Form in Pane Component

2008-10-06 Thread Dan Pride
I have a component consisting of a Panel with a Form inside in in which I want 
to use an accordian for data display.
Its not going too well. :)
Is there a problem with this construction?
I remove the accordian and the VBoxes and all is well
?
Thanks
Dan


  


[flexcoders] Re: Help with Flex with PHP/MySQL and moving to production server from local server.

2008-10-06 Thread valdhor
Bruce

I have never done what you are trying to do but I can point you in
another (Hopefully simpler) direction. Check out this thread:

http://tech.groups.yahoo.com/group/flexcoders/message/126783


--- In flexcoders@yahoogroups.com, "brucewhealton" <[EMAIL PROTECTED]> wrote:
>
> Hello all,
>I am having some difficulty with my first application that 
> uses Flex with PHP/MySQL when I try to deploy it on the remote server 
> that I am using to host my domains.  I am taking a class and we 
> created a Flex application that accesses a database using PHP.  This 
> was done mostly in Flex - other than actually creating the database 
> and setting up the tables.
>   I am also looking for information in general about this 
> process.  I use my local system with a WAMP application (Windows, 
> Apache, MySQL and PHP) for testing.  When it works, I want to deploy 
> it on the remote, production server.  I'll use a specific application 
> but my questions relate to the general process of how this is done.
>Ok, after using phpmyadmin to create the database and setup 
> and populate the tables, I went back to Flex.  I selected, Data> 
> Create Application from Database...  Now, during the testing phase, I 
> set root folder to the folder and subfolder for my webroot plus the 
> subfolder name.  The root URL is localhost/mysubfolder where 
> subfolder is the folder is under the root folder, that I just 
> mentioned.  
>Upon finishing the application I test it using localhost on my 
> local system and it works fine.
>Now, I thought I understood the process and that it would be 
> trivial to move this to the remote server.  I thought the host name 
> that is used by the database connection would remain localhost even 
> when I am moving this to http://mydomain.com/mysubdirectory.  
>There are two applications that exist in this project.  My 
> first step was to create a release build, using File>Export>Release 
> Build and select all Applications.  This works just fine on the local 
> system.  
>Are there specific things I need to keep in mind or do when 
> moving from a local testing server to a remote production server?  
> What happened for me, was that I got this error: Error #2032: Stream 
> Error.
>Yes, I did create the database on the remote, production 
> server.  I had a php file that defines the host, the database name, 
> the database username and database password.  When I went to change 
> this for the remote server, from within Flex, I got a warning saying 
> that this is "derived" data.
> Do I need to start again with this step, where I select in 
> Flex Data>Create Application from Database?  Or should I just change 
> the information in the php connection file to point to the database, 
> username and password for the remote server?  This is where it gave 
> me that warning in Flex saying that the data is "derived."  
>  When I have installed Joomla, or Wordpress (CMS and Blog), 
> on the remote, production server, I still use localhost.  So, would I 
> similarly keep that value for the connection host when moving to the 
> production server or change it to http://mydomain.com or leave off 
> http://?  
>   Maybe before I compile it again for Exporting a release 
> build, I should go into Project>Properties and change the root folder 
> for the unix production folder, and maybe change the root URL as 
> well, to http://mydomain.com/mysubdirectory
>   Please help me understand this process in general and in 
> particular with this particular project that I described.
> Thank you,
> Bruce
>




[flexcoders] any way to integrate 3rd-party help into FB?

2008-10-06 Thread Pan Troglodytes
I'm been hunting around to no avail on this question.  I have created help
for my components using ASDOC.  What's the recommended procedure to get that
help to show up in FB?  Is there one?

Thanks.

-- 
Jason


[flexcoders] Re: faultHandler is not a function?

2008-10-06 Thread Greg Morphis
I got it..
I'm looking at 2 different example code bases, one uses IResponder,
one uses Responder.. the resonder allows the faultHandler, IResponder
doesnt have that.. I'm reading the docs on these..



On Mon, Oct 6, 2008 at 10:47 AM, Greg Morphis <[EMAIL PROTECTED]> wrote:
> I installed the debugger and am seeing this error
>
> TypeError: Error #1006: faultHandler is not a function.
>at com.business::Services/__MyMainService_fault()
>at flash.events::EventDispatcher/dispatchEventFunction()
>at flash.events::EventDispatcher/dispatchEvent()
>at mx.rpc::AbstractService/dispatchEvent()
>at mx.rpc.remoting.mxml::RemoteObject/dispatchEvent()
>at 
> mx.rpc::AbstractOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
>at 
> mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()
>at mx.rpc::Responder/fault()
>at mx.rpc::AsyncRequest/fault()
>at NetConnectionMessageResponder/statusHandler()
>at mx.messaging::MessageResponder/status()
>
> It doesnt stop the app from running and data from returning but how
> can I get rid of this error??
> I look in the services.mxml
> and I see
> fault="event.token.faultHandler( event )"
>
> Google search didnt help much on this error.. Thanks
>
> Thanks
>


[flexcoders] faultHandler is not a function?

2008-10-06 Thread Greg Morphis
I installed the debugger and am seeing this error

TypeError: Error #1006: faultHandler is not a function.
at com.business::Services/__MyMainService_fault()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.rpc::AbstractService/dispatchEvent()
at mx.rpc.remoting.mxml::RemoteObject/dispatchEvent()
at 
mx.rpc::AbstractOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
at 
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()
at mx.rpc::Responder/fault()
at mx.rpc::AsyncRequest/fault()
at NetConnectionMessageResponder/statusHandler()
at mx.messaging::MessageResponder/status()

It doesnt stop the app from running and data from returning but how
can I get rid of this error??
I look in the services.mxml
and I see
fault="event.token.faultHandler( event )"

Google search didnt help much on this error.. Thanks

Thanks


[flexcoders] LiveCycleDS + Java Enums

2008-10-06 Thread cwicky99
This post:
http://www.drflex.eu/2008/07/livecycle-es-data-services-data-management-and-java-enums/

Says that LiveCycleDS 2.6 handles Java enum's out of the box.  Does
anyone know if this only works with DataService objects?  I am using a
Consumer to listen to a JMS topic...but it doesn't seem to work.



Re: [flexcoders] Share resources between projects

2008-10-06 Thread Tom Chiverton
On Friday 03 Oct 2008, George wrote:
> Create a shared source folder, add that source folder (not library swc)
> to all projects you want.

We use svn:externals to do exactly that, for instance, but have the 'import' 
stored and versioned with the code, not within Builder.

-- 
Tom Chiverton
Helping to heterogeneously orchestrate end-to-end visionary fine-grained IPOs





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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

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

<*> Your email settings:
Individual Email | Traditional

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

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

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

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



[flexcoders] Creating a Modal Window

2008-10-06 Thread wwwpl
Is there an easy way to create a modal window without using the popup 
manager?  I want to gray out every window but the current one so no 
mouse clicks or keyboard input can happen except this window.  I have 
tried using the PopUpManager with a Canvas, but Canvas in the 
PopUpManager turns the background to transparent.  The whole screen 
looks grayed out.  I am using the Canvas to draw on over the top of 
another component.



Re: [flexcoders] Re: Problem handling RemoteObject Errors

2008-10-06 Thread Tom Chiverton
On Monday 06 Oct 2008, reflexactions wrote:
> Becuase its not the Operation that gets GC'd its the AsyncDispatcher
> that gets GC'd but without the AD the Fault handler will never get
> called.

Well, no one else has this problem with the fault event handler, so you must 
be doing something different/unusual.
Can you post a small self contained example ?

-- 
Tom Chiverton
Helping to administratively pursue viral content





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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

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

<*> Your email settings:
Individual Email | Traditional

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

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

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

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



Re: [flexcoders] Can I play a video in slow motion? or frame by frame?

2008-10-06 Thread Johannes Nel
i would advise against that. if you are playing the video in slow motion i
would recomed making bitmap snapshots and using those to play it any pace
you desire.

On Mon, Oct 6, 2008 at 4:53 PM, Tom Chiverton
<[EMAIL PROTECTED]>wrote:

> On Saturday 04 Oct 2008, luvfotography wrote:
> > Is there a way for the video player to play in slow motion or step
> > frame by frame, or play a video in reverse?
>
> You can play/pause and seek, so yes, probably.
>
>
> --
> Tom Chiverton
> Helping to collaboratively promote high-yield turn-key patterns
>
>
>
> 
>
> 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 Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


-- 
j:pn
\\no comment


Re: [flexcoders] Can I play a video in slow motion? or frame by frame?

2008-10-06 Thread Tom Chiverton
On Saturday 04 Oct 2008, luvfotography wrote:
> Is there a way for the video player to play in slow motion or step
> frame by frame, or play a video in reverse?

You can play/pause and seek, so yes, probably.


-- 
Tom Chiverton
Helping to collaboratively promote high-yield turn-key patterns





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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

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

<*> Your email settings:
Individual Email | Traditional

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

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

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

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



[flexcoders] Re: Header text

2008-10-06 Thread markgoldin_2000
I was able to compile, but command:
columns[columnIndexValue].headerText does not return headerText for a 
column with a custom header renderer.

--- In flexcoders@yahoogroups.com, "Ryan Gravener" <[EMAIL PROTECTED]> wrote:
>
>  dataProvider="{service.get.lastResult.results}"
>  creationComplete="{resize(grid);}"
>  editable="true"
> itemEditEnd="{edit(event, grid)}"
> itemClick="{showMenu(event)}"
> resize="{resize(grid,event);search()}"
> sortableColumns="false"
> sortExpertMode="false"
> id="grid"
> clazz="{clazz}">
> 
>  width="40"/>
>  width="200"
> headerRenderer="org.yesorno.components.domain.SearchableHeader"/>
> 
>  width="100"/>
>  width="50"/>
>  labelFunction="pointFunction" width="80"/>
>  labelFunction="pointFunction" width="80" />
> 
> 
> 
> 
> 
> http://www.adobe.com/2006/mxml";
> xmlns:domain="org.yesorno.components.domain.*" 
horizontalAlign="center">
> 
> 
> 
> 
> 
>  width="100%"/>
> 
> 
> Ryan Gravener
> http://twitter.com/ryangravener
> 
> 
> On Mon, Oct 6, 2008 at 12:27 AM, markgoldin_2000
> <[EMAIL PROTECTED]>wrote:
> 
> >   I am getting two compile errors:
> > 1023: Incompatible override.
> > 1144: Interface method set data in namespace 
mx.core:IDataRenderer is
> > implemented with an incompatible signature in class
> > yardmodel.modulecode:reassignedBlock.
> >
> >
> > --- In flexcoders@yahoogroups.com , "Ryan
> > Gravener"  wrote:
> > >
> > > Well, you are in luck. I just did this a few hours ago and it
> > worked. Put
> > > this method:
> > >
> > >
> > > override public function set data(value:Object) {
> > > super.data = value;
> > > //do stuff
> > > }
> > >
> > > in your Custom renderer. The variable data will be the column.
> > >
> > >
> > > Ryan Gravener
> > > http://twitter.com/ryangravener
> > >
> > >
> > > On Sun, Oct 5, 2008 at 10:09 PM, markgoldin_2000
> > > wrote:
> > >
> > > > Not sure how that helps me, maybe I wasn't clear in my
> > question. I
> > > > need to get header text when I am using a custom renderer for
> > > > column's header.
> > > >
> > > >
> > > > --- In flexcoders@yahoogroups.com  > 40yahoogroups.com>, "Ryan
> > > > Gravener"  wrote:
> > > > >
> > > > > So long as your using advanceddatagridcolumn you can do
> > > > > headerRenderer="com.yourcompany.package.ExtendsVBox"
> > > > >
> > > > > and in ExtendsVBox
> > > > >
> > > > > override public function set data(value:Object) {
> > > > > super.data = data;
> > > > > //do stuff
> > > > > }
> > > > >
> > > > > Ryan Gravener
> > > > > http://ryangravener.com/flex
> > > > >
> > > > >
> > > > > On Sun, Oct 5, 2008 at 7:26 PM, markgoldin_2000
> > > > > wrote:
> > > > >
> > > > > > columns[columnIndexValue].headerText returns header's 
text.
> > > > > > How do I get it if I use a custom (VBox) header renderer?
> > > > > >
> > > > > > Thanks
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> >
> >  
> >
>




[flexcoders] How to create the default dragImage?

2008-10-06 Thread richtolley
Hi All

I'm working on a large Flex project.  The scenario..

I have a search screen that returns results to a tileList.  I've got
an alternative view using an Advanced Data Grid.

So - you fill out search criteria, hit the search button and it brings
back results to the tileList - clicking on button flips the screen
around and displays the data using Grid.

A user can select 1 or more items from either the TL or the ADG and
drag them to another grid.

This all works a treat.  But... (isn't there always)

The powers that be want a user to be able to highlight items and click
an add button in addition to the drag.

This isn't a problem - I've got this working. But...

They now want user feedback.  When a user clicks the add button they
want to see the same dragImage appear and move to the second datagrid.

This in itself is not a big issue, the issue I'm having is how to
create the dragImage.

I know I could create one myself but I'm already stretched to the
limit on time and I don't like re-inventing the wheel.  Adobe have
done a good job and I'd like to tap into their codebase.

What I'm looking for is a way to say Here's a listComponent (either
tileList/DataGrid/ADG etc) create me an dragImage based on the
selectedItem(s).

In a perfect world I would say - here's the source component, here's
the target and it would create a dragImage popup it up on the screen
and animate it.  Leaving me a few lines of code to manage the data
transfer.

I've searched everywhere on the web - it's actually quite unusual to
find a Flex problem that hasn't been answered by someone before.  If
this has - apologies.

I can see that I would get a lot of use out of this.  Drag and Drop is
just too quick and easy but I also take the point that it isn't common
on the web and a more traditional approach is also needed.

If anyone can help me magic a dragImage it would be great.

Many Thanks

Rich



Re: [flexcoders] swf with TextField.htmlText - links do not work

2008-10-06 Thread bjorn
yes, they work by themselves, but not when I load a "pure
actionscript/flash" swf and use it in Flex. I have a SWFLoader which loads
the .swf and it seems that this causes the swf not to be able to open a new
browser window from htmlText at least (I've tried adding a button and
opening a new browser window from it, that works fine with navigateToUrl)..




2008/10/6 Tom Chiverton <[EMAIL PROTECTED]>

> On Monday 06 Oct 2008, bjorn wrote:
> > Have also tried adding event listeners to the textinput component and
> used
> > links with "event:http://"; in the htmlText-code. The events are never
> > triggered.
>
> Are you saying the example on LiveDocs
> (http://livedocs.adobe.com/flex/3/html/textcontrols_04.html#437546) of
> doing
> that doesn't work ? It does here...
>
> --
> Tom Chiverton
> Helping to authoritatively expedite distributed market-driven sticky
> networks
>
>
>
> 
>
> 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 Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


-- 

http://www.juicability.com - flex blog
http://www.nospoiler.com - link to youtube videos without the spoilers


Re: [flexcoders] How long does it take to get access to this group?

2008-10-06 Thread Paul Andrews
- Original Message - 
From: "phildaramsay" <[EMAIL PROTECTED]>
To: 
Sent: Sunday, October 05, 2008 7:54 PM
Subject: [flexcoders] How long does it take to get access to this group?


>I keep getting "Your message must be approved by the group owner before
> being sent to the group."
>
> What's up with that?

It's an automatic setting to stop spammers posting to the group. You'll 
automatically be approved for non-moderation after your 100th message.








..OK, I was joking about the 100th message..  ;-)

Paul 



[flexcoders] Re: Problem handling RemoteObject Errors

2008-10-06 Thread reflexactions
Becuase its not the Operation that gets GC'd its the AsyncDispatcher 
that gets GC'd but without the AD the Fault handler will never get 
called.



--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]> 
wrote:
>
> On Monday 06 Oct 2008, reflexactions wrote:
> > Yeah we already do that,
> > We store the operation in a context object along with a bunch of
> > other stuff that we keep around utnil the operation completes.
> 
> So why does it get collected, if there is an open reference to it ? 
Is the 
> profiler any help ?
> 
> -- 
> Tom Chiverton
> Helping to proactively foster leading-edge eyeballs
> 
> 
> 
> 
> 
> 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] Re: Any DataGrid paging component?

2008-10-06 Thread oneworld95
Thanks, crazyluck55.

--- In flexcoders@yahoogroups.com, "crazyluck55" <[EMAIL PROTECTED]> wrote:
>
> One other note, I changed my example from a TileList to a Datagrid at 
> the last moment (since you specifically asked about that) without 
> changing its properties appropriately.  Substitute as necessary.
>




[flexcoders] New web dev/Flex blog

2008-10-06 Thread oneworld95
Hi, all. Please check out a new blog on web development/Flex topics:
http://devharbor.blogspot.com/



Re: [flexcoders] Action script 3 JSON

2008-10-06 Thread Haykel BEN JEMIA
Seems that you have a syntax error in the JSON string. Inspect its content
before sending it to the JSON decoder.

On Sat, Oct 4, 2008 at 2:35 PM, GYANPRAKASH PANDEY <
[EMAIL PROTECTED]> wrote:

>   Dear all,
>
> I'm using JSON and php for back end data transfer in flex. But, i'm getting
> following error:
> Error: Unexpected g encountered
> at com.adobe.serialization.json::JSONTokenizer/parseError()
> at com.adobe.serialization.json::JSONTokenizer/getNextToken()
> at com.adobe.serialization.json::JSONDecoder/::nextToken()
> at com.adobe.serialization.json::JSONDecoder$iinit()
> at com.adobe.serialization.json::JSON$/decode()
> at adminPage/handlePlainJSON()
> at adminPage/__pendingOrderRpc_result()
> at
> flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
> at flash.events::EventDispatcher/dispatchEvent()
> at mx.rpc.http.mxml::HTTPService/
> http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
> at mx.rpc::AbstractInvoker/
> http://www.adobe.com/2006/flex/mx/internal::resultHandler()
> at mx.rpc::Responder/result()
> at mx.rpc::AsyncRequest/acknowledge()
> at ::DirectHTTPMessageResponder/completeHandler()
> at
> flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
> at flash.events::EventDispatcher/dispatchEvent()
> at flash.net::URLLoader/flash.net:URLLoader::onComplete()
>
>
> Can u please help me out in this case..
>
> Thanx alot in advance..
>
> Regards,
> Gyanprakash Pandey
>
>
> --
> Unlimited freedom, unlimited storage. Get it 
> now
> 
>



-- 
Haykel Ben Jemia

Allmas
Web & RIA Development
http://www.allmas-tn.com


re: [flexcoders] Ely's Flexbook

2008-10-06 Thread wkolcz
Check out: http://www.rubenswieringa.com/blog/flex-book-component-alpha

I have been using it and its really easy to work with


From: "Uday M. Shankar" <[EMAIL PROTECTED]>
Sent: Monday, October 06, 2008 6:02 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Ely's Flexbook 

I am trying to use Ely's FlexBook component in one of my projects.

But, I keep running into a problem which I am not able to fix.

Let me explain...

I can replicate this issue in the boundaries example @
http://demo.quietlyscheming.com/book/boundaries.html.

Follow these steps in the boundaries example.

1. Check the Add Covers checkbox on the left side.

2. Then, click on Add Page button to add a page to the book. Now PAGE A

is added to the book. (as inner front cover)

3. Now, try to close the book by click-dragging the back cover.

At this point, the book will throw the following error -

ArgumentError: Error #2025: The supplied DisplayObject must be a child

of the caller.

 at flash.display::DisplayObjectContainer/removeChild()

 at

mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::$remove\

Child()

 at mx.core::UIComponent/removeChild()

 at qs.controls.bookClasses::BookPageImpl/set rightRenderer()

 at qs.controls.bookClasses::BookPageImpl/clearContent()

 at qs.controls::Book/commitProperties()

 at mx.core::UIComponent/validateProperties()

 at mx.managers::LayoutManager/validateProperties()

 at mx.managers::LayoutManager/doPhasedInstantiation()

 at Function/http://adobe.com/AS3/2006/builtin::apply()



Can anybody help me with this?

am stuck in my project because am not able to fix this.





[flexcoders] Log4J like library

2008-10-06 Thread Shahid Faiz
Hi,

Does anyone know log4j like library for AIR applications? It is really hard
to trace a problem when application is in testing or production without such
utility.

Thanks,
Shahid


[flexcoders] Ely's Flexbook

2008-10-06 Thread Uday M. Shankar
I am trying to use Ely's FlexBook component in one of my projects.

But, I keep running into a problem which I am not able to fix.

Let me explain...

I can replicate this issue in the boundaries example @
http://demo.quietlyscheming.com/book/boundaries.html.

Follow these steps in the boundaries example.
1. Check the Add Covers checkbox on the left side.
2. Then, click on Add Page button to add a page to the book. Now PAGE A
is added to the book. (as inner front cover)
3. Now, try to close the book by click-dragging the back cover.

At this point, the book will throw the following error -
ArgumentError: Error #2025: The supplied DisplayObject must be a child
of the caller.
 at flash.display::DisplayObjectContainer/removeChild()
 at
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::$remove\
Child()
 at mx.core::UIComponent/removeChild()
 at qs.controls.bookClasses::BookPageImpl/set rightRenderer()
 at qs.controls.bookClasses::BookPageImpl/clearContent()
 at qs.controls::Book/commitProperties()
 at mx.core::UIComponent/validateProperties()
 at mx.managers::LayoutManager/validateProperties()
 at mx.managers::LayoutManager/doPhasedInstantiation()
 at Function/http://adobe.com/AS3/2006/builtin::apply()


Can anybody help me with this?
am stuck in my project because am not able to fix this.




[flexcoders] How to make an RPC call secure

2008-10-06 Thread Abdul Razak PM

 I want to make an RPC java call secure? How I could do it?
  shall I get some good links to know more about Flex Java Security ?
  can I achieve it through session management? If so How?



[flexcoders] Value Slider in Flex

2008-10-06 Thread Vijendra Mishra
Hello Everyone ... I need some help ... i am new in this forum and i
want to design a value slider and the current value of slider should
be mailed to given mail address ... like HSlider and Vslider in Flex
and current value has to be mailed...please help me...Thanks



[flexcoders] Re: Any DataGrid paging component?

2008-10-06 Thread crazyluck55
One other note, I changed my example from a TileList to a Datagrid at 
the last moment (since you specifically asked about that) without 
changing its properties appropriately.  Substitute as necessary.



[flexcoders] How long does it take to get access to this group?

2008-10-06 Thread phildaramsay
I keep getting "Your message must be approved by the group owner before 
being sent to the group."

What's up with that?



[flexcoders] Dynamic Embedded Images

2008-10-06 Thread danenania
Hi flexcoders! I have an app with a couple large sets of images that
are setup to be loaded dynamically through the source property string
based on user inputs. I'd like to change these to embedded images to
improve performance, but A.) I don't want to have to go through the
tedium of manually embedding each image in the script block and B.) I
don't know how to dynamically reference the embedded images. Any
ideas? Seems like this would be a fairly common task but can't seem to
turn up anything via livedocs or google. Thanks!

-Dane



[flexcoders] Re: OT: FP Ubiquity Stats Lack Silverlight Comparison

2008-10-06 Thread phildaramsay

Jeff is kind of right. It's got more prickles than just 'free air time',
as if Adobe do start getting into tracking the competition publically
they will in turn illustrate its growth rate, in which case this could
end badly for everyone on the list (as it just got that much harder to
sell Flex into mainstream development teams).

Moreover, I don't think they know to be blunt, as the ubiquity study has
not been touched in ages, and it's showing signs of its actual age
with growing questions around its accuracy. Adobe have also been
contradicting themselves lately with download numbers (why oh why did
they bend to Microsoft's will on this is something I would love to
ask their marketing team). An example was when Emmy mention 
  in July 2008 80% of the 18million installs
(per day) came from the ActiveX Page on Adobe.com.

This in turn highlights that there is not only 18million per day
installing Flash, but 80% of them are not doing it via the Adobe Updater
as we have all been spoon feed to believe.  The truth of the matter
however, is that Windows XP has always been a strong distribution force
in their story around ubiquity, but given it's now no longer allowed
to be sold by OEM providers, this in turn means Adobe have to fight a
new battle around their distribution story.

The OEM bundling or any deals like this is where the full attention
should now be, as the average user online right now has proven they
aren't scared of plug-ins for one and two it's considered a
normal "thing" now days, despite the `fear' campaigns.

Signs of positive growth from Adobe are there if you look, for instance
the 20million AIR installs seemed impressive, yet as Phillip Kerman 
 
pointed out (which Ryan Stewart has now suddenly deleted this post?
which just confirms it even further), the real story there is that
20million AIR  installs didn't come from the "twitter" like
applications, it actually came from Acrobat 9 bundling, as you can't
opt out of the AIR installation.

Tactics like this is where the next version of the story is going to end
up, and the 98% statistic is not illustrating the true story, as if you
fast forward and assume Flash and Silverlight both have 90% ubiquity,
what will the conversation be next?

Adobe need to ignore Silverlight battles as they are fighting the wrong
battle. They need to get back to basics again as being successful is one
thing, retaining success now this is the real fight they have on their
hands. As ubiquity is more a state of mind, phsycological if you will
around plug-in fatigue and less about realistic expecations of end
users.

- P.R
http://shadowoperative.blogspot.com/



--- In flexcoders@yahoogroups.com, "Battershall, Jeff"
<[EMAIL PROTECTED]> wrote:
>
> Why would you want to do that? Isn't it the classic marketing error to
> provide free airtime to the competition? In addition, if you start
> reporting such statistics you become responsible for their accuracy
and
> that's not something that I think Adobe would be interested in, as
least
> as regards a competitor's product.
>
> -Original Message-
> From: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason
> Sent: Tuesday, September 23, 2008 2:34 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] OT: FP Ubiquity Stats Lack Silverlight
> Comparison
>
>
>
> Excuse the mild OT, just curious if anyone knows why Microsoft
> Silverlight stats are not included here in penetration comparisons:
>
>
>
> http://www.adobe.com/products/player_census/flashplayer/
>
>
>
> It would seem to me, with Silverlight having fairly low
> penetration stats I would imagine (even after the Olympics) that this
> would be a huge marketing plus for Adobe. Millward Brown, commissioned
> by Adobe, did the survey just this past June, it seems silly the
product
> most closely competing with the Flash Player is Silverlight and it's
not
> included in the comparison.
>
>
>
> And if someone at Adobe is listening, this is important since
> this page is linked to from some Creative Suite 4 promo pages on the
> site, for example, the page touting Illustrator's Flash player
> capabilities:
>
> http://www.adobe.com/products/illustrator/?promoid=BPDEG
>
>
>
> Anyway, just a mild rant for the day. J Maybe someone can pass
> this on to the right folks at Adobe.
>
>
>
> Jason Merrill
> Bank of America
> Instructional Technology & Media
>
> Join the Bank of America Flash Platform Developer Community
>
http://sharepoint.bankofamerica.com/sites/tlc/flash/default.as
> px>
>
> Are you a Bank of America associate interested in innovative
> learning ideas and technologies?
> Check out our internal Innovative Learning Blog
>
http://sharepoint.bankofamerica.

[flexcoders] Deep Linking Problem with First Link

2008-10-06 Thread AUClint
I've run into an issue with deep linking in my application.  I've
implemented deep linking in such a way that I provide links in a
navbar on the left-hand-side of the page.  Those links always link
directly to a particular "view" in the Flex application.  They never
link to the Flex application without specifying a view and that's
causing the problem.
 
This works well in all situations but one.  The first deep link into
the app (no matter which one you pick) works when you initially link
into the app.  All the other links work as you navigate through the
app.  However, the first link no longer works after the initial click
into the Flex app.
 
I've kept the implementation of this very simple for now.  I modeled
it after this example:
 
   
http://labs.adobe.com/wiki/index.php/Flex_3:Feature_Introductions:_Deep_Linking
 
In order to illustrate the problem I modified their example by adding
deep links on the page that correspond to the two tabs shown in the
example.  To see the problem, navigate directly to the following link
in a new browser window to go to the "Shipping" view:

http://localhost:8080/DeepLinkExample.html#view=0

Then click on the "Receiving" link followed by the "Shipping" link. 
In this scenario the "Shipping" link works, but the "Receiving" link
does not.  This only happens in Internet Explorer (I'm using IE 7). 
Firefox works fine.

I'm considering changing the implementation to use URLKit, but would
prefer to fix this one remaining issue for my first release.

Thanks,
Clint





[flexcoders] Re: Accordion control question

2008-10-06 Thread burttram
Great, thank you both for your suggestions, I'll have a look into both
solutions.

-Brian



[flexcoders] subscribe

2008-10-06 Thread kanu kukreja
-- 
Regards
Kanu Kukreja


[flexcoders] AdvancedDataGrid: Columnspan in a single row?

2008-10-06 Thread arkona3000
Hi,

Is there a way to have an ItemRenderer span two or more columns inside
an AdvancedDataGrid only in one specific row?

Basically I need something like this:

1|  2|  3|
I span 2 cols|  3|
1|  2|  3|

Thanks
Dorian



[flexcoders] Flexbuilder 3 Profiler & J2EE server

2008-10-06 Thread pointyhatcoder
I'm new to Flex development and doing some proof of concept work.  The
project will involve using BlazeDS to communicate with server via
EJBs.  As such I really need my .swf to run in an application server
context to be useful.  I've been trying to figure out how to hook the
profiler up in this configuration so I can observe how some ideas my
team has been implementing behave.  I've only been able to get the
profiler to run the .swf in a standalone mode though, so no EJB
support is provided which makes the app & profiling it useless.  

Is there a way to hook the profiler up to a flex app that is running
in an application server such as JBoss?  I've been hunting around
quite a bit today and every example I've found states that first you
create a new FlexBuilder project and set the server technology to
'None' which is a non-starter for me.  I've tried several things from
trying to profile an external app & pointing that at my running .swf
to hooking up profilers to JBoss itself.

I really appreciate any guidance anyone can provide.  Thanks for your
time.



[flexcoders] AdvancedDataGrid: Columnspan in a single row?

2008-10-06 Thread Dorian Roy
Hi,

Is there a way to have an ItemRenderer span two or more columns inside  
an AdvancedDataGrid only in one specific row?

Basically I need something like this:

1|  2|  3|   4   |
span 3 cols|   4   |
1|  2|  3|   4   |

Thanks
Dorian


[flexcoders] Action script 3 JSON

2008-10-06 Thread GYANPRAKASH PANDEY
Dear all,

I'm using JSON and php for back end data transfer in flex. But, i'm getting 
following error:
Error: Unexpected g encountered
    at com.adobe.serialization.json::JSONTokenizer/parseError()
    at com.adobe.serialization.json::JSONTokenizer/getNextToken()
    at com.adobe.serialization.json::JSONDecoder/::nextToken()
    at com.adobe.serialization.json::JSONDecoder$iinit()
    at com.adobe.serialization.json::JSON$/decode()
    at adminPage/handlePlainJSON()
    at adminPage/__pendingOrderRpc_result()
    at 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at 
mx.rpc.http.mxml::HTTPService/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
    at 
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()
    at mx.rpc::Responder/result()
    at mx.rpc::AsyncRequest/acknowledge()
    at ::DirectHTTPMessageResponder/completeHandler()
    at 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/flash.net:URLLoader::onComplete()


Can u please help me out in this case..

Thanx alot in advance..

Regards,
Gyanprakash Pandey




  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

Re: [flexcoders] swf with TextField.htmlText - links do not work

2008-10-06 Thread Tom Chiverton
On Monday 06 Oct 2008, bjorn wrote:
> Have also tried adding event listeners to the textinput component and used
> links with "event:http://"; in the htmlText-code. The events are never
> triggered.

Are you saying the example on LiveDocs 
(http://livedocs.adobe.com/flex/3/html/textcontrols_04.html#437546) of doing 
that doesn't work ? It does here...

-- 
Tom Chiverton
Helping to authoritatively expedite distributed market-driven sticky networks





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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

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

<*> Your email settings:
Individual Email | Traditional

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

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

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

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



Re: [flexcoders] Re: Problem handling RemoteObject Errors

2008-10-06 Thread Tom Chiverton
On Monday 06 Oct 2008, reflexactions wrote:
> Yeah we already do that,
> We store the operation in a context object along with a bunch of
> other stuff that we keep around utnil the operation completes.

So why does it get collected, if there is an open reference to it ? Is the 
profiler any help ?

-- 
Tom Chiverton
Helping to proactively foster leading-edge eyeballs





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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

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

<*> Your email settings:
Individual Email | Traditional

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

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

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

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



[flexcoders] space between columns in a multi series column chart

2008-10-06 Thread Ofir Shemesh
i have the simplest column chart, clustered, with an unknown number of
series.
i want the columns to be spaced from one another by an X number of pixels.

in other words - i want [say] 5 pixels space between all columns in a
cluster.

how do?



Re: [flexcoders] Eclipse not Building

2008-10-06 Thread Ryan Gravener
make sure you stop the debugger, clear your cache, clean the project
and then set the breakpoint.

On 10/6/08, jitendra jain <[EMAIL PROTECTED]> wrote:
> Hi Guys,
>
>   I have tried of cleaning and building Flex project using Eclipse. I was
> stunned to see that my debugger points to some commented code. Please help.
> Cleaning and building doesn't helped me.. If any other way to do it??
>  Thanks,
>
> with Regards,
> Jitendra Jain
>
>
>
>   Add more friends to your messenger and enjoy! Go to
> http://messenger.yahoo.com/invite/


-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: [flexcoders] swf with TextField.htmlText - links do not work

2008-10-06 Thread bjorn
Yeah, one I'd expect a security exception to be thrown as well but I don't
see any even when running in debug mode.

hmm, well I guess it's back to trying and failing ... heh

bjorn


2008/10/6 Gregor Kiddie <[EMAIL PROTECTED]>

>I should know better than to trust the livedocs before trying it first
> ;)
>
>
>
> I'd imagine that if it was a security issue, you would get a security
> violation exception.
>
> Have you tried running it in debug and seeing if you get any exceptions
> being thrown?
>
>
>
> Gk.
>
> *Gregor Kiddie*
> Senior Developer
> *INPS*
>
> Tel:   01382 564343
>
> Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ
>
> Registered Number: 1788577
>
> Registered in the UK
>
> Visit our Internet Web site at www.inps.co.uk
>
> The information in this internet email is confidential and is intended
> solely for the addressee. Access, copying or re-use of information in it by
> anyone else is not authorised. Any views or opinions presented are solely
> those of the author and do not necessarily represent those of INPS or any of
> its affiliates. If you are not the intended recipient please contact
> [EMAIL PROTECTED]
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *bjorn
> *Sent:* 06 October 2008 11:53
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] swf with TextField.htmlText - links do not
> work
>
>
>
> Thanks for answering Gregor, but you're mistaken ... it automatically works
> in Flex, e.g. this code will open the link in the browser by default:
>
>
>
> 
>



-- 

http://www.juicability.com - flex blog
http://www.nospoiler.com - link to youtube videos without the spoilers


RE: [flexcoders] swf with TextField.htmlText - links do not work

2008-10-06 Thread Gregor Kiddie
I should know better than to trust the livedocs before trying it first
;)

 

I'd imagine that if it was a security issue, you would get a security
violation exception.

Have you tried running it in debug and seeing if you get any exceptions
being thrown?

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
http://www.inps.co.uk/> 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact [EMAIL PROTECTED]



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bjorn
Sent: 06 October 2008 11:53
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] swf with TextField.htmlText - links do not
work

 

Thanks for answering Gregor, but you're mistaken ... it automatically
works in Flex, e.g. this code will open the link in the browser by
default:

 



Re: [flexcoders] Re: Did seem simple but not...

2008-10-06 Thread Paul Andrews
- Original Message - 
From: "quantum_ohm" <[EMAIL PROTECTED]>
To: 
Sent: Monday, October 06, 2008 11:35 AM
Subject: [flexcoders] Re: Did seem simple but not...


> Hi Haykel,
>
> yes you're right !
> so finally I use a Bindable public var custom_ID in the comp, that i
> retrieve on the mouseEvent and that does the trick :-)
>
> Thx for helping, have a nice day.

Think very hard about changing your strategy completely. Having to keep 
track of all those ids to remove items from the display list is totally 
unnecessary and makes for difficullt to follow code. Check out 
removeChild()   ( 
http://livedocs.adobe.com/flex/2/langref/flash/display/DisplayObjectContainer.html#removeChild()
 ) 
.

Paul

snip 



Re: [flexcoders] swf with TextField.htmlText - links do not work

2008-10-06 Thread bjorn
Thanks for answering Gregor, but you're mistaken ... it automatically works
in Flex, e.g. this code will open the link in the browser by default:




http://www.adobe.com/2006/mxml"; layout="absolute"
creationComplete="initView()">












.. so there must be something else wrong.

It works if we add a link to a button.

Have also tried adding event listeners to the textinput component and used
links with "event:http://"; in the htmlText-code. The events are never
triggered.

The thing is we load the swf using a SWFLoader, so I'm thinking it has
something to do with security. I've tried adding .trustContent=true + using
a new loaderContext like this:

*

var* ctx:LoaderContext = *new* LoaderContext(*true*
,ApplicationDomain.currentDomain,SecurityDomain.currentDomain);

.. aslo didn't change anything.

As I said the cursor changes to the hand cursor when hovering over the link,
it's just that nothing happens when you click it.

- bjorn


2008/10/3 Gregor Kiddie <[EMAIL PROTECTED]>

>You need to look at,
>
>
> http://livedocs.adobe.com/flex/3/html/help.html?content=textcontrols_04.html#437546
>
> It doesn't automatically work in Flex, as the automatic behaviour may be
> undesirable.
>
> You need to have event handlers for the link.
>
>
>
> Gk.
>
> *Gregor Kiddie*
> Senior Developer
> *INPS*
>
> Tel:   01382 564343
>
> Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ
>
> Registered Number: 1788577
>
> Registered in the UK
>
> Visit our Internet Web site at www.inps.co.uk
>
> The information in this internet email is confidential and is intended
> solely for the addressee. Access, copying or re-use of information in it by
> anyone else is not authorised. Any views or opinions presented are solely
> those of the author and do not necessarily represent those of INPS or any of
> its affiliates. If you are not the intended recipient please contact
> [EMAIL PROTECTED]
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *bjorn
> *Sent:* 03 October 2008 12:33
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] swf with TextField.htmlText - links do not
> work
>
>
>
> Well, in flash this works "out-of-the-box" with htmlText .. if you have an
> "a href" tag it's clickable and opens the url in a new window.
>
> 2008/10/3 Gregor Kiddie <[EMAIL PROTECTED]>
>
> What would you expect to happen? Is there code to deal with catching the
> event and opening the url, opening new windows, etc?
>
>
>
> Gk.
>
> *Gregor Kiddie*
> Senior Developer
> *INPS*
>
> Tel:   01382 564343
>
> Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ
>
> Registered Number: 1788577
>
> Registered in the UK
>
> Visit our Internet Web site at www.inps.co.uk
>
> The information in this internet email is confidential and is intended
> solely for the addressee. Access, copying or re-use of information in it by
> anyone else is not authorised. Any views or opinions presented are solely
> those of the author and do not necessarily represent those of INPS or any of
> its affiliates. If you are not the intended recipient please contact
> [EMAIL PROTECTED]
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *bjorn
> *Sent:* 03 October 2008 11:37
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] swf with TextField.htmlText - links do not work
>
>
>
> I've got a flex application which loads an SWF which contains a link in a
> TextField's htmlText. It displays the mouse over handcursor and it looks
> like a link - yet when I click it nothing happens. Is there some security
> limitation here?
>
> --
> 
> http://www.juicability.com - flex blog
> http://www.nospoiler.com - link to youtube videos without the spoilers
>
>
>
>
> --
> 
> http://www.juicability.com - flex blog
> http://www.nospoiler.com - link to youtube videos without the spoilers
>
> 
>



-- 

http://www.juicability.com - flex blog
http://www.nospoiler.com - link to youtube videos without the spoilers


[flexcoders] Re: Did seem simple but not...

2008-10-06 Thread quantum_ohm
Hi Haykel,

yes you're right !
so finally I use a Bindable public var custom_ID in the comp, that i
retrieve on the mouseEvent and that does the trick :-)

Thx for helping, have a nice day.


--- In flexcoders@yahoogroups.com, "Haykel BEN JEMIA" <[EMAIL PROTECTED]>
wrote:
>
> I didn't test your code, but I think the problem comes from the way you
> index your controls and how you use this index to remove them.
> You use the index "i", which should reflect the number of created
controls,
> in their names. Then use the name to get the index back and use the
> index with "removeChildAt".
> Let's simulate this:
> 
> 1. We add 4 controls: btn_ajout0, btn_ajout1, btn_ajout2, btn_ajout3
and i=4
> 2. Remove one in the middle (say btn_ajout1): btn_ajout0, btn_ajout2,
> btn_ajout3 and i=3
> 3. Now you are in an inconsistent state: btn_ajout0 (child 0),
btn_ajout2
> (child 1), btn_ajout3 (child 2)
> 4. If you try to remove btn_ajout2 you wil actually remove
btn_ajout3 and if
> you try to remove btn_ajout3 you will get the index out of bounds error!
> 
> Another possible bug: What if you have more than 10 controls?
s.charAt(9)
> won't work anymore!
> 
> Hope this helps!
> 
> 
> On Sun, Oct 5, 2008 at 7:05 PM, quantum_ohm <[EMAIL PROTECTED]>wrote:
> 
> >   Hello All,
> >
> > I'm tryin' to add some TextInputs dynamically in a FormItem by
calling a
> > custom HBox component where the textinput is. To manage this I
also create
> > dynamically a button in this custom component to add or remove the
> > corresponding component (textinput).
> > It's not far working but after a certain number of adds and removes,
> > I get the "range error: index out of bounds..."
> >
> > I've been breaking my head for two days on this and can't figure out
> > how to solve it.
> >
> > I would appreciate a little bit of help on this code, or maybe a link
> > to this kind of thing, I'm sure somebody has done this already,
> > but I didn't find anything on the web.
> >
> > Thx for help.
> >
> > [Bindable]
> > private var i:int;
> > private var ajout:MailAjoutHBox;
> > [Bindable]
> > private var btn_ajout:Button;
> > [Bindable]
> > private var idAjoutArray:Array = new Array();
> > [Bindable]
> > private var idBtnArray:Array = new Array();
> >
> >
> > private function minusAmisMail():void
> > {
> >
> > ajout.id = idAjoutArray[i];
> > btn_ajout.id = idBtnArray[i];
> >
> > btn_ajout.label = "-"+i;
> >
> > btn_ajout.addEventListener( MouseEvent.MOUSE_UP, moinsHandler );
> >
> > }
> > private function moinsHandler( evt:MouseEvent ):void
> > {
> > i--;
> >
> > var s:String = evt.target.id;
> > var j:int = int( s.charAt(9) );
> > fi_mail_amis.removeChildAt( j );
> >
> > }
> > private function plusHandler( evt:MouseEvent ):void
> > {
> >
> > ajout = new MailAjoutHBox();
> > ajout.id = "comp_ajout"+ i;
> > fi_mail_amis.addChild( ajout );
> > idAjoutArray.push( ajout.id );
> >
> > btn_ajout = new Button();
> > btn_ajout.id = "btn_ajout" + i;
> > btn_ajout.label = "+"+i;
> > ajout.addChild( btn_ajout );
> > idBtnArray.push( btn_ajout.id );
> >
> > minusAmisMail();
> > i++;
> > }
> >
> > private function init():void
> > {
> >
> > ajout = new MailAjoutHBox();
> > ajout.id = "comp_ajout"+ i;
> > fi_mail_amis.addChild( ajout );
> > idAjoutArray.push( ajout.id );
> >
> > btn_ajout = new Button();
> > btn_ajout.id = "btn_ajout" + i;
> > btn_ajout.label = "+"+i;
> > ajout.addChild( btn_ajout );
> > idBtnArray.push( btn_ajout.id );
> >
> > btn_ajout.id = idBtnArray[i];
> > if ( btn_ajout.id == "btn_ajout0" )
> > btn_ajout.addEventListener( MouseEvent.MOUSE_UP, plusHandler );
> >
> > i++;
> > }
> >
> >  
> >
> 
> 
> 
> -- 
> Haykel Ben Jemia
> 
> Allmas
> Web & RIA Development
> http://www.allmas-tn.com
>




  1   2   >