[flexcoders] storing login data from a cfquery for use throught flex app

2009-03-10 Thread stinasius
hi i got a login form in flex with a coldfusion backend and it work's perfectly 
but i need it to go one step further. store login data form the cfquery so that 
it can be reused throughout the flex app. here is a senario. the login form has 
a username and password textinput fields which are validated using a remote 
object call to a cfc that queries a db table with username, password and email 
fields. now when login is successful i would like to store the data returned 
from the cfc including email for use throughout my application. please help me 
out here. thanks



[flexcoders] Re: Turn all keyboard input into upper-case for all TextInput and TextArea

2009-03-10 Thread per.olesen
--- In flexcoders@yahoogroups.com, markgoldin_2000 markgoldin_2...@... 
wrote:

 Is this anything of help?
 
 capsLock property 
 
 capsLock:Boolean  [read-only]
 Specifies whether the Caps Lock key is activated (true) or not (false). 

If you refer to the static read-only property of flash.ui.Keyboard then no, it 
doesn't :-) But thanks anyway!



[flexcoders] Re: Turn all keyboard input into upper-case for all TextInput and TextArea

2009-03-10 Thread per.olesen
--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 Unfortunately, the text controls don't use events as input events, but 
 dispatch them as notifications instead, so you can't fake events to them.
 

Okay, that explains why dispatching KeyboardEvent on TextField and TextEvent on 
TextInput doesn't work :-(

 Most brute force way is to set text to toUpperCase on the change event.  
 Could be slow on large strings and you may have to track and restore 
 selection.

We got something near working with this approach, but yes, it resets selection, 
puts cursor in front of text etc. All things we will need to track and change 
then.

Any other good ideas out there?





[flexcoders] Re: Convert ArrayCollection to XML

2009-03-10 Thread tiend...@ezweb.ne.jp
I use RemoteObject
Yes, in PHP I return XML string. And in Flex I read XML string. 
So I don't need convert ArrayCollection to XML.

I use ex4.

--- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote:

 I'd suggest using XML all the way through, instead of converting XML to
 ArrayCollection first, then trying to convert it back.  What RPC protocol
 are you using for server communication?  What is your resultFormat?
 
  
 
 Tracy Spratt,
 
 Lariat Services, development services available
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of tiend...@...
 Sent: Monday, March 09, 2009 8:58 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Convert ArrayCollection to XML
 
  
 
 Thanks,
 
 I was read it, but can not apply in my app.
 I think , can not convert ArrayCollection to XML. You must convert XML in
 PHP code.
 
 Anyway thank you.
 
 --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
 oneworld95 oneworld95@ wrote:
 
  http://nsdevaraj.
 http://nsdevaraj.wordpress.com/2008/08/20/arraycollection-xml/
 wordpress.com/2008/08/20/arraycollection-xml/
  
  - Alex C
  
  --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
 tiendans@ tiendanvn@ wrote:
  
   Hi all guru,
   
   I have a question about ArrayCollection.
   
   [Backend: MySQL,PHP]
   MySQL return result in Array.
   
   [Frontend: Flex]
   dp = new ArrayCollection( ArrayUtil.toArray(event.result));
   
   I want to convert ArrayCollection (dp) to XML, and show XML result in
 TextArea.
   
   
   Help me please !
  
 





[flexcoders] Re: storing login data from a cfquery for use throught flex app

2009-03-10 Thread Jeremy Rottman
This can be done fairly simply using an oop approach.

With out going into to much detail. You can create a single instance of a 
storage class that gets/sets the data that you are looking for.

Here is a really basic example:

package com.login{
// do some imports

public class myLogin{

private var username:string = new String();
private var email:string = new String();

public function myLogin(){
// do some constructor stuff here
}

public function getUsername():String{
return username;
}

public function getEmail():String{
return email;
}

public function setUsername(username:string):void{
// set your username
}

public function setEmail(email:string):void{
// set your email
}
}
}

So when you first instantiate your class you set the username/email. Then all 
you will need to do is use getUsername/getEmail to retrieve the data that you 
are looking for.

One last point make sure you that only instantiate the myLogin class once.




[flexcoders] Re: storing login data from a cfquery for use throught flex app

2009-03-10 Thread Jeremy Rottman
--- In flexcoders@yahoogroups.com, stinasius stinas...@... wrote:

 hi i got a login form in flex with a coldfusion backend and it work's 
 perfectly but i need it to go one step further. store login data form the 
 cfquery so that it can be reused throughout the flex app. here is a senario. 
 the login form has a username and password textinput fields which are 
 validated using a remote object call to a cfc that queries a db table with 
 username, password and email fields. now when login is successful i would 
 like to store the data returned from the cfc including email for use 
 throughout my application. please help me out here. thanks

You might want to also look into using singleton patterns. 



[flexcoders] HTML component does not display images

2009-03-10 Thread florian.salihovic
What am i missing? Passing htmlHttp Worldimg src='pic1.png' //html to 
the HTML component's htmlText property will only display the text, not the 
image.

Best regards.



[flexcoders] Flex support for writing pad ( input device for Chinese )

2009-03-10 Thread bsyyu
I design a web application that allow customer to input their messages into the 
database.
If the input is via keyboard, it is no problem. But it does not work if the 
customer is using writing pad for inputing chinese character.
Does Flash support this, if it is, how ?
Thanks




[flexcoders] Datagrid Itemrenderer Doubt

2009-03-10 Thread venkat eswar
I have an advanced datagrid with two coloumns.one coloumn contains
combobox as itemrenderer.combobox has values high, low and medium.And i
am using three images like high.jpg, low.jpg , medium.jpg. when i
select high in combobox , high.jpg have to be displayed in the first
coloumn.likewise when i select low in combobox , low.jpg have to be
displayed in the first coloumn.How to solve this



  

Re: [flexcoders] Flex 3 Tree - Moving Nodes

2009-03-10 Thread Romuald Quantin
I'm also looking for exactly this, do you let us know if you find something?

Romu

Sam Lai wrote:

 You could do what MindManager does and make the left half of the node
 dropzone for reordering, and the right half for making the node a
 child of the drop node.

 Not sure how easy it would be to implement that though in Flex.

 On 3/10/09, Jim Hayes j...@primalpictures.com 
 mailto:jim%40primalpictures.com wrote:
  I had thought that I'd used the code there to allow users to drag/drop
  reorder and move tree nodes, but it was quite a long while ago so I may
  well be wrong.
  It wasn't perfect, but not bad at all.
  Also I may have misunderstood what you are looking for.
  Still, glad it wasn't entirely wasted!
 
  -Original Message-
  From: flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com] On
  Behalf Of Alan Rother
  Sent: 09 March 2009 23:01
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
  Subject: Re: [flexcoders] Flex 3 Tree - Moving Nodes
 
  Thanks Jim,
 
  Thats not exactly what I was looking for, but it's a great example of
  how to use some of the Tree components, which I've been struggling
  with...
 
  =]
  --
  Alan Rother
  Adobe Certified Advanced ColdFusion MX 7 Developer
  Manager, Phoenix Cold Fusion User Group, AZCFUG.org
 
 
  __
  This communication is from Primal Pictures Ltd., a company registered in
  England and Wales with registration No. 02622298 and registered 
 office: 4th
  Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 
 5PA, UK.
  VAT registration No. 648874577.
 
  This e-mail is confidential and may be privileged. It may be read, 
 copied
  and used only by the intended recipient. If you have received it in 
 error,
  please contact the sender immediately by return e-mail or by telephoning
  +44(0)20 7637 1010. Please then delete the e-mail and do not 
 disclose its
  contents to any person.
  This email has been scanned for Primal Pictures by the MessageLabs Email
  Security System.
  __

 -- 
 Sent from my mobile device

 



[flexcoders] Flex Certification

2009-03-10 Thread kotha poornima
Hi All,
Iam interesting to do flex3 certification(9A0-082). Can anyone give me some 
suggestion to me about this certification. And what are the books needed?

Thanks in Advance,
Poornima



  

Re: [flexcoders] Flex support for writing pad ( input device for Chinese )

2009-03-10 Thread Sam Lai
It should, assuming the user is using some kind of handwriting
recognition software, such as the one built into Vista.

It could be a focus issue, or maybe a browser thing - can the user
input Chinese characters into normal web forms?

2009/3/10 bsyyu ben.s...@gmail.com:
 I design a web application that allow customer to input their messages into 
 the database.
 If the input is via keyboard, it is no problem. But it does not work if the 
 customer is using writing pad for inputing chinese character.
 Does Flash support this, if it is, how ?
 Thanks




 

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






[flexcoders] Tile container scroll effect

2009-03-10 Thread chandruflex
I have images displayed in a Tile container. I want to implement a page-wise 
scrolling effect on this container. If this is possible, how is it done?

For example, if 10 images are viewable for a given height and width of the Tile 
container, the scrolling effect should be such that, the next set of 10 images 
are displayed. And also, the scrolling must be smooth, and be able to take 
Easing effects.



Re: [flexcoders] Moving a viewStack through actionscript

2009-03-10 Thread Wally Kolcz
I normally do dispatch custom events from my TitleWindows back to the parent, 
but was having a hard time figuring out how to pass the value of the selection 
(radiobutton) back to the parent to score.


From: Michael Wills mich...@mawills.com
Sent: Monday, March 09, 2009 3:21 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Moving a viewStack through actionscript 

Hi Wally,
sorry I missed the hierarchy there. You have checkSingle on the module
and not the Viewstack. In that case, you should be able to do
parent.parent.checkSingle and leave out the cast as test1. So

public var testMod:Object = parent.parent;

The last one failed because it was trying to convert a viewstack into a
test1 which of course isn't a viewstack. But I'm not sure about this
one because the parent.parent is a module. You could also forgo using
the testMod variable and in your click declaration instead of

click=testMod.checkSingle(group1.selectedValue)

use

click=parent.parent.checkSingle(group1.selectedValue) /

Hopefully that'll work for you.

If you have a little time to invest, and if you may be doing more Flex
apps in the future, even though this one is not going to be a full-on
huge app, I'd learn about dispatching custom events. It's not that
complicated but it takes some time to understand. It would save some of
the hassle you're trying to do of course at the expense of a new and
different kind of hassle. :-)

Michael

Wally Kolcz wrote:

Wow...its a 'simple' one time create
app. 

All I want to do is when the user selects an answer on the
question1.mxml component, they can click a button,  pass the value of
the radio button to the test1 module's checkSingle() method  and
then move to the next question in the test1 module's stack. 

When I changed the function call on the button of question1.mxml to
test1(parent).checkSingle(group1.selectedValue);  mx:Button label=Next 
click=test1(parent).checkSingle(group1.selectedValue)
/ 

I get this error:

TypeError: Error #1034: Type Coercion failed: cannot convert
mx.containers::viewst...@6563ae1 to com.ipexpert.tests.test1.

at 
com.ipexpert.questions.q1::question1/___question1_Button1_click()[D:\wkolcz\My
Documents\Flex Builder 
3\IPExpertBrainBuster\src\com\ipexpert\questions\q1\question1.mxml:21]

Here is checkSingle() and nextQuestionPlease()

public function checkSingle(answer:Object):void {

if (answer !=0) {

Application.application.score += 1;

}

currentQuestion += 1;

nextQuestionPlease();

}

public function nextQuestionPlease():void {

 questionsVS.selectedIndex=currentQuestion;

}


From: Michael Wills
mich...@mawills.com
Sent: Monday, March 09, 2009 11:44 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Moving a viewStack through
actionscript 

If I am understanding your code correctly, you actually want to
call 

test1(parent).checkSingle instead of testMod. The reason is
because you 

are instantiating a brand new, and unrelated, test1 component with

public var testMod:test1 = new test1();

You might be able to do

public var testMod:test1 = test1(parent);

casting the variable to the type test1.

If it's a simple app you are working on, you can do this kind of
tightly 

coupled design. By that I mean, your question1 component knows about 

your test1 component. If it's a more complex app though, you may want
to 

look at decoupling your app. Otherwise this app will quickly become 

inflexible and harder to maintain as it grows.

In this case, you could set up your question components to dispatch an 

event that your test1 then listens to. That way question1 doesn't have 

to be directly connected to parent.

I hope that makes sense!

Michael

Wally Kolcz wrote:



 When I added the click=nextQuestion() it was triggered off
the 

 selecting of a radio button and not the button. Here all the code
I 

 have. It is telling me that the viewStack doesn't exist when I
believe 

 it should.



 test1.mxml



 ?xml version=1.0 encoding=utf-8?

 mx:Module xmlns:mx=http://www.adobe.com/2006/mxml;
layout=vertical 

 width=100% height=98% 

 xmlns:questions=com.ipexpert.questions.q1.* 

 creationComplete=initApp() 

 mx:Script

 ![CDATA[

 import mx.core.Application; 

 

 public var testID:int = 1;

 public var currentQuestion:int = 0;

 

 public function initApp():void {

 

 } 



 public function checkSingle(answer:Object):void {

 if (answer !=0) {

 Application.application.score += 1;

 }

 currentQuestion += 1;

 nextQuestionPlease();

 }

 

 public function nextQuestionPlease():void {

 }

 ]]

 /mx:Script

 mx:ViewStack id=questionsVS width=98% height=100% 

 paddingLeft=10

 

 questions:question1 /

 questions:question2 /

 questions:question3 /

 questions:question4 /

 /mx:ViewStack

 /mx:Module





 question1.mxml



 ?xml version=1.0 

Re: [flexcoders] Flex Certification

2009-03-10 Thread Pedro Sena
I'm very interested in this topic too.

I'm starting to study to it. I'm using Training from the Source for flex
3.

But I don't know if this is the best book for this objective.

Regards,

PS

On Tue, Mar 10, 2009 at 8:25 AM, kotha poornima poorni_ag...@yahoo.comwrote:

   Hi All,
 Iam interesting to do flex3 certification(9A0-082). Can anyone give me some
 suggestion to me about this certification. And what are the books needed?

 Thanks in Advance,
 Poornima

  




-- 
/**
* Pedro Sena
* Systems Architect
* Sun Certified Java Programmer
* Sun Certified Web Component Developer
*/


RE: [flexcoders] Flex 3 Tree - Moving Nodes

2009-03-10 Thread Yves Riel
I have done something similar lately except for the spring loaded
opening mechanism. The problem that I saw with Alex Harui's approach was
that you had to turn a leaf into a branch before being able to drop a
node on it. That impacts the icons that represent the nodes and I still
wanted a leaf node to be represented with a leaf icon up to the point
where it contains children. If all your nodes (leaf or branch) have the
same icon, then you could make all the nodes branches through a custom
ITreeDataDescriptor. You'll have to live with having the small arrow to
the left on every node.
 
What I finally did was to overload some tree methods. If the drag  drop
is over the bottom half portion of a node, I highlight it and rewrite
the parent and rowIndex properties of the _dropData property. That works
well. You could extend the logic to open up the folder after the drop
and add a spring loaded opening mechanism.
 
I'm attaching some code but I had to clean it up to remove proprietary
information. Not sure if it still compiles but that's a starting point
:-)
 
Hope it helps!
 
 
 
 



TreeEx.as
Description: TreeEx.as


Re: [flexcoders] Moving a viewStack through actionscript

2009-03-10 Thread Wally Kolcz

Sorry to be a pain, but when I added the 
parent.parent.checkSingle() it gives me an error. 
1061: Call to a possibly undefined method checkSingle through a reference with 
static type flash.display:DisplayObjectContainer.

I though my problem was the 'public var testMod:test1 = new test1();', thinking 
the 'new test1()' was the problem. So I removed it and just set it to a local 
variable.  
public var testMod:test1; I was able to see the checkSingle 
method in the auto hinting. But when I try to run it now, I get that the 
testMod is null.

If I were to do the dispatchEvent route, I would have to attach it to the test1 
module, right? this.addEventListener(answered, checkSingle);.  How could I 
get the variable passed from the components (questions) to the module's 
checkSingle() method? There will be between 20-100 of these questions. 



From: Michael Wills mich...@mawills.com
Sent: Monday, March 09, 2009 3:21 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Moving a viewStack through actionscript 


Hi Wally,
sorry I missed the hierarchy there. You have checkSingle on the module
and not the Viewstack. In that case, you should be able to do
parent.parent.checkSingle and leave out the cast as test1. So

public var testMod:Object = parent.parent;

The last one failed because it was trying to convert a viewstack into a
test1 which of course isn't a viewstack. But I'm not sure about this
one because the parent.parent is a module. You could also forgo using
the testMod variable and in your click declaration instead of

click=testMod.checkSingle(group1.selectedValue)

use

click=parent.parent.checkSingle(group1.selectedValue) /

Hopefully that'll work for you.

If you have a little time to invest, and if you may be doing more Flex
apps in the future, even though this one is not going to be a full-on
huge app, I'd learn about dispatching custom events. It's not that
complicated but it takes some time to understand. It would save some of
the hassle you're trying to do of course at the expense of a new and
different kind of hassle. :-)

Michael

Wally Kolcz wrote:


Wow...its a 'simple' one time create
app. 

All I want to do is when the user selects an answer on the
question1.mxml component, they can click a button,  pass the value of
the radio button to the test1 module's checkSingle() method  and
then move to the next question in the test1 module's stack. 

When I changed the function call on the button of question1.mxml to
test1(parent).checkSingle(group1.selectedValue);  

mx:Button label=Next 
click=test1(parent).checkSingle(group1.selectedValue)
/ 

I get this error:

TypeError: Error #1034: Type Coercion failed: cannot convert
mx.containers::viewst...@6563ae1 to com.ipexpert.tests.test1.

at 
com.ipexpert.questions.q1::question1/___question1_Button1_click()[D:\wkolcz\My
Documents\Flex Builder 
3\IPExpertBrainBuster\src\com\ipexpert\questions\q1\question1.mxml:21]

Here is checkSingle() and nextQuestionPlease()

public function checkSingle(answer:Object):void {

if (answer !=0) {

Application.application.score += 1;

}

currentQuestion += 1;

nextQuestionPlease();

}

public function nextQuestionPlease():void {

 questionsVS.selectedIndex=currentQuestion;

}




From: Michael Wills
mich...@mawills.com
Sent: Monday, March 09, 2009 11:44 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Moving a viewStack through
actionscript 

If I am understanding your code correctly, you actually want to
call 

test1(parent).checkSingle instead of testMod. The reason is
because you 

are instantiating a brand new, and unrelated, test1 component with

public var testMod:test1 = new test1();

You might be able to do

public var testMod:test1 = test1(parent);

casting the variable to the type test1.

If it's a simple app you are working on, you can do this kind of
tightly 

coupled design. By that I mean, your question1 component knows about 

your test1 component. If it's a more complex app though, you may want
to 

look at decoupling your app. Otherwise this app will quickly become 

inflexible and harder to maintain as it grows.

In this case, you could set up your question components to dispatch an 

event that your test1 then listens to. That way question1 doesn't have 

to be directly 

Re: [flexcoders] Flex 3 Tree - Moving Nodes

2009-03-10 Thread Romuald Quantin
Thanks a lot, Flash (Flex) community is amazing :)

I'll try that!

Romu

Yves Riel wrote:

 I have done something similar lately except for the spring 
 loaded opening mechanism. The problem that I saw with Alex Harui's 
 approach was that you had to turn a leaf into a branch before being 
 able to drop a node on it. That impacts the icons that represent the 
 nodes and I still wanted a leaf node to be represented with a leaf 
 icon up to the point where it contains children. If all your nodes 
 (leaf or branch) have the same icon, then you could make all the nodes 
 branches through a custom ITreeDataDescriptor. You'll have to live 
 with having the small arrow to the left on every node.
  
 What I finally did was to overload some tree methods. If the drag  
 drop is over the bottom half portion of a node, I highlight it and 
 rewrite the parent and rowIndex properties of the _dropData property. 
 That works well. You could extend the logic to open up the folder 
 after the drop and add a spring loaded opening mechanism.
  
 I'm attaching some code but I had to clean it up to remove proprietary 
 information. Not sure if it still compiles but that's a starting point :-)
  
 Hope it helps!
  
  
  
  
 



[flexcoders] Image in DataGrid

2009-03-10 Thread venkat eswar
Pls run the application.clicking the add button adds new rows.When i
select High from the combobox it should display  1.jpg. But imgstr1 
as bindable , it update all the rows. How to solve this?


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
creationComplete=init() layout=absolute
    mx:Script
        ![CDATA[
        
        import mx.events.ListEvent;
        import mx.controls.Alert;
        import mx.collections.ArrayCollection;
        
        [Bindable]
        private var taskCol:ArrayCollection;
        
        public function init():void
        {
            grid.initialize();
            taskCol = new ArrayCollection();
        }
        
        public function add():void
            {
                taskCol.addItem({image: ,task: });
            }
        
[Bindable]
        public var imgStr1:String; 
            public function setImage(event:ListEvent):void
            {
                                    
            if(grid.selectedItem.priority == High)
            {
                Alert.show(High);
                imgStr1 =com/assets/1.jpg;
            }
            else if(grid.selectedItem.priority == Medium)
            {
                Alert.show(Medium);
                imgStr1 =com/assets/2.jpg;
            }
            else
            {
                Alert.show(Medium);
                imgStr1 =com/assets/3.jpg;
            }
            
        }
        
        
        ]]
    /mx:Script
    
    
    mx:AdvancedDataGrid id=grid x=136 y=141 dataProvider={taskCol}  
designViewDataType=tree
        mx:columns
            mx:AdvancedDataGridColumn id=imgCol headerText=Column 1 
dataField=image
            mx:itemRenderer
 mx:Component
 mx:VBox
 mx:Script
     ![CDATA[
         
         
     ]]
 /mx:Script
    mx:Image source={outerDocument.imgStr1} /
 /mx:VBox
 /mx:Component
    /mx:itemRenderer
    /mx:AdvancedDataGridColumn 
            mx:AdvancedDataGridColumn headerText=Column 2 dataField=task
            mx:itemRenderer
 mx:Component
 
  
mx:ComboBox  tabEnabled=true  selectedIndex=1  
change=data.priority=selectedItem;outerDocument.setImage(event)
text={data.priority}
    mx:dataProvider
   mx:ArrayCollection
   mx:StringHigh/mx:String
   mx:StringMedium/mx:String
   mx:StringLow/mx:String
   
    /mx:ArrayCollection
    
 /mx:dataProvider
 
   /mx:ComboBox
 /mx:Component
 
  /mx:itemRenderer
  
    /mx:AdvancedDataGridColumn    
        /mx:columns
    /mx:AdvancedDataGrid
    mx:Button x=396 y=250 label=Add click=add()/
    
/mx:Application



  

[flexcoders] Re: Flex support for writing pad ( input device for Chinese )

2009-03-10 Thread bsyyu
Hi Sam

Currently, as it is evening time here,  I am not sure whether the user can 
input Chinese Characters into normal web norms. I will check. 

But how to get the focus of these kind of writing pad insides Flex ?

Thanks

best regards,

Ben

--- In flexcoders@yahoogroups.com, Sam Lai samuel@... wrote:

 It should, assuming the user is using some kind of handwriting
 recognition software, such as the one built into Vista.
 
 It could be a focus issue, or maybe a browser thing - can the user
 input Chinese characters into normal web forms?
 
 2009/3/10 bsyyu ben.s...@...:
  I design a web application that allow customer to input their messages into 
  the database.
  If the input is via keyboard, it is no problem. But it does not work if the 
  customer is using writing pad for inputing chinese character.
  Does Flash support this, if it is, how ?
  Thanks
 
 
 
 
  
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Alternative FAQ location: 
  https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
  Search Archives: 
  http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
 
 
 
 





RE: [flexcoders] Re: Convert ArrayCollection to XML

2009-03-10 Thread Tracy Spratt
So no problem?

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of tiend...@ezweb.ne.jp
Sent: Tuesday, March 10, 2009 4:52 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Convert ArrayCollection to XML

 

I use RemoteObject
Yes, in PHP I return XML string. And in Flex I read XML string. 
So I don't need convert ArrayCollection to XML.

I use ex4.

--- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
Tracy Spratt tspr...@... wrote:

 I'd suggest using XML all the way through, instead of converting XML to
 ArrayCollection first, then trying to convert it back. What RPC protocol
 are you using for server communication? What is your resultFormat?
 
 
 
 Tracy Spratt,
 
 Lariat Services, development services available
 
 _ 
 
 From: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
[mailto:flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com]
On
 Behalf Of tiend...@...
 Sent: Monday, March 09, 2009 8:58 PM
 To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
 Subject: [flexcoders] Re: Convert ArrayCollection to XML
 
 
 
 Thanks,
 
 I was read it, but can not apply in my app.
 I think , can not convert ArrayCollection to XML. You must convert XML in
 PHP code.
 
 Anyway thank you.
 
 --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
 oneworld95 oneworld95@ wrote:
 
  http://nsdevaraj.
 http://nsdevaraj.
http://nsdevaraj.wordpress.com/2008/08/20/arraycollection-xml/
wordpress.com/2008/08/20/arraycollection-xml/
 wordpress.com/2008/08/20/arraycollection-xml/
  
  - Alex C
  
  --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com
ups.com,
 tiendans@ tiendanvn@ wrote:
  
   Hi all guru,
   
   I have a question about ArrayCollection.
   
   [Backend: MySQL,PHP]
   MySQL return result in Array.
   
   [Frontend: Flex]
   dp = new ArrayCollection( ArrayUtil.toArray(event.result));
   
   I want to convert ArrayCollection (dp) to XML, and show XML result in
 TextArea.
   
   
   Help me please !
  
 






RE: [flexcoders] Image in DataGrid

2009-03-10 Thread Tracy Spratt
The image source must depend on the priority property, so you need something
like:

mx:Image source={data.priority + '.jpg'} /

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of venkat eswar
Sent: Tuesday, March 10, 2009 8:43 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Image in DataGrid

 


Pls run the application.clicking the add button adds new rows.When i select
High from the combobox it should display  1.jpg. But imgstr1  as bindable ,
it update all the rows. How to solve this?


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

import mx.events.ListEvent;
import mx.controls.Alert;
import mx.collections.ArrayCollection;

[Bindable]
private var taskCol:ArrayCollection;

public function init():void
{
grid.initialize();
taskCol = new ArrayCollection();
}

public function add():void
{
taskCol.addItem({image: ,task: });
}

[Bindable]
public var imgStr1:String; 
public function setImage(event:ListEvent):void
{

if(grid.selectedItem.priority == High)
{
Alert.show(High);
imgStr1 =com/assets/1.jpg;
}
else if(grid.selectedItem.priority == Medium)
{
Alert.show(Medium);
imgStr1 =com/assets/2.jpg;
}
else
{
Alert.show(Medium);
imgStr1 =com/assets/3.jpg;
}

}


]]
/mx:Script


mx:AdvancedDataGrid id=grid x=136 y=141 dataProvider={taskCol}
designViewDataType=tree
mx:columns
mx:AdvancedDataGridColumn id=imgCol headerText=Column 1
dataField=image
mx:itemRenderer
 mx:Component
 mx:VBox
 mx:Script
 ![CDATA[
 
 
 ]]
 /mx:Script
mx:Image source={outerDocument.imgStr1} /
 /mx:VBox
 /mx:Component
/mx:itemRenderer
/mx:AdvancedDataGridColumn 
mx:AdvancedDataGridColumn headerText=Column 2
dataField=task
mx:itemRenderer
 mx:Component
 
   mx:ComboBox  tabEnabled=true
selectedIndex=1
change=data.priority=selectedItem;outerDocument.setImage(event)
text={data.priority}
mx:dataProvider
   mx:ArrayCollection
 
mx:StringHigh/mx:String
 
mx:StringMedium/mx:String
 
mx:StringLow/mx:String
   
/mx:ArrayCollection

 /mx:dataProvider
 
   /mx:ComboBox
 /mx:Component
 
  /mx:itemRenderer
  
/mx:AdvancedDataGridColumn
/mx:columns
/mx:AdvancedDataGrid
mx:Button x=396 y=250 label=Add click=add()/

/mx:Application

 





RE: [flexcoders] Moving a viewStack through actionscript

2009-03-10 Thread Tracy Spratt
Put the change handler on the RadioButton group, and in that handler
dispatch your specially named, bubbling event.  In the handler for that
event, you can access the dispatching component through the reference in the
target or currentTarget property.  So you can access the value of the
RadioButtonGroup through that reference.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Wally Kolcz
Sent: Tuesday, March 10, 2009 8:34 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Moving a viewStack through actionscript

 

Sorry to be a pain, but when I added the parent.parent.checkSingle() it
gives me an error. 
1061: Call to a possibly undefined method checkSingle through a reference
with static type flash.display:DisplayObjectContainer.

I though my problem was the 'public var testMod:test1 = new test1();',
thinking the 'new test1()' was the problem. So I removed it and just set it
to a local variable. public var testMod:test1; I was able to see the
checkSingle method in the auto hinting. But when I try to run it now, I get
that the testMod is null.

If I were to do the dispatchEvent route, I would have to attach it to the
test1 module, right? this.addEventListener(answered, checkSingle);.  How
could I get the variable passed from the components (questions) to the
module's checkSingle() method? There will be between 20-100 of these
questions. 



  _  

From: Michael Wills mich...@mawills.com
Sent: Monday, March 09, 2009 3:21 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Moving a viewStack through actionscript 

Hi Wally, sorry I missed the hierarchy there. You have checkSingle on the
module and not the Viewstack. In that case, you should be able to do
parent.parent.checkSingle and leave out the cast as test1. So

public var testMod:Object = parent.parent;

The last one failed because it was trying to convert a viewstack into a
test1 which of course isn't a viewstack. But I'm not sure about this one
because the parent.parent is a module. You could also forgo using the
testMod variable and in your click declaration instead of

click=testMod.checkSingle(group1.selectedValue)

use

click=parent.parent.checkSingle(group1.selectedValue) /

Hopefully that'll work for you.

If you have a little time to invest, and if you may be doing more Flex apps
in the future, even though this one is not going to be a full-on huge app,
I'd learn about dispatching custom events. It's not that complicated but it
takes some time to understand. It would save some of the hassle you're
trying to do of course at the expense of a new and different kind of hassle.
:-)

Michael


Wally Kolcz wrote: 

Wow...its a 'simple' one time create app. 

All I want to do is when the user selects an answer on the question1.mxml
component, they can click a button,  pass the value of the radio button to
the test1 module's checkSingle() method  and then move to the next question
in the test1 module's stack. 

When I changed the function call on the button of question1.mxml to
test1(parent).checkSingle(group1.selectedValue); mx:Button label=Next
click=test1(parent).checkSingle(group1.selectedValue) / 

I get this error:

TypeError: Error #1034: Type Coercion failed: cannot convert
mx.containers::viewst...@6563ae1 to com.ipexpert.tests.test1.
at
com.ipexpert.questions.q1::question1/___question1_Button1_click()[D:\wkolcz\
My Documents\Flex Builder
3\IPExpertBrainBuster\src\com\ipexpert\questions\q1\question1.mxml:21]

Here is checkSingle() and nextQuestionPlease()

public function checkSingle(answer:Object):void {
if (answer !=0) {
Application.application.score += 1;
}
currentQuestion += 1;
nextQuestionPlease();
}

public function nextQuestionPlease():void {

 questionsVS.selectedIndex=currentQuestion;
}





  _  


From: Michael Wills mich...@mawills.com
Sent: Monday, March 09, 2009 11:44 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Moving a viewStack through actionscript 

If I am understanding your code correctly, you actually want to call 
test1(parent).checkSingle instead of testMod. The reason is because you 
are instantiating a brand new, and unrelated, test1 component with

public var testMod:test1 = new test1();

You might be able to do

public var testMod:test1 = test1(parent);

casting the variable to the type test1.

If it's a simple app you are working on, you can do this kind of tightly 
coupled design. By that I mean, your question1 component knows about 
your test1 component. If it's a more complex app though, you may want to 
look at decoupling your app. Otherwise this app will quickly become 
inflexible and harder to maintain as it grows.

In this case, you could set up your question components to dispatch an 
event that your test1 then listens to. 

RE: [flexcoders] Moving a viewStack through actionscript

2009-03-10 Thread Wally Kolcz
Would I put the dispatch on the radio button group of the 'Next' button?


From: Tracy Spratt tspr...@lariatinc.com
Sent: Tuesday, March 10, 2009 6:42 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Moving a viewStack through actionscript 

Put the change handler on the RadioButton
group, and in that handler dispatch your specially named, bubbling event.  In
the handler for that event, you can access the dispatching component through
the reference in the target or currentTarget property.  So you can access the
value of the RadioButtonGroup through that reference.   Tracy Spratt,  Lariat 
Services, development services
available 

 From: 
flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of 
Wally Kolcz
Sent: Tuesday, March 10, 2009 8:34
AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Moving a
viewStack through actionscript   

Sorry to be a pain, but when I added the
parent.parent.checkSingle() it gives me an error. 

1061: Call to a possibly undefined method checkSingle through a reference with
static type flash.display:DisplayObjectContainer.

I though my problem was the 'public var testMod:test1 = new test1();', thinking
the 'new test1()' was the problem. So I removed it and just set it to a local
variable. public var testMod:test1; I was able to see the checkSingle method in
the auto hinting. But when I try to run it now, I get that the testMod is null.

If I were to do the dispatchEvent route, I would have to attach it to the test1
module, right? this.addEventListener(answered,
checkSingle);.  How could I get the variable passed from the
components (questions) to the module's checkSingle() method? There will be
between 20-100 of these questions. 


 From : Michael
Wills mich...@mawills.com
Sent: Monday, March 09, 2009 3:21
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Moving a
viewStack through actionscript 

Hi
Wally, sorry I missed the hierarchy there. You have checkSingle on the module
and not the Viewstack. In that case, you should be able to do 
parent.parent.checkSingle
and leave out the cast as test1. So

public var testMod:Object = parent.parent;

The last one failed because it was trying to convert a viewstack into a test1
which of course isn't a viewstack. But I'm not sure about this one because the
parent.parent is a module. You could also forgo using the testMod variable and
in your click declaration instead of

click=testMod.checkSingle(group1.selectedValue)

use

click=parent.parent.checkSingle(group1.selectedValue)
/

Hopefully that'll work for you.

If you have a little time to invest, and if you may be doing more Flex apps in
the future, even though this one is not going to be a full-on huge app, I'd
learn about dispatching custom events. It's not that complicated but it takes
some time to understand. It would save some of the hassle you're trying to do
of course at the expense of a new and different kind of hassle. :-)

Michael

Wally Kolcz wrote: 

Wow...its
a 'simple' one time create app. 

All I want to do is when the user selects an answer on the question1.mxml
component, they can click a button,  pass the value of the radio button to
the test1 module's checkSingle() method  and then move to the next
question in the test1 module's stack. 

When I changed the function call on the button of question1.mxml to
test1(parent).checkSingle(group1.selectedValue); mx:Button
label=Next click=test1(parent).checkSingle(group1.selectedValue)
/ 

I get this error:

TypeError: Error #1034: Type Coercion failed: cannot convert 
mx.containers::viewst...@6563ae1
to com.ipexpert.tests.test1.

at 
com.ipexpert.questions.q1::question1/___question1_Button1_click()[D:\wkolcz\My
Documents\Flex Builder 
3\IPExpertBrainBuster\src\com\ipexpert\questions\q1\question1.mxml:21]

Here is checkSingle() and nextQuestionPlease()

public function checkSingle(answer:Object):void {

if
(answer !=0) {

Application.application.score += 1;

}

currentQuestion += 1;

nextQuestionPlease();

}

public function nextQuestionPlease():void {

 questionsVS.selectedIndex=currentQuestion;

}


 From : Michael
Wills mich...@mawills.com
Sent: Monday, March 09, 2009 11:44
AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Moving a
viewStack through actionscript 

If I am
understanding your code correctly, you actually want to call 

test1(parent).checkSingle instead of testMod. The reason is because you 

are instantiating a brand new, and unrelated, test1 component with

public var testMod:test1 = new test1();

You might be able to do

public var testMod:test1 = test1(parent);

casting the variable to the type test1.

If it's a simple app you are working on, you can do this kind of tightly 

coupled design. By that I mean, your question1 

[flexcoders] Trying to compile app with 3.2 Flex SDK, but it includes the 3.1 Flex librares.

2009-03-10 Thread Todd
Hello All,

Recently, we've started the process of trying to upgrade the SDK in which we 
compile our project from a patched version of the 3.0 branch (there were 
nightly bug fixes with Web SErvices that we needed) to the latest and greatest 
3.2.

In Flex Builder 3.02, I've set in the Properties editor to use the Flex 3.2 
SDK.  However, when I compile and build, the framework_3.1.0.2710.swf is thrown 
in the bin-debug directory.

How can I tell which real version of the SDK my project was compiled with to 
ensure RSL compatability?  Also, any insight as to why FB is using the 3.1 SWF 
and SWZ files would be helpful.

Thanks,



RE: [flexcoders] flash 10 3D

2009-03-10 Thread Kenneth Sutherland
I've not managed to rotate a Box on some arbitrary point.  If anyone
knows how to do this, that would be great.

What I've tried so far to get it to rotate on its Y axis in the middle
of the Box.

 

myBox.appendTranslation( -(theBox.width/2), 0, 0);

myBox.appendRotation(angleToRotate, Vector3D.Y_AXIS);

myBox.appendTranslation( (theBox.width/2), 0, 0);

 

This does not work, it always rotates around its registration point, no
matter what the translation values are.

I've tried various combinations of prepend  append, I've tried quite a
few variations including adding a point for the third parameter on the
appendRotation but the only way I've managed to get it to rotate
correctly is if the Box is positioned at (0, 0, 0) inside the
application.  So I tried changing the x, y  z of the box then doing the
rotation and then resetting the x, y  z but still didn't work.  I tried
changing the translation to translate the box's width/2 and what its x
coord was but again no joy.

 

Anyone any ideas.

 

Cheers Kenneth.

 

 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Kenneth Sutherland
Sent: 09 March 2009 16:08
To: flexcoders@yahoogroups.com
Subject: [flexcoders] flash 10 3D

 

I'm trying to get to grips with some of the new 3D features in flash
player 10 and I'm having limited success. So I'm looking for some
helpful tutorials/examples.  I've seen a few that are to do with gumbo,
but I'm not looking at that yet. Just flex 3.2/3.3 examples.

 

Some of the sites I've seen useful info on so far are.

 

http://www.yswfblog.com/blog/2008/11/12/3d-with-flash-10-part-2/

 

http://www.flex888.com/934/tutorial-for-3d-using-flash-10.html

 

http://polygeek.com/1508_flex_flash-10-3d-examples-of-rotating-component
s

 

http://www.neuroproductions.be/experiments/the-new-drawing-api-rocks/

 

http://blog.dcholth.com/

 

If you know of any other good ones, let me know.

 

Cheers.

 

 



realise

.


Kenneth Sutherland

Technical Developer

Realise Ltd
Quay House, 142 Commercial Street, Leith, Edinburgh EH6 6LB
Tel 0131 476 7432
www.realise.com http://www.realise.com/ 

Check out some of our recent flex work:
* Focus on funds UK http://www.focusonfunds.co.uk/ 
* Focus on funds Europe
http://europe.standardlifeinvestments.com/distributor/products_and_serv
ices/going_further_focus_on_funds/index.html 
* Fund selector
http://uk.standardlifeinvestments.com/ifa/adviser_support/index.html 

* Video view
http://uk.standardlifeinvestments.com/ifa/market_views/video_view_and_m
p3s/index.html 
Realise are sponsors of the Marketing Society Scotland.
Realise Limited is registered in Scotland, SC172507.

 

 



Disclaimer 



This electronic message contains information which may be privileged and
confidential. The information is intended to be for the use of the
individual(s) or entity named above. If you are not the intended
recipient, be aware that any disclosure, copying, distribution or use of
the contents of this information is prohibited. If you have received
this electronic message in error, please notify us by telephone on 0131
476 6000 and delete the material from your computer.
Registered in Scotland number: SC 172507.
Registered office address: Quay House 142 Commercial Street Edinburgh
EH6 6LB.

This email message has been scanned for viruses by Mimecast.





Disclaimer 
---
This electronic message contains information which may be privileged and 
confidential. The information is intended to be for the use of the 
individual(s) or entity named above. If you are not the intended recipient, be 
aware that any disclosure, copying, distribution or use of the contents of this 
information is prohibited. If you have received this electronic message in 
error, please notify us by telephone on 0131 476 6000 and delete the material 
from your computer. 
Registered in Scotland number: SC 172507. 
Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. 

This email message has been scanned for viruses by Mimecast.
---

RE: [flexcoders] Moving a viewStack through actionscript

2009-03-10 Thread Wally Kolcz

Thank you tracy. That helps a lot. I got it to work!



From: Tracy Spratt tspr...@lariatinc.com
Sent: Tuesday, March 10, 2009 6:42 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Moving a viewStack through actionscript 


Put the change handler on the RadioButton
group, and in that handler dispatch your specially named, bubbling event.  In
the handler for that event, you can access the dispatching component through
the reference in the target or currentTarget property.  So you can access the
value of the RadioButtonGroup through that reference.


Tracy Spratt,


Lariat Services, development 
services
available




From:

flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of 
Wally Kolcz
Sent: Tuesday, March 10, 2009 8:34
AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Moving a
viewStack through actionscript



Sorry to be a pain, but when I added the
parent.parent.checkSingle() it gives me an error. 

1061: Call to a possibly undefined method checkSingle through a reference with
static type flash.display:DisplayObjectContainer.

I though my problem was the 'public var testMod:test1 = new test1();', thinking
the 'new test1()' was the problem. So I removed it and just set it to a local
variable. public var testMod:test1; I was able to see the checkSingle method in
the auto hinting. But when I try to run it now, I get that the testMod is null.

If I were to do the dispatchEvent route, I would have to attach it to the test1
module, right? this.addEventListener(answered,
checkSingle);.  How could I get the variable passed from the
components (questions) to the module's checkSingle() method? There will be
between 20-100 of these questions. 





From



: Michael
Wills mich...@mawills.com
Sent: Monday, March 09, 2009 3:21
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Moving a
viewStack through actionscript



Hi
Wally, sorry I missed the hierarchy there. You have checkSingle on the module
and not the Viewstack. In that case, you should be able to do 
parent.parent.checkSingle
and leave out the cast as test1. So

public var testMod:Object = parent.parent;

The last one failed because it was trying to convert a viewstack into a test1
which of course isn't a viewstack. But I'm not sure about this one because the
parent.parent is a module. You could also forgo using the testMod variable and
in your click declaration instead of

click=testMod.checkSingle(group1.selectedValue)

use

click=parent.parent.checkSingle(group1.selectedValue)
/

Hopefully that'll work for you.

If you have a little time to invest, and if you may be doing more Flex apps in
the future, even though this one is not going to be a full-on huge app, I'd
learn about dispatching custom events. It's not that complicated but it takes
some time to understand. It would save some of the hassle you're trying to do
of course at the expense of a new and different kind of hassle. :-)

Michael

Wally Kolcz wrote: 



Wow...its
a 'simple' one time create app. 

All I want to do is when the user selects an answer on the question1.mxml
component, they can click a button,  pass the value of the radio button to
the test1 module's checkSingle() method  and then move to the next
question in the test1 module's stack.

When I changed the function call on the button of question1.mxml to
test1(parent).checkSingle(group1.selectedValue); mx:Button
label=Next 

[flexcoders] Re: binding not updating for ArrayCollection when item changes?

2009-03-10 Thread valdhor
I don't know if this is your problem but one thing I noticed is youu have an 
ambiguous set of your enabled property. You have 

enabled = enabled;

which (I assume) is to set the enabled property of your class to the enabled 
parameter that is passed in. This won't work. You should have

this.enabled = enabled;

or change one of the parameter names.

--- In flexcoders@yahoogroups.com, John Robinson jrobi...@... wrote:

 I have a strange issue with data binding not updating when an item in  
 an ArrayCollection is changed. I'm using Cairngorm and have the  
 following setup. In my ModelLocator I have a 'users' ArrayCollection  
 that contains 'UserVO' objects. I have a two views that binds their  
 dataProvider to the 'users' AC in the ModelLocator. My UserVO looks  
 like so:
 
 package com.jrobinson.model.VO
 {
   [Bindable]
   public class UserVO
   {
   public var id:int = -1;
   public var username:String = null;
   public var enabled:Boolean = false;
   public var userData:XMLList = null;
   
   
   public function UserVO(user_id:int, uName:String, 
 enabled:Boolean,  
 d:XMLList)
   {
   id = user_id;
   username = uName;
   enabled = enabled;
   userData = d;
   }
 
   }
 }
 
 I first have a command that loads all of the users and populates the  
 AC. This updates the bindings as expected. I then have a second  
 command that loads the userData portion for a given user. Once  
 retrieved, I update the given UserVO's userData, but this time, the  
 bindings fail to update.
 
 I feel like I've seen this before but can't find where or what the  
 workaround might be. I guess I'm just looking for confirmation that  
 this should or shouldn't work.
 
 Thanks!
 John





[flexcoders] How to stop null on delayed execution.

2009-03-10 Thread Wesley Acheson
Hi take for for example the following simple example. Its not a real world
example but it does show the problem that I wish to avoid.

---
MXML (simpletest.mxml)
---
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute
xmlns:local=*
local:SimpleExample text=hello

/local:SimpleExample
/mx:Application

--
ActionScript SimpleExample.as
--
package
{
import mx.containers.VBox;
import mx.controls.TextInput;
import mx.events.FlexEvent;

public class SimpleExample extends VBox
{

private var child:TextInput;

private var _text:String;

public function SimpleExample()
{
addEventListener(FlexEvent.INITIALIZE, init)
}

private function init(event:FlexEvent):void
{
child = new TextInput();
addChild(child);
}

public function get text():String {
return _text;
}

public function set text(text:String):void {
this.child.text = text;
}

}
}

If this is run I get a null error at set text.  How do I avoid this?  Should
I just just listen to the property change event on set text? Imagine now
that I had multiple different children.  Is there a method I can override
such as commitProperties so that all this will be done in the same place.

I'm sorry if this isn't too clear what I asking.

Wesley Acheson.


[flexcoders] Re: Convert ArrayCollection to XML

2009-03-10 Thread valdhor
I don't quite understand. Why return an XML string in a RemoteObject? Why not 
just return objects?


--- In flexcoders@yahoogroups.com, tiend...@... tienda...@... wrote:

 I use RemoteObject
 Yes, in PHP I return XML string. And in Flex I read XML string. 
 So I don't need convert ArrayCollection to XML.
 
 I use ex4.
 
 --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote:
 
  I'd suggest using XML all the way through, instead of converting XML to
  ArrayCollection first, then trying to convert it back.  What RPC protocol
  are you using for server communication?  What is your resultFormat?
  
   
  
  Tracy Spratt,
  
  Lariat Services, development services available
  
_  
  
  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
  Behalf Of tiendans@
  Sent: Monday, March 09, 2009 8:58 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Convert ArrayCollection to XML
  
   
  
  Thanks,
  
  I was read it, but can not apply in my app.
  I think , can not convert ArrayCollection to XML. You must convert XML in
  PHP code.
  
  Anyway thank you.
  
  --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
  oneworld95 oneworld95@ wrote:
  
   http://nsdevaraj.
  http://nsdevaraj.wordpress.com/2008/08/20/arraycollection-xml/
  wordpress.com/2008/08/20/arraycollection-xml/
   
   - Alex C
   
   --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
  tiendans@ tiendanvn@ wrote:
   
Hi all guru,

I have a question about ArrayCollection.

[Backend: MySQL,PHP]
MySQL return result in Array.

[Frontend: Flex]
dp = new ArrayCollection( ArrayUtil.toArray(event.result));

I want to convert ArrayCollection (dp) to XML, and show XML result in
  TextArea.


Help me please !
   
  
 





[flexcoders] Re: flex application 2048 error

2009-03-10 Thread valdhor
You may find that it works correctly when you deploy to a server but not when 
run as a local file.

This may or may not work...

Try going to the Global Security Settings Panel at 
http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html
 and adding your bin-debug directory.





--- In flexcoders@yahoogroups.com, sreejeshdnair sreejeshdn...@... wrote:

 I am using a flex application to communicate with Salesforce.com. It was able 
 to retrieve the Crossdomain.xml from Salesforce.com. But after that when the 
 application tries to retrieve data from Salesforce it flash player is 
 throwing security sandbox vioalation error.. with error code 2048. this is 
 the error i am getting in detail.
 ##
 (mx.messaging.messages::ErrorMessage)#0
   body = (Object)#1
   clientId = DirectHTTPChannel0
   correlationId = 53E9F6FC-B0CC-6E84-2FCB-ED6FFAC081E7
   destination = 
   extendedData = (null)
   faultCode = Channel.Security.Error
   faultDetail = Destination: DefaultHTTP
   faultString = Security error accessing url
   headers = (Object)#2
   messageId = 07AB6F6E-7703-37AF-31EB-ED6FFAEE56C6
   rootCause = (flash.events::SecurityErrorEvent)#3
 bubbles = false
 cancelable = false
 currentTarget = (flash.net::URLLoader)#4
   bytesLoaded = 0
   bytesTotal = 0
   data = (null)
   dataFormat = text
 eventPhase = 2
 target = (flash.net::URLLoader)#4
 text = Error #2048: Security sandbox violation: 
 file:///F|/Shared/SalesForce/swf%20file/CCPApplication.swf cannot load data 
 from https://cs2-api.salesforce.com/services/Soap/u/12.0/4e1300DR000716i.;
 type = securityError
   timestamp = 0
   timeToLive = 0
 #





[flexcoders] Re: Developing Rich Clients with Macromedia Flex - source code?

2009-03-10 Thread Libby
Hi Matt
My copy of the book refers to Flex 2.0 ... anyway I remember in their examples 
they did a datagrid itemrenderer and I just wanted to refresh my memory cause 
the one I'm working on is not working the way I expected it to.

--- In flexcoders@yahoogroups.com, Matt Chotin mcho...@... wrote:

 Hey Libby,
 
 I checked and the machine that had this code went offline.  It's all Flex 1.0 
 code, you sure you really need it?
 
 Matt
 
 
 On 3/5/09 10:28 AM, Libby libbychan...@... wrote:
 
 
 
 
 Hi, I have this book but lost my copy of the source code I originally 
 downloaded. The authors website (http://flexbook.iterationtwo.com/, 
 http://www.flexbook.iterationtwo.com/) is down. Does anyone know how to 
 contact the authors Stephen Webster and Alistair McCleod or maybe has a copy?
 
 Thanks,
 Libby





[flexcoders] comboBox in datagrid

2009-03-10 Thread Libby
Hi People

Maybe someone could remind me, I've done this before but apparently now have so 
much knowledge in my brain that the old stuff is getting pushed out : )

I have a ComboBox itemEditor in a datagrid. The datagrid dataprovider is bound 
to an arrayCollection which among other things contains the values that are 
identified as code in the comboBox. When the remote data comes in, the 
comboBox is displaying the code value rather than the label value. When I click 
the comboBox, my label property is found and the combobox correctly displays 
the label for the underlying code. So the issue is, when the combobox first 
gets the data, it needs to run the label displaying code, and it isn't. What am 
I forgetting? and... thanks!



[flexcoders] Re: Modules Communication

2009-03-10 Thread thelordsince1984
--- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote:

 I'm not sure, maybe since modules are independent swf's, but that is way
 more complicated than necessary.
 
  
 
 Look into the singleton data model.  In such a case, you would do:
 
 1.in the source module, MyModel.getInstance().id = myTextInput.text;
 2.In the target module, text={ MyModel.getInstance().id }
 3.Or use a changeWatcher if you need to take programmatic action when
 id changes
 
  
 
 Tracy
 
  
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of thelordsince1984
 Sent: Tuesday, March 03, 2009 12:30 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Modules Communication
 
  
 
 --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
 thelordsince1984 loreboa@ wrote:
 
  --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
 Simon Bailey simon@ wrote:
  
   On the tip for communicating between modules using a framework, 
   PureMVC has a utility called Pipes which helps you accomplish this:
   
   http://trac. http://trac.puremvc.org/Utility_AS3_MultiCore_Pipes
 puremvc.org/Utility_AS3_MultiCore_Pipes
   
   ;S
   
   On 3 Mar 2009, at 10:10, claudiu ursica wrote:
   
   
You should probably have ca comunication manager something like a 
central event dispatcher (I believe the Mate framework already
 does 
this but i might be mistaking) and register panels within that 
scope. so when a panel fires an event the other listening panels 
check if the event is adressed to them and actually consume catch 
that event...
   
there was some guy doing a prof of concept for this google for
 ALON 
desing pattern ...
   
HTH,
Claudiu
   
From: thelordsince1984 loreboa@
To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
Sent: Tuesday, March 3, 2009 10:53:49 AM
Subject: [flexcoders] Re: Modules Communication
   
--- In flexcod...@yahoogro ups.com, Guy Morton guy@ wrote:

 Have you read the section Using interfaces for module 
communication
 in the docs? That's been working for me.

   
thanks for the reply..
   
For Guy Morton...
   
i've read it but modules are created at runtime so i would have a
maneger that controls communication over modules.is it true?
   
For Alex Harui
   
how can i achieve the commuication between modules..for example a
module dispatch an event...the event is catch by a manager and then
fires to the rigth destination. ..rember that i have an
application. ..it contains panels and each panel could contain a 
module...
   
thanks again
   
Regards Lorenzo
   
   
   
   
   
  
  thanks all,
  
  but is there a simple manner to achieve module to module communication?
  
  suppose this scenario:
  
  i've a module within a panel. it contains a textinput...it fires a
  custom event when the user clicks a button..the event contains an id
  number..an other modules is listen for this event, catchs it at then
  update itself depending on passed id...
  
  thanks again 
  Regards Lorenzo
 
 is it possible to use localconnection among modules or is a bad way to
 achieve module to module communication?


hi Tracy,

i've read your last response...

can you explain me the third option:

Use a changeWatcher if you need to take programmatic action when
id changes.

thanks in advance 
Regards 
Lorenzo




[flexcoders] How to do images inside of a textarea using htmlText?

2009-03-10 Thread tchredeemed
Basically, I was wondering how I would just put an image inside of the textarea 
like it was a piece of text...

Example:
http://www.andrewthorp.com/image-text-area.jpg

Functional Equivalent of:

Dear [First Name],
Begin typing your message here.
Thanks!

Instead of the text [First Name], I want the image placed there... any ideas?

Thanks!



[flexcoders] Flex ajax bridge in IE without document.write()

2009-03-10 Thread Michael Pelz-Sherman
Hi,

I'm trying to embed a flex swf into my app without using document.write().

Instead I want to use the standard Ajax technique of setting the innerHTML 
property on a div object, like so:

varflexObjTag =AC_FL_RunContent(...args...);
$('flexDiv').innerHTML = flashObjTag;

To do this, I modified these functions from AC_OETags.js like so:

function AC_Generateobj(objAttrs, params, embedAttrs) 
{ 
var str = '';
if (isIE  isWin  !isOpera)
{
  str +='object ';
  for (var i in objAttrs)
  str += i + '=' + objAttrs[i] + ' ';
  str += '';
  for (var i in params)
  str +='param name='+i +' value='+params[i]+' / ';
  str +='/object';
} else {
  str += 'embed ';
  for (var i in embedAttrs)
  str += i + '=' + embedAttrs[i] + ' ';
  str +=' /embed';
}

return str;
}

function AC_FL_RunContent(){
  var ret = 
AC_GetArgs
(  arguments,.swf,movie,clsid:d27cdb6e-ae6d-11cf-96b8-44455354
 ,application/x-shockwave-flash
);
  return AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

This works fine in Firefox and Safari, but not in IE7. I'm getting the 
following error:

try { 
document.getElementById(graph_div).SetReturnValue(__flash__toXML(FABridge__bridgeInitialized([flash]))
 ); } catch (e) { 
document.getElementById(graph_div).SetReturnValue(undefined/); }

Any advice would be greatly appreciated!

- Michael


[flexcoders] Re: first user tab is slow

2009-03-10 Thread schneiderjim
We will run the profiler to see. We have a very large, form based app, so there 
may be something there. It can sometimes take up to 3 - 4 seconds to tab to the 
second form field. 

Some questions:

1. When is the sorted list computed? On the first tab?

2. Is there any way we can change when that happens?

3. What determines whether an object can receive focus? If we have a 
form/canvas over a form/canvas over ... is it only the visible form that has 
objects that can receive focus?

4. What do you mean by startup time delays? Loading the swf?


--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 You can run the profiler to see why it is taking so long.  We do compute a 
 sorted list of all objects that can receive focus, but you'd need an awful 
 lot of them to cause a noticeable delay, and if you've created that many, I'd 
 expect you'd be having startup time delays that would be even more 
 problematic.
 
 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of schneiderjim
 Sent: Monday, March 09, 2009 2:08 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] first user tab is slow
 
 
 Flex: 2.0.1
 
 In our app, we experience a significant delay when the user tabs from the 
 first form field to the second. After that, tabs work as expected. Is there a 
 reason for this? Is there a way to eliminate this delay? I'm not sure whether 
 this is a factor, but many (not all) of the forms are dynamically created (in 
 AS).
 
 Thanks





[flexcoders] Re: How to stop null on delayed execution.

2009-03-10 Thread valdhor
The problem is that you are instantiating your SimpleExample object and
then trying to modify a component of the object before it is created.

You would need to move the instantiation of TextInput to the constructor
or instantiate it when you create the variable...

package
{
 import mx.containers.VBox;
 import mx.controls.TextInput;
 import mx.events.FlexEvent;

 public class SimpleExample extends VBox
 {
 private var child:TextInput = new TextInput();
 private var _text:String;

 public function SimpleExample()
 {
 super();
 addEventListener(FlexEvent.INITIALIZE, init)
 }

 private function init(event:FlexEvent):void
 {
 addChild(child);
 }

 public function get text():String {
 return _text;
 }

 public function set text(text:String):void {
 this.child.text = text;
 }
 }
}


--- In flexcoders@yahoogroups.com, Wesley Acheson wesley.ache...@...
wrote:

 Hi take for for example the following simple example. Its not a real
world
 example but it does show the problem that I wish to avoid.

 ---
 MXML (simpletest.mxml)
 ---
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute
 xmlns:local=*
 local:SimpleExample text=hello

 /local:SimpleExample
 /mx:Application

 --
 ActionScript SimpleExample.as
 --
 package
 {
 import mx.containers.VBox;
 import mx.controls.TextInput;
 import mx.events.FlexEvent;

 public class SimpleExample extends VBox
 {

 private var child:TextInput;

 private var _text:String;

 public function SimpleExample()
 {
 addEventListener(FlexEvent.INITIALIZE, init)
 }

 private function init(event:FlexEvent):void
 {
 child = new TextInput();
 addChild(child);
 }

 public function get text():String {
 return _text;
 }

 public function set text(text:String):void {
 this.child.text = text;
 }

 }
 }
 
 If this is run I get a null error at set text.  How do I avoid this? 
Should
 I just just listen to the property change event on set text? Imagine
now
 that I had multiple different children.  Is there a method I can
override
 such as commitProperties so that all this will be done in the same
place.

 I'm sorry if this isn't too clear what I asking.

 Wesley Acheson.




[flexcoders] Flex4 (Gumbo) binding problem in XMLList

2009-03-10 Thread malaschitz
This application is without problems with Flex3 but Flex4 throws compile 
exception: 1120: Access of undefined property myXml. Problem is binding 
'enabled={a}'. 

Source:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute
 mx:Script
  ![CDATA[
   [Bindable]
   private var a:Boolean = false;   
  ]]
 /mx:Script
 mx:MenuBar x=10 y=10 labelField=@label
  mx:XMLList id=myXml
   menuitem label=Menu  
menuitem data=test label=Test type=check enabled={a}/ 

   /menuitem
  /mx:XMLList
 /mx:MenuBar
/mx:Application


What does it mean ??



[flexcoders] Re: Best option for implementing a growl like notification system ?

2009-03-10 Thread sunild999999
Hi,

I won't comment on what the best approach is but, maybe you can look at 
Christian Cantrell's Growl implementation for AIR:

article: 
http://weblogs.macromedia.com/cantrell/archives/2007/10/make_text_fade.html
code: http://code.google.com/p/as3notificationlib/

Sunil

--- In flexcoders@yahoogroups.com, Arpit Mathur mathur.ar...@... wrote:

 Hi all,
 
 I had a question regarding an AIR utility class that I am trying to finish.
 The class is pretty simple, it is basically an AIR implementation of the Mac
 Growl UI (notification windows that pop open on the right edge of the
 display). Most AIR applications seem to use some implementation of the
 functionality so I decided to write a generic one that I could open source
 and let everyone use it.
 
 My question is pretty simple. Like growl, I wanted to bring out a number of
 rectangular notification windows that fade out after some time. There are 3
 ways I can see this being accomplished:
 
 1) Open new NativeWindow for each notification
 2) Open one transparent nativeWindow add children to it calculate its size
 based on the number of children being added (notifications), and then place
 the window appropriately on the screen's edge
 3) Open one transparent nativeWindow to the size of the screen (resolution),
 and add notifications to its right edge.
 
 Is there one implementation over another that may have better performance ?
 #2 seems it may since it creates one native window of the exact size it
 needs, but its the most work.
 
 Any thoughts ?





[flexcoders] Re: dataGrid not receiving user input (intermitently) in bottom righ

2009-03-10 Thread Tim Hoff
2. Assuming that the item renderer only needs to manipulate the text of
the renderer, is example 1  - extending DataItemGrid - (below) a good
way to do it? (I've never written one before, so I'm just checking) No,
for text only, use a labelFunction; instead of a custom itemRenderer.
Thanks! Did that, and it works (as it did using DataItemGrid, but I
assume this is less resource intensive?)
Probably not a big change in resource intensity.  Doubt that you'll
perceive any difference at all.  However, with a labelFunction, you've
used the framework natively and turned about 30 lines of byte code, and
an additional class, into about 6 lines of code; that is located close
to the DataGrid.  These are the kind of things that make me smile
un-intentionally. ;)

-TH

--- In flexcoders@yahoogroups.com, tom s tcs2...@... wrote:

 2. Assuming that the item renderer only needs to manipulate the text
of the
 renderer, is example 1 - extending DataItemGrid - (below) a good way
to do
 it? (I've never written one before, so I'm just checking)
 No, for text only, use a labelFunction; instead of a custom
itemRenderer.

 Thanks! Did that, and it works (as it did using DataItemGrid, but I
assume
 this is less resource intensive?)

 3. Is there anything else wrong with the example 1 below / a better
way?
 Better to handle the calcs in commitProperties.

 Good to know, for when I really need to use it :)

 thanks all,

 tom





Re: [flexcoders] Re: Developing Rich Clients with Macromedia Flex - source code?

2009-03-10 Thread Matt Chotin
Well, if it's their book it's definitely Flex 1, not Flex 2.  So it won't help 
with a later project.

Matt


On 3/10/09 8:14 AM, Libby libbychan...@yahoo.com wrote:




Hi Matt
My copy of the book refers to Flex 2.0 ... anyway I remember in their examples 
they did a datagrid itemrenderer and I just wanted to refresh my memory cause 
the one I'm working on is not working the way I expected it to.

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Matt 
Chotin mcho...@... wrote:

 Hey Libby,

 I checked and the machine that had this code went offline.  It's all Flex 1.0 
 code, you sure you really need it?

 Matt


 On 3/5/09 10:28 AM, Libby libbychan...@... wrote:




 Hi, I have this book but lost my copy of the source code I originally 
 downloaded. The authors website (http://flexbook.iterationtwo.com/, 
 http://www.flexbook.iterationtwo.com/) is down. Does anyone know how to 
 contact the authors Stephen Webster and Alistair McCleod or maybe has a copy?

 Thanks,
 Libby








[flexcoders] Re: HTML component does not display images

2009-03-10 Thread sunild999999
Maybe you need a body tag in your html?

--- In flexcoders@yahoogroups.com, florian.salihovic florian.saliho...@... 
wrote:

 What am i missing? Passing htmlHttp Worldimg src='pic1.png' //html to 
 the HTML component's htmlText property will only display the text, not the 
 image.
 
 Best regards.





[flexcoders] Re: How to stop null on delayed execution.

2009-03-10 Thread Tim Hoff

Override createChildren() and add the child there; instead of trying to
re-invent the component lifecycle by using INITIALIZE .  And yes,
commitProperties() would be a good place to set the child's text; from
the text property.

-TH

--- In flexcoders@yahoogroups.com, Wesley Acheson wesley.ache...@...
wrote:

 Hi take for for example the following simple example. Its not a real
world
 example but it does show the problem that I wish to avoid.

 ---
 MXML (simpletest.mxml)
 ---
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute
 xmlns:local=*
 local:SimpleExample text=hello

 /local:SimpleExample
 /mx:Application

 --
 ActionScript SimpleExample.as
 --
 package
 {
 import mx.containers.VBox;
 import mx.controls.TextInput;
 import mx.events.FlexEvent;

 public class SimpleExample extends VBox
 {

 private var child:TextInput;

 private var _text:String;

 public function SimpleExample()
 {
 addEventListener(FlexEvent.INITIALIZE, init)
 }

 private function init(event:FlexEvent):void
 {
 child = new TextInput();
 addChild(child);
 }

 public function get text():String {
 return _text;
 }

 public function set text(text:String):void {
 this.child.text = text;
 }

 }
 }
 
 If this is run I get a null error at set text. How do I avoid this?
Should
 I just just listen to the property change event on set text? Imagine
now
 that I had multiple different children. Is there a method I can
override
 such as commitProperties so that all this will be done in the same
place.

 I'm sorry if this isn't too clear what I asking.

 Wesley Acheson.






Re: [flexcoders] Re: Developing Rich Clients with Macromedia Flex - source code?

2009-03-10 Thread Jeffry Houser
Although completely unrelate to the book, would these screencasts help, 
on item Renderers, the DataGrid, and item Editors. 


http://www.theflexshow.com/blog/index.cfm/2008/10/15/The-Flex-Show--Fifteen-Minutes-With-Flex--Episode-8--Custom-Item-Renderers
http://www.theflexshow.com/blog/index.cfm/2008/12/24/The-Flex-Show--Fifteen-Minutes-With-Flex--Episode-13--DataGrids
http://www.theflexshow.com/blog/index.cfm/2009/1/7/The-Flex-Show--Fifteen-Minutes-With-Flex--Episode-14-Item-Editors

Libby wrote:

Hi Matt
My copy of the book refers to Flex 2.0 ... anyway I remember in their examples 
they did a datagrid itemrenderer and I just wanted to refresh my memory cause 
the one I'm working on is not working the way I expected it to.

--- In flexcoders@yahoogroups.com, Matt Chotin mcho...@... wrote:
  

Hey Libby,

I checked and the machine that had this code went offline.  It's all Flex 1.0 
code, you sure you really need it?

Matt


On 3/5/09 10:28 AM, Libby libbychan...@... wrote:




Hi, I have this book but lost my copy of the source code I originally 
downloaded. The authors website (http://flexbook.iterationtwo.com/, 
http://www.flexbook.iterationtwo.com/) is down. Does anyone know how to contact 
the authors Stephen Webster and Alistair McCleod or maybe has a copy?

Thanks,
Libby









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




  


--
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust



[flexcoders] Text Looks Ugly When PrintAsBitmap=true

2009-03-10 Thread pliechty
We print images in our application. I can print fine with printAsBitmap=false, 
but I want to set the smooth flag on the image. I have to set 
printAsBitmap=true to get the smooth flag to take effect, but my text looks 
horrible. Is there a way to have smooth images and nice looking text?



Re: [flexcoders] Re: How to stop null on delayed execution.

2009-03-10 Thread Wesley Acheson
Thanks I thought that always initialising either in the constructor or in
the variable declaration was a bit hacky.  It is what I've been doing up
till now. Is there any refrence for a component (particualy containers) life
cycle?

Off topic in gmail I autoarchive flex coders emails.  Does anyone know of a
way to not auto archive treads that I've been involved with?

Regards,

Wesley Acheson

On Tue, Mar 10, 2009 at 5:40 PM, Tim Hoff timh...@aol.com wrote:


 Override createChildren() and add the child there; instead of trying to
 re-invent the component lifecycle by using INITIALIZE .  And yes,
 commitProperties() would be a good place to set the child's text; from
 the text property.

 -TH

 --- In flexcoders@yahoogroups.com, Wesley Acheson wesley.ache...@...
 wrote:
 
  Hi take for for example the following simple example. Its not a real
 world
  example but it does show the problem that I wish to avoid.
 
  ---
  MXML (simpletest.mxml)
  ---
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute
  xmlns:local=*
  local:SimpleExample text=hello
 
  /local:SimpleExample
  /mx:Application
 
  --
  ActionScript SimpleExample.as
  --
  package
  {
  import mx.containers.VBox;
  import mx.controls.TextInput;
  import mx.events.FlexEvent;
 
  public class SimpleExample extends VBox
  {
 
  private var child:TextInput;
 
  private var _text:String;
 
  public function SimpleExample()
  {
  addEventListener(FlexEvent.INITIALIZE, init)
  }
 
  private function init(event:FlexEvent):void
  {
  child = new TextInput();
  addChild(child);
  }
 
  public function get text():String {
  return _text;
  }
 
  public function set text(text:String):void {
  this.child.text = text;
  }
 
  }
  }
  
  If this is run I get a null error at set text. How do I avoid this?
 Should
  I just just listen to the property change event on set text? Imagine
 now
  that I had multiple different children. Is there a method I can
 override
  such as commitProperties so that all this will be done in the same
 place.
 
  I'm sorry if this isn't too clear what I asking.
 
  Wesley Acheson.
 





 

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






[flexcoders] Re: How to stop null on delayed execution.

2009-03-10 Thread Tim Hoff

Hi Wesley,

Controls and Containers all extend UIComponent.  For your case, take a
look at the code for UIComponent and VBox (F3, with the mouse over a
classs name, in FB or Eclipse).  Or, just look at any custom component
out there; for an example.

-TH

--- In flexcoders@yahoogroups.com, Wesley Acheson wesley.ache...@...
wrote:

 Thanks I thought that always initialising either in the constructor or
in
 the variable declaration was a bit hacky. It is what I've been doing
up
 till now. Is there any refrence for a component (particualy
containers) life
 cycle?

 Off topic in gmail I autoarchive flex coders emails. Does anyone know
of a
 way to not auto archive treads that I've been involved with?

 Regards,

 Wesley Acheson

 On Tue, Mar 10, 2009 at 5:40 PM, Tim Hoff timh...@... wrote:

 
  Override createChildren() and add the child there; instead of trying
to
  re-invent the component lifecycle by using INITIALIZE . And yes,
  commitProperties() would be a good place to set the child's text;
from
  the text property.
 
  -TH
 
  --- In flexcoders@yahoogroups.com, Wesley Acheson wesley.acheson@
  wrote:
  
   Hi take for for example the following simple example. Its not a
real
  world
   example but it does show the problem that I wish to avoid.
  
   ---
   MXML (simpletest.mxml)
   ---
   ?xml version=1.0 encoding=utf-8?
   mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  layout=absolute
   xmlns:local=*
   local:SimpleExample text=hello
  
   /local:SimpleExample
   /mx:Application
  
   --
   ActionScript SimpleExample.as
   --
   package
   {
   import mx.containers.VBox;
   import mx.controls.TextInput;
   import mx.events.FlexEvent;
  
   public class SimpleExample extends VBox
   {
  
   private var child:TextInput;
  
   private var _text:String;
  
   public function SimpleExample()
   {
   addEventListener(FlexEvent.INITIALIZE, init)
   }
  
   private function init(event:FlexEvent):void
   {
   child = new TextInput();
   addChild(child);
   }
  
   public function get text():String {
   return _text;
   }
  
   public function set text(text:String):void {
   this.child.text = text;
   }
  
   }
   }
   
   If this is run I get a null error at set text. How do I avoid
this?
  Should
   I just just listen to the property change event on set text?
Imagine
  now
   that I had multiple different children. Is there a method I can
  override
   such as commitProperties so that all this will be done in the same
  place.
  
   I'm sorry if this isn't too clear what I asking.
  
   Wesley Acheson.
  
 
 
 
 
 
  
 
  --
  Flexcoders Mailing List
  FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Alternative FAQ location:
 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-\
1e62079f6847
  Search Archives:
  http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
Groups
  Links
 
 
 
 






[flexcoders] EnterFrame listener removed when dragged off screen

2009-03-10 Thread flexaustin
So I have several sprites within a component on the stage (Flex appliation 
level actually). I have a custom factory component on the main stage that 
builds popups if one of the sprites is clicked, yes I have to have it this way 
due to the library I am using. 

Anyway, I have an EnterFrame listener on the sprite that sends the sprites x,y 
coord so that the popups will stay on top off the draggable sprites.  But if 
the sprite is dragged off screen for just a second the popup loses track of the 
sprite or the enterframe seems to be killed, as the popup no longer follows the 
sprite.  I know that the the sprite once dragged off screen dispatches an 
Event.REMOVED_FROM_STAGE, which makes me think that when dragged off stage, the 
sprite drops all listeners.  

Wondering if there is a way to stop this from happening?

TIA.



RE: [flexcoders] EnterFrame listener removed when dragged off screen

2009-03-10 Thread Alex Harui
Dragging off-screen by increasing x and y should not result in a 
removed_from_stage.  I'd find out why that's happening.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of flexaustin
Sent: Tuesday, March 10, 2009 10:45 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] EnterFrame listener removed when dragged off screen


So I have several sprites within a component on the stage (Flex appliation 
level actually). I have a custom factory component on the main stage that 
builds popups if one of the sprites is clicked, yes I have to have it this way 
due to the library I am using.

Anyway, I have an EnterFrame listener on the sprite that sends the sprites x,y 
coord so that the popups will stay on top off the draggable sprites. But if the 
sprite is dragged off screen for just a second the popup loses track of the 
sprite or the enterframe seems to be killed, as the popup no longer follows the 
sprite. I know that the the sprite once dragged off screen dispatches an 
Event.REMOVED_FROM_STAGE, which makes me think that when dragged off stage, the 
sprite drops all listeners.

Wondering if there is a way to stop this from happening?

TIA.



RE: [flexcoders] Trying to compile app with 3.2 Flex SDK, but it includes the 3.1 Flex librares.

2009-03-10 Thread Alex Harui
I'm not sure FB auto-updates the SWZ options in the project.  You might have to 
specify them directly.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Todd
Sent: Tuesday, March 10, 2009 6:52 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Trying to compile app with 3.2 Flex SDK, but it includes 
the 3.1 Flex librares.


Hello All,

Recently, we've started the process of trying to upgrade the SDK in which we 
compile our project from a patched version of the 3.0 branch (there were 
nightly bug fixes with Web SErvices that we needed) to the latest and greatest 
3.2.

In Flex Builder 3.02, I've set in the Properties editor to use the Flex 3.2 
SDK. However, when I compile and build, the framework_3.1.0.2710.swf is thrown 
in the bin-debug directory.

How can I tell which real version of the SDK my project was compiled with to 
ensure RSL compatability? Also, any insight as to why FB is using the 3.1 SWF 
and SWZ files would be helpful.

Thanks,



[flexcoders] calling a function from swf

2009-03-10 Thread thibodeau.alain
Hi all,
I am thinking this is simple, but I cannot find the proper way of doing this. 

I have a flex application that loads a swf file. I want to be able to call a 
function that is in the flex application from the swf file. 

From my fla I tried calling _root, Application.application, _parent... 

Anyone know how I can do this ?

thanks!




[flexcoders] Re: comboBox in datagrid

2009-03-10 Thread Anthony DeBonis
Are you talking about an example like this?
You may be better off creating a reusable/testable component in separate AS or 
MXML file.

mx:Component
mx:CheckBox creationComplete=init()
mx:Script
![CDATA[
 
private 
var _data:Object;   
private function init():void {  
  this.addEventListener(MouseEvent.CLICK, 
update);
}   
override public 
function get data():Object {

return _data; 
}
 

[Bindable]

override public function set data(o:Object):void {

_data = o;

if(_data.checked == true) this.selected = true;

else this.selected = false;
}
 
private 
function update(event:MouseEvent):void {

if(this.selected) _data.checked = true;

else _data.checked = false;
}
 
 
]]
  /mx:Script
/mx:CheckBox
/mx:Component



[flexcoders] archived Flash players - why so huge?

2009-03-10 Thread Michael Pelz-Sherman
I found this page today while searching for a way to downgrade to an earlier 
version of Flash:

http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14266

Can anyone explain why the installer files are so huge?

- Michael

[flexcoders] Re: Problem with custom component tabbing in TabNavigator

2009-03-10 Thread aceoohay
Just bumping this up to the top of the list, as I continue my research.

Paul

--- In flexcoders@yahoogroups.com, aceoohay pa...@... wrote:

 
 
 I have created an extension of the DateField() (ValidatedDateField())
 component. The main purpose of this extension is to call an extension to
 the TextInput component.
 
 Everything seems to work swimmingly. I have found that in some cases
 however, the tab key (tab index order) handling gets messed up. Because
 of the poor tab handling design in flex, the method that we use to
 control the tab order is by placing the fields in the order in the mxml
 file that we want. This seems to work most of the time.
 
 I have found that on forms where the custom datefield components are in
 a TabNavigator canvas that the ValidatedDateField() that I have created
 will cause the tab order to break. In one case it causes the focus to go
 to a dataGrid in another container above the one the
 ValidatedDateField() is in. My best guess is that it causes the next
 field to be the first editable field within the TabNavigator canvas that
 the datefield is in.
 
 If I make the field editable=false, the tabbing seems to work fine
 irrespective of the TabNavigator.
 
 My conclusion is that when the custom TextInput portion of the
 DateField gets instantsiated the tab order gets hosed.
 
 I have looked through the code for the ComboBase and DateField to see if
 I can tell where the tab order gets defined and I can't see it. I saw a
 line that says;
 
 textInput.parentDrawsFocus = true;
 
 and thought that might have something to do with it, but I can't
 replicate that in my code, I get an inaccessible error.
 
 If my assumption that I am not creating the textInput component
 correctly is true, the question is;
 
 How can I ensure that the custom textInput component portion of my
 DateField component gets the same tab order as the DateField itself?
 
 Here is the creatChildren method of the custom DateField Component;
 
 
 override protected function createChildren():void  { 
 super.createChildren();removeChild(textInput);   
 if(this.textInput){ // Use ValidatedTextInput instead of TextInput
 and Setup various fields   //needed by ValidatedTextInput
 textInput = new ValidatedTextInput(); textInput[dataType] =
 date; textInput[formatter] = _dateFormat;
 textInput[minDataChars] = _minDataChars; textInput[maxDataChars]
 = _maxDataChars; textInput[minValue] = _minValue;
 textInput[maxValue] = _maxValue; textInput[id] = vti +
 this.id; textInput[rootOwner] = this.parent;
 textInput[charactersAlsoPermitted] = _charactersAlsoPermitted;
 textInput[formatData] = _formatData; textInput[doValidateData] =
 _doValidateData; textInput[defaultValue] = _defaultValue; 
 textInput.addEventListener(focusOut,updateTextValue)
 textInput.addEventListener(textChanged,updateTextValue)
 addChild(textInput);}  }
 
 Since the application that I am working on contains a number of heads
 down data entry environments, this is a critical issue for me.
 
 
 All help is greatly appreciated.
 
 Paul





[flexcoders] Re: How to stop null on delayed execution.

2009-03-10 Thread sunild999999
--- In flexcoders@yahoogroups.com, Wesley Acheson wesley.ache...@... wrote:

  Is there any refrence for a component (particualy containers) life
 cycle?
 


This page in the Flex Developer's Guide was very helpful in explaining how to 
override the Flex component life cycle methods.  I also recommend reading the 
pages before/after this page as well:

http://livedocs.adobe.com/flex/3/html/ascomponents_advanced_3.html#209794






Re: [flexcoders] calling a function from swf

2009-03-10 Thread Adrian Williams
This is pretty straightforward. We do a lot of this in our dashboard app 
where we have a function called registerSWF().  This helps us keep tabs 
on all the swf objects that are loaded on the dash.


   private var registeredSWF:ArrayCollection = new 
ArrayCollection();

   public function registerSWF(swf:Object):void
   {
   registeredSWF.addItem(swf);
   }

Each child swf calls this functions when they load:

   application.registerSWF(this);   

Then, when we need to access a function from within the child swf, we 
pull it from the AC (so we can reference it) and directly call the function:


   for each (var swf:Object in registeredSWF)
   {
   swf.someFunction(vars);
   }

Keep in mind that the function in your child swf must be in the public 
scope or the parent app cannot see it.


HTH,
Adrian


thibodeau.alain wrote:


Hi all,
I am thinking this is simple, but I cannot find the proper way of 
doing this.


I have a flex application that loads a swf file. I want to be able to 
call a function that is in the flex application from the swf file.


From my fla I tried calling _root, Application.application, _parent...

Anyone know how I can do this ?

thanks!




[flexcoders] Re: How to stop null on delayed execution.

2009-03-10 Thread valdhor
Why?

Standard OOP practice is to initialize variables in the constructor (That's 
what it's there for).


--- In flexcoders@yahoogroups.com, Wesley Acheson wesley.ache...@... wrote:

 Thanks I thought that always initialising either in the constructor
 or in the variable declaration was a bit hacky.



Re: [flexcoders] Re: How to stop null on delayed execution.

2009-03-10 Thread Wesley Acheson
On Tue, Mar 10, 2009 at 6:42 PM, Tim Hoff timh...@aol.com wrote:


 Hi Wesley,

 Controls and Containers all extend UIComponent.  For your case, take a
 look at the code for UIComponent and VBox (F3, with the mouse over a
 classs name, in FB or Eclipse).  Or, just look at any custom component
 out there; for an example.

 -TH

 --- In flexcoders@yahoogroups.com, Wesley Acheson wesley.ache...@...
 wrote:
 
  Thanks I thought that always initialising either in the constructor or
 in
  the variable declaration was a bit hacky. It is what I've been doing
 up
  till now. Is there any refrence for a component (particualy
 containers) life
  cycle?
 
  Off topic in gmail I autoarchive flex coders emails. Does anyone know
 of a
  way to not auto archive treads that I've been involved with?
 
  Regards,
 
  Wesley Acheson
 


Thanks Tim,

This is helpfull but I find it difficult to inspect classes in the core
libary as.

   1. Instance highlightling doesn't work.
   2. F3 doesn't take you to a declaration.
   3. It doesn't actually tell you when an event is raised or a method is
   called by looking at the methods as their often called outside the class
   itself.


I'll however make more of an effort to look.

Wes


Re: [flexcoders] Re: How to stop null on delayed execution.

2009-03-10 Thread Wesley Acheson
On Tue, Mar 10, 2009 at 7:44 PM, sunild99 sunilbd...@gmail.com wrote:


 This page in the Flex Developer's Guide was very helpful in explaining how
 to override the Flex component life cycle methods.  I also recommend reading
 the pages before/after this page as well:

 http://livedocs.adobe.com/flex/3/html/ascomponents_advanced_3.html#209794


Thanks I'll take a look.

Wes


RE: [flexcoders] Re: first user tab is slow

2009-03-10 Thread Tracy Spratt
Make sure you have not been using creationPolicy=all.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of schneiderjim
Sent: Tuesday, March 10, 2009 11:49 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: first user tab is slow

 

We will run the profiler to see. We have a very large, form based app, so
there may be something there. It can sometimes take up to 3 - 4 seconds to
tab to the second form field. 

Some questions:

1. When is the sorted list computed? On the first tab?

2. Is there any way we can change when that happens?

3. What determines whether an object can receive focus? If we have a
form/canvas over a form/canvas over ... is it only the visible form that
has objects that can receive focus?

4. What do you mean by startup time delays? Loading the swf?

--- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
Alex Harui aha...@... wrote:

 You can run the profiler to see why it is taking so long. We do compute a
sorted list of all objects that can receive focus, but you'd need an awful
lot of them to cause a noticeable delay, and if you've created that many,
I'd expect you'd be having startup time delays that would be even more
problematic.
 
 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe. http://www.adobe.com/ com/
 Blog: http://blogs. http://blogs.adobe.com/aharui adobe.com/aharui
 
 From: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
[mailto:flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com]
On Behalf Of schneiderjim
 Sent: Monday, March 09, 2009 2:08 PM
 To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
 Subject: [flexcoders] first user tab is slow
 
 
 Flex: 2.0.1
 
 In our app, we experience a significant delay when the user tabs from
the first form field to the second. After that, tabs work as expected. Is
there a reason for this? Is there a way to eliminate this delay? I'm not
sure whether this is a factor, but many (not all) of the forms are
dynamically created (in AS).
 
 Thanks






Re: [flexcoders] Re: How to stop null on delayed execution.

2009-03-10 Thread Wesley Acheson
Because of a visual components life cycle mainly. If I was to write an
application in actionscript (asside from the root mxml file - I don't think
you can do that in AS) all visual components would be initialised
immediatly.

Lazy loading is also used quite commonly as an OOP pattern.

Also constructor initialisation falls out of grace, (I think) with stuff
like spring in java as it doesn't allow well for dependency injection.

Finally Its just nice for people using your custom components if they act
like other components.  It means less to learn.

These are just opinions though I have mostly been writing my code in the
same way as you gave in the example. i.e.

private var someVar:someClass = new someClass();

Thanks for your help too though.  I did change my real class *not* the
simplified example to do that when I got your reply as I needed to get it
working quickly.

On Tue, Mar 10, 2009 at 8:05 PM, valdhor valdhorli...@embarqmail.comwrote:

 Why?

 Standard OOP practice is to initialize variables in the constructor (That's
 what it's there for).


 --- In flexcoders@yahoogroups.com, Wesley Acheson wesley.ache...@...
 wrote:
 
  Thanks I thought that always initialising either in the constructor
  or in the variable declaration was a bit hacky.



 

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






RE: [flexcoders] Re: Modules Communication

2009-03-10 Thread Tracy Spratt
Which part do you not understand?  Have you looked at changeWatcher in the
docs?

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of thelordsince1984
Sent: Tuesday, March 10, 2009 11:29 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Modules Communication

 

--- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
Tracy Spratt tspr...@... wrote:

 I'm not sure, maybe since modules are independent swf's, but that is way
 more complicated than necessary.
 
 
 
 Look into the singleton data model. In such a case, you would do:
 
 1. in the source module, MyModel.getInstance().id = myTextInput.text;
 2. In the target module, text={ MyModel.getInstance().id }
 3. Or use a changeWatcher if you need to take programmatic action when
 id changes
 
 
 
 Tracy
 
 
 
 _ 
 
 From: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
[mailto:flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com]
On
 Behalf Of thelordsince1984
 Sent: Tuesday, March 03, 2009 12:30 PM
 To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
 Subject: [flexcoders] Re: Modules Communication
 
 
 
 --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
 thelordsince1984 loreboa@ wrote:
 
  --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com
ups.com,
 Simon Bailey simon@ wrote:
  
   On the tip for communicating between modules using a framework, 
   PureMVC has a utility called Pipes which helps you accomplish this:
   
   http://trac. http://trac.
http://trac.puremvc.org/Utility_AS3_MultiCore_Pipes
puremvc.org/Utility_AS3_MultiCore_Pipes
 puremvc.org/Utility_AS3_MultiCore_Pipes
   
   ;S
   
   On 3 Mar 2009, at 10:10, claudiu ursica wrote:
   
   
You should probably have ca comunication manager something like a 
central event dispatcher (I believe the Mate framework already
 does 
this but i might be mistaking) and register panels within that 
scope. so when a panel fires an event the other listening panels 
check if the event is adressed to them and actually consume catch 
that event...
   
there was some guy doing a prof of concept for this google for
 ALON 
desing pattern ...
   
HTH,
Claudiu
   
From: thelordsince1984 loreboa@
To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com
ups.com
Sent: Tuesday, March 3, 2009 10:53:49 AM
Subject: [flexcoders] Re: Modules Communication
   
--- In flexcod...@yahoogro ups.com, Guy Morton guy@ wrote:

 Have you read the section Using interfaces for module 
communication
 in the docs? That's been working for me.

   
thanks for the reply..
   
For Guy Morton...
   
i've read it but modules are created at runtime so i would have a
maneger that controls communication over modules.is it true?
   
For Alex Harui
   
how can i achieve the commuication between modules..for example a
module dispatch an event...the event is catch by a manager and then
fires to the rigth destination. ..rember that i have an
application. ..it contains panels and each panel could contain a 
module...
   
thanks again
   
Regards Lorenzo
   
   
   
   
   
  
  thanks all,
  
  but is there a simple manner to achieve module to module communication?
  
  suppose this scenario:
  
  i've a module within a panel. it contains a textinput...it fires a
  custom event when the user clicks a button..the event contains an id
  number..an other modules is listen for this event, catchs it at then
  update itself depending on passed id...
  
  thanks again 
  Regards Lorenzo
 
 is it possible to use localconnection among modules or is a bad way to
 achieve module to module communication?


hi Tracy,

i've read your last response...

can you explain me the third option:

Use a changeWatcher if you need to take programmatic action when
id changes.

thanks in advance 
Regards 
Lorenzo





Re: [flexcoders] archived Flash players - why so huge?

2009-03-10 Thread Michael Pelz-Sherman
Um... never mind: I didn't realize that these files contained archives of 
multiple version for multiple platforms!

Suggestion for Adobe: how 'bout making the individual files available for 
download as well? Some of us aren't blessed with infinite bandwidth. Thanks! :-)




From: Michael Pelz-Sherman mpelzsher...@gmail.com
To: flexcoders@yahoogroups.com
Sent: Tuesday, March 10, 2009 2:31:47 PM
Subject: [flexcoders] archived Flash players - why so huge?


I found this page today while searching for a way to downgrade to an earlier 
version of Flash:

http://kb.adobe. com/selfservice/ viewContent. do?externalId= tn_14266

Can anyone explain why the installer files are so huge?

- Michael


[flexcoders] Urgent Prob - cant debug after upgrading to new player

2009-03-10 Thread reflexactions
I upgraded to the new flash player earlier today and now I cant debug in FB.

I have tried everything including uninstalling the FPlayer using the uninstall 
tool, reboot, install debug player, run from FB (standalone), IE8 opens with 
the app but FB says still waiting for the player to connect.

I used netstat -a and FB is listening on port 7935, but the app wont connect, 
even if I try to manually force it by using the context menu it won't connect.

I have tried down grading but that doesnt work

I cant find anything to get back to debugging and its a problem 'cos I cant 
work at all.

Help!



Re: [flexcoders] calling a function from swf

2009-03-10 Thread Alain Thibodeau
Thanks Adrian! that will do the trick. 
In the meantime, I also found another way, not as elegant as yours

//inside the fla
var myParent = loaderInfo.loader.parent.parent;
 myParent.doSomething('do it');

thanks again





From: Adrian Williams adri...@familytreedna.com
To: flexcoders@yahoogroups.com
Sent: Tuesday, March 10, 2009 2:45:30 PM
Subject: Re: [flexcoders] calling a function from swf


This is pretty straightforward. We do a lot of this in our dashboard app where 
we have a function called registerSWF( ).  This helps us keep tabs on all the 
swf objects that are loaded on the dash.

    private var registeredSWF: ArrayCollection = new ArrayCollection( );
        public function registerSWF( swf:Object) :void
        {
            registeredSWF. addItem(swf) ;
        }

Each child swf calls this functions when they load:

    application. registerSWF( this);        

Then, when we need to access a function from within the child swf, we pull it 
from the AC (so we can reference it) and directly call the function:

            for each (var swf:Object in registeredSWF)
            {
                swf.someFunction( vars);
            }

Keep in mind that the function in your child swf must be in the public scope or 
the parent app cannot see it.

HTH,
Adrian


thibodeau.alain wrote: 
Hi all,
I am thinking this is simple, but I cannot find the proper way of doing this. 

I have a flex application that loads a swf file. I want to be able to call a 
function that is in the flex application from the swf file. 

From my fla I tried calling _root, Application. application, _parent... 

Anyone know how I can do this ?

thanks!





  __
Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo! 
Canada Messenger at http://ca.beta.messenger.yahoo.com/

[flexcoders] Using icons on buttons?

2009-03-10 Thread daniel.koestler
I've been looking around on Flex webapps, and I'm wondering how common it is to 
use the icon property of a button. Do you prefer customizing buttons this way, 
or is it better to write a custom component to do it?



Re: [flexcoders] Re: binding not updating for ArrayCollection when item changes?

2009-03-10 Thread John Robinson
Nice catch! That didn't seem to be causing the problem but thanks for  
pointing it out.

I've simplified the case in that I'm not calling the web service  
anymore, just flipping the enabled property but binding still is not  
updating. Any other ideas?

Thanks,
John

On Mar 10, 2009, at 10:53 AM, valdhor wrote:

 I don't know if this is your problem but one thing I noticed is youu  
 have an ambiguous set of your enabled property. You have

 enabled = enabled;

 which (I assume) is to set the enabled property of your class to the  
 enabled parameter that is passed in. This won't work. You should have

 this.enabled = enabled;

 or change one of the parameter names.

 --- In flexcoders@yahoogroups.com, John Robinson jrobi...@... wrote:

 I have a strange issue with data binding not updating when an item in
 an ArrayCollection is changed. I'm using Cairngorm and have the
 following setup. In my ModelLocator I have a 'users' ArrayCollection
 that contains 'UserVO' objects. I have a two views that binds their
 dataProvider to the 'users' AC in the ModelLocator. My UserVO looks
 like so:

 package com.jrobinson.model.VO
 {
  [Bindable]
  public class UserVO
  {
  public var id:int = -1;
  public var username:String = null;
  public var enabled:Boolean = false;
  public var userData:XMLList = null;
  
  
  public function UserVO(user_id:int, uName:String, 
 enabled:Boolean,
 d:XMLList)
  {
  id = user_id;
  username = uName;
  enabled = enabled;
  userData = d;
  }

  }
 }

 I first have a command that loads all of the users and populates the
 AC. This updates the bindings as expected. I then have a second
 command that loads the userData portion for a given user. Once
 retrieved, I update the given UserVO's userData, but this time, the
 bindings fail to update.

 I feel like I've seen this before but can't find where or what the
 workaround might be. I guess I'm just looking for confirmation that
 this should or shouldn't work.

 Thanks!
 John





 

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






John Robinson - Flash/Flex Developer at large
Blog: http://jrobinsonmedia.wordpress.com


John Robinson - Flash/Flex Developer at large
Blog: http://jrobinsonmedia.wordpress.com




[flexcoders] Re: comboBox in datagrid

2009-03-10 Thread Libby
no, I 'm saying my comboBox displays whats in its data part of its array 
collection, not its label, when it receives a new batch of data. Your checkbox 
appears to do the same thing.



--- In flexcoders@yahoogroups.com, Anthony DeBonis anth...@... wrote:

 Are you talking about an example like this?
 You may be better off creating a reusable/testable component in separate AS 
 or MXML file.
 
 mx:Component
   mx:CheckBox creationComplete=init()
   mx:Script
   ![CDATA[
  
   private 
 var _data:Object; 
   private function init():void {  
   
 this.addEventListener(MouseEvent.CLICK, update);
   }   
 override 
 public function get data():Object {
   
 return _data; 
   }
  
   
 [Bindable]
   
 override public function set data(o:Object):void {
   
 _data = o;
   
 if(_data.checked == true) this.selected = true;
   
 else this.selected = false;
   }
  
   private 
 function update(event:MouseEvent):void {
   
 if(this.selected) _data.checked = true;
   
 else _data.checked = false;
   }
  
  
   ]]
   /mx:Script
 /mx:CheckBox
 /mx:Component





[flexcoders] Re: binding not updating for ArrayCollection when item changes?

2009-03-10 Thread Tim Hoff

Hi John,

I seem to remember that XMLList, like Array, isn't Bindable and doesn't
dispatch a propertyChange event.  You might try changing the public var
to a getter/setter and manually dispatching the event, or change the
XMLList to Object; to see if it makes a difference.  This is just a shot
in the dark, but let us know if it helps.

-TH

--- In flexcoders@yahoogroups.com, John Robinson jrobi...@... wrote:

 Nice catch! That didn't seem to be causing the problem but thanks for
 pointing it out.

 I've simplified the case in that I'm not calling the web service
 anymore, just flipping the enabled property but binding still is not
 updating. Any other ideas?

 Thanks,
 John

 On Mar 10, 2009, at 10:53 AM, valdhor wrote:

  I don't know if this is your problem but one thing I noticed is youu
  have an ambiguous set of your enabled property. You have
 
  enabled = enabled;
 
  which (I assume) is to set the enabled property of your class to the
  enabled parameter that is passed in. This won't work. You should
have
 
  this.enabled = enabled;
 
  or change one of the parameter names.
 
  --- In flexcoders@yahoogroups.com, John Robinson jrobinso@ wrote:
 
  I have a strange issue with data binding not updating when an item
in
  an ArrayCollection is changed. I'm using Cairngorm and have the
  following setup. In my ModelLocator I have a 'users'
ArrayCollection
  that contains 'UserVO' objects. I have a two views that binds their
  dataProvider to the 'users' AC in the ModelLocator. My UserVO looks
  like so:
 
  package com.jrobinson.model.VO
  {
  [Bindable]
  public class UserVO
  {
  public var id:int = -1;
  public var username:String = null;
  public var enabled:Boolean = false;
  public var userData:XMLList = null;
 
 
  public function UserVO(user_id:int, uName:String, enabled:Boolean,
  d:XMLList)
  {
  id = user_id;
  username = uName;
  enabled = enabled;
  userData = d;
  }
 
  }
  }
 
  I first have a command that loads all of the users and populates
the
  AC. This updates the bindings as expected. I then have a second
  command that loads the userData portion for a given user. Once
  retrieved, I update the given UserVO's userData, but this time, the
  bindings fail to update.
 
  I feel like I've seen this before but can't find where or what the
  workaround might be. I guess I'm just looking for confirmation that
  this should or shouldn't work.
 
  Thanks!
  John
 
 
 
 
 
  
 
  --
  Flexcoders Mailing List
  FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Alternative FAQ location:
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-\
1e62079f6847
  Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo
  ! Groups Links
 
 
 



 John Robinson - Flash/Flex Developer at large
 Blog: http://jrobinsonmedia.wordpress.com


 John Robinson - Flash/Flex Developer at large
 Blog: http://jrobinsonmedia.wordpress.com






RE: [flexcoders] calling a function from swf

2009-03-10 Thread Tracy Spratt
Application.application should work also.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Alain Thibodeau
Sent: Tuesday, March 10, 2009 3:31 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] calling a function from swf

 

Thanks Adrian! that will do the trick. 

In the meantime, I also found another way, not as elegant as yours

 

//inside the fla

var myParent = loaderInfo.loader.parent.parent;
 myParent.doSomething('do it');

 

thanks again

 

  _  

From: Adrian Williams adri...@familytreedna.com
To: flexcoders@yahoogroups.com
Sent: Tuesday, March 10, 2009 2:45:30 PM
Subject: Re: [flexcoders] calling a function from swf

This is pretty straightforward. We do a lot of this in our dashboard app
where we have a function called registerSWF( ).  This helps us keep tabs on
all the swf objects that are loaded on the dash.

private var registeredSWF: ArrayCollection = new
ArrayCollection( );
public function registerSWF( swf:Object) :void
{
registeredSWF. addItem(swf) ;
}

Each child swf calls this functions when they load:

application. registerSWF( this);

Then, when we need to access a function from within the child swf, we pull
it from the AC (so we can reference it) and directly call the function:

for each (var swf:Object in registeredSWF)
{
swf.someFunction( vars);
}

Keep in mind that the function in your child swf must be in the public scope
or the parent app cannot see it.

HTH,
Adrian


thibodeau.alain wrote: 

Hi all,
I am thinking this is simple, but I cannot find the proper way of doing
this. 

I have a flex application that loads a swf file. I want to be able to call a
function that is in the flex application from the swf file. 

From my fla I tried calling _root, Application. application, _parent... 

Anyone know how I can do this ?

thanks!

 

  _  

Be smarter than spam. See how smart SpamGuard is at giving junk email the
boot with the  http://ca.promos.yahoo.com/newmail/overview2/ All-new
Yahoo! Mail 





RE: [flexcoders] Re: binding not updating for ArrayCollection when item changes?

2009-03-10 Thread Tracy Spratt
Doh, I missed that.  That is definitely the case, XMLList is not bindable.
XML is, and also XMLListColelction is as well.  Object is not.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tim Hoff
Sent: Tuesday, March 10, 2009 4:28 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: binding not updating for ArrayCollection when item
changes?

 


Hi John,

I seem to remember that XMLList, like Array, isn't Bindable and doesn't
dispatch a propertyChange event. You might try changing the public var
to a getter/setter and manually dispatching the event, or change the
XMLList to Object; to see if it makes a difference. This is just a shot
in the dark, but let us know if it helps.

-TH

--- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
John Robinson jrobi...@... wrote:

 Nice catch! That didn't seem to be causing the problem but thanks for
 pointing it out.

 I've simplified the case in that I'm not calling the web service
 anymore, just flipping the enabled property but binding still is not
 updating. Any other ideas?

 Thanks,
 John

 On Mar 10, 2009, at 10:53 AM, valdhor wrote:

  I don't know if this is your problem but one thing I noticed is youu
  have an ambiguous set of your enabled property. You have
 
  enabled = enabled;
 
  which (I assume) is to set the enabled property of your class to the
  enabled parameter that is passed in. This won't work. You should
have
 
  this.enabled = enabled;
 
  or change one of the parameter names.
 
  --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com
ups.com, John Robinson jrobinso@ wrote:
 
  I have a strange issue with data binding not updating when an item
in
  an ArrayCollection is changed. I'm using Cairngorm and have the
  following setup. In my ModelLocator I have a 'users'
ArrayCollection
  that contains 'UserVO' objects. I have a two views that binds their
  dataProvider to the 'users' AC in the ModelLocator. My UserVO looks
  like so:
 
  package com.jrobinson.model.VO
  {
  [Bindable]
  public class UserVO
  {
  public var id:int = -1;
  public var username:String = null;
  public var enabled:Boolean = false;
  public var userData:XMLList = null;
 
 
  public function UserVO(user_id:int, uName:String, enabled:Boolean,
  d:XMLList)
  {
  id = user_id;
  username = uName;
  enabled = enabled;
  userData = d;
  }
 
  }
  }
 
  I first have a command that loads all of the users and populates
the
  AC. This updates the bindings as expected. I then have a second
  command that loads the userData portion for a given user. Once
  retrieved, I update the given UserVO's userData, but this time, the
  bindings fail to update.
 
  I feel like I've seen this before but can't find where or what the
  workaround might be. I guess I'm just looking for confirmation that
  this should or shouldn't work.
 
  Thanks!
  John
 
 
 
 
 
  
 
  --
  Flexcoders Mailing List
  FAQ:
http://groups.
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Alternative FAQ location:
https://share.
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e6
2079f6847 acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-\
1e62079f6847
  Search Archives:
http://www.mail-
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo
archive.com/flexcoders%40yahoogroups.comYahoo
  ! Groups Links
 
 
 



 John Robinson - Flash/Flex Developer at large
 Blog: http://jrobinsonmed http://jrobinsonmedia.wordpress.com
ia.wordpress.com


 John Robinson - Flash/Flex Developer at large
 Blog: http://jrobinsonmed http://jrobinsonmedia.wordpress.com
ia.wordpress.com






RE: [flexcoders] Re: comboBox in datagrid

2009-03-10 Thread Tracy Spratt
You probably need to specify the labelField.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Libby
Sent: Tuesday, March 10, 2009 4:24 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: comboBox in datagrid

 

no, I 'm saying my comboBox displays whats in its data part of its array
collection, not its label, when it receives a new batch of data. Your
checkbox appears to do the same thing.

--- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
Anthony DeBonis anth...@... wrote:

 Are you talking about an example like this?
 You may be better off creating a reusable/testable component in separate
AS or MXML file.
 
 mx:Component
 mx:CheckBox creationComplete=init()
 mx:Script
 ![CDATA[
 
 private var _data:Object; private function init():void {
this.addEventListener(MouseEvent.CLICK, update);
 } override public function get data():Object {
 return _data; 
 }
 
 [Bindable]
 override public function set data(o:Object):void {
 _data = o;
 if(_data.checked == true) this.selected = true;
 else this.selected = false;
 }
 
 private function update(event:MouseEvent):void {
 if(this.selected) _data.checked = true;
 else _data.checked = false;
 }
 
 
 ]]
 /mx:Script
 /mx:CheckBox
 /mx:Component






[flexcoders] Re: binding not updating for ArrayCollection when item changes?

2009-03-10 Thread Tim Hoff

Ha, doh back for Object. :)

-TH

--- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote:

 Doh, I missed that. That is definitely the case, XMLList is not
bindable.
 XML is, and also XMLListColelction is as well. Object is not.



 Tracy Spratt,

 Lariat Services, development services available

 _

 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
On
 Behalf Of Tim Hoff
 Sent: Tuesday, March 10, 2009 4:28 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: binding not updating for ArrayCollection
when item
 changes?




 Hi John,

 I seem to remember that XMLList, like Array, isn't Bindable and
doesn't
 dispatch a propertyChange event. You might try changing the public var
 to a getter/setter and manually dispatching the event, or change the
 XMLList to Object; to see if it makes a difference. This is just a
shot
 in the dark, but let us know if it helps.

 -TH

 --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com
ups.com,
 John Robinson jrobinso@ wrote:
 
  Nice catch! That didn't seem to be causing the problem but thanks
for
  pointing it out.
 
  I've simplified the case in that I'm not calling the web service
  anymore, just flipping the enabled property but binding still is not
  updating. Any other ideas?
 
  Thanks,
  John
 
  On Mar 10, 2009, at 10:53 AM, valdhor wrote:
 
   I don't know if this is your problem but one thing I noticed is
youu
   have an ambiguous set of your enabled property. You have
  
   enabled = enabled;
  
   which (I assume) is to set the enabled property of your class to
the
   enabled parameter that is passed in. This won't work. You should
 have
  
   this.enabled = enabled;
  
   or change one of the parameter names.
  
   --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com
 ups.com, John Robinson jrobinso@ wrote:
  
   I have a strange issue with data binding not updating when an
item
 in
   an ArrayCollection is changed. I'm using Cairngorm and have the
   following setup. In my ModelLocator I have a 'users'
 ArrayCollection
   that contains 'UserVO' objects. I have a two views that binds
their
   dataProvider to the 'users' AC in the ModelLocator. My UserVO
looks
   like so:
  
   package com.jrobinson.model.VO
   {
   [Bindable]
   public class UserVO
   {
   public var id:int = -1;
   public var username:String = null;
   public var enabled:Boolean = false;
   public var userData:XMLList = null;
  
  
   public function UserVO(user_id:int, uName:String,
enabled:Boolean,
   d:XMLList)
   {
   id = user_id;
   username = uName;
   enabled = enabled;
   userData = d;
   }
  
   }
   }
  
   I first have a command that loads all of the users and populates
 the
   AC. This updates the bindings as expected. I then have a second
   command that loads the userData portion for a given user. Once
   retrieved, I update the given UserVO's userData, but this time,
the
   bindings fail to update.
  
   I feel like I've seen this before but can't find where or what
the
   workaround might be. I guess I'm just looking for confirmation
that
   this should or shouldn't work.
  
   Thanks!
   John
  
  
  
  
  
   
  
   --
   Flexcoders Mailing List
   FAQ:
 http://groups.
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Alternative FAQ location:
 https://share.

https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf\
-1e6
 2079f6847 acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-\
 1e62079f6847
   Search Archives:
 http://www.mail-
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo
 archive.com/flexcoders%40yahoogroups.comYahoo
   ! Groups Links
  
  
  
 
 
 
  John Robinson - Flash/Flex Developer at large
  Blog: http://jrobinsonmed http://jrobinsonmedia.wordpress.com
 ia.wordpress.com
 
 
  John Robinson - Flash/Flex Developer at large
  Blog: http://jrobinsonmed http://jrobinsonmedia.wordpress.com
 ia.wordpress.com
 






[flexcoders] Re: binding not updating for ArrayCollection when item changes?

2009-03-10 Thread valdhor
How do you update a given UserVO's userData? Do you directly access the
public properties?

I have never done it this way - I use getters and setters...

package com.jrobinson.model.VO
{
 [Bindable]
 public class UserVO
 {
 private var _id:int = -1;
 private var _username:String = null;
 private var _enabled:Boolean = false;
 private var _userData:XMLList = null;

 public function UserVO(id:int, username:String, enabled:Boolean,
userData:XMLList)
 {
 _id = id;
 _username = username;
 _enabled = enabled;
 _userData = userData;
 }

 //accessor methods
 public function get id():int {return _id;}
 public function get username():String {return _username;}
 public function get enabled():Boolean {return _enabled;}
 public function get userData():XMLList {return _userData;}

 //mutator methods
 public function set id(id:int):void {_id = id;}
 public function set username(username:String):void {_username =
username;}
 public function set enabled(enabled:Boolean):void {_enabled =
enabled;}
 public function set userData(userData:XMLList):void {_userData =
userData;}
 }
}



--- In flexcoders@yahoogroups.com, John Robinson jrobi...@... wrote:

 Nice catch! That didn't seem to be causing the problem but thanks for
 pointing it out.

 I've simplified the case in that I'm not calling the web service
 anymore, just flipping the enabled property but binding still is not
 updating. Any other ideas?

 Thanks,
 John

 On Mar 10, 2009, at 10:53 AM, valdhor wrote:

  I don't know if this is your problem but one thing I noticed is youu
  have an ambiguous set of your enabled property. You have
 
  enabled = enabled;
 
  which (I assume) is to set the enabled property of your class to the
  enabled parameter that is passed in. This won't work. You should
have
 
  this.enabled = enabled;
 
  or change one of the parameter names.
 
  --- In flexcoders@yahoogroups.com, John Robinson jrobinso@ wrote:
 
  I have a strange issue with data binding not updating when an item
in
  an ArrayCollection is changed. I'm using Cairngorm and have the
  following setup. In my ModelLocator I have a 'users'
ArrayCollection
  that contains 'UserVO' objects. I have a two views that binds their
  dataProvider to the 'users' AC in the ModelLocator. My UserVO looks
  like so:
 
  package com.jrobinson.model.VO
  {
   [Bindable]
   public class UserVO
   {
public var id:int = -1;
public var username:String = null;
public var enabled:Boolean = false;
public var userData:XMLList = null;
 
 
public function UserVO(user_id:int, uName:String,
enabled:Boolean,
  d:XMLList)
{
 id = user_id;
 username = uName;
 enabled = enabled;
 userData = d;
}
 
   }
  }
 
  I first have a command that loads all of the users and populates
the
  AC. This updates the bindings as expected. I then have a second
  command that loads the userData portion for a given user. Once
  retrieved, I update the given UserVO's userData, but this time, the
  bindings fail to update.
 
  I feel like I've seen this before but can't find where or what the
  workaround might be. I guess I'm just looking for confirmation that
  this should or shouldn't work.
 
  Thanks!
  John
 
 
 
 
 
  
 
  --
  Flexcoders Mailing List
  FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Alternative FAQ location:
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-\
1e62079f6847
  Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo
  ! Groups Links
 
 
 



 John Robinson - Flash/Flex Developer at large
 Blog: http://jrobinsonmedia.wordpress.com


 John Robinson - Flash/Flex Developer at large
 Blog: http://jrobinsonmedia.wordpress.com




RE: [flexcoders] Urgent Prob - cant debug after upgrading to new player

2009-03-10 Thread Tracy Spratt
Did you verify the player install by hitting the test website?

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of reflexactions
Sent: Tuesday, March 10, 2009 3:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Urgent Prob - cant debug after upgrading to new player

 

I upgraded to the new flash player earlier today and now I cant debug in FB.

I have tried everything including uninstalling the FPlayer using the
uninstall tool, reboot, install debug player, run from FB (standalone), IE8
opens with the app but FB says still waiting for the player to connect.

I used netstat -a and FB is listening on port 7935, but the app wont
connect, even if I try to manually force it by using the context menu it
won't connect.

I have tried down grading but that doesnt work

I cant find anything to get back to debugging and its a problem 'cos I cant
work at all.

Help!





[flexcoders] Building Custom ActionScript Components with Skins

2009-03-10 Thread adamduro
So I am trying to build out a custom SimpleMp3player component. Here is a 
screen shot of what the current design for this looks like:

http://storage.duromedia.com/mp3_player_ui.jpg

I want to create a custom component that will contain all the functionality 
that the above UI illustrates, but I want to make the component as easily 
skinable for the future as possible. Preferably skinable by a designer, and not 
a developer.

I have considered a few routes. 

1) The one I am most comfortable with is building a custom component with the 
Flash IDE, and custom AS3 classes, then export out using the Flex Component 
Kit. As far as I can see, the draw back to that is the skin has to be 
customized using the Flash IDE from then on out.

2) The other route I considered was building the whole thing in Flex, and using 
a style attribute to feed in a SWF based skin file. This is something I'm 
starting to get more familiar with, but I'm still a long ways off from 
mastering the art of pure Flex custom components.

First off, if anyone has any opinions on which of the above two routes would be 
best, please speak up. If there are other routes to take, do tell.

Second, If anyone has any good resources (besides the Flex 3 LiveDocs) on 
building out custom components that utilize Skins as outlined in option 2, 
please pass those along.

Third, if anyone feels like tackling any of these specific questions, I would 
love some help:

- When creating a skinnable ActionScript component, do I have to create a style 
property for each UI element? (ie. playButtonUp, playButtonDown, seekBarTrack, 
seekBar, etc.)

- Can I use the skin file to put together the layout of the component, or do I 
have to do that programatically with ActionScript? I would love if I could do a 
layout in Illustrator that had all the elements of the MusicPlayer component 
positioned where I want them, and then feed in a single Symbol (containing the 
other symbols) so that the UI component maintained the layout as it was set in 
Illustrator.


Any help with any of the above would be met with great appreciation.

Best,

Adam Duro
DuroMedia: Web Developer
W: www.duromedia.com



RE: [flexcoders] Re: Turn all keyboard input into upper-case for all TextInput and TextArea

2009-03-10 Thread Gordon Smith
In a handler for the 'textInput' event, set event.text = 
event.text.toUpperCase(). The 'textInput' event is dispatched after the text 
has been typed (or converted by an IME) but before it has been inserted into 
the TextField. The 'change' event is dispatched after the text has been 
inserted.

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of per.olesen
Sent: Tuesday, March 10, 2009 1:19 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Turn all keyboard input into upper-case for all 
TextInput and TextArea


--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex 
Harui aha...@... wrote:

 Unfortunately, the text controls don't use events as input events, but 
 dispatch them as notifications instead, so you can't fake events to them.


Okay, that explains why dispatching KeyboardEvent on TextField and TextEvent on 
TextInput doesn't work :-(

 Most brute force way is to set text to toUpperCase on the change event. Could 
 be slow on large strings and you may have to track and restore selection.

We got something near working with this approach, but yes, it resets selection, 
puts cursor in front of text etc. All things we will need to track and change 
then.

Any other good ideas out there?



[flexcoders] Re: comboBox in datagrid

2009-03-10 Thread Libby
I wish...no, I'm using labelField in one and a labelFunction in another one, 
but these are not invoked until you actually click on the dropdown. Thus, when 
data is first retrieved into the dropdown, the darned thing is displaying the 
data field rather than the label: field. Should I be firing off something to 
force the dropdown to update when the data comes in?


--- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote:

 You probably need to specify the labelField.
 
  
 
 Tracy Spratt,
 
 Lariat Services, development services available
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of Libby
 Sent: Tuesday, March 10, 2009 4:24 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: comboBox in datagrid
 
  
 
 no, I 'm saying my comboBox displays whats in its data part of its array
 collection, not its label, when it receives a new batch of data. Your
 checkbox appears to do the same thing.
 
 --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
 Anthony DeBonis anthony@ wrote:
 
  Are you talking about an example like this?
  You may be better off creating a reusable/testable component in separate
 AS or MXML file.
  
  mx:Component
  mx:CheckBox creationComplete=init()
  mx:Script
  ![CDATA[
  
  private var _data:Object; private function init():void {
 this.addEventListener(MouseEvent.CLICK, update);
  } override public function get data():Object {
  return _data; 
  }
  
  [Bindable]
  override public function set data(o:Object):void {
  _data = o;
  if(_data.checked == true) this.selected = true;
  else this.selected = false;
  }
  
  private function update(event:MouseEvent):void {
  if(this.selected) _data.checked = true;
  else _data.checked = false;
  }
  
  
  ]]
  /mx:Script
  /mx:CheckBox
  /mx:Component
 





[flexcoders] Re: Text Looks Ugly When PrintAsBitmap=true

2009-03-10 Thread Amy
--- In flexcoders@yahoogroups.com, pliechty pliec...@... wrote:

 We print images in our application. I can print fine with 
 printAsBitmap=false, but I want to set the smooth flag on the image. I have 
 to set printAsBitmap=true to get the smooth flag to take effect, but my text 
 looks horrible. Is there a way to have smooth images and nice looking text?


What happens if you set the blendMode to layer on the text that you are 
printing?



Re: [flexcoders] Re: Problem in sorting XMLList collection as a dataProvider for the list

2009-03-10 Thread geeky developer
Thanks to all those who replied, Following links strategy does work for me,
My XML's structure was little weird and I was expecting to use some inbuilt
sorting capability but I guess as recommended by few folks I have to custom
and I followed the following link helpful, Anyone else is seeking soem
complex sortign the link might be helpful

http://www.parallelcoding.com/2008/10/20/sorting-a-xmllistcollection-in-flex/



On Mon, Mar 9, 2009 at 1:09 PM, foobone9 foobo...@yahoo.com wrote:

   It's a class property array. That line is simply showing a way to fall
 back to other compare field properties if none are provided via the 'fields'
 parameter.

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, geeky
 developer geekydevelo...@... wrote:
 
  Hi foobone9I am trying to implement your sent/recommended code but it is
 not

  recognizing internalPropList in line
  var propList:Array = fields ? fields : internalPropList;.
 
  What exactly in internalPropList here?
  Anyone has any idea,
  Thanks all for your reply and help
 
  .
 
 
  On Thu, Mar 5, 2009 at 4:57 PM, foobone9 foobo...@... wrote:
 
  
   There is a nice example in the Sort class documentation:
  
  
  
 http://livedocs.adobe.com/flex/3/langref/mx/collections/Sort.html#compareFunction
  
  
   --- In flexcoders@yahoogroups.com 
   flexcoders%40yahoogroups.comflexcoders%
 40yahoogroups.com, crazy
   developer geekydeveloper@ wrote:
   
Hi Thanks for replying
What does we mean by custom sort compare function, Can we provide any
examples of both sort and sort compare functions or little more
 details
about what and how does we do that?
Thanks much fro your help
   
   
   
On Thu, Mar 5, 2009 at 11:24 AM, Alex Harui aharui@ wrote:
   
 If you have a labelfunction, you'll probably need a custom
 sortcompare
 function



 Alex Harui

 Flex SDK Developer

 Adobe Systems Inc. http://www.adobe.com/
  

 Blog: http://blogs.adobe.com/aharui



 *From:* flexcoders@yahoogroups.com 
 flexcoders%40yahoogroups.comflexcoders%
 40yahoogroups.com[mailto:
   flexcoders@yahoogroups.com flexcoders%40yahoogroups.com flexcoders%
 40yahoogroups.com] *On
 Behalf Of *anuj181
 *Sent:* Wednesday, March 04, 2009 3:51 PM
 *To:* flexcoders@yahoogroups.com 
 flexcoders%40yahoogroups.comflexcoders%
 40yahoogroups.com

 *Subject:* [flexcoders] Problem in sorting XMLList collection as a
 dataProvider for the list



 Hi Guys

 I am trying to sort the xmllist collection which is the
 dataprovider
   for
 the list. As the implementation of name-value pairs, i am
 displaying
   the
 entries in form of string in List and would like to sort all the
 data
 displayed in the List alphabetically, I am making a call through
 amfphp
   call
 to grab data from backend and populate XMLListCollection but now I
 need
   to
 sort the data in the list. Below is the code,Can anyone please help
 me
   where
 I am messing things up. Also please let me know if there is any
   question
 regarding the code and if there is better way of doing it.

 Thanks

 /**CODE/

 mx:RemoteObject id=amfSetup source=Setup destination=amfphp
 mx:method name=getList result=getListHandler(event);
 fault=getListFault(event);/
 /mx:RemoteObject

 [Bindable] private var entriesXmlListFull:XMLList;
 [Bindable] private var entriesXmlCollection:XMLListCollection;


 public function getListHandler(event:ResultEvent):void
 {

 entriesXmlListFull = XML(event.result).device;
 populateEntries();
 }
 private function getListFault(event:FaultEvent):void
 {
 Alert.Show(Error retreiving Data);
 }

 //Displaying names need to be displayed in the List box
 private function entriesLabelFunc(item:Object):String
 {
 var xmlItem:XML = item as XML;

 return xmlItem..attribute.(@name==friendlyname);
 }

 //Populating List with XML Objects
 private function populateEntries():void
 {
 entriesXmlCollection = new XMLListCollection();

 for each(var item:XML in entriesXmlListFull)
 {

 var friendlyName:String = item..attribute.(@name==friendlyname);
 //Only add camera type
 if ( !recordValue  hasFriendlyName  (itemType.toUpperCase() ==
 CAMERA) )
 {
 entriesXmlCollection.addItem(item);
 }
 }

 //Calling Sort on XMLList collection
 entriesXmlCollection.sort = sortList;
 entriesXmlCollection.refresh();


 }


 mx:Sort id=sortList
 mx:fields
 mx:SortField name=* caseInsensitive=true /
 /mx:fields
 /mx:Sort

 mx:List id=listData dataProvider={entriesXmlCollection}
 labelFunction=entriesLabelFunc/



   
  
  
  
 

  



[flexcoders] How to get RemoteClass alias?

2009-03-10 Thread limscoder
I have the following metadata attached to a class:
[RemoteClass(alias=models.User)]
public class User...

Is there a way to retrieve the alias string from the class?



[flexcoders] Re: Using icons on buttons?

2009-03-10 Thread daniel.koestler
Hmm, if you wanted more control over the graphics in a button, what would you 
suggest using? I thought about subclassing the button or writing my own, but 
perhaps there's a way to skin it? 



Re: [flexcoders] Re: Text Looks Ugly When PrintAsBitmap=true

2009-03-10 Thread Alain Thibodeau
what is the font used? If blend mode doesn't work...you might want to try 
embeding the font or at least the chars that you are using...Not the best 
solution for swf size, but see if that makes a difference





From: Amy amyblankens...@bellsouth.net
To: flexcoders@yahoogroups.com
Sent: Tuesday, March 10, 2009 5:35:40 PM
Subject: [flexcoders] Re: Text Looks Ugly When PrintAsBitmap=true


--- In flexcod...@yahoogro ups.com, pliechty pliec...@.. . wrote:

 We print images in our application. I can print fine with printAsBitmap= 
 false, but I want to set the smooth flag on the image. I have to set 
 printAsBitmap= true to get the smooth flag to take effect, but my text looks 
 horrible. Is there a way to have smooth images and nice looking text?


What happens if you set the blendMode to layer on the text that you are 
printing?





  __
Ask a question on any topic and get answers from real people. Go to Yahoo! 
Answers and share what you know at http://ca.answers.yahoo.com

Re: [flexcoders] Re: Using icons on buttons?

2009-03-10 Thread Alain Thibodeau
If you have the Flash IDE and flex component kit installed, there are templates 
for skinning. There is one specific for the button. You can skin in flash with 
full control of the look you want, then export as swc. In flex open your css 
file in design mode and with the tools at the top you can add a new class. 
Create a new one based on the Button and in the right tabs you can change the 
skin with the swc you created from flash...

Alternatly you can create images for each state and do the same as described 
above in Flex, but instead of selecting your swc you can select the images you 
created for each state...

Don't forget for to use scale 9 to make your buttons scalable (if needed)

HTH





From: daniel.koestler daniel.koest...@yahoo.com
To: flexcoders@yahoogroups.com
Sent: Tuesday, March 10, 2009 5:28:02 PM
Subject: [flexcoders] Re: Using icons on buttons?


Hmm, if you wanted more control over the graphics in a button, what would you 
suggest using? I thought about subclassing the button or writing my own, but 
perhaps there's a way to skin it? 





  __
Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo! 
Canada Messenger at http://ca.beta.messenger.yahoo.com/

[flexcoders] Re: Problem with custom component tabbing in TabNavigator

2009-03-10 Thread aceoohay
Well it appears that after rooting around for hours, I found that setting 
FocusEnabled to false on the textInput object fixed everything up.

Paul

--- In flexcoders@yahoogroups.com, aceoohay pa...@... wrote:

 
 
 I have created an extension of the DateField() (ValidatedDateField())
 component. The main purpose of this extension is to call an extension to
 the TextInput component.
 
 Everything seems to work swimmingly. I have found that in some cases
 however, the tab key (tab index order) handling gets messed up. Because
 of the poor tab handling design in flex, the method that we use to
 control the tab order is by placing the fields in the order in the mxml
 file that we want. This seems to work most of the time.
 
 I have found that on forms where the custom datefield components are in
 a TabNavigator canvas that the ValidatedDateField() that I have created
 will cause the tab order to break. In one case it causes the focus to go
 to a dataGrid in another container above the one the
 ValidatedDateField() is in. My best guess is that it causes the next
 field to be the first editable field within the TabNavigator canvas that
 the datefield is in.
 
 If I make the field editable=false, the tabbing seems to work fine
 irrespective of the TabNavigator.
 
 My conclusion is that when the custom TextInput portion of the
 DateField gets instantsiated the tab order gets hosed.
 
 I have looked through the code for the ComboBase and DateField to see if
 I can tell where the tab order gets defined and I can't see it. I saw a
 line that says;
 
 textInput.parentDrawsFocus = true;
 
 and thought that might have something to do with it, but I can't
 replicate that in my code, I get an inaccessible error.
 
 If my assumption that I am not creating the textInput component
 correctly is true, the question is;
 
 How can I ensure that the custom textInput component portion of my
 DateField component gets the same tab order as the DateField itself?
 
 Here is the creatChildren method of the custom DateField Component;
 
 
 override protected function createChildren():void  { 
 super.createChildren();removeChild(textInput);   
 if(this.textInput){ // Use ValidatedTextInput instead of TextInput
 and Setup various fields   //needed by ValidatedTextInput
 textInput = new ValidatedTextInput(); textInput[dataType] =
 date; textInput[formatter] = _dateFormat;
 textInput[minDataChars] = _minDataChars; textInput[maxDataChars]
 = _maxDataChars; textInput[minValue] = _minValue;
 textInput[maxValue] = _maxValue; textInput[id] = vti +
 this.id; textInput[rootOwner] = this.parent;
 textInput[charactersAlsoPermitted] = _charactersAlsoPermitted;
 textInput[formatData] = _formatData; textInput[doValidateData] =
 _doValidateData; textInput[defaultValue] = _defaultValue; 
 textInput.addEventListener(focusOut,updateTextValue)
 textInput.addEventListener(textChanged,updateTextValue)
 addChild(textInput);}  }
 
 Since the application that I am working on contains a number of heads
 down data entry environments, this is a critical issue for me.
 
 
 All help is greatly appreciated.
 
 Paul





[flexcoders] Re: Urgent Prob - cant debug after upgrading to new player

2009-03-10 Thread reflexactions
Umm what test website do I hit and how to verify???

If you mean the player webspage that says you have version  installed  
etc. then yes I did and it said I had 10.xxx correctly installed...

Actually the application runs perfectly fine and it says player 10 in the About 
box etc. its just it wont connect to the debugger at all thats the only 
problem. I even created a new empty project, I also tried deleting mm.cfg, 
anyhting I could think off all to no effect.

I couldn't wait any longer and so I did a system restore on Vista back to 24hrs 
ago and that fixed it and debugging works again.

So now debugging works, well at least 50% of the time that is, the rest of the 
time it hangs during loading but that at least is an offical bug that is being 
worked on and I can live with the current work around.

tks

--- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote:

 Did you verify the player install by hitting the test website?
 
  
 
 Tracy Spratt,
 
 Lariat Services, development services available
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of reflexactions
 Sent: Tuesday, March 10, 2009 3:27 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Urgent Prob - cant debug after upgrading to new player
 
  
 
 I upgraded to the new flash player earlier today and now I cant debug in FB.
 
 I have tried everything including uninstalling the FPlayer using the
 uninstall tool, reboot, install debug player, run from FB (standalone), IE8
 opens with the app but FB says still waiting for the player to connect.
 
 I used netstat -a and FB is listening on port 7935, but the app wont
 connect, even if I try to manually force it by using the context menu it
 won't connect.
 
 I have tried down grading but that doesnt work
 
 I cant find anything to get back to debugging and its a problem 'cos I cant
 work at all.
 
 Help!





RE: [flexcoders] Re: Urgent Prob - cant debug after upgrading to new player

2009-03-10 Thread Tracy Spratt
This is the test site, I couldn't remember it and had to google to find it..

http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15507

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of reflexactions
Sent: Tuesday, March 10, 2009 8:53 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Urgent Prob - cant debug after upgrading to new
player

 

Umm what test website do I hit and how to verify???

If you mean the player webspage that says you have version  installed
etc. then yes I did and it said I had 10.xxx correctly installed...

Actually the application runs perfectly fine and it says player 10 in the
About box etc. its just it wont connect to the debugger at all thats the
only problem. I even created a new empty project, I also tried deleting
mm.cfg, anyhting I could think off all to no effect.

I couldn't wait any longer and so I did a system restore on Vista back to
24hrs ago and that fixed it and debugging works again.

So now debugging works, well at least 50% of the time that is, the rest of
the time it hangs during loading but that at least is an offical bug that is
being worked on and I can live with the current work around.

tks

--- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
Tracy Spratt tspr...@... wrote:

 Did you verify the player install by hitting the test website?
 
 
 
 Tracy Spratt,
 
 Lariat Services, development services available
 
 _ 
 
 From: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
[mailto:flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com]
On
 Behalf Of reflexactions
 Sent: Tuesday, March 10, 2009 3:27 PM
 To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
 Subject: [flexcoders] Urgent Prob - cant debug after upgrading to new
player
 
 
 
 I upgraded to the new flash player earlier today and now I cant debug in
FB.
 
 I have tried everything including uninstalling the FPlayer using the
 uninstall tool, reboot, install debug player, run from FB (standalone),
IE8
 opens with the app but FB says still waiting for the player to connect.
 
 I used netstat -a and FB is listening on port 7935, but the app wont
 connect, even if I try to manually force it by using the context menu it
 won't connect.
 
 I have tried down grading but that doesnt work
 
 I cant find anything to get back to debugging and its a problem 'cos I
cant
 work at all.
 
 Help!






RE: [flexcoders] Re: comboBox in datagrid

2009-03-10 Thread Tracy Spratt
No, you shouldn't have to do anything like that.  Normal behavior for a
combo box is to display nothing until a user interacts with it, selectedItem
is null and selectedindex is -1.  If yours is doing something else then
there is code doing it.  Is it a stock ComboBox?  It sounds like someone has
overridden the internal text field.

 

Or ha, there is a prompt specified that is a code value.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Libby
Sent: Tuesday, March 10, 2009 6:11 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: comboBox in datagrid

 

I wish...no, I'm using labelField in one and a labelFunction in another one,
but these are not invoked until you actually click on the dropdown. Thus,
when data is first retrieved into the dropdown, the darned thing is
displaying the data field rather than the label: field. Should I be
firing off something to force the dropdown to update when the data comes in?

--- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
Tracy Spratt tspr...@... wrote:

 You probably need to specify the labelField.
 
 
 
 Tracy Spratt,
 
 Lariat Services, development services available
 
 _ 
 
 From: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
[mailto:flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com]
On
 Behalf Of Libby
 Sent: Tuesday, March 10, 2009 4:24 PM
 To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
 Subject: [flexcoders] Re: comboBox in datagrid
 
 
 
 no, I 'm saying my comboBox displays whats in its data part of its array
 collection, not its label, when it receives a new batch of data. Your
 checkbox appears to do the same thing.
 
 --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
 Anthony DeBonis anthony@ wrote:
 
  Are you talking about an example like this?
  You may be better off creating a reusable/testable component in separate
 AS or MXML file.
  
  mx:Component
  mx:CheckBox creationComplete=init()
  mx:Script
  ![CDATA[
  
  private var _data:Object; private function init():void {
 this.addEventListener(MouseEvent.CLICK, update);
  } override public function get data():Object {
  return _data; 
  }
  
  [Bindable]
  override public function set data(o:Object):void {
  _data = o;
  if(_data.checked == true) this.selected = true;
  else this.selected = false;
  }
  
  private function update(event:MouseEvent):void {
  if(this.selected) _data.checked = true;
  else _data.checked = false;
  }
  
  
  ]]
  /mx:Script
  /mx:CheckBox
  /mx:Component
 






[flexcoders] Re: Is there a way to detect mouse button state without tracking events?

2009-03-10 Thread Dave Kong
Thanks, Alex

There are a few bugs, this seems to be a core one: 
https://bugs.adobe.com/jira/browse/FP-289

--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 Quite frankly, I'm not sure there is a solution to these kinds of problems 
 with wmode.  I'll bet there's already a bug filed, but if not, please file 
 one.
 
 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of Dave Kong
 Sent: Monday, March 09, 2009 2:08 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Is there a way to detect mouse button state without 
 tracking events?
 
 
 Thanks for the suggestion.
 
 The problem is that when wmode=transparent on FF, if mouse button is already 
 down (dragging scrollbar), and I exit the stage, MOUSE_LEAVE is not fired (or 
 was eaten by a framework handler somewhere). But if mouse button is UP, then 
 I do see a MOUSE_LEAVE event, but that doesn't help me.
 
 Problem is that the mouseUP is never processed when I'm outside the stage, so 
 on re-entry, buttonDown is always true when it shouldn't be...
 
 --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, 
 sunild99 sunilbdave@ wrote:
 
  Hi,
 
  You can use Event.MOUSE_LEAVE to detect when mouse has left the stage.
 
  You can listen for MouseEvent.MOUSE_MOVE if you need to know when the mouse 
  is back.
 
  Can you listen for MOUSE_LEAVE and dispatch your own MOUSE_UP event to stop 
  the list from scrolling?
 
  Sunil
 
 
  --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, 
  Dave Kong davekong@ wrote:
  
   This is a very urgent issue for us. =( Any help is deeply appreciated!
  
   On Thu, Mar 5, 2009 at 5:14 PM, Dave Kong davekong@ wrote:
  
I need to find out at this particular moment, if the mouse button is up
or down.
   
Trying to work around the issue with wmode=transparent in FF. If I 
scroll a
list, and drags cursor outside of the player and then releases the 
button.
That mouseUp event is never captured by Flash Player, so when I move 
mouse
cursor back, buttonDown is always true for all mouse events. So I need a
workaround on moues re-entry to detect if button is truly down, if not, 
call
the scrollThumb's releaseButton function so it won't keep on scrolling.
   
Thanks!
   
   
   
  
 





[flexcoders] FocusManager fun... Tab Loops redux

2009-03-10 Thread aceoohay
In reading the page;

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/managers/FocusManager.html

It seems like just the right tool to handle a major deficiency in Flex. 
Basically the inability to create tab loops for containers. 

I use a somewhat modified version of the SuperPanel component which is an 
extension of the panel component for all of the data entry forms in my 
application. I envisioned creating a FocusManager in the SuperPanel, and viola 
I would have a custom tab loop for each of my data entry screens.

Unfortunately, it isn't that simple (it seldom is). I added a private variable 
to the component of the type FocusManager. Flex of course wants to add 
mx.managers.FocusManager, and we probably want fl.managers.FocusManager the 
flash version, since the mx version generates 2025 RT errors anytime you click 
on any object in the container that is assigned to a separate/custom 
focusmanager.

The full error is;

Error #2025: The supplied DisplayObject must be a child of the caller.

So has anyone else tried to create a flex component with a separate tab loop, 
if so how did you make it work?

Has anyone worked with the fl.managers.FocusManager component? Is it the same 
as the mx.managers.FocusManager? Is it possible to get either one to do what I 
want? Which is to encapsulate a tab loop with in a container. How?

Paul



Re: [flexcoders] Urgent Prob - cant debug after upgrading to new player

2009-03-10 Thread Nathaniel Skiba
Did you upgrade to the debug version or the regular version? If you
upgraded to the regular version, then you can fix the problem by
downloading one of the debugger versions from
http://www.adobe.com/support/flashplayer/downloads.html.

reflexactions wrote:
 I upgraded to the new flash player earlier today and now I cant debug in FB.

 I have tried everything including uninstalling the FPlayer using the 
 uninstall tool, reboot, install debug player, run from FB (standalone), IE8 
 opens with the app but FB says still waiting for the player to connect.

 I used netstat -a and FB is listening on port 7935, but the app wont connect, 
 even if I try to manually force it by using the context menu it won't connect.

 I have tried down grading but that doesnt work

 I cant find anything to get back to debugging and its a problem 'cos I cant 
 work at all.

 Help!



 

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



   



[flexcoders] Re: FocusManager fun... Tab Loops redux

2009-03-10 Thread aceoohay
After playing around a bit more I am leaning towards the fact that the mx and 
fl might be the same, and the 2025 error is caused by something I am doing (or 
not).

If the panel has focus I can tab around it, and type, but as soon as I click a 
mouse anywhere in the application it dies in SystemManager on a getChildIndex 
fired by the mouseDownHandler.

Any help is appreciated.

Paul


--- In flexcoders@yahoogroups.com, aceoohay pa...@... wrote:

 In reading the page;
 
 http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/managers/FocusManager.html
 
 It seems like just the right tool to handle a major deficiency in Flex. 
 Basically the inability to create tab loops for containers. 
 
 I use a somewhat modified version of the SuperPanel component which is an 
 extension of the panel component for all of the data entry forms in my 
 application. I envisioned creating a FocusManager in the SuperPanel, and 
 viola I would have a custom tab loop for each of my data entry screens.
 
 Unfortunately, it isn't that simple (it seldom is). I added a private 
 variable to the component of the type FocusManager. Flex of course wants to 
 add mx.managers.FocusManager, and we probably want fl.managers.FocusManager 
 the flash version, since the mx version generates 2025 RT errors anytime you 
 click on any object in the container that is assigned to a separate/custom 
 focusmanager.
 
 The full error is;
 
 Error #2025: The supplied DisplayObject must be a child of the caller.
 
 So has anyone else tried to create a flex component with a separate tab loop, 
 if so how did you make it work?
 
 Has anyone worked with the fl.managers.FocusManager component? Is it the same 
 as the mx.managers.FocusManager? Is it possible to get either one to do what 
 I want? Which is to encapsulate a tab loop with in a container. How?
 
 Paul





RE: [flexcoders] Re: FocusManager fun... Tab Loops redux

2009-03-10 Thread Alex Harui
You can't use fl.*.* classes in Flex apps.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of aceoohay
Sent: Tuesday, March 10, 2009 8:28 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: FocusManager fun... Tab Loops redux


After playing around a bit more I am leaning towards the fact that the mx and 
fl might be the same, and the 2025 error is caused by something I am doing (or 
not).

If the panel has focus I can tab around it, and type, but as soon as I click a 
mouse anywhere in the application it dies in SystemManager on a getChildIndex 
fired by the mouseDownHandler.

Any help is appreciated.

Paul

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, 
aceoohay pa...@... wrote:

 In reading the page;

 http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/managers/FocusManager.html

 It seems like just the right tool to handle a major deficiency in Flex. 
 Basically the inability to create tab loops for containers.

 I use a somewhat modified version of the SuperPanel component which is an 
 extension of the panel component for all of the data entry forms in my 
 application. I envisioned creating a FocusManager in the SuperPanel, and 
 viola I would have a custom tab loop for each of my data entry screens.

 Unfortunately, it isn't that simple (it seldom is). I added a private 
 variable to the component of the type FocusManager. Flex of course wants to 
 add mx.managers.FocusManager, and we probably want fl.managers.FocusManager 
 the flash version, since the mx version generates 2025 RT errors anytime you 
 click on any object in the container that is assigned to a separate/custom 
 focusmanager.

 The full error is;

 Error #2025: The supplied DisplayObject must be a child of the caller.

 So has anyone else tried to create a flex component with a separate tab loop, 
 if so how did you make it work?

 Has anyone worked with the fl.managers.FocusManager component? Is it the same 
 as the mx.managers.FocusManager? Is it possible to get either one to do what 
 I want? Which is to encapsulate a tab loop with in a container. How?

 Paul




RE: [flexcoders] Re: comboBox in datagrid

2009-03-10 Thread Alex Harui
I think we need to see some code, like how the renderer is set up.  A combobox 
in a datagrid is a renderer so its data setter will fire setting the 
selectedItem to the item's dataField assigned to its column.  The question is 
why itemToLabel and the labelFunction didn't do its thing.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Tracy Spratt
Sent: Tuesday, March 10, 2009 7:27 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: comboBox in datagrid

No, you shouldn't have to do anything like that.  Normal behavior for a combo 
box is to display nothing until a user interacts with it, selectedItem is null 
and selectedindex is -1.  If yours is doing something else then there is code 
doing it.  Is it a stock ComboBox?  It sounds like someone has overridden the 
internal text field.

Or ha, there is a prompt specified that is a code value.

Tracy Spratt,
Lariat Services, development services available

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Libby
Sent: Tuesday, March 10, 2009 6:11 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: comboBox in datagrid


I wish...no, I'm using labelField in one and a labelFunction in another one, 
but these are not invoked until you actually click on the dropdown. Thus, when 
data is first retrieved into the dropdown, the darned thing is displaying the 
data field rather than the label: field. Should I be firing off something to 
force the dropdown to update when the data comes in?

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Tracy 
Spratt tspr...@... wrote:

 You probably need to specify the labelField.



 Tracy Spratt,

 Lariat Services, development services available

 _

 From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On
 Behalf Of Libby
 Sent: Tuesday, March 10, 2009 4:24 PM
 To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
 Subject: [flexcoders] Re: comboBox in datagrid



 no, I 'm saying my comboBox displays whats in its data part of its array
 collection, not its label, when it receives a new batch of data. Your
 checkbox appears to do the same thing.

 --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
 Anthony DeBonis anthony@ wrote:
 
  Are you talking about an example like this?
  You may be better off creating a reusable/testable component in separate
 AS or MXML file.
 
  mx:Component
  mx:CheckBox creationComplete=init()
  mx:Script
  ![CDATA[
 
  private var _data:Object; private function init():void {
 this.addEventListener(MouseEvent.CLICK, update);
  } override public function get data():Object {
  return _data;
  }
 
  [Bindable]
  override public function set data(o:Object):void {
  _data = o;
  if(_data.checked == true) this.selected = true;
  else this.selected = false;
  }
 
  private function update(event:MouseEvent):void {
  if(this.selected) _data.checked = true;
  else _data.checked = false;
  }
 
 
  ]]
  /mx:Script
  /mx:CheckBox
  /mx:Component
 




[flexcoders] Component with Text and Image in sameline

2009-03-10 Thread Ashish Verma
Hello All,
Want to make a component in Flex 3:
Here is the specification of the application –
1.   We need to develop a windows/web application in which we want to
have a component which can accommodate images in line with the text.


2.   We can move/drag the images/text in that component using mouse. The
text or images adjust themselves inline while moving.

3.   We can cut / copy / paste the text not the images.

4.   We can also write text in between the images.

5.   You have to use the following XML to load this component. You can
have the images where you will find the braces. You have to use different
images for {0} and {1}.

@xml version=”1.0” encoding=”utf-8” ?

text

This is {0} a windows application {1} in which we want to have text between
the images

text
/xml
Any Help would be appriciate.


[flexcoders] Re: storing login data from a cfquery for use throught flex app

2009-03-10 Thread stinasius
hi i created a storage class that i was using and it works perfectly but i dont 
know how to use it to get data from a cfc through remote object call. here is 
my code it works with username and password but when it comes to geting the 
email address associated with the username and password from the db i dont know 
how to do that and thats my biggest problem.

mainApp.mxml

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute 
xmlns:view=components.*
mx:states
mx:State name=Log Out
mx:SetProperty target={label1} name=text 
value=Log Out/
/mx:State
/mx:states
mx:Script
![CDATA[
import components.*;
//Flash Classes
import flash.events.Event;
import flash.events.MouseEvent;

//Flex Classes
import mx.containers.TitleWindow;
import mx.controls.Alert;
import mx.events.CloseEvent;
import mx.managers.PopUpManager;
import mx.core.IFlexDisplayObject;
import mx.utils.ObjectUtil;

//static class
import classes.UserInfo;

public var loggedin:Boolean = false;
public var pop:Login;   

private function showLogin():void
{
pop = Login(PopUpManager.createPopUp(Application.application as 
DisplayObject,Login,true));
pop.showCloseButton =true;
PopUpManager.centerPopUp(pop);  
pop.addEventListener(close,removeMe);
pop[cancelButton].addEventListener(click, removeMe);
pop.addEventListener( loginSuccessful, handleLoginSucess);
//UserInfo.Email = pop.authManager.email; 
}

private function removeMe(event:Event):void {
PopUpManager.removePopUp(pop);
}

private function handleLoginSucess(event:Event):void{
viewstack1.selectedChild = admin;
lbl_intro.text = Welcome  +pop.username_txt.text;
removeMe(event);
currentState = 'Log Out';
UserInfo.UserName = pop.username_txt.text;
UserInfo.Email = pop.authManager.email;

//mx.controls.Alert.show(mx.utils.ObjectUtil.toString(pop.authManager));
//trace (UserInfo.Email);
}  


]]
/mx:Script

mx:Label x=0 y=0 text=Sign In id=label1 buttonMode=true 
useHandCursor=true mouseChildren=false click=showLogin()/
mx:ViewStack x=0 y=26 id=viewstack1 width=100% height=100%
view:Home id=home/
view:Admin id=admin/
/mx:ViewStack 
mx:Label x=700 y=0 id=lbl_intro/
/mx:Application

login.mxml

?xml version=1.0 encoding=utf-8?
mx:TitleWindow xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute 
title=Login Form
mx:Metadata
   [Event(name=loginSuccessful, type=flash.events.Event)] 
/mx:Metadata

mx:Script
![CDATA[
import mx.collections.ArrayCollection;
import mx.rpc.events.ResultEvent;
import mx.rpc.events.FaultEvent;
import mx.utils.ObjectUtil;
import mx.controls.Alert;
import mx.events.ValidationResultEvent;

import mx.core.Application;
import classes.UserInfo;

private function isValid():Boolean
{
var emailValidResult:ValidationResultEvent = 
this.emailValidate.validate(this.username_txt.text);
var pswdValidResult:ValidationResultEvent = 
this.pswdValidate.validate(this.password_txt.text);

if (emailValidResult.type==ValidationResultEvent.VALID 
 
pswdValidResult.type==ValidationResultEvent.VALID) 
{
return true;
}
else
{
return false;   
}

}

private function authenticateUser():void
{
if( isValid() )
{
authManager.loginUser( this.username_txt.text, 
this.password_txt.text/* , userCredentials  */); 
UserInfo.isLogged = true;  
}
} 

private function errorMessage(msg:String):void
{
//Alert.show( 

[flexcoders] Re: Urgent Prob - cant debug after upgrading to new player

2009-03-10 Thread reflexactions
I installed the debug version, no doubt about that.

--- In flexcoders@yahoogroups.com, Nathaniel Skiba nate.sk...@... wrote:

 Did you upgrade to the debug version or the regular version? If you
 upgraded to the regular version, then you can fix the problem by
 downloading one of the debugger versions from
 http://www.adobe.com/support/flashplayer/downloads.html.
 
 reflexactions wrote:
  I upgraded to the new flash player earlier today and now I cant debug in FB.
 
  I have tried everything including uninstalling the FPlayer using the 
  uninstall tool, reboot, install debug player, run from FB (standalone), IE8 
  opens with the app but FB says still waiting for the player to connect.
 
  I used netstat -a and FB is listening on port 7935, but the app wont 
  connect, even if I try to manually force it by using the context menu it 
  won't connect.
 
  I have tried down grading but that doesnt work
 
  I cant find anything to get back to debugging and its a problem 'cos I cant 
  work at all.
 
  Help!
 
 
 
  
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Alternative FAQ location: 
  https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
  Search Archives: 
  http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
 
 
 
 





RE: [flexcoders] Re: comboBox in datagrid

2009-03-10 Thread Tracy Spratt
I'd lost track that we were in a renderer.

 

But even in a renderer, correct me if I am wrong, a Combo box can only set
its selectedItem under two conditions, one being the dataProvider items are
primitive values, the second being the item assigned is a reference to the
item in the combo's dataProvider.  Neither is the case here, so we couldn't
expect the combo to set itself correctly.

 

Whatever, we need to see some code.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Alex Harui
Sent: Wednesday, March 11, 2009 12:28 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: comboBox in datagrid

 

I think we need to see some code, like how the renderer is set up.  A
combobox in a datagrid is a renderer so its data setter will fire setting
the selectedItem to the item's dataField assigned to its column.  The
question is why itemToLabel and the labelFunction didn't do its thing.

 

Alex Harui

Flex SDK Developer

Adobe Systems Inc. http://www.adobe.com/ 

Blog: http://blogs. http://blogs.adobe.com/aharui adobe.com/aharui

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tracy Spratt
Sent: Tuesday, March 10, 2009 7:27 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: comboBox in datagrid

 

No, you shouldn't have to do anything like that.  Normal behavior for a
combo box is to display nothing until a user interacts with it, selectedItem
is null and selectedindex is -1.  If yours is doing something else then
there is code doing it.  Is it a stock ComboBox?  It sounds like someone has
overridden the internal text field.

 

Or ha, there is a prompt specified that is a code value.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Libby
Sent: Tuesday, March 10, 2009 6:11 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: comboBox in datagrid

 

I wish...no, I'm using labelField in one and a labelFunction in another one,
but these are not invoked until you actually click on the dropdown. Thus,
when data is first retrieved into the dropdown, the darned thing is
displaying the data field rather than the label: field. Should I be
firing off something to force the dropdown to update when the data comes in?

--- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
Tracy Spratt tspr...@... wrote:

 You probably need to specify the labelField.
 
 
 
 Tracy Spratt,
 
 Lariat Services, development services available
 
 _ 
 
 From: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
[mailto:flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com]
On
 Behalf Of Libby
 Sent: Tuesday, March 10, 2009 4:24 PM
 To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
 Subject: [flexcoders] Re: comboBox in datagrid
 
 
 
 no, I 'm saying my comboBox displays whats in its data part of its array
 collection, not its label, when it receives a new batch of data. Your
 checkbox appears to do the same thing.
 
 --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
 Anthony DeBonis anthony@ wrote:
 
  Are you talking about an example like this?
  You may be better off creating a reusable/testable component in separate
 AS or MXML file.
  
  mx:Component
  mx:CheckBox creationComplete=init()
  mx:Script
  ![CDATA[
  
  private var _data:Object; private function init():void {
 this.addEventListener(MouseEvent.CLICK, update);
  } override public function get data():Object {
  return _data; 
  }
  
  [Bindable]
  override public function set data(o:Object):void {
  _data = o;
  if(_data.checked == true) this.selected = true;
  else this.selected = false;
  }
  
  private function update(event:MouseEvent):void {
  if(this.selected) _data.checked = true;
  else _data.checked = false;
  }
  
  
  ]]
  /mx:Script
  /mx:CheckBox
  /mx:Component
 






RE: [flexcoders] Re: Urgent Prob - cant debug after upgrading to new player

2009-03-10 Thread Tracy Spratt
The player version is one issue that just needs to be verified first.  Just
because you installed it does not guarantee that it got installed.  You
always need to verify it objectively.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of reflexactions
Sent: Wednesday, March 11, 2009 1:38 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Urgent Prob - cant debug after upgrading to new
player

 

I installed the debug version, no doubt about that.

--- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
Nathaniel Skiba nate.sk...@... wrote:

 Did you upgrade to the debug version or the regular version? If you
 upgraded to the regular version, then you can fix the problem by
 downloading one of the debugger versions from
 http://www.adobe.
http://www.adobe.com/support/flashplayer/downloads.html.
com/support/flashplayer/downloads.html.
 
 reflexactions wrote:
  I upgraded to the new flash player earlier today and now I cant debug in
FB.
 
  I have tried everything including uninstalling the FPlayer using the
uninstall tool, reboot, install debug player, run from FB (standalone), IE8
opens with the app but FB says still waiting for the player to connect.
 
  I used netstat -a and FB is listening on port 7935, but the app wont
connect, even if I try to manually force it by using the context menu it
won't connect.
 
  I have tried down grading but that doesnt work
 
  I cant find anything to get back to debugging and its a problem 'cos I
cant work at all.
 
  Help!
 
 
 
  
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Alternative FAQ location: https://share.
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e6
2079f6847
acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
  Search Archives: http://www.mail-
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo
archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
 
 
 
 






  1   2   >