[flexcoders] Re: Dynamically creating item IDs

2007-03-02 Thread bhaq1972
maybe your trying to do something like this

mx:TextInput preinitialize=assignID()/

private function assignID(event:FlexEvent):void
{
  //read your xml file and get id
  var sID:String = assign your id from your xml file here;
  
  //assign this textinput's id 
  event.currentTarget.id = sID;
}

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

 What do you mean?  That statement very vague.  Can you create 
variables
 dynamically... yes.  Can you use reflection and introspection into
 classes... yes.  Can you create UI components at runtime... yes.  
 
  
 
 Can flex compete with ajax... absolutely.
 
  
 
 _
 
 Andrew Trice
 
 Cynergy Systems, Inc.
 
 http://www.cynergysystems.com
 
  
 
 Blog: http://www.cynergysystems.com/blogs/page/andrewtrice
 
 Email: [EMAIL PROTECTED]
 
 Office: 866-CYNERGY 
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Clint Tredway
 Sent: Thursday, March 01, 2007 4:19 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Re: Dynamically creating item IDs
 
  
 
 what do you mean by 'id'
 
 On 3/1/07, thetexaspsycho2003 [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]  wrote: 
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 , thetexaspsycho2003
 thetexaspsycho2003@ wrote: 
 
  Is there a way to dynamically create an item's ID? For example 
pulling
  it in from a XML file?
 
 
 I guess from the lack of replies there is no way of doing this. If 
so,
 this is very disappointing. The ability to create IDs on-the-fly 
is 
 very helpful in other technologies, such as AJAX.
 
 
 
 
 -- 
 http://indeegrumpee.spaces.live.com/
 http://indeegrumpee.spaces.live.com/





Re: [flexcoders] Re: Inconsistent Runtime Error

2007-03-02 Thread Angus Johnson

Hi Tyler,

Since your swfloaders are applications you can listen for the
applicationComplete event via the swfloader.content property. This event
fires when all children have issued creationComplete events (including your
viewstack). You don't have to worry about using a timer.

Set up your listeners on the swfloader as you are currently doing but add
one for the INIT event. In the event handler you can add another listener on
swfloader.content (your sub application).  For example.

   private function handleInit(event:Event):void
   {
   _swfloader.content.addEventListener(
FlexEvent.APPLICATION_COMPLETE, handleApplicationLoaded);
   }

   private function handleApplicationLoaded(event:Event):void
   {
   _applicationLoaded = true;
   dispatchEvent(new SWFAppEvent( SWFAppEvent.READY ));
   }

In the above code I am waiting for my custom event READY to fire before I
start referencing it in the parent.

This is something I did before modules was included in the framework so
there might be some duplication ?? Have you looked at modules?

Hope that helps.

Cheers
Angus



On 02/03/07, tyriker [EMAIL PROTECTED] wrote:


  Okay, that makes sense. Sort of...

I already have an event listener setup for the SWFLoader objects. I try to
check if the loaded app is finished initializing and proceed, otherwise I
try again in a second. Here's a snippet:

--
mx:SWFLoader source=source_to_app.swf complete=loaderComplete(event);
trustContent=true/

mx:Script
  ![CDATA[
private function loaderComplete(e:Event):void
{
  if (e.currentTarget.content.application) //is the app initialized?
  {
 //trigger the generation of the chart...
  }
  else //if not, try again in 1 second
  {
setTimeout(loaderComplete, 1000, e);
  }
}
  ]]
/mx:Script
--

Is this the right way to do such a thing? It seems to work for me. Before
implementing this, I was attempting to access
e.currentTarget.content.application[varname] before the variables
existed, and that for sure caused runtime errors.

One thing along these lines that may be the problem...the loaded app
switches states before working on building the chart. The new state adds
the chart object to the display. So does the chart object not exist before
we switch states? Is it possible I'm attempting to access objects in the new
state before the state is fully built?

When the code:

currentState = 'chart';

is executed, is the state fully built before the next line of code is
executed? Or could something like this cause a problem:

currentState = 'chart';
itemInChartState.visible = false //as an example

Is it possible itemInChartState doesn't exist yet?

Thanks for the help.
Tyler


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

 That error indicates that your are referencing something that doesn't
exist
 yet.

 You need to set listeners of the swfloader(s) to ensure that they are
loaded
 and complete. See the doc's which has an example of setting them.

 Wait for the complete event then fire your charting.

 Post back if you need more help.

 Angus
 



[flexcoders] Re: How to bind to an obj that wraps ArrayCollection?

2007-03-02 Thread greenfishinwater
I have been building an application with binding and observers. I have
found situations where things were not happening, but these were
usually due to some fault in what I wanted to happen. I have not tried
to trap changes to an array collection. But my approach would be to
simplify the logic. Using your code that works,

 I would change the observer:

adobe.ac:Observe
 source={ model.aSpecialBooleanVariable }
 handler={ handler }
 value={true}/

 In the function collectionChangeHandler:

model.aSpecialBooleanVariable = true;

In function handler:

model.aSpecialBooleanVariable = false

This last part is needed as the observer is only fired when the value
changes to true, if the value is already true, and is again set to
true, the observer does not recognize this as a change.

Try this, it simplifies the firing logic. Trying to capture changes to
a collection directly is a black box, this includes adding, deleting
items in a collection and changing the value of an item in a collection.

Andrew


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

 Hi all,
 
 Having some questions about how best to implement this.  So far, I'm
 not having much success.
 
 (I'll be using Paul Williams Observe tag as extended by Alex Uhlmann )
 
 I can't get the handler function to trigger, because the source is not
 dispatching a proper event.  I can listen to the events in my Class,
 and using ArrayCollection.addItem dispatches just fine.
 
 The problem lies in translating that eventListener into something the
 Observe tag can see as an Event(changed) or something similar.
 
 Help!
 
 mxml
   creationComplete=runTest()
 
 mx:Script
   private var model:Model = Model.getInstance();
 
   private function runTest():void
   {
 // This should trigger the observe tag to run the handler
 model.someWrappedArrayCollectionInstance.addSpecificDataTypeObj(
{} );
   }
 
   private function handler( myList:* ):void
   {
 // THIS IS WHAT I CAN'T GET TO TRIGGER!!
   }
 /mx:Script
 
 adobe.ac:Observe
   source={ model.someWrappedArrayCollectionInstance }
   handler={ handler } /
 
 /mxml
 _
 
 import mx.events.CollectionEvent;
 public class WrappedArrayCollection
 {
   private var collection:ArrayCollection = new ArrayCollection([]);
   
   public function WrappedArrayCollection()
   {
 collection.addEventListener( CollectionEvent.COLLECTION_CHANGE,
 collectionChangeHandler );
   }
 
   private function collectionChangeHandler():void
   {
 trace(this part works fine);
 // Should i dispatch an event here for the binding to trigger?
   }
   
   public function addSpecificDataTypeObj( obj:SpecificDataType ):void
   {
 collection.addItem( obj );
   }
 }





Re: [flexcoders] Apollo Book: Apollo for Adobe Flex Developers Pocket Guide

2007-03-02 Thread Tom Chiverton
On Thursday 01 Mar 2007, Impudent1 wrote:
 So am I to take this that Apollo will not let me deal with a remote
 filesystem? If I cannot read/write files from a workstation to a server, or
 deal with a remote data connection, Apollo suddenly seems really useless
 for my app :(

You can always send the file to the server, same as you can now from Flex.

-- 
Tom Chiverton
Helping to augmentatively disintermediate low-risk design-patterns
On: http://thefalken.livejournal.com



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

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

CONFIDENTIALITY

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

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



 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/lOt0.A/hOaOAA/yQLSAA/nhFolB/TM
~- 

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

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

* 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] Eclipse 3.2.2

2007-03-02 Thread Tom Chiverton
On Friday 02 Mar 2007, Andriy Panas wrote:
c) install new Eclipse IDE on the top of old Eclipse IDE
installation folder and this makes a trick.

d) use eclipse's built in update system 

-- 
Tom Chiverton
Helping to apprehensively coordinate unique meta-services
On: http://thefalken.livejournal.com



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

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

CONFIDENTIALITY

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

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



 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/lOt0.A/hOaOAA/yQLSAA/nhFolB/TM
~- 

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

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

* 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] flex bluetooth.

2007-03-02 Thread gunadi bowo
i use windows XP, 
and i use usb bluetooth. 
do you have a book for me that tell me about this?
thanks before.
 
__
YM: [EMAIL PROTECTED]
Blog  : gunadiw.blogsome.com

- Original Message 
From: Tom Chiverton [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, March 1, 2007 6:01:26 PM
Subject: Re: [flexcoders] flex bluetooth.

On Thursday 01 Mar 2007, gunadi bowo wrote:
 please somebody tell me how to connecting bluetooth with flex.

On what O/S ?
I would *imagine* your bluetooth input device will just appear to the O/S as a 
keyboard, and so not care if it's Flex or a HTML form.

-- 
Tom Chiverton
Helping to revolutionarily benchmark leading-edge eyeballs
On: http://thefalken.livejournal.com



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

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

CONFIDENTIALITY

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

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




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










 

Looking for earth-friendly autos? 
Browse Top Cars by Green Rating at Yahoo! Autos' Green Center.
http://autos.yahoo.com/green_center/

Re: [flexcoders] Re: MenuBar Question (Relating to Styles)

2007-03-02 Thread Tom Chiverton
On Thursday 01 Mar 2007, nextadvantage wrote:
 Bump...

http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplorer.html

-- 
Tom Chiverton
Helping to interactively leverage enterprise materials
On: http://thefalken.livejournal.com



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

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

CONFIDENTIALITY

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

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



 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/hOt0.A/lOaOAA/yQLSAA/nhFolB/TM
~- 

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

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

* 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] Starting out - recommendations

2007-03-02 Thread Ryan Barrett

lynda.com have a two really nice videos that'll take you through the
basics..

--
Ryan

On 01/03/07, swain_will [EMAIL PROTECTED] wrote:


  Hello group,

I'm just starting out with Flex 2. I'm coming from a coldfusion
background, and will want to focus on integrating Flex and CFMX.

I've got the From the Source training book, which I'm working through,
and I've read various of the articles on the Adobe site, and obviously
I've found this list. Are there any other resources I should be
looking at?

Thanks all in advance.

Will

 





--
Ryan


[flexcoders] Re: menubar icon

2007-03-02 Thread thuijzer
Is there a way to do this dynamicly?
In my app I don't know what icon's there will be. They are provided by
an CMS-system.
Thank you!



[flexcoders] Invoking RemoteObject method - Type Coercion error

2007-03-02 Thread moonusamy

I'm using RemoteObject to invoke a server-side Java POJO method that
returns an object of type com.foo.Expr. I have Expr.java and Expr.as
with Expr.as annotated with [Bindable] and
[RemoteClass(alias=com.foo.Expr)]

I try to reference the returned value in the result handler in my mxml
as follows:
private function fooResultHandler(event:ResultEvent):void
{
  myexpr = Expr(event.result);  

TypeError: Error #1034: Type Coercion failed: cannot convert
mx.utils::[EMAIL PROTECTED] to com.foo.Expr

I expect event.result to be of type com.foo.Expr which it doesn't seem
to be. What do I need to do to get to the object of type Expr that my
method invocation returns?

Thanks
Vijay




[flexcoders] Re: MenuBar Question (Relating to Styles)

2007-03-02 Thread nextadvantage
Try setting the menu bar color: to white in the style explorer and
you will see that it changes the bar color text to white and the drop
down text to white making it un-readable. Aaron

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

 On Thursday 01 Mar 2007, nextadvantage wrote:
  Bump...
 

http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplorer.html
 
 -- 
 Tom Chiverton
 Helping to interactively leverage enterprise materials
 On: http://thefalken.livejournal.com
 
 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at St James's Court Brown Street Manchester M2 2JF.
 A list of members is available for inspection at the registered
office. Any reference to a partner in relation to Halliwells LLP means
a member of Halliwells LLP. Regulated by the Law Society.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named above
and may be confidential or legally privileged.  If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells
LLP or the addressee of its existence or contents.  If you have
received this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 8008.
 
 For more information about Halliwells LLP visit www.halliwells.com.





[flexcoders] Re: Time Based State Transitions

2007-03-02 Thread nextadvantage
Thanks Mike that helps...

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

 You could use Timer, but this would also work.  You may want to
switch it to
 use a Singleton.
 
 Usage:
 
 var myTraceBack:CommunicationManager = new CommunicationManager();
 myTraceBack.addEventListener(CommunicationManager.ANIMATION_COMPLETE,
 onDoneMove);
 myTraceBack.startCountdown(1000);
 
 
 package
 {
 import flash.display.Sprite;
 import flash.events.TimerEvent;
 import flash.utils.Timer;
 import flash.display.MovieClip;
 import flash.events.Event;
 
 [Event(name=done, type=flash.events.Event)]
 
 public class CommunicationManager extends Sprite
 {
 public var myOwner:MovieClip;
 public static var ANIMATION_COMPLETE:String = done;
 
 public function CommunicationManager()
 {
 super();
 }
 
 public function startCountdown( duration:Number ):void
 {
 var minuteTimer:Timer = new Timer(duration, 1);
 
 minuteTimer.addEventListener(TimerEvent.TIMER, onTick);
 minuteTimer.addEventListener(TimerEvent.TIMER_COMPLETE,
 onTimerComplete);
 
 minuteTimer.start();
 
 
 }
 
 public function onTick(event:TimerEvent):void
 {
 trace(onTick);
 }
 
 public function onTimerComplete(event:TimerEvent):void
 {
 trace(onTimerComplete!);
 this.dispatchEvent(new Event(done));
 }
 
 }
 }
 
 
 hth,
 
 Mike Britton
 
 On 2/26/07, nextadvantage [EMAIL PROTECTED] wrote:
 
How would I go about changing view states say every 10 secs...
with a 1
  sec fade?
 
   
 
 
 
 
 -- 
 Mike
 --
 http://www.mikebritton.com
 http://www.mikenkim.com





Re: [flexcoders] flex bluetooth.

2007-03-02 Thread Tom Chiverton
On Friday 02 Mar 2007, gunadi bowo wrote:
 i use windows XP,
 and i use usb bluetooth.

Does the bluetooth keyboard work without Flex, i.e. with Notepad ?
If not, it's not Flex's fault, and we can't help.

-- 
Tom Chiverton
Helping to economically optimize guinine designs
On: http://thefalken.livejournal.com



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

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

CONFIDENTIALITY

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

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



 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/lOt0.A/hOaOAA/yQLSAA/nhFolB/TM
~- 

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

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

* 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] Flex application runs very slow on server

2007-03-02 Thread Tom Chiverton
On Thursday 01 Mar 2007, xzhao006 wrote:
 windows 2003 server. The reason we did this is try to improve the
 running performance. But we didn't know whether this could be the
 reason for decreasing the running speed.

Well, did moving it make it faster ?
Are your application or database servers max'ed out on disk/CPU/RAM usage ?

Another thing to try is to write a Flex application that calls each server 
method from a button - this will tell you if Flex or the app server is 
slowing it down.

-- 
Tom Chiverton
Helping to professionally develop fine-grained materials
On: http://thefalken.livejournal.com



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

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

CONFIDENTIALITY

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

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



 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/hOt0.A/lOaOAA/yQLSAA/nhFolB/TM
~- 

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

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

* 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: MenuBar Question (Relating to Styles)

2007-03-02 Thread Tom Chiverton
On Friday 02 Mar 2007, nextadvantage wrote:
 Try setting the menu bar color: to white in the style explorer and
 you will see that it changes the bar color text to white and the drop
 down text to white making it un-readable. Aaron

Even if you change the background color to be not-white ? :-)
Play with it till you get something you like.

-- 
Tom Chiverton
Helping to authoritatively integrate high-end eyeballs
On: http://thefalken.livejournal.com



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

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

CONFIDENTIALITY

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

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



 Yahoo! Groups Sponsor ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/4It09A/fOaOAA/yQLSAA/nhFolB/TM
~- 

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

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

* 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] Flex application runs very slow on server

2007-03-02 Thread Xia Zhao

The moving didn't make it faster. On the other hand, I am wondering: Can
this cause running slower?

On 02 Mar 2007 05:24:34 -0800, Tom Chiverton [EMAIL PROTECTED]
wrote:


On Thursday 01 Mar 2007, xzhao006 wrote:
 windows 2003 server. The reason we did this is try to improve the
 running performance. But we didn't know whether this could be the
 reason for decreasing the running speed.

Well, did moving it make it faster ?
Are your application or database servers max'ed out on disk/CPU/RAM usage
?

Another thing to try is to write a Flex application that calls each server
method from a button - this will tell you if Flex or the app server is
slowing it down.

--
Tom Chiverton
Helping to professionally develop fine-grained materials
On: http://thefalken.livejournal.com



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

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

CONFIDENTIALITY

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

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




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






[flexcoders] cannot loading data from database

2007-03-02 Thread ravi chandran
hello friends i am new to flex i have developed one sample appn in flex using 
php and mysql as a backend , now i can get the values from the database and 
show in to the data grid. but i can only see that data in the 
grid.(http://192.168.1.2/flex/bin/example.html) in my system which i developed 
the appln.

if i open this page (http://192.168.1.2/flex/bin/example.html) in another 
system, i cant able to see the data , only grid is showing..  i have also 
placed the crossdomain.xml file in the root server

!DOCTYPE cross-domain-policy SYSTEM 
http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd;
cross-domain-policy
   allow-access-from domain=* secure=true /
/cross-domain-policy

i dont know why this error is coming.. if anybody knows pls let me know ,it 
will be greatful.


from
ravi



__
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/


[flexcoders] Re: Is there a scrollIntoView for VBox?? Automatically scroll to a child object

2007-03-02 Thread scott_flex
Well, i thought i would answer myself... I certainly cannot find a 
built in way to automatically scroll to a display object inside a 
VBox.

So, here's my hack at it:

private function scrollObjectIntoView
(vBox:VBox,scrollToObject:DisplayObject):void
{
var startViewPosition:int   = vBox.verticalScrollPosition;
var endViewPosition:int = vBox.verticalScrollPosition + 
vBox.height;
var scrollToObjectPosition:int  = 0;

// determine intended scroll position of the input DisplayObject
// just sum up the virtual Y position of the child display object
for each (var displayObj:DisplayObject in vBox.getChildren())
{
if (displayObj == scrollToObject) break;
scrollToObjectPosition += displayObj.height;
}

// is already in view if the scroll to position is 
// between the start and end current view position
if (scrollToObjectPosition  startViewPosition  
scrollToObjectPosition  endViewPosition) return;

// don't let the scroll to postion be greater than 
// the max scroll to position, could also use a Math.max here.
if (scrollToObjectPosition  vBox.maxVerticalScrollPosition) 
scrollToObjectPosition = vBox.maxVerticalScrollPosition;

// set the scroll to positin.
vBox.verticalScrollPosition = scrollToObjectPosition;
}   




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

 
 
 Is there no automatic way to scroll to a particualar child object 
 inside a VBox?
 
 I'm writing a tool that allows the user to select a child control 
in 
 a vbox, (it get highlighted just like a row in a datagrid) and then 
 give them an up and down arrow to move the object up or down.
 
 However, when you move a question up (using the vbox's 
setChildIndex 
 method) it's moved up or below the window i want to programatically 
 scroll the selected child into view but only if it needs to.
 
 Right now i've just writing my own code, basically reading the 
scroll 
 postion of the vertical scroll bar and all the heights of the child 
 object in the vbox it's a hack though.
 
 I think i've see a scrollIntoView method somewhere but it's not 
 listed on the VBox ui object.
 
 Thanks for anyones help i could be missing something really 
easy.





[flexcoders] Re: Starting out - recommendations

2007-03-02 Thread scott_flex

...ActionScript 3 CookBook from OReilly, fast read and really helpful 
for basics on AS... i came from C# and .net development.  I was 
TOTALLY new to Flex and AS, i needed to learn both... i still need to 
learn both :)

I can also ditto for the lynda.com training, i just purchased the one 
month cause i knew i would watch the video's once and never again... 
$24.95 was a cheap investment.

--Scott


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

 lynda.com have a two really nice videos that'll take you through the
 basics..
 
 -- 
 Ryan
 
 On 01/03/07, swain_will [EMAIL PROTECTED] wrote:
 
Hello group,
 
  I'm just starting out with Flex 2. I'm coming from a coldfusion
  background, and will want to focus on integrating Flex and CFMX.
 
  I've got the From the Source training book, which I'm working 
through,
  and I've read various of the articles on the Adobe site, and 
obviously
  I've found this list. Are there any other resources I should be
  looking at?
 
  Thanks all in advance.
 
  Will
 
   
 
 
 
 
 -- 
 Ryan





[flexcoders] Re: Flex choking while converting less than 2 MB of data

2007-03-02 Thread ben.clinkinbeard
Yes, creating the class instances was the problem area. I managed to
work around this issue by creating the instances in chunks on an
interval. So once my web service returns, rather than iterating over
the whole collection and doing the conversions I start an interval
that runs every half second, and each pass creates 100 class instances.

This also helped with UI lockup; my loading, please wait animation
now continues to run while the parsing is happening. It stops during
the initial deserialization Flex does but thats no more than 2
seconds, which I can live with.

Ben


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

 Can you send us a test-case please?  Instantiating 10,000 objects like
 you have shouldn't be so bad as far as I know.
 
  
 
 Sounds like getting the XML into anonymous objects is OK, it's just the
 strongly-typed ones right?
 
  
 
 Matt
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of ben.clinkinbeard
 Sent: Tuesday, February 27, 2007 1:50 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Flex choking while converting less than 2 MB
 of data
 
  
 
 Wow, that sucks REALLY bad. I appreciate the response Karl.
 
 I did try (before posting the original message) setting resultFormat
 to e4x and then assembling my objects with pretty much the same
 outcome. Are you suggesting I leave the data as XML permanently? I
 suppose thats worth a shot but I've found using XML dataProviders to
 be a real PITA when making extensive use of itemRenderers and
 labelFunctions (like my app does).
 
 Thanks,
 Ben
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Karl Johnson karl.johnson@
 wrote:
 
  It is unfortunate, but it is the way it is. When returning large
 sets of data like this, we had to stop using webservices returning
 objects and change to using webservices returning an XML string or
 HTTPServices returning XML. Having the flash player consume a big blog
 of XML and then you do what you want with it (like turn it in to AS
 XML Objects and use it for a grid's dataprovider, etc) is WAY faster
 than letting flex try to deserialize it all and put it all into memory
 as strongly typed objects.
  
  One perf test we did in 1.5 was to return three hundred items as
 nested, strongly typed objects took about 45 seconds for the FP to
 handle the result set and render. When using straight xml, it took
 about 2 seconds. Of course it all depends on how large your result set
 as well as how deep and nested your objects are.
  
  Karl
  Cynergy
  
  Shameless Plug:
  Come see us at AJAXWorld next month! Several Cynergy employees,
 including myself, will be presenting on great Flex topics. Don't miss
 it!
  
  
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 on behalf of ben.clinkinbeard
  Sent: Tue 2/27/2007 1:42 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] Flex choking while converting less than 2 MB
 of data
  
  
  
  I am calling a web service that sometimes returns up to 1.9 MB of SOAP
  formatted data. I have left the resultFormat set to object, and it
  seems to handle the initial parsing into anonymous objects without
  much trouble. However, when I attempt to convert this structure into
  class instances the player chokes and usually ends up freezing the
  browser.
  
  The object structure consists of one main Batch object instance, which
  contains 2000 BatchDocument instances, which in turn each contain a
  single ClientInfo object instance and up to four Plan object
  instances. This doesn't seem like a structure that Flex should fail so
  miserably with as the performance everywhere else has been pretty
  impressive. I have attempted this using Darron Schall's
  ObjectTranslator class
  (http://www.darronschall.com/weblog/archives/000247.cfm
 http://www.darronschall.com/weblog/archives/000247.cfm 
 http://www.darronschall.com/weblog/archives/000247.cfm
 http://www.darronschall.com/weblog/archives/000247.cfm  ) as well as
  simply passing the anonymous objects to my class constructors. Both
  result in a completely unusable application.
  
  Any help is greatly appreciated.
  
  Ben
 





Re: [flexcoders] Starting out - recommendations

2007-03-02 Thread Tom Chiverton
On Thursday 01 Mar 2007, swain_will wrote:
 and I've read various of the articles on the Adobe site, and obviously
 I've found this list. Are there any other resources I should be

You're away of the cf-talk mailing list at houseoffusion.com and Adobe's 
blogregator ?

-- 
Tom Chiverton
Helping to greatly syndicate synergistic e-tailers
On: http://thefalken.livejournal.com



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

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

CONFIDENTIALITY

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

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



 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/lOt0.A/hOaOAA/yQLSAA/nhFolB/TM
~- 

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

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

* 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: MenuBar Question (Relating to Styles)

2007-03-02 Thread nextadvantage
What if we wanted white background color :(

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

 On Friday 02 Mar 2007, nextadvantage wrote:
  Try setting the menu bar color: to white in the style explorer and
  you will see that it changes the bar color text to white and the drop
  down text to white making it un-readable. Aaron
 
 Even if you change the background color to be not-white ? :-)
 Play with it till you get something you like.
 
 -- 
 Tom Chiverton
 Helping to authoritatively integrate high-end eyeballs
 On: http://thefalken.livejournal.com
 
 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at St James's Court Brown Street Manchester M2 2JF.
 A list of members is available for inspection at the registered
office. Any reference to a partner in relation to Halliwells LLP means
a member of Halliwells LLP. Regulated by the Law Society.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named above
and may be confidential or legally privileged.  If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells
LLP or the addressee of its existence or contents.  If you have
received this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 8008.
 
 For more information about Halliwells LLP visit www.halliwells.com.





Re: [flexcoders] Flex application runs very slow on server

2007-03-02 Thread Tom Chiverton
On Friday 02 Mar 2007, Xia Zhao wrote:
 The moving didn't make it faster. On the other hand, I am wondering: Can
 this cause running slower?

Could do, if the network between the two is congested, or you are transferring 
large result sets.

-- 
Tom Chiverton
Helping to synergistically integrate interdependent meta-services
On: http://thefalken.livejournal.com



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

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

CONFIDENTIALITY

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

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



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

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

* 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] DB access in Apollo

2007-03-02 Thread Shannon Hicks
Don't forget that Apollo will let us use our own installers. There's no
reason you couldn't install your own database in addition to the Apollo
application.

 

Shan

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Abdul Qabiz
Sent: Thursday, March 01, 2007 12:20 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] DB access in Apollo

 

I can imagine of doing that with Apollo. I would post soon .

On 3/1/07, Russell Sprague [EMAIL PROTECTED]
mailto:rsprague%40infusion-studios.com  wrote:
 I noticed a while back that there wasn't any kind of local database
 access in Apollos feature list. Is this something that will/has
 changed, or are the devs thinking this will be a community
 contribution? It seems to me that DB access is a big part of desktop
 apps, I have built a couple using Flash, Zinc, and MySQL. It would be a
 shame to not be able to use Apollo for some projects because of this
 issue. Hopefully someone can tell me that I just missed it when Adobe
 added this to the feature list.

 Russ



 



RE: [flexcoders] Starting out - recommendations

2007-03-02 Thread Will Swain
Excellent, thanks Ryan - I was unaware of lynda.com
 
will
 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ryan Barrett
Sent: 02 March 2007 08:44
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Starting out - recommendations



lynda.com have a two really nice videos that'll take you through the
basics..

-- 
Ryan



On 01/03/07, swain_will [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] com
wrote: 

Hello group,

I'm just starting out with Flex 2. I'm coming from a coldfusion
background, and will want to focus on integrating Flex and CFMX.

I've got the From the Source training book, which I'm working through,
and I've read various of the articles on the Adobe site, and obviously
I've found this list. Are there any other resources I should be
looking at?

Thanks all in advance.

Will








-- 
Ryan 

 


Re: [flexcoders] Re: MenuBar Question (Relating to Styles)

2007-03-02 Thread Tom Chiverton
On Friday 02 Mar 2007, nextadvantage wrote:
 What if we wanted white background color :(

Then it stands to reason you can't have the same text color on the same 
component, no ?

-- 
Tom Chiverton
Helping to autoschediastically syndicate collaborative content
On: http://thefalken.livejournal.com



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

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

CONFIDENTIALITY

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

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



 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/hOt0.A/lOaOAA/yQLSAA/nhFolB/TM
~- 

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

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

* 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] Flex 2 vs. Open Laszlo

2007-03-02 Thread nathanpdaniel

I'm sure most people here are partial to Flex - but does anyone know any
major differences? Pros/Cons - I've never seen anything about Laszlo
until I picked up a Flash book last week.  Just curios to see what other
developers think.

  [:D]



RE: [flexcoders] simulate datagrid header click, or set default sort column

2007-03-02 Thread Robert Chyko
One thing to look at would be dispatch a HEADER_RELEASE event on the
datagrid.  Its not the most straightforward fix, and will take a little
tweaking to get to work right, but it is doable.  
 
 
 

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Adam Royle
Sent: Thursday, March 01, 2007 8:09 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] simulate datagrid header click, or set
default sort column




Hi guys,
 
This came up last week but no working response was given. 
 
I have my data sorted in a dataProvider, however whenever I add
new data I add it to the end of the ArrayCollection. However this means
the datagrid is no longer sorted correctly.
 
I wish I could execute the private method sortByColumn() that
exists in the DataGrid class, but it's private!!
 
Anyone with a solution? I have tried subclassing and also
copying code directly, but the sortByColumn method uses private
variables, so I'm stuck again.
 
Can anyone suggest a solution to my problem?
 
Cheers,
Adam



 



Re: [flexcoders] Struggling with itemRenderer in DataGrid

2007-03-02 Thread Tom Chiverton
On Wednesday 28 Feb 2007, Steve Gustafson wrote:
 Any help is GREATLY APPRECIATED as I am rapidly approaching a deadline.

One - try it first with a straight MXML DataGrid rather than constructing one 
in AS.
Two - your ComboBox DP doesn't match the name of the Array you declared.
 public var myLevels:Array =
..
 mx:ComboBox id=cboLevels dataProvider={myFolders}/




-- 
Tom Chiverton
Helping to adaptively coordinate enterprise-class applications
On: http://thefalken.livejournal.com



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

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

CONFIDENTIALITY

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

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



 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/lOt0.A/hOaOAA/yQLSAA/nhFolB/TM
~- 

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

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

* 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] Flex 2 vs. Open Laszlo

2007-03-02 Thread Tom Chiverton
On Friday 02 Mar 2007, nathanpdaniel wrote:
 I'm sure most people here are partial to Flex - but does anyone know any
 major differences? Pros/Cons - I've never seen anything about Laszlo
 until I picked up a Flash book last week.  Just curios to see what other
 developers think.

When I look last year, it was much harder work to get Laszlo to consume 
external services.

-- 
Tom Chiverton
Helping to efficiently consolidate world-class materials
On: http://thefalken.livejournal.com



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

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

CONFIDENTIALITY

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

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



 Yahoo! Groups Sponsor ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/4It09A/fOaOAA/yQLSAA/nhFolB/TM
~- 

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

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

* 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: Invoking RemoteObject method - Type Coercion error

2007-03-02 Thread michael_ramirez44
Loop through the properties on the event.result to see if it does 
contain the same public properties as you Expr.as class.

Michael Ramirez

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

 
 I'm using RemoteObject to invoke a server-side Java POJO method that
 returns an object of type com.foo.Expr. I have Expr.java and Expr.as
 with Expr.as annotated with [Bindable] and
 [RemoteClass(alias=com.foo.Expr)]
 
 I try to reference the returned value in the result handler in my 
mxml
 as follows:
 private function fooResultHandler(event:ResultEvent):void
 {
   myexpr = Expr(event.result);  
 
 TypeError: Error #1034: Type Coercion failed: cannot convert
 mx.utils::[EMAIL PROTECTED] to com.foo.Expr
 
 I expect event.result to be of type com.foo.Expr which it doesn't 
seem
 to be. What do I need to do to get to the object of type Expr that 
my
 method invocation returns?
 
 Thanks
 Vijay





[flexcoders] Re: cannot loading data from database

2007-03-02 Thread michael_ramirez44
How are you loading your data (RemoteObject or HTTPService)?
Are you database and application in the same domain?

Michael Ramirez
--- In flexcoders@yahoogroups.com, ravi chandran [EMAIL PROTECTED] wrote:

 hello friends i am new to flex i have developed one sample appn in 
flex using php and mysql as a backend , now i can get the values from 
the database and show in to the data grid. but i can only see that 
data in the grid.(http://192.168.1.2/flex/bin/example.html) in my 
system which i developed the appln.
 
 if i open this page (http://192.168.1.2/flex/bin/example.html) in 
another system, i cant able to see the data , only grid is showing..  
i have also placed the crossdomain.xml file in the root server
 
 !DOCTYPE cross-domain-policy 
SYSTEM http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd;
 cross-domain-policy
allow-access-from domain=* secure=true /
 /cross-domain-policy
 
 i dont know why this error is coming.. if anybody knows pls let me 
know ,it will be greatful.
 
 
 from
 ravi
 
 
   
 __
 Yahoo! India Answers: Share what you know. Learn something new
 http://in.answers.yahoo.com/





[flexcoders] Fire effect

2007-03-02 Thread Webdevotion

Hey,

I'm looking for a nice fire effect, but can't seem to find one in AS3.
Is there someone willing to share some code to accomplish this ?
Tutorials are more than welcome too.

tnx


RE: [flexcoders] Re: Starting out - recommendations

2007-03-02 Thread Will Swain
Yup...I have no AS experience so this looks handy.
 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of scott_flex
Sent: 02 March 2007 13:39
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Starting out - recommendations




...ActionScript 3 CookBook from OReilly, fast read and really helpful 
for basics on AS... i came from C# and .net development. I was 
TOTALLY new to Flex and AS, i needed to learn both... i still need to 
learn both :)

I can also ditto for the lynda.com training, i just purchased the one 
month cause i knew i would watch the video's once and never again... 
$24.95 was a cheap investment.

--Scott

--- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com,
Ryan Barrett [EMAIL PROTECTED] wrote:

 lynda.com have a two really nice videos that'll take you through the
 basics..
 
 -- 
 Ryan
 
 On 01/03/07, swain_will [EMAIL PROTECTED] wrote:
 
  Hello group,
 
  I'm just starting out with Flex 2. I'm coming from a coldfusion
  background, and will want to focus on integrating Flex and CFMX.
 
  I've got the From the Source training book, which I'm working 
through,
  and I've read various of the articles on the Adobe site, and 
obviously
  I've found this list. Are there any other resources I should be
  looking at?
 
  Thanks all in advance.
 
  Will
 
  
 
 
 
 
 -- 
 Ryan




 


Re: [flexcoders] Flex application runs very slow on server

2007-03-02 Thread Xia Zhao

I tested the database connect from my local machine. It works fine.

Is it also possible beacuse I adopted Caringorm into Flex project? I noticed
that it seems that the processes of updating models are running slow on the
server. Any idea about this?


On 02/03/07, Tom Chiverton [EMAIL PROTECTED] wrote:


On Friday 02 Mar 2007, Xia Zhao wrote:
 The moving didn't make it faster. On the other hand, I am wondering: Can
 this cause running slower?

Could do, if the network between the two is congested, or you are
transferring
large result sets.

--
Tom Chiverton
Helping to synergistically integrate interdependent meta-services
On: http://thefalken.livejournal.com



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

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

CONFIDENTIALITY

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

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



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






RE: [flexcoders] Starting out - recommendations

2007-03-02 Thread Will Swain
I am Tom. CF-TALK is a great resource.

Thanks.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: 02 March 2007 14:21
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Starting out - recommendations

On Thursday 01 Mar 2007, swain_will wrote:
 and I've read various of the articles on the Adobe site, and obviously 
 I've found this list. Are there any other resources I should be

You're away of the cf-talk mailing list at houseoffusion.com and Adobe's
blogregator ?

--
Tom Chiverton
Helping to greatly syndicate synergistic e-tailers
On: http://thefalken.livejournal.com



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

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

CONFIDENTIALITY

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

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



 Yahoo! Groups Sponsor ~--
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/lOt0.A/hOaOAA/yQLSAA/nhFolB/TM
~- 

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






Re: [flexcoders] Fire effect

2007-03-02 Thread Aliasâ„¢

Although it's not fire, you could have a look at my presentation on
procedural effects at LFPUG this month - it'd be easy enough to adapt to do
fire.

http://www.lfpug.com/smoke-fire-and-water-creating-realistic-procedural-bitmap-effects/

HTH,
Alias

On 02/03/07, Webdevotion [EMAIL PROTECTED] wrote:


Hey,

I'm looking for a nice fire effect, but can't seem to find one in AS3.
Is there someone willing to share some code to accomplish this ?
Tutorials are more than welcome too.

tnx




[flexcoders] CF flex2gateway vs JavaAdapter

2007-03-02 Thread Rich Tretola

Have there been any performance studies between using  a standard swf
connecting to  an internal ColdFusion server using the flex2gateway vs using
FDS with the JavaAdapter?

To this point we have been using only FDS with a Java/Hibernate backend
using the JavaAdapter but are looking at ColdFusion for an upcoming
project.  My concerns are with performance.

Anyone had any case studies on this?

Rich


RE: [flexcoders] How to align chart items in two charts?

2007-03-02 Thread Ely Greenfield
 
 
by default charts compute their gutterLeft and gutterRight dynamically,
but if you need to get two charts to align, you can set them to explicit
values. You lose a little bit of flexibility in axis/label layout...it
will fit the axes to the space available rather than choosing the best
space available for the labels, but if you choose appropriate values it
should work fine.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mikhail Shevchuk
Sent: Friday, March 02, 2007 1:44 AM
To: Flex
Subject: [flexcoders] How to align chart items in two charts?



Hello, Flexcoders.

I have two charts one below another. They are quite similar and use the
same horizontal axeses. But the problem is that I can't get the correct
chart view. The problem is that they have different positions of start
and end points on the canvas. How to align those vertical axes
vertically? I've attached two small pictures to show you what I mean. 

Saying another words, I need to align the chart points vertically, as
axes.

Thanks.
-- 
A vivid and creative mind characterizes you. 

 


[flexcoders] Re: simulate datagrid header click, or set default sort column

2007-03-02 Thread iko_knyphausen

I just went through the same exercise, and ended up using the
recommended method, which is creating your own Sort object...

The basic working is to

1. take a collection (either arraycollection or xmllistcollection) as
dataprovider
2. define a Sort object for it (you do this by creating SortFields and
putting them into the fields array of the Sort object)
3. execute a Refresh on your collection

If you trigger your sort via HeaderRelease events, you should call
preventDefault() in that handler so that only your sort gets executed.

You can find code samples if you look in the docs (the example I used
was about sorting multiple columns at the same time)

HTH
--- In flexcoders@yahoogroups.com, Robert Chyko [EMAIL PROTECTED] wrote:

 One thing to look at would be dispatch a HEADER_RELEASE event on the
 datagrid. Its not the most straightforward fix, and will take a little
 tweaking to get to work right, but it is doable.




 -Original Message-
 From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On Behalf Of Adam Royle
 Sent: Thursday, March 01, 2007 8:09 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] simulate datagrid header click, or set
 default sort column




 Hi guys,

 This came up last week but no working response was given.

 I have my data sorted in a dataProvider, however whenever I add
 new data I add it to the end of the ArrayCollection. However this
means
 the datagrid is no longer sorted correctly.

 I wish I could execute the private method sortByColumn() that
 exists in the DataGrid class, but it's private!!

 Anyone with a solution? I have tried subclassing and also
 copying code directly, but the sortByColumn method uses private
 variables, so I'm stuck again.

 Can anyone suggest a solution to my problem?

 Cheers,
 Adam






RE: [flexcoders] Invoking RemoteObject method - Type Coercion error

2007-03-02 Thread Jeff Vroom
The ObjectProxy is returned when the player de-serializes a server side
class which it does not recognize.  (It would ordinarily return just an
Object, but that is wrapped by an ObjectProxy if you have the
makeObjectsBindable property set since plain old Object does not support
binding events).  

 

There are a couple of reasons why this might be the case... Most likely
your server side object's class may not match exactly com.foo.Expr -
it could be a sub-class.   To see what is being put on the wire, you can
enable server side debug logging.  If you are using FDS, you do this in
services-config.xml, set level=Debug and make sure the Endpoint.*
target is in there.  You can see the trace of the AMF server debug logs
to see what class name is being put onto the wire. 

 

The other thing that can cause this is if your class alias is not
getting registered on the client somehow.  Your RemoteClass tag should
take care of that as long as that class gets linked into your SWF (which
should be happening as you have a reference to that class).  You can
diagnose that using the describeType method  on the client side and
look for the alias which is in that mapping. 

 

Jeff

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of moonusamy
Sent: Thursday, March 01, 2007 9:32 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Invoking RemoteObject method - Type Coercion error

 


I'm using RemoteObject to invoke a server-side Java POJO method that
returns an object of type com.foo.Expr. I have Expr.java and Expr.as
with Expr.as annotated with [Bindable] and
[RemoteClass(alias=com.foo.Expr)]

I try to reference the returned value in the result handler in my mxml
as follows:
private function fooResultHandler(event:ResultEvent):void
{
myexpr = Expr(event.result); 

TypeError: Error #1034: Type Coercion failed: cannot convert
mx.utils::[EMAIL PROTECTED] to com.foo.Expr

I expect event.result to be of type com.foo.Expr which it doesn't seem
to be. What do I need to do to get to the object of type Expr that my
method invocation returns?

Thanks
Vijay

 



RE: [flexcoders] Starting out - recommendations

2007-03-02 Thread Tracy Spratt
See the Flex resources list I just posted.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Will Swain
Sent: Friday, March 02, 2007 9:56 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Starting out - recommendations

 

I am Tom. CF-TALK is a great resource.

Thanks.

-Original Message-
From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
Behalf Of Tom Chiverton
Sent: 02 March 2007 14:21
To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
Subject: Re: [flexcoders] Starting out - recommendations

On Thursday 01 Mar 2007, swain_will wrote:
 and I've read various of the articles on the Adobe site, and obviously

 I've found this list. Are there any other resources I should be

You're away of the cf-talk mailing list at houseoffusion.com and Adobe's
blogregator ?

--
Tom Chiverton
Helping to greatly syndicate synergistic e-tailers
On: http://thefalken.livejournal.com http://thefalken.livejournal.com 



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

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

CONFIDENTIALITY

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

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

 Yahoo! Groups Sponsor ~--
Great things are happening at Yahoo! Groups. See the new email design.
http://us.click.yahoo.com/lOt0.A/hOaOAA/yQLSAA/nhFolB/TM
http://us.click.yahoo.com/lOt0.A/hOaOAA/yQLSAA/nhFolB/TM 
--~- 

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

 



[flexcoders] Re: Invoking RemoteObject method - Type Coercion error

2007-03-02 Thread moonusamy

In the debugger:
event.result seems to be of type ObjectProxy
It shows a child of type Object that in turn contains a root Object
corresponding to a data member of my Expr class called root of a type
called Node.
In addition to this child object, event.result also shows a root
child Object. 
Since my method returns an Expr object, what I'd expect to see is
event.result to be of type Expr and to be able to do:
var expr:Expr = Expr(event.result);
var node:Node = expr.root;

Thanks
Vijay 

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

 Loop through the properties on the event.result to see if it does 
 contain the same public properties as you Expr.as class.
 
 Michael Ramirez
 
 --- In flexcoders@yahoogroups.com, moonusamy vijay.k.ganesan@ 
 wrote:
 
  
  I'm using RemoteObject to invoke a server-side Java POJO method that
  returns an object of type com.foo.Expr. I have Expr.java and Expr.as
  with Expr.as annotated with [Bindable] and
  [RemoteClass(alias=com.foo.Expr)]
  
  I try to reference the returned value in the result handler in my 
 mxml
  as follows:
  private function fooResultHandler(event:ResultEvent):void
  {
myexpr = Expr(event.result);  
  
  TypeError: Error #1034: Type Coercion failed: cannot convert
  mx.utils::[EMAIL PROTECTED] to com.foo.Expr
  
  I expect event.result to be of type com.foo.Expr which it doesn't 
 seem
  to be. What do I need to do to get to the object of type Expr that 
 my
  method invocation returns?
  
  Thanks
  Vijay
 





Re: [flexcoders] Re: Dynamically creating item IDs

2007-03-02 Thread slangeberg

Believe you need to pass the event object:

mx:TextInput preinitialize=assignID(event)/

But, that's a pretty good idea!

-Scott

On 3/2/07, bhaq1972 [EMAIL PROTECTED] wrote:


  maybe your trying to do something like this

mx:TextInput preinitialize=assignID()/

private function assignID(event:FlexEvent):void
{
//read your xml file and get id
var sID:String = assign your id from your xml file here;

//assign this textinput's id
event.currentTarget.id = sID;
}

--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Andrew
Trice [EMAIL PROTECTED]
wrote:

 What do you mean? That statement very vague. Can you create
variables
 dynamically... yes. Can you use reflection and introspection into
 classes... yes. Can you create UI components at runtime... yes.



 Can flex compete with ajax... absolutely.



 _

 Andrew Trice

 Cynergy Systems, Inc.

 http://www.cynergysystems.com



 Blog: http://www.cynergysystems.com/blogs/page/andrewtrice

 Email: [EMAIL PROTECTED]

 Office: 866-CYNERGY



 

 From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
 Behalf Of Clint Tredway
 Sent: Thursday, March 01, 2007 4:19 PM
 To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 Subject: Re: [flexcoders] Re: Dynamically creating item IDs



 what do you mean by 'id'

 On 3/1/07, thetexaspsycho2003 [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]  wrote:

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.commailto:
flexcoders% flexcoders%25
40yahoogroups.com
 , thetexaspsycho2003
 thetexaspsycho2003@ wrote:
 
  Is there a way to dynamically create an item's ID? For example
pulling
  it in from a XML file?
 

 I guess from the lack of replies there is no way of doing this. If
so,
 this is very disappointing. The ability to create IDs on-the-fly
is
 very helpful in other technologies, such as AJAX.




 --
 http://indeegrumpee.spaces.live.com/
 http://indeegrumpee.spaces.live.com/


 





--

: : ) Scott


Re: [flexcoders] Apollo Book: Apollo for Adobe Flex Developers Pocket Guide

2007-03-02 Thread slangeberg

Oh yeah, did he say:

limited to 2g


As in a 2GB POST limit? That doesn't seem like much of a limit. I may

question the logic of posting a 2G file! If that's not the current limit,
what is?

Tom, what's the current method you're referring to, for 'sending' files to
server?

-Scott

On 3/2/07, Tom Chiverton [EMAIL PROTECTED] wrote:


On Thursday 01 Mar 2007, Impudent1 wrote:
 So am I to take this that Apollo will not let me deal with a remote
 filesystem? If I cannot read/write files from a workstation to a server,
or
 deal with a remote data connection, Apollo suddenly seems really useless
 for my app :(

You can always send the file to the server, same as you can now from Flex.

--
Tom Chiverton
Helping to augmentatively disintermediate low-risk design-patterns
On: http://thefalken.livejournal.com



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

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

CONFIDENTIALITY

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

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




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







--

: : ) Scott


Re: [flexcoders] Fire effect

2007-03-02 Thread Webdevotion

I converted this into as3:
*
http://as3.betaruce.com/tut/fire/fire_f8.html
*


[flexcoders] Two Questions on which I am stumped

2007-03-02 Thread We Made That design

Hi all,

I have two questions I am trying to figure out.

1. I have a client who has specifically requested an intro be played at
the start of the application( I have tried talking them out of it). I was
thinking I could use flash 9 ide as the intro was built in it. Can I just
load the flex app into an swf via flash 9 ide. And the real question for
me is how would I replay the intro as there is a button specified for
this?
I am so used to using modules now in flex.


2. I am using itemRenderers in my datagrid and have a link button in one
of the columns. I cant seem to access the selectedIndex on the row
selected when clicking the link button. I actually cant access any
functions either from my as class. How can I access functions from my main
mxml file and also access stuff like selectedIndex from my
arrayCollection. I can access the data from the grid no problem using
data.name or whatever.

Thanks
Jeremy

Jeremy Tooley
Creative Director
We Made That Design Group Inc.
[EMAIL PROTECTED]
http://www.wemadethat.com
p: 403.668.0857
c: 403.836.3048



RE: [flexcoders] Fire effect

2007-03-02 Thread Merrill, Jason
Google is your friend.
 
Google Actionscript Fire Effect and it comes up with this:
http://www.flash-db.com/Tutorials/fire/
 
And this:
http://www.sitepoint.com/article/flash-script-fire-effect
 
Easy to adapt to AS3 and Flex
 

Jason Merrill 
Bank of America  
Global Technology  Operations, Learning  Leadership Development 
eTools  Multimedia Team 


 




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Webdevotion
Sent: Friday, March 02, 2007 11:22 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Fire effect



Hey,

I'm looking for a nice fire effect, but can't seem to find one
in AS3.
Is there someone willing to share some code to accomplish this ?
Tutorials are more than welcome too.

tnx


 



[flexcoders] Sharing Datastore between 2 DataServices

2007-03-02 Thread John Menke
Is the following possible with FDS?

DataService_1 - references data retrieved from a DB view (MYVIEW)
DataService_2 - references data of a component of (MYVIEW)


If i update a record with DataService_2 I want DataService_1 to be
aware that it needs to auto refresh.

Is this possible to setup using a shared DataStore between
DataService_1 and DataService_2 ???


-john







[flexcoders] Re: simulate datagrid header click, or set default sort column

2007-03-02 Thread iko_knyphausen

BTW, I also fiddled with dispatching the HEADER_RELEASE event, before I
used a custom sort, and one problem is, that its behavior depends on
whether the column to be sorted was the last sorted column or not. If it
was the previous sort column a header release event will reverse the
sort order, if it was not the last column, it will reuse the same sort
order that it had when it was last used - in some cases you may end up
dispatching the header release twice, to get the desired sort order, and
you can see... this is not a good solution ;-)


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


 I just went through the same exercise, and ended up using the
 recommended method, which is creating your own Sort object...

 The basic working is to

 1. take a collection (either arraycollection or xmllistcollection) as
 dataprovider
 2. define a Sort object for it (you do this by creating SortFields and
 putting them into the fields array of the Sort object)
 3. execute a Refresh on your collection

 If you trigger your sort via HeaderRelease events, you should call
 preventDefault() in that handler so that only your sort gets executed.

 You can find code samples if you look in the docs (the example I used
 was about sorting multiple columns at the same time)

 HTH
 --- In flexcoders@yahoogroups.com, Robert Chyko rchyko@ wrote:
 
  One thing to look at would be dispatch a HEADER_RELEASE event on the
  datagrid. Its not the most straightforward fix, and will take a
little
  tweaking to get to work right, but it is doable.
 
 
 
 
  -Original Message-
  From: flexcoders@yahoogroups.com
  [mailto:[EMAIL PROTECTED] On Behalf Of Adam Royle
  Sent: Thursday, March 01, 2007 8:09 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] simulate datagrid header click, or set
  default sort column
 
 
 
 
  Hi guys,
 
  This came up last week but no working response was given.
 
  I have my data sorted in a dataProvider, however whenever I add
  new data I add it to the end of the ArrayCollection. However this
 means
  the datagrid is no longer sorted correctly.
 
  I wish I could execute the private method sortByColumn() that
  exists in the DataGrid class, but it's private!!
 
  Anyone with a solution? I have tried subclassing and also
  copying code directly, but the sortByColumn method uses private
  variables, so I'm stuck again.
 
  Can anyone suggest a solution to my problem?
 
  Cheers,
  Adam
 






[flexcoders] VideoDisplay help

2007-03-02 Thread john
do you know how can access the onMetaData, from VideoDisplay component. 
i use the VideoDisplay to play a stream flv file from a FVS, and i have problem 
with this component from Flex on buffering percent left from 100%, and with 
metadata :(

i search for information on doc's flex, googleing on the net... but don't find 
a userful article or tutorial in this way: VideoDisplay + streaming file from 
FMS.

thx
 

~
~~ ( John - Lost in Design ) ~
~



- Original Message 
From: Tom Chiverton [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, March 2, 2007 3:20:54 PM
Subject: Re: [flexcoders] Re: MenuBar Question (Relating to Styles)

On Friday 02 Mar 2007, nextadvantage wrote:
 Try setting the menu bar color: to white in the style explorer and
 you will see that it changes the bar color text to white and the drop
 down text to white making it un-readable. Aaron

Even if you change the background color to be not-white ? :-)
Play with it till you get something you like.

-- 
Tom Chiverton
Helping to authoritatively integrate high-end eyeballs
On: http://thefalken.livejournal.com



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

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

CONFIDENTIALITY

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

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




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










 

Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com

Re: [flexcoders] Fire effect

2007-03-02 Thread Webdevotion

Tnx, I actually found that presentation today : )


RE: [flexcoders] Re: Dynamically creating item IDs

2007-03-02 Thread Gordon Smith
Are you talking about the id=... attribute on MXML tags? All it does
it autogenerate a public var in the class. For example, if you write
 
mx:Button id=b/
 
in an MXML component then the autogenerated AS class has the instance
var
 
public var b:Button;
 
So if you plan on dynamically instantiating components instead of
statically declaring them with tags, you simply declare your own var as
above and then do
 
b = new Button();
 
The difference between this approach and AJAX is that AS3 gets its
performance gain over Javascript by having non-dynamic classes (where
all properties and methods are declared at compilation time) in addition
to to dynamic ones. Flex components are mostly non-dynamic for speed. So
you simply declare variables to be the id's of the components you're
going to create later.
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of thetexaspsycho2003
Sent: Thursday, March 01, 2007 1:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Dynamically creating item IDs



--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, thetexaspsycho2003
[EMAIL PROTECTED] wrote:

 Is there a way to dynamically create an item's ID? For example pulling
 it in from a XML file?


I guess from the lack of replies there is no way of doing this. If so,
this is very disappointing. The ability to create IDs on-the-fly is
very helpful in other technologies, such as AJAX.



 


[flexcoders] Application Idleness

2007-03-02 Thread Rick Root

Does anyone have any suggestions for monitoring idleness of a Flex
application?

The way my app works, pretty much any request to the server will renew a
cookie for another 30 minutes.. so I could just have flex make a generic
request every 10 minutes or so to avoid idling out, but I don't want to do
that (it's a violation of procedures set up during our last security audit!)

What I'd like to do is perform that request - say every 5 minutes - if there
has been any kind of activity in the flex app.. keyboard or mouse activity..
that way the server session stays active, and then if the user has been
idle for more than 20 minutes (no keyboard or mouse activity) to actually
blank the flex app window and pop up a login window, forcing the user to
reauthenticate.

I'm just not entirely sure of the best way to go about this.

Rick


--
I'm not certified, but I have been told that I'm certifiable...
Visit http://www.opensourcecf.com today!


RE: [flexcoders] Circular Binding

2007-03-02 Thread Gordon Smith
I believe the BindingManager has logic to prevent endless loops arising
from accidental circular bindings.
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of raz_gilad
Sent: Wednesday, February 28, 2007 11:20 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Circular Binding



Hi 

Does anyone knows how Circular Binding works? I've used the follwing
action script code and I've expected it to go into endless loop - but it
did not. Any idea why ?

   BindingUtils.bindProperty(item,Threshold,txtin,text);
   BindingUtils.bindProperty(txtin,text,item,Threshold);

Thanks

Raz

 

 


[flexcoders] Questions Re: Web Services

2007-03-02 Thread Shibli Zaman
Hey, guys, I don't know if any of you out there are SAP consultants, but
what I'm doing isn't anything out of the ordinary conceptually. I'm just
consuming a Web Service using one of SAP's standard BAPI's called
BAPI_SALESORDER_GETLIST. 

When I debug it, I can see that everything goes fine and it returns the
data requested in the debugging console. However, nothing is binding in
my datagrid. I assume this is because I haven't set the properties
correctly according to the XML data received. Here's the XML (I've
replaced customer sensitive data with blah and removed most of the
columns for brevity):

?xml version=1.0 encoding=UTF-8?

SOAP-ENV:Envelope
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/encoding/;

  SOAP-ENV:Body

ns0:BAPI_SALESORDER_GETLIST.Response
xmlns:ns0=urn:sap-com:document:sap:rfc:functions

  RETURN

TYPE/

CODE/

MESSAGE/

LOG_NO/

LOG_MSG_NO00/LOG_MSG_NO

MESSAGE_V1/

MESSAGE_V2/

MESSAGE_V3/

MESSAGE_V4/

  /RETURN

  SALES_ORDERS

item

  SD_DOCblah/SD_DOC

  ITM_NUMBERblah/ITM_NUMBER

/item

  /SALES_ORDERS

/ns0:BAPI_SALESORDER_GETLIST.Response

  /SOAP-ENV:Body

/SOAP-ENV:Envelope

Here's my Flex code to consume that:

?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 

layout=absolute

creationComplete=wsBAPI.BAPI_SALESORDER_GETLIST.send()

mx:WebService id=wsBAPI 

 
wsdl=http://ouxs06vp.fender.com:8000/sap/bc/soap/wsdl11?services=BAPI_S
ALESORDER_GETLIST

useProxy=false

mx:operation name=BAPI_SALESORDER_GETLIST

mx:request

CUSTOMER_NUMBER

  000150

/CUSTOMER_NUMBER

SALES_ORGANIZATION

  1000

/SALES_ORGANIZATION

DOCUMENT_DATE

  20070227

/DOCUMENT_DATE

SALES_ORDER/

/mx:request

/mx:operation

/mx:WebService

mx:Panel x=10 y=10 width=475 height=400 layout=absolute

title=Sales Orders

 

mx:DataGrid x=30 y=75 id=dgTopPosts width=400
dataProvider={wsBAPI.BAPI_SALESORDER_GETLIST.Response}

mx:columns

mx:DataGridColumn headerText=SD_DOC
dataField=SD_DOC/

mx:DataGridColumn headerText=ITM_NUMBER
dataField=ITM_NUMBER width=75/

/mx:columns

/mx:DataGrid

/mx:Panel

/mx:Application

P.S. I know that Visual Composer uses Flex, but I want to build my apps
in Flex Builder instead of VC.

Another weird thing that is happening is that on my laptop Adobe Flex 2
debugger console window shows me everything in progress. However, on my
desktop it juts says 

[SWF] C:\Documents and Settings\Me\My Documents\Flex Builder
2\Lessons\bin\Services-debug.swf - 982,015 bytes after decompression

Any tips would be greatly appreciated. Thanks! --SBZ



[flexcoders] Passing data from TitleWindow to application

2007-03-02 Thread jmfillman
I've attempted to model this after an Adobe example found here: 

http://livedocs.adobe.com/flex/201/html/textcontrols_060_19.html

I'm trying to take that example and apply it to set the height of a 
control, based on logic in the TitleWindow popup. When you close the 
TitleWindow, I want the height value of the List to be updated.

FILE: test.mxml:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=absolute creationComplete=initApp()

mx:Script
![CDATA[
import mx.controls.TileList;
import mx.controls.Button;
import mx.controls.Alert;
import mx.events.DragEvent;
import mx.controls.List;
import mx.managers.DragManager;
import mx.core.DragSource;  
import mx.managers.PopUpManager;
import mx.core.IFlexDisplayObject;

public var w:IFlexDisplayObject;

private function initApp():void {
var dp:Array = ([
{label:First, data:25},
{label:Second, data:50},
]);
listOne.dataProvider = dp;
box001A.dataProvider = [];
}

public function slotDetails(slot:TileList):void {
   var w:MyTitleWindow = MyTitleWindow
(PopUpManager.createPopUp
(this, MyTitleWindow, true));
   w.height=200;
   w.width=340;
   w.slotHeight = slot.height;
   PopUpManager.centerPopUp(w);
}

]]
/mx:Script

mx:List id=listOne dragEnabled=true 
dropEnabled=false x=10 y=10/mx:List
mx:TileList x=10 y=172 dropEnabled=true 
dragMoveEnabled=true dragDrop=slotDetails(box001A) 
dragEnabled=true id=box001A rowCount=1 columnCount=1 
height=25 width=162

/mx:TileList
mx:Text x=10 y=289 text={box001A.height} 
width=82/


/mx:Application



FILE: MyTitleWindow.mxml

?xml version=1.0?

mx:TitleWindow xmlns:mx=http://www.adobe.com/2006/mxml; 
title=Details showCloseButton=true close=closeDialog();
mx:Script
![CDATA[
import mx.managers.PopUpManager;
import mx.controls.Alert;

public var slotHeight:Number;

 public function closeDialog():void {
var sizeNum:Number = 0;
sizeNum = slotSize.value * 2.5;
slotHeight = sizeNum;
PopUpManager.removePopUp(this);
}

]]
/mx:Script

mx:Label text=Size/
mx:NumericStepper id=slotSize maximum=1440 minimum=10/
mx:Button label=Done click=closeDialog()/

/mx:TitleWindow



[flexcoders] Triggering Event question.

2007-03-02 Thread nextadvantage
I have an address i'm trying to load the yahoo maps with a particular
address loaded initially. when I trigger it from a button click it
works fine but if I try to trigger it from a completion Complete I get
debugging errors and cant figure this one out... How can I modify this
to get the getMap() function to load initially.

?xml version=1.0 encoding=utf-8?
mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute
title=Yahoo! Maps creationComplete=initApp() styleName=TEXTa
mx:Script
![CDATA[

import flash.events.EventDispatcher;

private var _locLis:LocalConnection;
private var _locSend:LocalConnection;

// On map initialize
private function initApp():void {
yahooMap.source = yahoo/YahooMap.swf;
initCom();  
}

// Initialize local connection
private function initCom():void {
// Setup local connection to listen for Flash 8 
communication
_locLis = new LocalConnection();

// Connect to local connection, after functions 
have been defined
_locLis.allowDomain(*);
_locLis.client = this;
_locLis.connect(swf9Lis);

// Setup local connection to talk to Flash 8
_locSend = new LocalConnection();
}

// Send data to Flash 8
public function sendData(strMethod:String, ... 
args):void {
_locSend.send(swf8Lis, strMethod, args);
}

// Called to get map based on address
private function getMap():void {
var arrAddress:String = new String(2070 
Business Center Drive,
Irvine, CA 92612);
sendData(setCenterByAddressAndZoom, 
arrAddress + :~:6:~:0);

}   

]]
/mx:Script
mx:VBox
mx:SWFLoader id=yahooMap showBusyCursor=true width=640
height=320/
mx:Button click=getMap()/
/mx:VBox
/mx:Panel







[flexcoders] Setting up command line

2007-03-02 Thread Mike and Stephie

Hi People !
We're new to Flex and having some fun with it!
Just trying to run mxmlc from command line in Windows XP and get
*Error: could not find a JVM.
*Have just installed the JDK1.6 and JAVA_HOME is set to \jdk\bin
Does anyone have any tips please
Thanks for your help
Prema


Re: [flexcoders] Apollo Book: Apollo for Adobe Flex Developers Pocket Guide

2007-03-02 Thread Impudent1
slangeberg wrote:
 Oh yeah, did he say:
 
 limited to 2g

 As in a 2GB POST limit? That doesn't seem like much of a limit. I may
 question the logic of posting a 2G file! If that's not the current limit,
 what is?

fwiw , this is an internal video approval system app, and 2g is nothing for 
even 
flv files on longer forms

 Tom, what's the current method you're referring to, for 'sending' files to
 server?
 

I would be interested in this as well.

Impudent1
LeapFrog Productions



[flexcoders] Flex Prototyping Best Practices

2007-03-02 Thread Clarke Bishop

I've become a big believer in iterative development and in starting my Flex
apps by working on the U/I. Then, only after I can freeze the U/I, do I
start on the backend.

It's easy enough to drag some controls into an application, but I'm not as
sure the best ways to populate the controls with sample data. What's the
best practice? And what way makes it easiest to modify the sample data and
ultimately switch to developing the back end with minimum impact on my Flex
code?

If any of you have any other tips for a good Flex development process, I'd
love to hear your thoughts on that, too!

Thanks,

  Clarke


Re: [flexcoders] Application Idleness

2007-03-02 Thread Jim Cheng
Rick Root wrote:
 Does anyone have any suggestions for monitoring idleness of a Flex
 application?

I'm assuming you're using Flex 2.0--if you're using the Flex Framework 
as a basis for development (as opposed to rolling your own ActionScript 
3.0-only project), this functionality is actually supported out of the 
box by the SystemManager.

The SystemManager will dispatch an idle event every 100ms after there 
has been no keyboard or mouse activity.  You can register your own 
listener for this event and determine if too many such events have been 
issued without a gap in between (indicating user interaction).

If you don't mind using the mx_internal namespace (where Adobe hides 
implementation details that are subject to change between versions 
without notice, see the FlexComponents list for more details), you can 
even inspect the internal idleCounter variable which details the number 
of frames elapsed since the last detected keyboard or mouse activity.

Read more about it on the LiveDocs documentation here:

http://livedocs.macromedia.com/flex/2/langref/mx/managers/SystemManager.html

If you're brave, the source to SystemManager, as well as most of the 
rest of the Flex Framework, can be found in your Flex 2 SDK frameworks 
directory.  There's a ton of neat stuff just waiting to be discovered in 
there.

Jim Cheng
effectiveUI


Re: [flexcoders] Flex Prototyping Best Practices

2007-03-02 Thread Jeffry Houser


 I've been hard coding sample data into ArrayCollections.

 I bet there are better ways, though.



At 05:19 PM 3/2/2007, Clarke Bishop wrote:

I've become a big believer in iterative development and in starting 
my Flex apps by working on the U/I. Then, only after I can freeze 
the U/I, do I start on the backend.


It's easy enough to drag some controls into an application, but I'm 
not as sure the best ways to populate the controls with sample data. 
What's the best practice? And what way makes it easiest to modify 
the sample data and ultimately switch to developing the back end 
with minimum impact on my Flex code?


If any of you have any other tips for a good Flex development 
process, I'd love to hear your thoughts on that, too!


Thanks,

   Clarke



--
Jeffry Houser, Software Developer, Writer, Songwriter, Recording Engineer
AIM: Reboog711  | Phone: 1-203-379-0773
--
My Company: http://www.dot-com-it.com
My Podcast: http://www.theflexshow.com
My Blog: http://www.jeffryhouser.com
Connecticut Macromedia User Group: http://www.ctmug.com


Re: [flexcoders] Re: simulate datagrid header click, or set default sort column

2007-03-02 Thread Adam Royle
OK, thanks for your response. Haven't tried this yet, but will do. Just a quick 
question, if I use do the way you recommend with a custom sort object, can the 
user still use the headers to change the sort column/direction? This is what I 
want.

Thanks,
Adam

  - Original Message - 
  From: iko_knyphausen 
  To: flexcoders@yahoogroups.com 
  Sent: Saturday, March 03, 2007 5:09 AM
  Subject: [flexcoders] Re: simulate datagrid header click, or set default sort 
column



  BTW, I also fiddled with dispatching the HEADER_RELEASE event, before I
  used a custom sort, and one problem is, that its behavior depends on
  whether the column to be sorted was the last sorted column or not. If it
  was the previous sort column a header release event will reverse the
  sort order, if it was not the last column, it will reuse the same sort
  order that it had when it was last used - in some cases you may end up
  dispatching the header release twice, to get the desired sort order, and
  you can see... this is not a good solution ;-)

  --- In flexcoders@yahoogroups.com, iko_knyphausen [EMAIL PROTECTED] wrote:
  
  
   I just went through the same exercise, and ended up using the
   recommended method, which is creating your own Sort object...
  
   The basic working is to
  
   1. take a collection (either arraycollection or xmllistcollection) as
   dataprovider
   2. define a Sort object for it (you do this by creating SortFields and
   putting them into the fields array of the Sort object)
   3. execute a Refresh on your collection
  
   If you trigger your sort via HeaderRelease events, you should call
   preventDefault() in that handler so that only your sort gets executed.
  
   You can find code samples if you look in the docs (the example I used
   was about sorting multiple columns at the same time)
  
   HTH
   --- In flexcoders@yahoogroups.com, Robert Chyko rchyko@ wrote:
   
One thing to look at would be dispatch a HEADER_RELEASE event on the
datagrid. Its not the most straightforward fix, and will take a
  little
tweaking to get to work right, but it is doable.
   
   
   
   
-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Adam Royle
Sent: Thursday, March 01, 2007 8:09 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] simulate datagrid header click, or set
default sort column
   
   
   
   
Hi guys,
   
This came up last week but no working response was given.
   
I have my data sorted in a dataProvider, however whenever I add
new data I add it to the end of the ArrayCollection. However this
   means
the datagrid is no longer sorted correctly.
   
I wish I could execute the private method sortByColumn() that
exists in the DataGrid class, but it's private!!
   
Anyone with a solution? I have tried subclassing and also
copying code directly, but the sortByColumn method uses private
variables, so I'm stuck again.
   
Can anyone suggest a solution to my problem?
   
Cheers,
Adam
   
  



   

[flexcoders] HitArea of pieChart when adding call out and explode.

2007-03-02 Thread leds usop
HI all,

Hi Ely,

Anyone know of a way to retain the effective HitArea
of a pie series after adding datatip call outs and
explode? It seems that after adding perwedgeexplode
and callouts, the hitarea for each wedge is dminished.
Or will it be better to add the callouts as sort of
annotation elements using datadrawing canvas? Im also
thinking I can perhaps set a a new sprite as a
particular wedge's hitarea but then again i really
dont know which is more practical.. Right now I have
settled with setting the calloutgap to a negative
value to allow it to overlap on the pie.. but some
callout lines become crooked ;p

Any sugguestions? Thnx!

-leds


 

Expecting? Get great news right away with email Auto-Check. 
Try the Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html 


[flexcoders] Re: simulate datagrid header click, or set default sort column

2007-03-02 Thread iko_knyphausen

Yes, but you should provide for the sorting of these columns too,
otherwise your sort competes against the builtin...

Alternatively, you could detach your custom sort whenever a different
header is clicked (meaning resetting the sort property of the
collection) - but I think you can have much more control doing your own.
Also keep in mind, if  you have any columns with calculated fields
(meaning the dataField value is different than what is displayed), you
may need a custom sort anyway (try sorting dates as strings... and you
see what I mean)

Iko


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

 OK, thanks for your response. Haven't tried this yet, but will do.
Just a quick question, if I use do the way you recommend with a custom
sort object, can the user still use the headers to change the sort
column/direction? This is what I want.

 Thanks,
 Adam

 - Original Message -
 From: iko_knyphausen
 To: flexcoders@yahoogroups.com
 Sent: Saturday, March 03, 2007 5:09 AM
 Subject: [flexcoders] Re: simulate datagrid header click, or set
default sort column



 BTW, I also fiddled with dispatching the HEADER_RELEASE event, before
I
 used a custom sort, and one problem is, that its behavior depends on
 whether the column to be sorted was the last sorted column or not. If
it
 was the previous sort column a header release event will reverse the
 sort order, if it was not the last column, it will reuse the same sort
 order that it had when it was last used - in some cases you may end up
 dispatching the header release twice, to get the desired sort order,
and
 you can see... this is not a good solution ;-)

 --- In flexcoders@yahoogroups.com, iko_knyphausen iko@ wrote:
 
 
  I just went through the same exercise, and ended up using the
  recommended method, which is creating your own Sort object...
 
  The basic working is to
 
  1. take a collection (either arraycollection or xmllistcollection)
as
  dataprovider
  2. define a Sort object for it (you do this by creating SortFields
and
  putting them into the fields array of the Sort object)
  3. execute a Refresh on your collection
 
  If you trigger your sort via HeaderRelease events, you should call
  preventDefault() in that handler so that only your sort gets
executed.
 
  You can find code samples if you look in the docs (the example I
used
  was about sorting multiple columns at the same time)
 
  HTH
  --- In flexcoders@yahoogroups.com, Robert Chyko rchyko@ wrote:
  
   One thing to look at would be dispatch a HEADER_RELEASE event on
the
   datagrid. Its not the most straightforward fix, and will take a
 little
   tweaking to get to work right, but it is doable.
  
  
  
  
   -Original Message-
   From: flexcoders@yahoogroups.com
   [mailto:[EMAIL PROTECTED] On Behalf Of Adam Royle
   Sent: Thursday, March 01, 2007 8:09 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] simulate datagrid header click, or set
   default sort column
  
  
  
  
   Hi guys,
  
   This came up last week but no working response was given.
  
   I have my data sorted in a dataProvider, however whenever I add
   new data I add it to the end of the ArrayCollection. However this
  means
   the datagrid is no longer sorted correctly.
  
   I wish I could execute the private method sortByColumn() that
   exists in the DataGrid class, but it's private!!
  
   Anyone with a solution? I have tried subclassing and also
   copying code directly, but the sortByColumn method uses private
   variables, so I'm stuck again.
  
   Can anyone suggest a solution to my problem?
  
   Cheers,
   Adam
  
 






RE: [flexcoders] Application Idleness

2007-03-02 Thread Tracy Spratt
Wow, that is a great thing to know.  I was going to point Rick to my
example on cflex.net which uses ordinary mouse and KB activity and a
Timer to initiate timeout processing, but a SystemManager idle event
looks much more elegant.  I'll update my example when I get a chance.

 

Thanks,

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jim Cheng
Sent: Friday, March 02, 2007 3:09 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Application Idleness

 

Rick Root wrote:
 Does anyone have any suggestions for monitoring idleness of a Flex
 application?

I'm assuming you're using Flex 2.0--if you're using the Flex Framework 
as a basis for development (as opposed to rolling your own ActionScript 
3.0-only project), this functionality is actually supported out of the 
box by the SystemManager.

The SystemManager will dispatch an idle event every 100ms after there 
has been no keyboard or mouse activity. You can register your own 
listener for this event and determine if too many such events have been 
issued without a gap in between (indicating user interaction).

If you don't mind using the mx_internal namespace (where Adobe hides 
implementation details that are subject to change between versions 
without notice, see the FlexComponents list for more details), you can 
even inspect the internal idleCounter variable which details the number 
of frames elapsed since the last detected keyboard or mouse activity.

Read more about it on the LiveDocs documentation here:

http://livedocs.macromedia.com/flex/2/langref/mx/managers/SystemManager.
html
http://livedocs.macromedia.com/flex/2/langref/mx/managers/SystemManager
.html 

If you're brave, the source to SystemManager, as well as most of the 
rest of the Flex Framework, can be found in your Flex 2 SDK frameworks 
directory. There's a ton of neat stuff just waiting to be discovered in 
there.

Jim Cheng
effectiveUI

 



RE: [flexcoders] Setting up command line

2007-03-02 Thread Dimitrios Gianninas
How are u calling mxmlc? by using ant and calling the mxmlc.exe ? or calling 
via the mxmlc.jar ?

Dimitrios Gianninas
Optimal Payments Inc.



-Original Message-
From: flexcoders@yahoogroups.com on behalf of Mike and Stephie
Sent: Fri 3/2/2007 3:27 PM
To: FlexCoders
Subject: [flexcoders] Setting up command line
 
Hi People !
We're new to Flex and having some fun with it!
Just trying to run mxmlc from command line in Windows XP and get
*Error: could not find a JVM.
*Have just installed the JDK1.6 and JAVA_HOME is set to \jdk\bin
Does anyone have any tips please
Thanks for your help
Prema

-- 
WARNING
---
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation.  Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.

winmail.dat

[flexcoders] Re: Dynamically creating item IDs

2007-03-02 Thread bhaq1972
yes thats correct. typo.

regrds
bod

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

 Believe you need to pass the event object:
 
 mx:TextInput preinitialize=assignID(event)/
 
 But, that's a pretty good idea!
 
 -Scott
 
 On 3/2/07, bhaq1972 [EMAIL PROTECTED] wrote:
 
maybe your trying to do something like this
 
  mx:TextInput preinitialize=assignID()/
 
  private function assignID(event:FlexEvent):void
  {
  //read your xml file and get id
  var sID:String = assign your id from your xml file here;
 
  //assign this textinput's id
  event.currentTarget.id = sID;
  }
 
  --- In flexcoders@yahoogroups.com flexcoders%
40yahoogroups.com, Andrew
  Trice andrew.trice@
  wrote:
  
   What do you mean? That statement very vague. Can you create
  variables
   dynamically... yes. Can you use reflection and introspection 
into
   classes... yes. Can you create UI components at runtime... yes.
  
  
  
   Can flex compete with ajax... absolutely.
  
  
  
   _
  
   Andrew Trice
  
   Cynergy Systems, Inc.
  
   http://www.cynergysystems.com
  
  
  
   Blog: http://www.cynergysystems.com/blogs/page/andrewtrice
  
   Email: andrew.trice@
  
   Office: 866-CYNERGY
  
  
  
   
  
   From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  [mailto:flexcoders@yahoogroups.com flexcoders%
40yahoogroups.com] On
   Behalf Of Clint Tredway
   Sent: Thursday, March 01, 2007 4:19 PM
   To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
   Subject: Re: [flexcoders] Re: Dynamically creating item IDs
  
  
  
   what do you mean by 'id'
  
   On 3/1/07, thetexaspsycho2003 thetexaspsycho2003@
   mailto:thetexaspsycho2003@  wrote:
  
   --- In flexcoders@yahoogroups.com flexcoders%
40yahoogroups.commailto:
  flexcoders% flexcoders%25
  40yahoogroups.com
   , thetexaspsycho2003
   thetexaspsycho2003@ wrote:
   
Is there a way to dynamically create an item's ID? For example
  pulling
it in from a XML file?
   
  
   I guess from the lack of replies there is no way of doing this. 
If
  so,
   this is very disappointing. The ability to create IDs on-the-fly
  is
   very helpful in other technologies, such as AJAX.
  
  
  
  
   --
   http://indeegrumpee.spaces.live.com/
   http://indeegrumpee.spaces.live.com/
  
 
   
 
 
 
 
 -- 
 
 : : ) Scott





RE: [flexcoders] DB access in Apollo

2007-03-02 Thread Gordon Smith
The Apollo team is considering integrating a SQL database into the
Apollo runtime.
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Shannon Hicks
Sent: Friday, March 02, 2007 7:00 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] DB access in Apollo



Don't forget that Apollo will let us use our own installers... There's
no reason you couldn't install your own database in addition to the
Apollo application.

Shan

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Abdul Qabiz
Sent: Thursday, March 01, 2007 12:20 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] DB access in Apollo

I can imagine of doing that with Apollo. I would post soon .

On 3/1/07, Russell Sprague [EMAIL PROTECTED]
mailto:rsprague%40infusion-studios.com  wrote:
 I noticed a while back that there wasn't any kind of local database
 access in Apollos feature list. Is this something that will/has
 changed, or are the devs thinking this will be a community
 contribution? It seems to me that DB access is a big part of desktop
 apps, I have built a couple using Flash, Zinc, and MySQL. It would be
a
 shame to not be able to use Apollo for some projects because of this
 issue. Hopefully someone can tell me that I just missed it when Adobe
 added this to the feature list.

 Russ



 


RE: [flexcoders] Re: how do you call the super's super?

2007-03-02 Thread Gordon Smith
I agree that it would be nice to be able to call super-super-...-methods
but the language simply wasn't designed to allow that. If the upcoming
Ecmascript standard supports it, ActionScript will support it, otherwise
it probably won't.
 
As for hacking classes to do something they weren't compiled to do...
non-dynamic classes are a new feature of AS3 and they do not allow you
to change a compiled method such as updateDisplayList(). This is part of
the performance and security of AS3 vs. AS1 and AS2.
 
Changes to the prototype object are still possible, but the framework
does not use prototype-based inheritance, so this wouldn't allow you to
do anything with updateDisplayList().
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Anthony Lee
Sent: Thursday, March 01, 2007 6:12 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: how do you call the super's super?



 maybe I want to override (and by that I mean NOT run the code in)
 parent.updateDisplayList. But if I override updateDisplayList,
 then at some point in my method I've got to call
super.updateDisplayList
 to get anything to work. But that means I'm going to run all the code
in
 super.updateDisplayList, when in reality I just want to run the code
in
 grandParent.updateDisplayList.

EXACTLY!

Forgive my nativity but is there no way to hack the required
functionality into the super class or something higher that it
inherits from? This kind of thing went on all the time with AS1.

tonio


 


[flexcoders] Re: Passing data from TitleWindow to application

2007-03-02 Thread joan_lynn
I believe that you need to dispatch an event from the PopUp with all
of the information that you want to pass to the main Application. Here
is an example of what I think you want to do:

FILE: heightEvent .as
package
{
import flash.events.Event;

public class heightEvent extends flash.events.Event
{

public var heightProperty : int;
   
public function heightEvent(_heightProperty:int)
{
super(changeHeight);
heightProperty = _heightProperty;
}

}
}

FILE: MyTitleWindow.mxml
?xml version=1.0?

mx:TitleWindow xmlns:mx=http://www.adobe.com/2006/mxml;
title=Details showCloseButton=true close=closeDialog();
mx:Script
![CDATA[
import mx.managers.PopUpManager;
import mx.controls.Alert;

public var slotHeight:Number;

public function closeDialog():void {
var sizeNum:Number = 0;
sizeNum = slotSize.value * 2.5;
slotHeight = sizeNum;
dispatchEvent(new heightEvent(slotHeight));

PopUpManager.removePopUp(this);
}

]]
/mx:Script

mx:Label text=Size/
mx:NumericStepper id=slotSize maximum=1440 minimum=10/
mx:Button label=Done click=closeDialog()/

/mx:TitleWindow

FILE: test.mxml
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute creationComplete=initApp()

mx:Script
![CDATA[
import mx.controls.TileList;
import mx.controls.Button;
import mx.controls.Alert;
import mx.events.DragEvent;
import mx.controls.List;
import mx.managers.DragManager;
import mx.core.DragSource;
import mx.managers.PopUpManager;
import mx.core.IFlexDisplayObject;
import heightEvent;

public var w:IFlexDisplayObject;

private function initApp():void {
var dp:Array = ([
{label:First, data:25},
{label:Second, data:50},
]);
listOne.dataProvider = dp;
box001A.dataProvider = [];

}

public function slotDetails(slot:TileList):void {
var w:MyTitleWindow = MyTitleWindow
(PopUpManager.createPopUp
(this, MyTitleWindow, true));
w.addEventListener(changeHeight, changeHeightHandler);

w.height=200;
w.width=340;
w.slotHeight = slot.height;
PopUpManager.centerPopUp(w);
}

public function changeHeightHandler(event:heightEvent)
{
box001A.height = event.heightProperty;
}

]]
/mx:Script

mx:List id=listOne dragEnabled=true
dropEnabled=false x=10 y=10/mx:List
mx:TileList x=10 y=172 dropEnabled=true
dragMoveEnabled=true dragDrop=slotDetails(box001A)
dragEnabled=true id=box001A rowCount=1 columnCount=1
height=25 width=162

/mx:TileList
mx:Text x=10 y=289 text={box001A.height}
width=82/


/mx:Application


I hope this helps.
Joan 

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

 I've attempted to model this after an Adobe example found here: 
 
 http://livedocs.adobe.com/flex/201/html/textcontrols_060_19.html
 
 I'm trying to take that example and apply it to set the height of a 
 control, based on logic in the TitleWindow popup. When you close the 
 TitleWindow, I want the height value of the List to be updated.
 
 FILE: test.mxml:
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
 layout=absolute creationComplete=initApp()
 
 mx:Script
   ![CDATA[
   import mx.controls.TileList;
   import mx.controls.Button;
   import mx.controls.Alert;
 import mx.events.DragEvent;
 import mx.controls.List;
 import mx.managers.DragManager;
 import mx.core.DragSource;
 import mx.managers.PopUpManager;
 import mx.core.IFlexDisplayObject;
 
 public var w:IFlexDisplayObject;
 
   private function initApp():void {
   var dp:Array = ([
   {label:First, data:25},
 {label:Second, data:50},
 ]);
 listOne.dataProvider = dp;
 box001A.dataProvider = [];
 }
 
   public function slotDetails(slot:TileList):void {
  var w:MyTitleWindow = MyTitleWindow
 (PopUpManager.createPopUp
   (this, MyTitleWindow, true));
  w.height=200;
  w.width=340;
  w.slotHeight = slot.height;
  PopUpManager.centerPopUp(w);
 }
 
   ]]
 /mx:Script
 
   mx:List id=listOne dragEnabled=true 
 dropEnabled=false x=10 y=10/mx:List
   mx:TileList x=10 y=172 dropEnabled=true 
 dragMoveEnabled=true dragDrop=slotDetails(box001A) 
 dragEnabled=true id=box001A rowCount=1 columnCount=1 
 height=25 width=162
   
   /mx:TileList
   mx:Text x=10 y=289 text={box001A.height} 
 width=82/
   
   
 /mx:Application
 
 
 
 FILE: MyTitleWindow.mxml
 
 ?xml version=1.0?
 
 mx:TitleWindow xmlns:mx=http://www.adobe.com/2006/mxml; 
 title=Details showCloseButton=true close=closeDialog();
 mx:Script
 ![CDATA[
 import mx.managers.PopUpManager;
   import mx.controls.Alert;

[flexcoders] Purpse of default-channels

2007-03-02 Thread Allen Riddle
Hello all, I am curious about the meaning of default-channels in the
proxy-config.xml. I was under the assumption I could set up the
channels, and fail over would occur based on the channel that is being
used. For example, if I want to run SSL on production, but not while
developing, could I have:

 

default-channels

   channel ref=my-secure-http/

   channel ref=my-secure-amf/

   channel ref=my-http/

   channel ref=my-amf/

/default-channels

 

I would think that the secure channels would only get used if you're
sending to port 443, vs: 80. It doesn't appear to work like that though.

 

Allen Riddle

Sofware Development

x3217

 



Re: [flexcoders] Apollo Book: Apollo for Adobe Flex Developers Pocket Guide

2007-03-02 Thread Jim Cheng
Impudent1 wrote:

 So am I to take this that Apollo will not let me deal with a remote 
 filesystem?
 If I cannot read/write files from a workstation to a server, or deal with a 
 remote data connection, Apollo suddenly seems really useless for my app :(

There's no reason that you'd even need Apollo to do that.

Flash Player 9 already has all you need for building libraries to
connect to all sorts of remote filesystems:  sockets, binary and
otherwise.

Sockets are pretty much all you need for implementing whatever remote
filesystem protocol that happens to float your boat, be it WebDAV, FTP,
SCP or more esoteric protocols like SMB and NFS.

 From previous work I've done implementing WebDAV for AJAX applications
over XMLHTTPRequest, I seriously doubt that'd take more than a day or
two of effort.  Some of the other protocols might be trickier though,
especially if you need to re-implement some heavy lifting in the form of
encryption algorithms for authentication or stream protection.

Apollo, however, might make remote access in general easier for all of
us if Adobe got rid of the crossdomain access restrictions for desktop
applications though.

Jim Cheng
effectiveUI




 Yahoo! Groups Sponsor ~-- 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/kOt0.A/gOaOAA/yQLSAA/nhFolB/TM
~- 

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

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

* 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: Announcing FlexLib - open source flex component library

2007-03-02 Thread Guillermo Villasana
I added it in the the Library path tab. Or i should add it int source path?

Thanks
Terius

Troy Gilbert wrote:

 You've added the SWC to your project? Go to the Project Properties and 
 its on one of the build related tabs.

 Troy.





[flexcoders] Looking for Beta Testers

2007-03-02 Thread iko_knyphausen

Hello everyone,

I am looking for some beta testers for a simple task manager written in
Flex 2. To participate you need some form of IIS on your server or dev
box. The server side scripts are written in classic ASP.

Main features of the product:

1. Share action items with team members
2. Assign people
3. Attach files and comments
4. Group and organize action items (datagrid with multilevel grouping
and collapsible rows!)
5. Supports multiple teams, and people can be members in more than
one team
6. Keep audit trail of all changes made to action items in a log

The product can be useful for

1. Development teams that want to track bugs, feature requests,
issues, ideas
2. Small and mid-sized creative teams that need to track customer
deliverables
3. Office managers, meeting minutes
4. and more ;-)

If you are interested drop me a quick line to [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]

Have a nice weekend,

Iko



Re: [flexcoders] flex bluetooth.

2007-03-02 Thread Jim Cheng
Tom Chiverton wrote:

 Does the bluetooth keyboard work without Flex, i.e. with Notepad ?
 If not, it's not Flex's fault, and we can't help.

If it's something that's not handled natively by Windows (for instance, 
Bluetooth keyboard or mouse), getting it to work with Flex is probably 
beyond the scope of this list.

Gunadi's best bet at that point would be to access the appropriate 
driver for the device using an adapter program and exposing the API to 
it for Flex to use via a socket or ActiveX control.  If an ActiveX 
control already exists for accessing the particular Bluetooth device, a 
third party extender like Zinc or SWF Studio might be able to do the 
trick via direct API calls.

Unfortunately, such solutions are more hackish than not and are unlikely 
to work well outside of IE (with additional trusted ActiveX controls) or 
a third party wrapper to the SWF.

Jim Cheng
effectiveUI


 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/hOt0.A/lOaOAA/yQLSAA/nhFolB/TM
~- 

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

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

* 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] Need help in dynamically updating datagrid

2007-03-02 Thread devil_love_99
Hi All,

I am developing a flex app, for the first time. I have three main
components. A combo-box, datagrid and a graph. The combobox is
populated using httprequest to a php page which provides data from
mysql database. My problem is I need to populate the datagrid and
update graph depending on the value selected from combo-box but can't
seem to get it working. I have tried states and also went to the
extent of replacing the whole datgrid with another one (visible
property) but still stuck. I can send the code as soon as my
workstation comes up, but if someone has any pointer he/she can spare
me, it will be greatly appriciated.

thanks in advance



RE: [flexcoders] Passing data from TitleWindow to application

2007-03-02 Thread Tracy Spratt
Simplest is to have your PopUp call a method on the Main app in the
closeDialog method.  I have an example of this on cflex.net.  But best
practice is probably to have the title window emit an event, and in the
handler, use event.target to get the value you want.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jmfillman
Sent: Friday, March 02, 2007 3:55 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Passing data from TitleWindow to application

 

I've attempted to model this after an Adobe example found here: 

http://livedocs.adobe.com/flex/201/html/textcontrols_060_19.html
http://livedocs.adobe.com/flex/201/html/textcontrols_060_19.html 

I'm trying to take that example and apply it to set the height of a 
control, based on logic in the TitleWindow popup. When you close the 
TitleWindow, I want the height value of the List to be updated.

FILE: test.mxml:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  
layout=absolute creationComplete=initApp()

mx:Script
![CDATA[
import mx.controls.TileList;
import mx.controls.Button;
import mx.controls.Alert;
import mx.events.DragEvent;
import mx.controls.List;
import mx.managers.DragManager;
import mx.core.DragSource; 
import mx.managers.PopUpManager;
import mx.core.IFlexDisplayObject;

public var w:IFlexDisplayObject; 

private function initApp():void {
var dp:Array = ([
{label:First, data:25},
{label:Second, data:50},
]);
listOne.dataProvider = dp;
box001A.dataProvider = [];
}

public function slotDetails(slot:TileList):void {
var w:MyTitleWindow = MyTitleWindow
(PopUpManager.createPopUp
(this, MyTitleWindow, true));
w.height=200;
w.width=340;
w.slotHeight = slot.height;
PopUpManager.centerPopUp(w);
} 

]]
/mx:Script

mx:List id=listOne dragEnabled=true 
dropEnabled=false x=10 y=10/mx:List
mx:TileList x=10 y=172 dropEnabled=true 
dragMoveEnabled=true dragDrop=slotDetails(box001A) 
dragEnabled=true id=box001A rowCount=1 columnCount=1 
height=25 width=162

/mx:TileList
mx:Text x=10 y=289 text={box001A.height} 
width=82/


/mx:Application

FILE: MyTitleWindow.mxml

?xml version=1.0?

mx:TitleWindow xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  
title=Details showCloseButton=true close=closeDialog();
mx:Script
![CDATA[
import mx.managers.PopUpManager;
import mx.controls.Alert; 

public var slotHeight:Number;

public function closeDialog():void {
var sizeNum:Number = 0;
sizeNum = slotSize.value * 2.5;
slotHeight = sizeNum;
PopUpManager.removePopUp(this);
}

]]
/mx:Script

mx:Label text=Size/
mx:NumericStepper id=slotSize maximum=1440 minimum=10/
mx:Button label=Done click=closeDialog()/

/mx:TitleWindow

 



[flexcoders] Flex builder stability?

2007-03-02 Thread pgp.coppens
Gentlepeople, 

A few days ago I have installed a demo license of flex builder and in
general I like it very much. Nevertheless, ever since, my Eclipse
blows up (either heap size or stack overflow) at regular occasions. I
don't think I have been able to work with it for longer than an hour
(average is probably 15 minutes). Before installing flex builder, my
eclipse could happily run for days in a row.

I have done the typical things of increasing heap size of the vm but
that does not help.

Are there any other tips or guidelines? 

Also, what are the experiences of other users with flex builder's
stability? 

Thanks!

Peter



[flexcoders] Re: Inconsistent Runtime Error

2007-03-02 Thread tyriker
I replied earlier, but my post has never shown up. Anyway...

I didn't know anything about modules, but did some reading about them.
Seems ideal for what I'm going to be doing, but I'll tackle that later.

So I implemented the listeners like you described, and it worked great.
I'm now able to manipulate items within the loaded app, without using
the timer method I described earlier. Thanks for that!

But my original problem still exists. I still get a runtime error about
95% of the time. The error starts with:

TypeError: Error #1034: Type Coercion failed: cannot convert
mx.core::[EMAIL PROTECTED] to mx.core.IFactory.
 at mx.charts.series::BarSeries/get
legendData()[C:\dev\flex_201_gmc\sdk\frameworks\mx\charts\series\BarSeri\
es.as:178]
...etc...

So I commented out all of the BarSeries lines of code from my app (about
5 lines), and then received a different but very similar error at
runtime (cannot convert ...Stroke to IStroke). Using trace() I've
followed through to progression of my code, compared to when the runtime
error occurs.

The first thing I do is change the currentState to the new state, which
contains the chart. Then I set all the properties of the chart, then my
code is done. It is after that when the runtime error occurs. Looking at
the app itself, the new state hasn't been 'painted' on the screen yet,
so it seems the error occurs when the Flash Player attempts to display
the new state. So it feels like the error is caused by code I don't have
control over (Adobe's code). I've also tried using 'enterState' event
listeners, but it resulted in the same runtime error.

Yeah, kind of frustrated. The only thing I can think of is scrapping
states, and just using ActionScript to change the display. Maybe that's
the only way to make it reliably work.




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

 Hi Tyler,

 Since your swfloaders are applications you can listen for the
 applicationComplete event via the swfloader.content property. This
event
 fires when all children have issued creationComplete events (including
your
 viewstack). You don't have to worry about using a timer.

 Set up your listeners on the swfloader as you are currently doing but
add
 one for the INIT event. In the event handler you can add another
listener on
 swfloader.content (your sub application).  For example.

 private function handleInit(event:Event):void
 {
 _swfloader.content.addEventListener(
 FlexEvent.APPLICATION_COMPLETE, handleApplicationLoaded);
 }

 private function handleApplicationLoaded(event:Event):void
 {
 _applicationLoaded = true;
 dispatchEvent(new SWFAppEvent( SWFAppEvent.READY ));
 }

 In the above code I am waiting for my custom event READY to fire
before I
 start referencing it in the parent.

 This is something I did before modules was included in the framework
so
 there might be some duplication ?? Have you looked at modules?

 Hope that helps.

 Cheers
 Angus



 On 02/03/07, tyriker [EMAIL PROTECTED] wrote:
 
Okay, that makes sense. Sort of...
 
  I already have an event listener setup for the SWFLoader objects. I
try to
  check if the loaded app is finished initializing and proceed,
otherwise I
  try again in a second. Here's a snippet:
 
  --
  mx:SWFLoader source=source_to_app.swf
complete=loaderComplete(event);
  trustContent=true/
 
  mx:Script
![CDATA[
  private function loaderComplete(e:Event):void
  {
if (e.currentTarget.content.application) //is the app
initialized?
{
   //trigger the generation of the chart...
}
else //if not, try again in 1 second
{
  setTimeout(loaderComplete, 1000, e);
}
  }
]]
  /mx:Script
  --
 
  Is this the right way to do such a thing? It seems to work for me.
Before
  implementing this, I was attempting to access
  e.currentTarget.content.application[varname] before the variables
  existed, and that for sure caused runtime errors.
 
  One thing along these lines that may be the problem...the loaded app
  switches states before working on building the chart. The new
state adds
  the chart object to the display. So does the chart object not exist
before
  we switch states? Is it possible I'm attempting to access objects in
the new
  state before the state is fully built?
 
  When the code:
 
  currentState = 'chart';
 
  is executed, is the state fully built before the next line of code
is
  executed? Or could something like this cause a problem:
 
  currentState = 'chart';
  itemInChartState.visible = false //as an example
 
  Is it possible itemInChartState doesn't exist yet?
 
  Thanks for the help.
  Tyler
 
 
  --- In flexcoders@yahoogroups.com, Angus Johnson gusjohnson@
wrote:
  
   That error indicates that your are referencing something that
doesn't
  exist
   yet.
  
   You need to set listeners of the swfloader(s) to ensure that 

RE: [flexcoders] Re: Invoking RemoteObject method - Type Coercion error

2007-03-02 Thread Peter Farland
You'll have to determine why an ObjectProxy is being created...
typically it's because an anonymous Object was returned and RemoteObject
had makeObjectsBindable=true (which it is by default).
 
As for why an anonymous Object was returned - either something like a
java.util.Map was returned instead of the type you expected, or the
com.foo.Expr class was not available to the native deserializer in the
Flash Player at the time the response was received. 
 
Your AS3 (and Java, for the reverse situation) Expr class must also
possess a constructor that allows for no-arguments instantiation.
 
Depending on how classes are being loaded by your SWF (they can be
lazily loaded in Flex applications) the underlying call to
flash.net.registerClassAlias() (that is generated for you by the mxmlc
compiler because you added [RemoteClass(alias=com.foo.Expr)] metadata)
may not have executed before the response was received.
 
Another reason is that no reference was made to the ActionScript
com.foo.Expr class in your Flex application and hence the mxmlc compiler
never linked the class definition into the SWF. I don't think this is
the cause as you appear to make a reference to the class in the result
handler (and I imagine you also imported this class in order for it to
compile).
 
As a last ditch effort you could try making a static reference to your
class somewhere in your application, like:
 
private static var dep:Class = Expr;
 
or I guess you could even call flash.net.registerClassAlias on your own
and not rely on the generated code.
 
Actually, that begs the question, are you using MXML? Or are you working
with a pure ActionScript application?
 
Pete
 




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of moonusamy
Sent: Friday, March 02, 2007 11:23 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Invoking RemoteObject method - Type Coercion
error




In the debugger:
event.result seems to be of type ObjectProxy
It shows a child of type Object that in turn contains a root Object
corresponding to a data member of my Expr class called root of a type
called Node.
In addition to this child object, event.result also shows a root
child Object. 
Since my method returns an Expr object, what I'd expect to see is
event.result to be of type Expr and to be able to do:
var expr:Expr = Expr(event.result);
var node:Node = expr.root;

Thanks
Vijay 

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, michael_ramirez44
[EMAIL PROTECTED] wrote:

 Loop through the properties on the event.result to see if it does 
 contain the same public properties as you Expr.as class.
 
 Michael Ramirez
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , moonusamy vijay.k.ganesan@ 
 wrote:
 
  
  I'm using RemoteObject to invoke a server-side Java POJO method that
  returns an object of type com.foo.Expr. I have Expr.java and Expr.as
  with Expr.as annotated with [Bindable] and
  [RemoteClass(alias=com.foo.Expr)]
  
  I try to reference the returned value in the result handler in my 
 mxml
  as follows:
  private function fooResultHandler(event:ResultEvent):void
  {
  myexpr = Expr(event.result); 
  
  TypeError: Error #1034: Type Coercion failed: cannot convert
  mx.utils::[EMAIL PROTECTED] to com.foo.Expr
  
  I expect event.result to be of type com.foo.Expr which it doesn't 
 seem
  to be. What do I need to do to get to the object of type Expr that 
 my
  method invocation returns?
  
  Thanks
  Vijay
 




 


[flexcoders] clipContent and Modules (printing)

2007-03-02 Thread shelleybrowning
Hello,

I've created an application that contains a custom hierarchy 
chart/drawing (think org chart).  The code for this chart is 
contained in a module.  The size of the container changes based on 
the # of items in the hierarchy.  I'm having two problems.  

Printing
I've seen posts that suggest using clipContent on surrounding 
containers and the root application, so that items in the container 
that are masked can be printed.  Does this work with modules?  I'm 
able to get the clipContent concept to work on code within the 
application, but not if the code is within a module.  

Redrawing
 The other issue is that flash seems to refresh or redraw 
the container after a while. When this happens the existing objects 
are not removed first.  So the display results in duplicate, 
triplicate, etc objects in the display.


Thanks,

Shelley




[flexcoders] Re: Populate ComboBox from database - NOT using Flex Data Services

2007-03-02 Thread April
Thank you very much for this response.  I think this is still a bit over my 
head at this point 
(I have only done tutorials, and none of the tutorials interact with a database 
the way I will 
be) but I will give it a stab and see what I can do with it.  

I was looking at an article on Ben Forta's blog 
(http://www.forta.com/blog/index.cfm?
mode=eentry=1786) and following his example I did this... only it doesn't work:

I'm very very new to Flash and we are using ColdFusion but are not using Flex 
Data 
Services. I've been trying to figure out how to populate a combobox from a 
database and 
I'm just not having any luck. 

My project is called PreTraffic. I have my main file as JobSearch.mxml and 
a folder 
under the root named cfc with a file called job.cfc.

job.cfc contains the following code:

cfcomponent

!--- Get jobs ---
cffunction name=GetJob access=remote returntype=query output=false

cfset var job=
cfset var results=

cfquery datasource=discsdev name=job
SELECT job_id, job_title
FROM job
WHERE status = 'O'
ORDER BY job_title
/cfquery
cfquery dbtype=query name=results
SELECT job_title AS label, job_id AS data
FROM job
ORDER BY label
/cfquery

cfreturn results

/cffunction   

/cfcomponent

And JobSearch.mxml has the following code:

?xml version=1.0 encoding=utf-8?
mx:Application 
xmlns:mx=http://www.adobe.com/2006/mxml; 
xmlns=*
layout=absolute 
backgroundGradientColors=[#ff, #d0d0d0]
creationComplete=InitApp()

mx:Style source=style.css /

mx:Script
![CDATA[

public function InitApp():void  {
jobSvc.GetJob();
}
]]
/mx:Script

!-- ColdFusion CFC (via AMF) --
mx:RemoteObject id=jobSvc destination=PreTraffic showBusyCursor=true /

mx:VBox label=Job History width=100% height=100% x=10 y=92
mx:Label text=Search jobs by/
mx:Form label=Task width=100%
mx:FormItem label=Job Name:
mx:ComboBox id=jobNameCB dataProvider={jobSvc.GetJob.results}/
mx:ComboBox
/mx:FormItem
/mx:Form
mx:HBox
mx:Button label=Search/
mx:Button label=Clear/
/mx:HBox

/mx:VBox
/mx:Application

My Compiler thingy points to: 
-services /Volumes/flexwwwroot/WEB-INF/flex/job-services-config.xml -locale 
en_US

and job-services-config.xml contains the following code:

destination id=PreTraffic
channels
channel ref=my-cfamf/
/channels
properties
sourceflex.pretraffic.cfc.job/source
lowercase-keystrue/lowercase-keys
/properties
/destination

Well, when I run the app... the combobox is not populated... Can anyone help 
with what 
I've done wrong?

Thanks!



Re: [flexcoders] Re: how do you call the super's super?

2007-03-02 Thread Anthony Lee

Thanks Gordon,

That's pretty much everything I needed to know.

tonio


Re: [flexcoders] VideoDisplay help

2007-03-02 Thread Muzak
I'm afraid the metadata is missing in the VideoDisplay component, or better 
yet, they forgot (?) a piece of code in the VideoDisplay 
class.

[Event(name=metadataReceived, type=mx.events.MetaDataEvent)]

and

 [Bindable(metadataReceived)]

You can listen to the metadataRecieved event through actionscript though, 
without modifying the VideoDisplay.as (which isn't a good 
idea anyways)

videoInstance.addEventListener(metadatReceived, metadataReceivedHandler)

uses:
 mx.events.MetadataEvent;

But the MetadataEvent class does not have a static property for 
metadataReceived.
Well it does, but's it's put under the mx_internal namespace :(

 mx_internal static const METADATA:String = metadataReceived;

Not sure why Adobe didn't make metadata public and bindable..

regards,
Muzak



- Original Message - 
From: john [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, March 02, 2007 4:21 PM
Subject: [flexcoders] VideoDisplay help


do you know how can access the onMetaData, from VideoDisplay component.
i use the VideoDisplay to play a stream flv file from a FVS, and i have problem 
with this component from Flex on buffering percent 
left from 100%, and with metadata :(

i search for information on doc's flex, googleing on the net... but don't find 
a userful article or tutorial in this way: 
VideoDisplay + streaming file from FMS.

thx
 




Re: Re[2]: [flexcoders] Eclipse 3.2.2

2007-03-02 Thread Dave Carabetta

Hi Andriy,

I found this article a little over a year ago, and I haven't looked back
since:

http://www.javalobby.org/java/forums/t18678.html

It describes how to externalize the location of your eclipse plugins so that
upgrading the IE doesn't cause you to have to re-install everything you
have.

Hope this helps.

Regards,
Dave.
Cynergy Systems, Inc.


On 3/2/07, Andriy Panas [EMAIL PROTECTED] wrote:


  Hello Dave,

DC I just did it and there are no issues to speak of thus far.

This is probably OT, but I always wonder how do you install Flex
Builder Eclipse plugin (and other Eclipse plugins too) when you do upgrade
to the new version of Eclipse?

Do you:

a) reinstall every Eclipse plugin manually from the scratch from
Software update menu;

b) just copy plugins and features folders to the location
of new version of Eclipse IDE;

c) install new Eclipse IDE on the top of old Eclipse IDE
installation folder and this makes a trick.
--
Best regards,
Andriy mailto:[EMAIL PROTECTED] dutchman%40ukr.net

 



Re: [flexcoders] Apollo Book: Apollo for Adobe Flex Developers Pocket Guide

2007-03-02 Thread Impudent1

 Flash Player 9 already has all you need for building libraries to
 connect to all sorts of remote filesystems:  sockets, binary and
 otherwise.
 

Agreed, I was hoping that Apollo would deal with the heavy lifting on some of 
this stuff vs giving front end components was the main gist of my original post.

Impudent1
LeapFrog Productions



 Yahoo! Groups Sponsor ~-- 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/kOt0.A/gOaOAA/yQLSAA/nhFolB/TM
~- 

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

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

* 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] passing a referrerence to a bindable variable

2007-03-02 Thread Shannon Jackson
Was wondering if someone might know why a variable that is declared
[Bindable] might loose is binding capabilities if you pass a reference of it
to another class for processing and then modify the reference?  
 
 - Shannon
 
 
 


[flexcoders] Re: Inconsistent Runtime Error

2007-03-02 Thread tyriker
I wasn't familiar with modules, but I read up a bit on them. Sounds
ideal for what I will be doing, but maybe I'll tackle that later.

So I changed my event listeners like you described. That part works
great! I no longer have to take the 'hacky' approach of trying again
every 1 second after the app has been loaded. Thanks for that.

But, my initial problem still exists. About 1 in 20 launches, the
everything works fine. The other times I get the runtime error. Again,
the error is:

TypeError: Error #1034: Type Coercion failed: cannot convert
mx.core::[EMAIL PROTECTED] to mx.core.IFactory.
 at mx.charts.series::BarSeries/get legendData()
 at mx.charts.chartClasses::ChartBase/get legendData()
 at mx.charts::Legend/::populateFromArray()
 at mx.charts::Legend/mx.charts:Legend::commitProperties()
 at
mx.core::UIComponent/validateProperties()[C:\dev\flex_201_gmc\sdk\framew\
orks\mx\core\UIComponent.as:5300]
 at
mx.managers::LayoutManager/mx.managers:LayoutManager::validateProperties\
()[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\LayoutManager.as:517]
 at
mx.managers::LayoutManager/mx.managers:LayoutManager::doPhasedInstantiat\
ion()[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\LayoutManager.as:63\
7]
 at Function/http://adobe.com/AS3/2006/builtin::apply()
 at
mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2()[C:\dev\\
flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:7909]
 at
mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher()[C:\dev\f\
lex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:7852]

So I commented out the lines that deal with BarSeries Objects (it was
about 5 lines of code). Running the loaded app as a stand-alone app
still works fine (other than my chart has no bars). Running it loaded
inside the other app results in a very similar runtime error, but this
time:

TypeError: Error #1034: Type Coercion failed: cannot convert
mx.graphics::[EMAIL PROTECTED] to mx.graphics.IStroke.
 at mx.charts::AxisRenderer/mx.charts:AxisRenderer::measure()
 at
mx.core::UIComponent/mx.core:UIComponent::measureSizes()[C:\dev\flex_201\
_gmc\sdk\frameworks\mx\core\UIComponent.as:5448]
 at
mx.core::UIComponent/validateSize()[C:\dev\flex_201_gmc\sdk\frameworks\m\
x\core\UIComponent.as:5394]
 at
mx.managers::LayoutManager/mx.managers:LayoutManager::validateSize()[C:\\
dev\flex_201_gmc\sdk\frameworks\mx\managers\LayoutManager.as:557]
 at
mx.managers::LayoutManager/mx.managers:LayoutManager::doPhasedInstantiat\
ion()[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\LayoutManager.as:64\
6]
 at Function/http://adobe.com/AS3/2006/builtin::apply()
 at
mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2()[C:\dev\\
flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:7909]
 at
mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher()[C:\dev\f\
lex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:7852]

Again, it works about 1 in 20 attempts.

Talk about frustrating! It still seems like the items inside of the
state I changed to aren't ready before I try to manipulate them. Or
something, I don't know? Do you suppose I need to setup some listener on
the state that says, once the state is fully loaded, then run the state
manipulation code? Maybe I'll try something like that.

Thanks again.
Tyler


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

 Hi Tyler,

 Since your swfloaders are applications you can listen for the
 applicationComplete event via the swfloader.content property. This
event
 fires when all children have issued creationComplete events (including
your
 viewstack). You don't have to worry about using a timer.

 Set up your listeners on the swfloader as you are currently doing but
add
 one for the INIT event. In the event handler you can add another
listener on
 swfloader.content (your sub application).  For example.

 private function handleInit(event:Event):void
 {
 _swfloader.content.addEventListener(
 FlexEvent.APPLICATION_COMPLETE, handleApplicationLoaded);
 }

 private function handleApplicationLoaded(event:Event):void
 {
 _applicationLoaded = true;
 dispatchEvent(new SWFAppEvent( SWFAppEvent.READY ));
 }

 In the above code I am waiting for my custom event READY to fire
before I
 start referencing it in the parent.

 This is something I did before modules was included in the framework
so
 there might be some duplication ?? Have you looked at modules?

 Hope that helps.

 Cheers
 Angus


[flexcoders] Trouble retrieving embedded cuePoints with Flex VideoDisplay

2007-03-02 Thread Mark Judd
I'm having trouble retrieving the cuePoints that are embedded in an
.flv file.  Looking at the .flv itself, I can see the cuePoints with a
name (and type navigation) near the beginning of the file but I can't
seem to access these with 

  videoDisplay.cuePoints

or

  videoDisplay.cuePointManager.getCuePoints()

I have

  mx:VideoDisplay id='videoDisplay'
cuePointManagerClass=mx.controls.videoClasses.CuePointManager
cuePoint='cpHandler(event)'/

Further proof that the cuePoints exist: the cuePoint events are being
fired. 

I want to get at the cuePoint array in order to build a navigator so
that users can click to leap to those cuePoints.

Anyone having any luck accessing embedded cuePoints?



Re: [flexcoders] Re: simulate datagrid header click, or set default sort column

2007-03-02 Thread Adam Royle
OK, this was easier than anticipated. I didn't realise the DataGrid would 
detect the sort on the ArrayCollection and update it's sort arrow based on this.

My code:

import mx.collections.Sort;
import mx.collections.SortField;



var s:Sort = new Sort();
s.fields = [new SortField(transaction_date,false,true)];
dataProvider.sort = s;
dataProvider.refresh();


Thanks for your advice. By the way, I don't really understand what you mean 
about sorting dates as strings. When I load my data I create date objects from 
my strings, and the datagrid/sort classes sort it all correctly. Although I do 
understand your labelFunction point.

Cheers,
Adam


  - Original Message - 
  From: iko_knyphausen 
  To: flexcoders@yahoogroups.com 
  Sent: Saturday, March 03, 2007 9:52 AM
  Subject: [flexcoders] Re: simulate datagrid header click, or set default sort 
column



  Yes, but you should provide for the sorting of these columns too,
  otherwise your sort competes against the builtin...

  Alternatively, you could detach your custom sort whenever a different
  header is clicked (meaning resetting the sort property of the
  collection) - but I think you can have much more control doing your own.
  Also keep in mind, if you have any columns with calculated fields
  (meaning the dataField value is different than what is displayed), you
  may need a custom sort anyway (try sorting dates as strings... and you
  see what I mean)

  Iko

  --- In flexcoders@yahoogroups.com, Adam Royle [EMAIL PROTECTED] wrote:
  
   OK, thanks for your response. Haven't tried this yet, but will do.
  Just a quick question, if I use do the way you recommend with a custom
  sort object, can the user still use the headers to change the sort
  column/direction? This is what I want.
  
   Thanks,
   Adam
  
   - Original Message -
   From: iko_knyphausen
   To: flexcoders@yahoogroups.com
   Sent: Saturday, March 03, 2007 5:09 AM
   Subject: [flexcoders] Re: simulate datagrid header click, or set
  default sort column
  
  
  
   BTW, I also fiddled with dispatching the HEADER_RELEASE event, before
  I
   used a custom sort, and one problem is, that its behavior depends on
   whether the column to be sorted was the last sorted column or not. If
  it
   was the previous sort column a header release event will reverse the
   sort order, if it was not the last column, it will reuse the same sort
   order that it had when it was last used - in some cases you may end up
   dispatching the header release twice, to get the desired sort order,
  and
   you can see... this is not a good solution ;-)
  
   --- In flexcoders@yahoogroups.com, iko_knyphausen iko@ wrote:
   
   
I just went through the same exercise, and ended up using the
recommended method, which is creating your own Sort object...
   
The basic working is to
   
1. take a collection (either arraycollection or xmllistcollection)
  as
dataprovider
2. define a Sort object for it (you do this by creating SortFields
  and
putting them into the fields array of the Sort object)
3. execute a Refresh on your collection
   
If you trigger your sort via HeaderRelease events, you should call
preventDefault() in that handler so that only your sort gets
  executed.
   
You can find code samples if you look in the docs (the example I
  used
was about sorting multiple columns at the same time)
   
HTH
--- In flexcoders@yahoogroups.com, Robert Chyko rchyko@ wrote:

 One thing to look at would be dispatch a HEADER_RELEASE event on
  the
 datagrid. Its not the most straightforward fix, and will take a
   little
 tweaking to get to work right, but it is doable.




 -Original Message-
 From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On Behalf Of Adam Royle
 Sent: Thursday, March 01, 2007 8:09 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] simulate datagrid header click, or set
 default sort column




 Hi guys,

 This came up last week but no working response was given.

 I have my data sorted in a dataProvider, however whenever I add
 new data I add it to the end of the ArrayCollection. However this
means
 the datagrid is no longer sorted correctly.

 I wish I could execute the private method sortByColumn() that
 exists in the DataGrid class, but it's private!!

 Anyone with a solution? I have tried subclassing and also
 copying code directly, but the sortByColumn method uses private
 variables, so I'm stuck again.

 Can anyone suggest a solution to my problem?

 Cheers,
 Adam