[flexcoders] Browser Memory Consumption not coming down even after remove child

2009-02-19 Thread Nirav Gosalia
Hi,

We have developed large applications like CRM typically having 
several tabs.

We allow the user to travere a list of names in a tree and on his 
choice we add tabs to the tab navigator. These tabs can be closed by 
the user using a close button on the tab.

Issue: As the user opens new tabs the browser consumes more and more 
memory( 250MB). When tabs are closed we explicitly use removeChildAt
() method to remove them from the tab navigator. However browser 
memory consumption does not decrease.

In Flex profiler the closed tabs get garbage collected when I click 
on the 'Run Garbage Collector' button which proves that there are no 
references to the closed tabs and they are perfect candidates for GC.

Why does the browser memory consumption not go down ? 
The application gets sluggish and eventually hangs ? 

We are not in a position to do a production release till we get 
around this issue ?

I am using IE7 and flash player 10

Please help !





[flexcoders] Re: how to change titlebar text when iam executing a flex application

2009-02-19 Thread Don Kerr
Are you talking about inside Flex Builder or inside the browser?

For the browser, use the pageTitle property in your mx:Application.

If you're talking Flex Builder/Eclipse IDE, I'm not aware of any way to 
customize Eclipse to 
something other than the selected tab filename.

Don Kerr


--- In flexcoders@yahoogroups.com, kotha poornima poorni_ag...@... wrote:

 Hi All,
 I want to change the text in the titlebar when iam executing the mxml file.
 
 If iam running file1.mxml file, in the title bar its showing file:\\documents 
 and 
settings\\file1.html. But i want to show my custom message.
 
 But i dint find any clue regarding this. Can anyone help me out of this.
 
 Thanks in Advance,
 Poornima






[flexcoders] Re: Flex server language

2009-02-19 Thread gers32
Ruby on Rails is interesting because of the little amount of code you
need to write, compared to Java for example. My RoR back end server
deals with the database (Oracle in my case) and communicates with a
Flex front end via XML. Of course, you can use AMF, but in my
situation I don't have such high performance requirements.

Chris.



[flexcoders] Re: Flex server language

2009-02-19 Thread Don Kerr
I recommend you take a serious look at ColdFusion .  Here is an Adobe site that 
talks the 
features and benefits of building RIAs with Adobe Flex/ColdFusion.
http://www.adobe.com/devnet/flex/flex_cf.html 

It is clearly the best fit promoted by Adobe.  Adobe does a lot of work to 
bring Flex and CF 
together, such as out-of-the-flex support within CF.

I agree. Any software language can meet any requirement.  

But, from my 20 years of doing/managing development in many different server 
technologies ... CF is by far the fastest to train, learn and implement 
rapidly.  Since you 
know php, adding CF to your skill set will be any easy route to take.  After 
all, ColdFusion 
is Javajust a heck of a lot easier.

Good thing that Flex is Flexible and you can choose.  I have some Flex apps 
that use CF, 
.Net, and Java on the back-end ... since in a Web 2.0/SOA architecture ... you 
can have 
many backends to a single Flex app.

... and the end user doesn't care what shop or camp your technology 
religion is anyway. 
:)

Give CF a try. It will only take you a day to have your first Flex/CF app up 
and running!

Don Kerr







--- In flexcoders@yahoogroups.com, bsyyu ben.s...@... wrote:

 currently, I am using PHP as server language. In fact I would like to
 learn other server language in combination using Flex. Any suggestion
 such as .NET, coldfusion or JSP.






[flexcoders] Re: Browser Memory Consumption not coming down even after remove child

2009-02-19 Thread Don Kerr
See my earlier posting about Flash 10 memory issues and crashing IE.  There are 
many 
bugs reported related to this on Adobe's bug tracking.

Does your app just hang, or in some cases does it crash IE?

Did your app work better/ok using Flash 9?  Mine did not have any memory issues 
under 
Flash 9, but they do with Flash 10.

It may or may not be your code.  It may be a this known issue with Flash 10.  
If it turns out 
to be Flex code related...please let us know. So far, I've not seen any coding 
solutions 
proposed to fix memory/crash issues.  I'm looking for help too.

Maybe this list will help us both.  I wish I had the answer for both of us.

Don


--- In flexcoders@yahoogroups.com, Nirav Gosalia nirav_...@... wrote:

 Hi,
 
 We have developed large applications like CRM typically having 
 several tabs.
 
 We allow the user to travere a list of names in a tree and on his 
 choice we add tabs to the tab navigator. These tabs can be closed by 
 the user using a close button on the tab.
 
 Issue: As the user opens new tabs the browser consumes more and more 
 memory( 250MB). When tabs are closed we explicitly use removeChildAt
 () method to remove them from the tab navigator. However browser 
 memory consumption does not decrease.
 
 In Flex profiler the closed tabs get garbage collected when I click 
 on the 'Run Garbage Collector' button which proves that there are no 
 references to the closed tabs and they are perfect candidates for GC.
 
 Why does the browser memory consumption not go down ? 
 The application gets sluggish and eventually hangs ? 
 
 We are not in a position to do a production release till we get 
 around this issue ?
 
 I am using IE7 and flash player 10
 
 Please help !






Re: [flexcoders] Re: Flex server language

2009-02-19 Thread Paul Andrews
- Original Message - 
From: Don Kerr fusionp...@yahoo.com
To: flexcoders@yahoogroups.com
Sent: Thursday, February 19, 2009 9:25 AM
Subject: [flexcoders] Re: Flex server language


I recommend you take a serious look at ColdFusion .  Here is an Adobe site 
that talks the
 features and benefits of building RIAs with Adobe Flex/ColdFusion.
 http://www.adobe.com/devnet/flex/flex_cf.html

 It is clearly the best fit promoted by Adobe.  Adobe does a lot of work to 
 bring Flex and CF
 together, such as out-of-the-flex support within CF.

 I agree. Any software language can meet any requirement.

 But, from my 20 years of doing/managing development in many different 
 server
 technologies ... CF is by far the fastest to train, learn and implement 
 rapidly.  Since you
 know php, adding CF to your skill set will be any easy route to take. 
 After all, ColdFusion
 is Javajust a heck of a lot easier.

 Good thing that Flex is Flexible and you can choose.  I have some Flex 
 apps that use CF,
 .Net, and Java on the back-end ... since in a Web 2.0/SOA architecture ... 
 you can have
 many backends to a single Flex app.

 ... and the end user doesn't care what shop or camp your technology 
 religion is anyway.
 :)

 Give CF a try. It will only take you a day to have your first Flex/CF app 
 up and running!

 Don Kerr

Coming from a Java background and having had some small exposure to CF, I 
would agree with Don, particularly with the features that CF offers besides 
the scripting language and DB support - reporting especially.

One thing really does concern me though about CF - how is it faring in the 
marketplace? In some quarters you'd imagine it was a dead technology from 
the way it is talked about and there always seems to be a disparity between 
it's functionality and takeup.

Adopting a core serverver-side laguage is not easy - the market seems pretty 
fragmented.

Paul

 --- In flexcoders@yahoogroups.com, bsyyu ben.s...@... wrote:

 currently, I am using PHP as server language. In fact I would like to
 learn other server language in combination using Flex. Any suggestion
 such as .NET, coldfusion or JSP.



[flexcoders] Re: Browser Memory Consumption not coming down even after remove child

2009-02-19 Thread Nirav Gosalia
I faced the problem in Flash Player 9 as well.

I think the issue is that the garbage collection of non referenced 
entities is not happening due to which my browser memory footprint 
goes on icreasing making the app very sluggish and eventually hang.

When I say 'hang' I mean popups stop opening, traversing among fields 
in a form using the tab key does not work etc.

Also the fact that those non referenced objects get GC'd using the 
Run Garbage Collector button in flex profiler shows that my code does 
not have any other reference to those objects !

Can you suggest me the approach that I should follow as I dont know 
What Next ?

:-(

--- In flexcoders@yahoogroups.com, Don Kerr fusionp...@... wrote:

 See my earlier posting about Flash 10 memory issues and crashing 
IE.  There are many 
 bugs reported related to this on Adobe's bug tracking.
 
 Does your app just hang, or in some cases does it crash IE?
 
 Did your app work better/ok using Flash 9?  Mine did not have any 
memory issues under 
 Flash 9, but they do with Flash 10.
 
 It may or may not be your code.  It may be a this known issue with 
Flash 10.  If it turns out 
 to be Flex code related...please let us know. So far, I've not seen 
any coding solutions 
 proposed to fix memory/crash issues.  I'm looking for help too.
 
 Maybe this list will help us both.  I wish I had the answer for 
both of us.
 
 Don
 
 
 --- In flexcoders@yahoogroups.com, Nirav Gosalia nirav_290@ 
wrote:
 
  Hi,
  
  We have developed large applications like CRM typically having 
  several tabs.
  
  We allow the user to travere a list of names in a tree and on his 
  choice we add tabs to the tab navigator. These tabs can be closed 
by 
  the user using a close button on the tab.
  
  Issue: As the user opens new tabs the browser consumes more and 
more 
  memory( 250MB). When tabs are closed we explicitly use 
removeChildAt
  () method to remove them from the tab navigator. However browser 
  memory consumption does not decrease.
  
  In Flex profiler the closed tabs get garbage collected when I 
click 
  on the 'Run Garbage Collector' button which proves that there are 
no 
  references to the closed tabs and they are perfect candidates for 
GC.
  
  Why does the browser memory consumption not go down ? 
  The application gets sluggish and eventually hangs ? 
  
  We are not in a position to do a production release till we get 
  around this issue ?
  
  I am using IE7 and flash player 10
  
  Please help !
 





[flexcoders] Re: ToolTip stay until closed

2009-02-19 Thread Cato Paus
Here is a Nice one :)
http://www.adobe.com/devnet/flex/samples/fig_callout/




--- In flexcoders@yahoogroups.com, flexaustin flexaus...@... wrote:

 Is it possible to make a tooltip stay on until its closed?  Maybe put
 an x in the top right corner or something. 
 
 I don't see any properties that allow it to remain, guessing I will
 need to customize it?  Maybe tooltip won't let you do this at all?
 
 TIA





Re: [flexcoders] Reading an UTF-8 document

2009-02-19 Thread Laurent Cozic
Can't you just skip the first three characters and read from there? Otherwise, 
you could try removing the BOM before loading the stream (maybe by reading it 
first as a ByteArray?). I think there's some ActionScript code on this page to 
do that: 

http://www.xs4all.nl/~mechiel/projects/bomstrip/

--
Laurent Cozic

Flash, Flex and Web Application development
http://pogopixels.com

--- On Wed, 2/18/09, Andrew roly...@gmail.com wrote:
From: Andrew roly...@gmail.com
Subject: [flexcoders] Reading an UTF-8 document
To: flexcoders@yahoogroups.com
Date: Wednesday, February 18, 2009, 10:19 PM












Please forgive me if the is a post about this already but i can't 
seem

to find it.



I am creating an AIR app to convert characters into their HTML entity,

hex and dec value and I have just come across an issue.  I am reading

in xml files which contain the data, these files are saved in a UTF-8

format.



When I open it using a Filestream it stops after the first 3

characters ÿþ.  I know that these characters are the start of a

unicode document, but I can't figure out why it is stopping reading

the file there.



Any help would be greatly appreciated.




 

  




 

















  

[flexcoders] Changing direction of skew

2009-02-19 Thread shardul bartwal
Hi all, 
 I am applying the skew with Transform class and matrix.Its working 
fine.But in horizontal skew by default the top edge is fix and bottom 
edge moves in actionscript.I want the reverse.I mean I want to keep 
the bottom edge fix, and top edge to move. If any body has any 
soloution, please reply. 

 
With Thnx...
Shardul


  Bring your gang together. Do your thing. Find your favourite Yahoo! group 
at http://in.promos.yahoo.com/groups/

[flexcoders] The first Flex BugQuash has been announced. Register Now

2009-02-19 Thread Nate Beck
Hey everyone,

Just opened up registrations for this event:

http://blog.natebeck.net/2009/02/register-for-the-flex-sdk-bugquash-its-free/

Any questions, feel free to shout at me.

Cheers,
Nate

http://blog.natebeck.net


Re: [flexcoders] Re: Flex server language

2009-02-19 Thread Jeffry Houser


I prefer CF because it is what I know.  Since it comes from Adobe it's 
integration w/ Flex is top notch. 

After 2 days of trying, I gave up trying to get PHP to work on my dev 
machine; so I'm amused by the claim it can be setup w/ minimal fuss. 


Dnk wrote:
Again, this comes to preference, but for me I like PHP due to the fact 
Ito is available on a huge number of the web hosts out there, and it 
can be run on Linux, win or osx with minimal fuss. Easy to setup a dev 
machine without vendor lockin.  


Dk



On 18-Feb-09, at 7:10 PM, bsyyu ben.s...@gmail.com 
mailto:ben.s...@gmail.com wrote:



Thanks for your comments.
I am not a student for learning. Currently I have finished my first
project with Flex for a shopping cart project.
http://www.fredederick.com/fredederick_shop_online/
It is done with PHP backend.

After that project, I have intention to develop a DIY shopping cart
system such as X-cart with Flex and would like to know which server
language best fit with Flex, regarding the speed and support etc. and
also sometimes customer may have their own server system that I have
to fit into, then which backend is most popular etc.

thanks

--- In flexcoders@yahoogroups.com 
mailto:flexcoders%40yahoogroups.com, Dnk d.k.emailli...@... wrote:


 They will all get the job done.

 It is matter of requirements and preferences for the job.

 Dustin Krysak

 Sent from my iPhone

 On 18-Feb-09, at 4:31 PM, bsyyu ben.s...@... wrote:

  currently, I am using PHP as server language. In fact I would like to
  learn other server language in combination using Flex. Any suggestion
  such as .NET, coldfusion or JSP.
 
 








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



RE: [flexcoders] how to change titlebar text when iam executing a flex application

2009-02-19 Thread Stephen Gilson
Hi Poornima,

Did you try Application.pageTitle?

Stephen

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of kotha poornima
Sent: Thursday, February 19, 2009 2:17 AM
To: flexcoders
Subject: [flexcoders] how to change titlebar text when iam executing a flex 
application

Hi All,
I want to change the text in the titlebar when iam executing the mxml file.

If iam running file1.mxml file, in the title bar its showing file:\\documents 
and settings\\file1.html. But i want to show my custom message.

But i dint find any clue regarding this. Can anyone help me out of this.

Thanks in Advance,
Poornima


inline: image001.jpginline: image002.jpg

[flexcoders] e-Paper website using Adobe Flex

2009-02-19 Thread Joule doc

Dear,

i would like know if there any posibble to build e-Paper website using adobe 
flex ?

thank you,

Joule

==
Why waste time arguing about whose way is the right way? Use the scientific 
method -- try both options and see which one brings about the best results. 
Either way, be gracious about what happens. 



[flexcoders] Re: Flex compile error

2009-02-19 Thread adeelafsar
Here is the code

mx:Script
![CDATA[
private function send_data():void {
userRequest.send();
}
]]
/mx:Script
mx:Form x=22 y=10 width=493
mx:HBox
mx:Label text=UserId/
mx:TextInput id=userid/
/mx:HBox
mx:HBox
mx:Label text=Ip Address/
mx:TextInput id=ip/
/mx:HBox
mx:Button label=Submit click=send_data()/
/mx:Form
mx:DataGrid id=dgUserRequest x=22 y=128
dataProvider={userRequest.lastResult.users.user}
mx:columns
mx:DataGridColumn headerText=User ID dataField=userid/
mx:DataGridColumn headerText=User Name dataField=ip/
/mx:columns
/mx:DataGrid
mx:TextInput x=22 y=292 id=selectedemailaddress
text={dgUserRequest.selectedItem.emailaddress}/
mx:HTTPService id=userRequest url=http://localhost/post.php;
useProxy=false method=POST resultFormat=e4x
mx:request xmlns=
userid{userid.text}/userid
ipaddress{ip.text}/ipaddress
/mx:request
/mx:HTTPService




[flexcoders] Re: Flex compile error

2009-02-19 Thread adeelafsar
--- In flexcoders@yahoogroups.com, Nathaniel Skiba nate.sk...@... wrote:

 I can't say for certain without seeing your code, but it looks like
 you're using the class data somewhere without importing it.
 
 ~Nate



here is the code mx:Script
![CDATA[
private function send_data():void {
userRequest.send();
}
]]
/mx:Script
mx:Form x=22 y=10 width=493
mx:HBox
mx:Label text=UserId/
mx:TextInput id=userid/
/mx:HBox
mx:HBox
mx:Label text=Ip Address/
mx:TextInput id=ip/
/mx:HBox
mx:Button label=Submit click=send_data()/
/mx:Form
mx:DataGrid id=dgUserRequest x=22 y=128
dataProvider={userRequest.lastResult.users.user}
mx:columns
mx:DataGridColumn headerText=User ID dataField=userid/
mx:DataGridColumn headerText=User Name dataField=ip/
/mx:columns
/mx:DataGrid
mx:TextInput x=22 y=292 id=selectedemailaddress
text={dgUserRequest.selectedItem.emailaddress}/
mx:HTTPService id=userRequest url=http://localhost/post.php;
useProxy=false method=POST resultFormat=e4x
mx:request xmlns=
userid{userid.text}/userid
ipaddress{ip.text}/ipaddress
/mx:request
/mx:HTTPService




Re: [flexcoders] Help with Timer issue

2009-02-19 Thread Anand Jha
remove listener added to timer from codeonButtonClick/code function.
OR
Just remove the listener when you get the success status within 
codecheckStatus/code function.


 Regards,
KumarA





From: trishhartnett trishhartn...@yahoo.com
To: flexcoders@yahoogroups.com
Sent: Wednesday, February 18, 2009 1:37:32 PM
Subject: [flexcoders] Help with Timer issue


Hello all, 

I'm a Flex newbie. I'm working on an application where an end user
clicks a button, and when the button is clicked a DB is queried
repeatedly until a particular result is returned. When the result is
returned the end user gets a confirmation message to tell them that
they were successful.

So the code goes like this:

private var dBTimer:Timer = new Timer(5000);

private function onButtonClick( ): void{
dBTimer.addEventLis tener(TimerEvent .TIMER, timeTick);
dBTimer.start( );
}

public function timeTick(evt: TimerEvent) :void {
checkStatus( callBackFunction , id); 
}

private function callBackFunction( ):void 
{
if( status == 'SUCCESS' )
{ 
// cancel the timer
dBTimer.stop( ); 
dBTimer.reset( );
Alert.show( Succcess string,Info ,OK,null, null,INFO_ ICON);
}else{
//do nothing and the checkStatus 
//will be called again  at next TimerEvent
} 
}

So the first time the end user clicks on the button, everything works
okay. The DB is queried and when SUCCESS is returned the dBTimer is
stopped and reset. The end user gets the Success Alert dialog box and
everything is okay.

The second time the end user clicks the button, everything happens the
same as before, only the dbTimer, despite being stopped doesn't stop
working. checkStatus is called over and over again in an infinite loop
because the dbTimer never stops.

Can anyone suggest anything please ? I am really puzzled by this one.

Best Regards, 
Trish.


   


  

[flexcoders] Flashing tab in TabNavigator

2009-02-19 Thread Eilon Yardeni
Is there a way to cause a tab which is not in focus to flash in order to
grab the user attention?

thanks,


Re: [flexcoders] Re: sizing dinamically the screen

2009-02-19 Thread Suresh G
Hey See the easiest thing is to replace the x and y with 100% values

say for eg now ur app width is 1024 enter
100%

On Tue, Feb 10, 2009 at 8:55 AM, Amy amyblankens...@bellsouth.net wrote:

   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Gustavo Duenas LRS gdue...@...
 wrote:
 
  thanks Amy, but it seems when I try to tell the document in Js
 about
  the new size, that
  it is not doing the resize, Example is trying to do the sizing in
 the
  document for vista and
  others like
 
  document.width = screen.availWidth;
  document.height= screen.availHeight;
 
  those arguments work in theory but it seems they are not working
 in
  Vista or XP...
  I don't what else to do, actually I have an odd error in the
  application:
 
  TypeError: Error #1009: Cannot access a property or method of a
 null
  object reference.
  at lrsAd/resizerFlash()
  at lrsAd/___Application1_creationComplete()
  at flash.events::EventDispatcher/dispatchEventFunction()
  at flash.events::EventDispatcher/dispatchEvent()
  at mx.core::UIComponent/dispatchEvent()
  at mx.core::UIComponent/set initialized()
  at mx.managers::LayoutManager/doPhasedInstantiation()
  at Function/http://adobe.com/AS3/2006/builtin::apply()
  at mx.core::UIComponent/callLaterDispatcher2()
  at mx.core::UIComponent/callLaterDispatcher()
 
  this is the flash windows that appears now in my browser.
 
 
  //code for the application:
 
  creationComplete=resizerFlash()
 
  here is the code in the flex:
 
 
  //importamos los datos para el external interface//
  import flash.external.ExternalInterface;
 
  //funcion para usar la external interface//
  public function resizerFlash():void{
 
  var h:int;
  var w:int
 
  if (ExternalInterface.available){
 
 
  h= ExternalInterface.call( movieHeight);
  root.stage.height = h;
  w=ExternalInterface.call( movieWidth);
  root.stage.width = w;
  trace(h);
  trace(w);
  }
 
 
  }

 Set your Application width and height to 100%. Then, when javaScript
 resizes the Object and/or Embed tag (NOT the document), then the
 Application will resize itself appropriately.

 You may want to do some basic experimentation and/or research on
 DHTML. That's beyond the scope of this forum.

  



Re: [flexcoders] Re: Flex server language

2009-02-19 Thread Jeffry Houser


 The ColdFusion is Dead argument has come up somewhere every 6 months 
for the past 8 years.


I perceive, from Adobe's stand point that CF is a stable product showing 
consistent growth.  CF was designed for web development and that is 
something that it does wonderfully well.  But, that makes it a niche 
product when compared to .NET or Java which are the end all to any 
programming need.


To give a few indications of the market:

1) There are CFML alternatives to Adobe's ColdFusion, including open 
source ones.  Check out Open BlueDragon, Railo, (both Java based like 
CF), or BlueDragon.NET (runs on .NET ).  Obviously someone must think 
there is a market.  WebORB also has a ColdFusion specific version. 
2) After Allaire was acquired by Macromedia; the number of developers 
was estimated at 350K.  Today it is estimated at ~500K.  ( 
http://www.adobe.com/products/coldfusion/pdfs/adobecoldfusionevangelismkit.pdf 
) . 

Even if the number of Flex Developer's grow 100%, there will still be 
less Flex Developer's than CF Developers.  OF course Flex and CF are 
treated differently because Flex is viewed as a growth market, while CF 
is stable / mature.  And dollar for dollar, you get a lot of stuff built 
in to CF that would be add-ons to other platforms. 



Paul Andrews wrote:
One thing really does concern me though about CF - how is it faring in the 
marketplace? In some quarters you'd imagine it was a dead technology from 
the way it is talked about and there always seems to be a disparity between 
it's functionality and takeup.


Adopting a core serverver-side laguage is not easy - the market seems pretty 
fragmented.


Paul

  

--- In flexcoders@yahoogroups.com, bsyyu ben.s...@... wrote:


currently, I am using PHP as server language. In fact I would like to
learn other server language in combination using Flex. Any suggestion
such as .NET, coldfusion or JSP.
  






--
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] Re: Flex compile error

2009-02-19 Thread adeelafsar
that actually worked 

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

 Did you Clean the project?
 
  
 
 Tracy Spratt 
 Lariat Services 
 
 Flex development bandwidth available 
 
 
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of Nathaniel Skiba
 Sent: Wednesday, February 18, 2009 8:03 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Flex compile error
 
  
 
 I can't say for certain without seeing your code, but it looks like
 you're using the class data somewhere without importing it.
 
 ~Nate





[flexcoders] Re: is it possible to track visitors / the page an swf is embedded on

2009-02-19 Thread bsyyu
Hi all,

that's the problem for Flex, it is so flexible for different kind
backend language. Each has their con and pro. But personally, I favor
.NET on their growing popularity. Besides, I will put most of the
logics insides Flex, so as to reduce the dependency of the backend as
it only for database or upload services. 

Again the choice of AMF, which AMF for PHP ?  Weborb / AMFPHP / Zend,
why so many choice 



--- In flexcoders@yahoogroups.com, tom93438 tcs2...@... wrote:

  ...not the url of the document within which the app is embedded.
  For that, the only way is to use Javascript and ExternalInterface
 
 If you're looking for the url in the browser address bar then look at
 IBrowserManager:
 

http://livedocs.adobe.com/flex/3/langref/mx/managers/IBrowserManager.html
 
 URL property is: 'The current URL as it appears in the browser address
 bar.'
 
 tom
 
 
 
 
 --- In flexcoders@yahoogroups.com, Laurent Cozic pogopixels@ wrote:
 
  Application.application.url will give you the url of the *swf file*,
 not the url of the document within which the app is embedded. For
 that, the only way is to use Javascript and ExternalInterface. I think
 the syntax is:
  
  var docURL = ExternalInterface.call(location.href);
  
  or it might be document.location.href - not sure which one is right.
  
  --
  Laurent Cozic
  
  Flash, Flex and Web Application development
  http://pogopixels.com
  
  --- On Wed, 2/18/09, kuntamayu kuntamayu@ wrote:
  From: kuntamayu kuntamayu@
  Subject: [flexcoders] Re: is it possible to track visitors / the
 page an swf is embedded on
  To: flexcoders@yahoogroups.com
  Date: Wednesday, February 18, 2009, 12:31 PM
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  Try to track
  
  
  
  Application. application. url
  
  
  
  This may help you. :)
  
  
  
  --- In flexcod...@yahoogro ups.com, Tracy Spratt tspratt@  wrote:
  
  
  
   Look into the BrowserManager, perhaps it will help.
  
   
  

  
   
  
   Tracy Spratt 
  
   Lariat Services 
  
   
  
   Flex development bandwidth available 
  
   
  
    _ _ __
  
   
  
   From: flexcod...@yahoogro ups.com [mailto:flexcod...@yahoogro
 ups.com] 
  
  On
  
   Behalf Of uclamerrick
  
   Sent: Wednesday, February 18, 2009 12:24 AM
  
   To: flexcod...@yahoogro ups.com
  
   Subject: [flexcoders] is it possible to track visitors / the
page an 
  
  swf
  
   is embedded on
  
   
  

  
   
  
   Lets say I run a video site like youtube, how can I capture the url 
  
  of
  
   the page where my swf object is embedded.
  
   
  
   For example someone takes the embed code from
  
   http://youtube. com/videoid123 http://youtube. com/videoid123  and
  
   places it onto the page at
  
   http://myblog. wordpress. com/this_ video_rocks
  
   http://myblog. wordpress. com/this_ video_rocks 
  
   
  
   I know how to use HTTPService to report this information back to my
  
   server and store it in the database, but I don't know how to use 
  
  Flex
  
   3 / Actionscript 3 to determine the URL of the page that embeds an
  
   swf. In the example above I would want to capture:
  
   
  
   http://myblog. wordpress. com/this_ video_rocks
  
   http://myblog. wordpress. com/this_ video_rocks 
  
   
  
   Thanks.
  
  
 





Re: [flexcoders] Re: perl and AMF

2009-02-19 Thread Rob Kunkle

Hi Guy -

I'm in the same boat, using perl on the backend for a project that I'm  
working on. We've been using XML to pass data to the the flex app, but  
it would be nice if there was a way to use AMF. I looked around bit,  
but haven't actually tried anything at this point.


Flap uses AMF::Perl

There is also another library called

Data::AMF, I think it has hooks into Catalyst framework.

I think Data::AMF is more recent, it looks like it has some beta  
support for AMF3.


I think you can force flex to use AMF0. I'm not sure what you would  
lose by forcing flex to use amf0 though. Maybe someone on the list  
could answer that better.


If you do try Data::AMF...let me know how it goes.

Rob


On Feb 17, 2009, at 2:44 AM, Guy Morton wrote:


Yes, that project was last updated over 4 years ago.


I'm not sure I want to invest time in developing a solution based on  
something that's not being actively developed (and that's assuming  
it even works with modern flash players).


Guy


On 17/02/2009, at 8:00 PM, sunild99 wrote:


I haven't used this but there is a Perl AMF library:

http://www.simonf.com/flap/

Perhaps this is the ancient implementation you're referring to.

--- In flexcoders@yahoogroups.com, Guy Morton g...@... wrote:

 Is anyone using perl as a backend for remoting?

 I can't find a complete implementation that isn't fairly ancient,  
but

 perhaps i'm looking in the wrong places...

 Guy











[flexcoders] [Air Skin in Flex] Is it possible to use the dark default air theme in flex?

2009-02-19 Thread fotis.chatzinikos
Hi,

Anybody knows if it is possible to use the default dark Air theme in
online flex apps?

There are some similar ones online, for example in the scalenine site,
but i was just wondering if it is a flag or something in the SDK...

TIA,
Fotis



[flexcoders] Re: Flex compile error

2009-02-19 Thread adeelafsar
i went away and now its back again :(

--- In flexcoders@yahoogroups.com, adeelafsar adeelaf...@... wrote:

 that actually worked 
 
 Thanks a lot
 --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote:
 
  Did you Clean the project?
  
   
  
  Tracy Spratt 
  Lariat Services 
  
  Flex development bandwidth available 
  
  
  
  From: flexcoders@yahoogroups.com
[mailto:flexcod...@yahoogroups.com] On
  Behalf Of Nathaniel Skiba
  Sent: Wednesday, February 18, 2009 8:03 PM
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] Flex compile error
  
   
  
  I can't say for certain without seeing your code, but it looks like
  you're using the class data somewhere without importing it.
  
  ~Nate
 





[flexcoders] Re: ToolTip stay until closed

2009-02-19 Thread flexaustin
Yes very very nice! Thanks, for the link.



--- In flexcoders@yahoogroups.com, Cato Paus ca...@... wrote:

 Here is a Nice one :)
 http://www.adobe.com/devnet/flex/samples/fig_callout/
 
 
 
 
 --- In flexcoders@yahoogroups.com, flexaustin flexaustin@ wrote:
 
  Is it possible to make a tooltip stay on until its closed?  Maybe put
  an x in the top right corner or something. 
  
  I don't see any properties that allow it to remain, guessing I will
  need to customize it?  Maybe tooltip won't let you do this at all?
  
  TIA
 





[flexcoders] Flex debugger not working IE7 flash 10

2009-02-19 Thread Scott
I've been banging my head on this one for a while and have been working
without a debugger (painful).  But now I really need it.

I think the issue appeared when I upgraded to flash 10.  I also pulled
down the flash 10 debugger.

When I hit the debug option in flex, IE comes up with the application
but my breakpoints never get hit.  After a bunch of research I found
someone mentioning about connecting to the debugger.  So I right clicked
the app in IE7 and went to debugging.  I tried to connect manually and
it says it cannot connect.  I see there's a lot of posts about this on
the internet but they are either unresolved, the fixes didn't work, or
it doesn't apply to my scenario (I'm on Vista Business not MAC).

Does anyone know what I'm running into here and how to fix it?

Thanks
Scott


[flexcoders] Does this work / Does this have problems?

2009-02-19 Thread tchredeemed
I have a custom component named RemovableText, it looks like this

mx:HBox
buttons:RemoveButton /
mx:Text /
/mx:HBox

The HBox is the root of the RemovableText.

When I create and add a removable text, I am doing this:

var text:RemovableText = new RemovableText();
text.name = 'removableText';
text.addEventListener( GHEvent.REMOVE_BUTTON_CLICKED,
removeButtonClickHandler );

// Parsestyles is my function that gets me the textformat for the
current block
var tf:TextFormat = parseStyles(tag);
text.setStyle( 'fontFamily', tf.font );
text.setStyle( 'fontSize', tf.size );
... etc ...

//

My question is this,

If I set styles on the root (RemovableText), will all of the styles be
set for the mx:Text / child of the Component?

Is this a safe way to do it?

Thanks!



Re: [flexcoders] e-Paper website using Adobe Flex

2009-02-19 Thread Howard Fore
Could you elaborate on what you mean by e-Paper? Do you mean a news
website, with headlines and such?

On Thu, Feb 19, 2009 at 4:23 AM, Joule doc joule...@hotmail.com wrote:

  i would like know if there any posibble to build e-Paper website using
 adobe flex ?



-- 
Howard Fore, howard.f...@hofo.com
The universe tends toward maximum irony. Don't push it. - Jeff Atwood


[flexcoders] Why cant I use mouseOver() in Image class, but using mx:Image tag, I can?

2009-02-19 Thread yossi.baram
Hi,
I have a dataGrid, and in one of the columns I call an ItemRenderer 
(ActionScript).
This renderer should create a list of images as follows:
override public function set data(value:Object):void {  
if (value != null)
   {
removeAllChildren();
for (var i:int = 0; i  value.hair.length; i++){
var img:Image = new Image();  
img.source = value.hair[i].image;  
img.id = image -  +i;
img.height = 20;  
img.toolTip=value.hair[i].width;
img.percentWidth=value.hair[i].width; 
img.maintainAspectRatio=false;
addChild(img); 
} 
}
}

All images are displayed side by side in a cell, as I wanted.

The problem is that I need to use img.toolTipCreate to catch an event 
on each of the images and It doesnt let me, why?
If I use mx:Image tag in mxml file, it lets me use this function but 
in my ActionScript it doesnt.

What is the different between this 2?
Thanks for any advice

Jo



Re: [flexcoders] Re: Flex server language

2009-02-19 Thread Dnk
On windows and mac, there are all encompassing dev installers that  
will install PHP, apache and mysql in a matter of minutes without any  
real config needed. They have a GUI for the most common changes you  
may want to make.


I believe the win one is called WAMP and the mac one is MAMP.


Never had an issue with them. Easy as pie.
D


On 19-Feb-09, at 5:09 AM, Jeffry Houser j...@farcryfly.com wrote:



 I prefer CF because it is what I know.  Since it comes from Adobe  
it's integration w/ Flex is top notch.


 After 2 days of trying, I gave up trying to get PHP to work on my  
dev machine; so I'm amused by the claim it can be setup w/ minimal  
fuss.






On windows

Dnk wrote:

Again, this comes to preference, but for me I like PHP due to the  
fact Ito is available on a huge number of the web hosts out there,  
and it can be run on Linux, win or osx with minimal fuss. Easy to  
setup a dev machine without vendor lockin.


Dk



On 18-Feb-09, at 7:10 PM, bsyyu ben.s...@gmail.com wrote:


Thanks for your comments.
I am not a student for learning. Currently I have finished my first
project with Flex for a shopping cart project.
http://www.fredederick.com/fredederick_shop_online/
It is done with PHP backend.

After that project, I have intention to develop a DIY shopping cart
system such as X-cart with Flex and would like to know which server
language best fit with Flex, regarding the speed and support etc.  
and

also sometimes customer may have their own server system that I have
to fit into, then which backend is most popular etc.

thanks

--- In flexcoders@yahoogroups.com, Dnk d.k.emailli...@... wrote:

 They will all get the job done.

 It is matter of requirements and preferences for the job.

 Dustin Krysak

 Sent from my iPhone

 On 18-Feb-09, at 4:31 PM, bsyyu ben.s...@... wrote:

  currently, I am using PHP as server language. In fact I would  
like to
  learn other server language in combination using Flex. Any  
suggestion

  such as .NET, coldfusion or JSP.
 
 






--
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] flex acedamic projects please

2009-02-19 Thread siva_chimmani
hi to all

i am new to flex,i have learnt flex form one of the institution in
hyderabad,now i am going to anylyze the project for that reason i am
reqesting to all,if any one has small felx project please post to me...

thanks in advance
sivasankar



[flexcoders] how to use a preloader?

2009-02-19 Thread luvfotography
Hi, I've got a huge application - 800k, how do I use a preloader that
loads in my huge app? In order to get something on the page while the
rest of the application loads.. any tips/tricks/ links to more
detailed explanation?
thanks,




[flexcoders] Re: How can I shorten the heading on the Advanced Data Grid

2009-02-19 Thread Amy
--- In flexcoders@yahoogroups.com, boy_trike boy_tr...@... wrote:

 I need to use the ADG for the style function but notice that the
 headings now are WIDER with a space on the right for multiple sort
 priorities.  Is there an easy way to eliminate that?

http://flexdiary.blogspot.com/2008/09/extended-datagrid-with-
stylefunction.html



Re: [flexcoders] design question: editing / saving complex value objects

2009-02-19 Thread Maciek Sakrejda
Anyone? I'm sure this sort of thing comes up pretty frequently--I'd be
curious to know how other Flex users tackle it.

-Maciek


-Original Message-
From: Maciek Sakrejda msakre...@truviso.com
Reply-To: flexcoders@yahoogroups.com
To: flexcoders flexcoders@yahoogroups.com
Subject: [flexcoders] design question: editing / saving complex value
objects
Date: Wed, 18 Feb 2009 10:35:04 -0800

Suppose I have a class Calendar that mirrors a server-side class (we're
not really working with Calendars, but I think this is a reasonably good
and simple analogy):

class Calendar {
public var appointments:ArrayCollection;
/* other stuff */
}

Then I want users to be able to edit and save the Calendar: I have a
CalendarEditor. Editing a Calendar is moderately complicated (e.g.,
adding, removing, or editing Appointments), so I want explicit
save/cancel steps.

When editing something really simple, this is not really a problem--when
the user saves, I propagate the view state to the object; when she hits
cancel, I don't do anything.

However, the Calendar determines what combination of Appointments is
valid (they can't overlap), and the Calendar is the dataProvider of the
CalendarEditor, so I can't fully validate a combination of Appointments
without adding them to the Calendar. This means I actually need to add
the appointments to the Calendar before it is saved so that they can be
(a) validated in combination and (b) used to update the view while the
edit is in progress. This makes save/cancel steps trickier: do I

(1) Clone the Calendar (and therefore have it provide a clone() method)
when assigned in the dataProvider, modify the clone, and assign the
dataProvider reference when the user hits save.
(2) Clone the Calendar as above, but have the Editor modify the
original, and restore the clone in case the user cancels.
(3) Something more clever?

The problem with (1) is that cloning may be somewhat complicated, and it
feels ugly to have the Editor update the dataProvider reference
(instead of modifying the actual object that was set as the data
provider). (2) hits the same issue. Perhaps the solution is to maintain
a private clone, and copy back the state on save? Or is the right answer
here that the model should not expect that the editor will update the
object it set as the dataProvider, but should instead expect an update
through a mechanism like a Mate map?

Any thoughts? (Please keep in mind that my experience with MVC
frameworks is unfortunately minimal, though I'm looking into Mate right
now).

Thanks,
Maciek









Re: [flexcoders] how to use a preloader?

2009-02-19 Thread Alan K
http://www.adobe.com/devnet/flash/articles/preloader.html

http://www.adobe.com/devnet/actionscript/articles/lightweight_as3_print.html





RE: [flexcoders] how to use a preloader?

2009-02-19 Thread Kenneth Sutherland
This one is a good one to look at.

http://jessewarden.com/2007/07/making-a-cooler-preloader-in-flex-part-1-
of-3.html

 

 

This one is helpful but will give a much bigger preloader, but useful
for reference.

http://www.onflex.org/ted/2006/07/flex-2-preloaders-swf-png-gif-examples
.php

 

Also I seem to remember that if you are going to run a swf animation for
the preloader, create it using AS2.  Keeps performance up as the flash
player can run AS2 and AS3 code at the same time.

 

Kenneth.

 

 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of luvfotography
Sent: 19 February 2009 16:11
To: flexcoders@yahoogroups.com
Subject: [flexcoders] how to use a preloader?

 

Hi, I've got a huge application - 800k, how do I use a preloader that
loads in my huge app? In order to get something on the page while the
rest of the application loads.. any tips/tricks/ links to more
detailed explanation?
thanks,



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] Flex server language

2009-02-19 Thread Kevin Benz
My thoughts.. 

Learning Java makes you a better Flex developer. 

Learning Java should make you a better OOP developer (which makes you a
better Flex developer).

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of bsyyu
Sent: Wednesday, February 18, 2009 4:32 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex server language

 

currently, I am using PHP as server language. In fact I would like to
learn other server language in combination using Flex. Any suggestion
such as .NET, coldfusion or JSP.




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 

image001.jpgimage002.jpg

[flexcoders] Re: Drawing graphics on an image

2009-02-19 Thread christophe_jacquelin
It is OK for drawing the lines but when I draw a new line I would like
to erase the preceeding lines that are on the image. I clear the
sprite but it is not working.

Thank you for your help.
Christophe, 

--- In flexcoders@yahoogroups.com, jer_ela g...@... wrote:

 The graphics object for the image or the container it is in, is below
 the content so it is hidden behind the image.  Stick a display object
 such as a sprite on top or it and draw on its graphics object.
 
 --- In flexcoders@yahoogroups.com, christophe_jacquelin
 christophe_jacquelin@ wrote:
 
  Hello, 
  
  I want to draw graphics (graphics.lineto) on an existing image, but
  the lines does not appear. Is it possible to make graphics on an
 image ? 
  
  Thank you,
  Christophe,
 





[flexcoders] Class Image

2009-02-19 Thread christophe_jacquelin
Hello, 

I am searching the code for an image class for doing image processing.

Do you have examples ? 

Thank you,
Christophe, 




[flexcoders] Read XML files

2009-02-19 Thread christophe_jacquelin
Hello,

Which instructions to use to read/write XML files ?

Thank you,
Christophe,




Re: [flexcoders] Re: Drawing graphics on an image

2009-02-19 Thread Laurent Cozic
You can't draw directly on an mx:Image component. As suggested below, you need 
to add a Sprite on top of the image and draw on that sprite. The best way would 
probably be to inherit from mx:Image and do the drawing in updateDisplayList(). 
For example:

?xml version=1.0 encoding=utf-8?
mx:Image xmlns:mx=http://www.adobe.com/2006/mxml;
    
    mx:Script
        ![CDATA[
        
            private var yourSprite:Sprite;            
            
            override protected function createChildren():void {
                super.createChildren();                    
                if (!yourSprite) yourSprite = new Sprite();
            }            
            
            override protected function updateDisplayList(unscaledWidth:Number, 
unscaledHeight:Number):void {
                super.updateDisplayList(unscaledWidth, unscaledHeight);
                
                // Do the drawing on yourSprite.graphics here
                
                addChild(yourSprite);
            }            
            
        ]]
    /mx:Script
    
/mx:Image


Also, if you need to clear the image, just set Image.source to null.


--
Laurent Cozic

Flash, Flex and Web Application development
http://pogopixels.com

--- On Thu, 2/19/09, christophe_jacquelin christophe_jacque...@yahoo.fr wrote:
From: christophe_jacquelin christophe_jacque...@yahoo.fr
Subject: [flexcoders] Re: Drawing graphics on an image
To: flexcoders@yahoogroups.com
Date: Thursday, February 19, 2009, 4:53 PM












It is OK for drawing the lines but when I draw a new line I would 
like

to erase the preceeding lines that are on the image. I clear the

sprite but it is not working.



Thank you for your help.

Christophe, 



--- In flexcod...@yahoogro ups.com, jer_ela g...@... wrote:



 The graphics object for the image or the container it is in, is below

 the content so it is hidden behind the image.  Stick a display object

 such as a sprite on top or it and draw on its graphics object.

 

 --- In flexcod...@yahoogro ups.com, christophe_ jacquelin

 christophe_ jacquelin@  wrote:

 

  Hello, 

  

  I want to draw graphics (graphics.lineto) on an existing image, but

  the lines does not appear. Is it possible to make graphics on an

 image ? 

  

  Thank you,

  Christophe,

 






 

  




 

















  

[flexcoders] TabNavigator data provider

2009-02-19 Thread lanekelly5
I have a ViewStack which I'm controlling with a LinkBar (via the 
dataProvider). I want to have a second TabNavigator (actually the 
google code SuperTabNavigator) controlling this same ViewStack. What I 
can't seem to figure out is how to assign a dataProvider to the 
TabNavigator. Are there any examples that show this? 

Thanks.



Re: [flexcoders] Read XML files

2009-02-19 Thread Laurent Cozic
Parsing XML is built into AS3, see for example: 
http://www.kirupa.com/developer/flashcs3/using_xml_as3_pg1.htm

To load an XML file, see URLLoader and URLRequest. For example:

var loader = new URLLoader();
loader.load(new URLRequest(http://example.com/xml.xml;));
loader.addEventListener(complete, xmlLoaded);

function xmlLoaded(event) {
   var xmlString = event.currentTarget.data;

   // and parse the XML here
}

--
Laurent Cozic

Flash, Flex and Web Application development
http://pogopixels.com

--- On Thu, 2/19/09, christophe_jacquelin christophe_jacque...@yahoo.fr wrote:
From: christophe_jacquelin christophe_jacque...@yahoo.fr
Subject: [flexcoders] Read XML files
To: flexcoders@yahoogroups.com
Date: Thursday, February 19, 2009, 5:04 PM












Hello,



Which instructions to use to read/write XML files ?



Thank you,

Christophe,




 

  




 

















  

Re: [flexcoders] Re: Flex server language

2009-02-19 Thread Jeffry Houser


It was on windows, years ago, and I was trying to get it to work w/ IIS 
not Apache. 
I don't remember specific issues, though. 


Dnk wrote:
On windows and mac, there are all encompassing dev installers that 
will install PHP, apache and mysql in a matter of minutes without any 
real config needed. They have a GUI for the most common changes you 
may want to make.  

I believe the win one is called WAMP and the mac one is MAMP. 



Never had an issue with them. Easy as pie. 
D



On 19-Feb-09, at 5:09 AM, Jeffry Houser j...@farcryfly.com 
mailto:j...@farcryfly.com wrote:




 I prefer CF because it is what I know.  Since it comes from Adobe 
it's integration w/ Flex is top notch. 

 After 2 days of trying, I gave up trying to get PHP to work on my 
dev machine; so I'm amused by the claim it can be setup w/ minimal 
fuss. 




On windows


Dnk wrote:

Again, this comes to preference, but for me I like PHP due to the 
fact Ito is available on a huge number of the web hosts out there, 
and it can be run on Linux, win or osx with minimal fuss. Easy to 
setup a dev machine without vendor lockin.  


Dk



On 18-Feb-09, at 7:10 PM, bsyyu ben.s...@gmail.com 
mailto:ben.s...@gmail.com wrote:



Thanks for your comments.
I am not a student for learning. Currently I have finished my first
project with Flex for a shopping cart project.
http://www.fredederick.com/fredederick_shop_online/
It is done with PHP backend.

After that project, I have intention to develop a DIY shopping cart
system such as X-cart with Flex and would like to know which server
language best fit with Flex, regarding the speed and support etc. and
also sometimes customer may have their own server system that I have
to fit into, then which backend is most popular etc.

thanks

--- In flexcoders@yahoogroups.com 
mailto:flexcoders%40yahoogroups.com, Dnk d.k.emailli...@... wrote:


 They will all get the job done.

 It is matter of requirements and preferences for the job.

 Dustin Krysak

 Sent from my iPhone

 On 18-Feb-09, at 4:31 PM, bsyyu ben.s...@... wrote:

  currently, I am using PHP as server language. In fact I would 
like to
  learn other server language in combination using Flex. Any 
suggestion

  such as .NET, coldfusion or JSP.
 
 




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






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



Re: [flexcoders] Re: Flex server language

2009-02-19 Thread dnk


On 19-Feb-09, at 9:42 AM, Jeffry Houser wrote:

 It was on windows, years ago, and I was trying to get it to work w/  
IIS not Apache.

 I don't remember specific issues, though.



Yeah, when going with IIS, it is a bit of a manual process. But with  
the installers, it was a breeze. And sets up all the elements at once.


d




[flexcoders] Re: How to get selected row in AdvancedDataGrid with Hierarchical Data?

2009-02-19 Thread dfstewart3
--- In flexcoders@yahoogroups.com, dfstewart3 dfstewa...@... 
wrote:

I am having the same issue.  Did you ever find a resolution?
Thanks,
Donna

 I would like to bump this up as I am having the same issue.  Does 
 anyone know of a resolution?
 
 Thanks!
 
 --- In flexcoders@yahoogroups.com, Djamshed djamshed@ wrote:
 
  thanks for reply. selectedItem works perfect in the described 
 case,
  but it doesn't seem to work with
  
  selectionMode=multipleCells; 
  
  selectedItem returns null in this case. Documentation states that
  selectedCells needs to be used. However,selectedCells does not
  contain data itself, it has rowIndex that points to the row 
 number,
  but not to the index in dataprovider. So, the question is: how to 
 get
  the clicked row (or cell) data if rowIndex is not pointing to DP 
and
  selectedItem is null?
  
  
  --- In flexcoders@yahoogroups.com, shaun shaun@ wrote:
  
   
   Djamshed wrote:
When you open children in AdvancedDataGrid which uses 
 Hierarchical
data, rowIndex in selectedCells does not refer to the ADG's
dataprovider index.

Here is the example: http://djamshed.googlepages.com/grid.html
Source is here: http://djamshed.googlepages.com/Grid.mxml.html

Open a child node and DOUBLE CLICK on any cell of a child, 
 rowIndex
seems correct (in terms of reflecting the row number), but 
this
rowIndex definitely does NOT REFER to the index in 
 dataprovider. Is
there any way to get the selected data?

PS: ADG's variable named firstCellSelectionData seems like 
 keeping
the correct value, but it is private. Looked at the source of 
 ADG, it
says that everything it keeps is found in selectedCells, so 
the 
 story
begins from scratch.

   
   There is a lot of good information in the help/API docs section 
 of Flex 
   Builder.
   If you have a quick glance through the API docs you'll see the
  following 
   two properties, selectedItem and selectedItems which might be 
   appropriate for your situation.
   
   
   --
   selectedItem  property
   selectedItem:Object  [read-write]
   A reference to the selected item in the data provider.
   
   The default value is null.
   
   This property can be used as the source for data binding.
   
   
   Implementation
public function get selectedItem():Object
public function set selectedItem(value:Object):void
   
   --
   
   selectedItems property
   selectedItems:Array  [read-write]
   An Array of references to the selected items in the data 
 provider. The 
   items are in the reverse order that the user selected the items.
   
   The default value is [ ].
   
   This property can be used as the source for data binding.
   
   
   Implementation
public function get selectedItems():Array
public function set selectedItems(value:Array):void
   
   
   --
   
   HTH.
 - shaun
  
 





[flexcoders] Re: How to get selected row in AdvancedDataGrid with Hierarchical Data?

2009-02-19 Thread dfstewart3
Has anyone found a resolution to this issue?  Thanks!



[flexcoders] ColumnChart - Data tip target for invisible column

2009-02-19 Thread Richard Rodseth
Is there a way to force a ColumnChart to display a data tip target even when
the column value is so small (relative to the others) that the column is
invisible?


[flexcoders] Weird XMLListCollection behaviour - items won't remove

2009-02-19 Thread flexcoder2008
I am having all sorts of problems with removing items from an
XMLListCollection.  Not sure if this is because the dataBinding is
preventing the items from being removed or not - I'm hoping someone
who has run into this issue as well can give me some insight.

I have 2 XMLListCollections, each 1 is bound to a seperate DataGrid.

There is an approvedItemList bound to dgApproved, and an
unApprovedList bound to dgUnApproved.

Sometimes, I want to remove an object from the 1 list, and then add it
to the other list.  (I am using Cairngorm by the way)

For example, I want to take an item in the unApprovedList and add it
to the ApprovedList.  So first I would add the object to the
ApprovedList, and then get the Index of the object in the
UnApprovedList and use RemoveAt like so:

approvedList.addItem(myObject);
var index:int = unApprovedItemList.getItemIndex(myObject);
unApprovedList.removeAt(index);

I am looking at the collections in the watch window, and I can see
that when the .removeAt fires, the object is still left in the
unApprovedList!  Why is this happening?

I then attempted to remove the item this way as a workaround:

approvedList.addItem(myObject);

var index:int = 0;
for each(var o:Object in unApprovedList){
if(o.Id == myObject.Id.toString()){
delete o[index];
break;
}
else
index++;

}

Here again, when the delete command gets hit, the line executes, but
the object is left in the collection.  I am left with 2 copies, the
newly added one in the approvedList, and the leftover copy that I've
tried to delete in the unApprovedList.

Is the databinding somehow making a copy or locking that object?







RE: [flexcoders] Re: How can I shorten the heading on the Advanced Data Grid

2009-02-19 Thread Tracy Spratt
Set sortExpertMode=true

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Amy
Sent: Thursday, February 19, 2009 11:13 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How can I shorten the heading on the Advanced
Data Grid

 

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, boy_trike boy_tr...@... wrote:

 I need to use the ADG for the style function but notice that the
 headings now are WIDER with a space on the right for multiple sort
 priorities. Is there an easy way to eliminate that?

http://flexdiary.blogspot.com/2008/09/extended-datagrid-with-
http://flexdiary.blogspot.com/2008/09/extended-datagrid-with- 
stylefunction.html





[flexcoders] Re: Weird XMLListCollection behaviour - items won't remove

2009-02-19 Thread flexcoder2008
I should make a correction...the 2nd example doesn't workwhere I
am using the delete with an index.  That just removes one of the nodes
of the object itself.

So I am still stuck as to how to successfully remove  a shared object
between 1 list and another and have the item removed from 1 datagrid
and added to another.


--- In flexcoders@yahoogroups.com, flexcoder2008 djohnso...@... wrote:

 I am having all sorts of problems with removing items from an
 XMLListCollection.  Not sure if this is because the dataBinding is
 preventing the items from being removed or not - I'm hoping someone
 who has run into this issue as well can give me some insight.
 
 I have 2 XMLListCollections, each 1 is bound to a seperate DataGrid.
 
 There is an approvedItemList bound to dgApproved, and an
 unApprovedList bound to dgUnApproved.
 
 Sometimes, I want to remove an object from the 1 list, and then add it
 to the other list.  (I am using Cairngorm by the way)
 
 For example, I want to take an item in the unApprovedList and add it
 to the ApprovedList.  So first I would add the object to the
 ApprovedList, and then get the Index of the object in the
 UnApprovedList and use RemoveAt like so:
 
 approvedList.addItem(myObject);
 var index:int = unApprovedItemList.getItemIndex(myObject);
 unApprovedList.removeAt(index);
 
 I am looking at the collections in the watch window, and I can see
 that when the .removeAt fires, the object is still left in the
 unApprovedList!  Why is this happening?
 
 I then attempted to remove the item this way as a workaround:
 
 approvedList.addItem(myObject);
   
 var index:int = 0;
 for each(var o:Object in unApprovedList){
 if(o.Id == myObject.Id.toString()){
 delete o[index];
 break;
 }
 else
   index++;
   
 }
 
 Here again, when the delete command gets hit, the line executes, but
 the object is left in the collection.  I am left with 2 copies, the
 newly added one in the approvedList, and the leftover copy that I've
 tried to delete in the unApprovedList.
 
 Is the databinding somehow making a copy or locking that object?





RE: [flexcoders] Re: Weird XMLListCollection behaviour - items won't remove

2009-02-19 Thread Tracy Spratt
First, are you sure your collections are independent?  If you use the
same XMLList for both, they are not.

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of flexcoder2008
Sent: Thursday, February 19, 2009 2:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Weird XMLListCollection behaviour - items
won't remove

 

I should make a correction...the 2nd example doesn't workwhere I
am using the delete with an index. That just removes one of the nodes
of the object itself.

So I am still stuck as to how to successfully remove a shared object
between 1 list and another and have the item removed from 1 datagrid
and added to another.

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, flexcoder2008 djohnso...@... wrote:

 I am having all sorts of problems with removing items from an
 XMLListCollection. Not sure if this is because the dataBinding is
 preventing the items from being removed or not - I'm hoping someone
 who has run into this issue as well can give me some insight.
 
 I have 2 XMLListCollections, each 1 is bound to a seperate DataGrid.
 
 There is an approvedItemList bound to dgApproved, and an
 unApprovedList bound to dgUnApproved.
 
 Sometimes, I want to remove an object from the 1 list, and then add it
 to the other list. (I am using Cairngorm by the way)
 
 For example, I want to take an item in the unApprovedList and add it
 to the ApprovedList. So first I would add the object to the
 ApprovedList, and then get the Index of the object in the
 UnApprovedList and use RemoveAt like so:
 
 approvedList.addItem(myObject);
 var index:int = unApprovedItemList.getItemIndex(myObject);
 unApprovedList.removeAt(index);
 
 I am looking at the collections in the watch window, and I can see
 that when the .removeAt fires, the object is still left in the
 unApprovedList! Why is this happening?
 
 I then attempted to remove the item this way as a workaround:
 
 approvedList.addItem(myObject);
 
 var index:int = 0;
 for each(var o:Object in unApprovedList){
 if(o.Id == myObject.Id.toString()){
 delete o[index];
 break;
 }
 else
 index++; 
 
 }
 
 Here again, when the delete command gets hit, the line executes, but
 the object is left in the collection. I am left with 2 copies, the
 newly added one in the approvedList, and the leftover copy that I've
 tried to delete in the unApprovedList.
 
 Is the databinding somehow making a copy or locking that object?






[flexcoders] [Inspectable]

2009-02-19 Thread tchredeemed
Can someone tell me when I would want to use certain parts of
Inspectable and what they do for me?

The only one I have really found useful is 'enumeration'...

For instance, what is the difference between

-
[Bindable]
public var arrowDirection:String = 'right';
-

AND

-
[Inspectable(defaultValue=right)]
[Bindable]
public var arrowDirection:String = 'right';
-

What benefit do you get from the rest of them as well?

Thanks for any help!



RE: [flexcoders] Read XML files

2009-02-19 Thread Tracy Spratt
I'd suggets HTTPService for reading xml files.  It is a bit easier to
use than URLLoader, and aimed specifically at XML over http.

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Laurent Cozic
Sent: Thursday, February 19, 2009 12:08 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Read XML files

 

Parsing XML is built into AS3, see for example:
http://www.kirupa.com/developer/flashcs3/using_xml_as3_pg1.htm

To load an XML file, see URLLoader and URLRequest. For example:

var loader = new URLLoader();
loader.load(new URLRequest(http://example.com/xml.xml;));
loader.addEventListener(complete, xmlLoaded);

function xmlLoaded(event) {
   var xmlString = event.currentTarget.data;

   // and parse the XML here
}

--
Laurent Cozic

Flash, Flex and Web Application development
http://pogopixels.com http://pogopixels.com 

--- On Thu, 2/19/09, christophe_jacquelin
christophe_jacque...@yahoo.fr wrote:

From: christophe_jacquelin christophe_jacque...@yahoo.fr
Subject: [flexcoders] Read XML files
To: flexcoders@yahoogroups.com
Date: Thursday, February 19, 2009, 5:04 PM

Hello,

Which instructions to use to read/write XML files ?

Thank you,
Christophe,

 





RE: [flexcoders] design question: editing / saving complex valueobjects

2009-02-19 Thread Tracy Spratt
Can you make the validation functionality independently available?

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Maciek Sakrejda
Sent: Thursday, February 19, 2009 11:21 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] design question: editing / saving complex
valueobjects

 

Anyone? I'm sure this sort of thing comes up pretty frequently--I'd be
curious to know how other Flex users tackle it.

-Maciek

-Original Message-
From: Maciek Sakrejda msakre...@truviso.com
mailto:msakrejda%40truviso.com 
Reply-To: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
To: flexcoders flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
Subject: [flexcoders] design question: editing / saving complex value
objects
Date: Wed, 18 Feb 2009 10:35:04 -0800

Suppose I have a class Calendar that mirrors a server-side class (we're
not really working with Calendars, but I think this is a reasonably good
and simple analogy):

class Calendar {
public var appointments:ArrayCollection;
/* other stuff */
}

Then I want users to be able to edit and save the Calendar: I have a
CalendarEditor. Editing a Calendar is moderately complicated (e.g.,
adding, removing, or editing Appointments), so I want explicit
save/cancel steps.

When editing something really simple, this is not really a problem--when
the user saves, I propagate the view state to the object; when she hits
cancel, I don't do anything.

However, the Calendar determines what combination of Appointments is
valid (they can't overlap), and the Calendar is the dataProvider of the
CalendarEditor, so I can't fully validate a combination of Appointments
without adding them to the Calendar. This means I actually need to add
the appointments to the Calendar before it is saved so that they can be
(a) validated in combination and (b) used to update the view while the
edit is in progress. This makes save/cancel steps trickier: do I

(1) Clone the Calendar (and therefore have it provide a clone() method)
when assigned in the dataProvider, modify the clone, and assign the
dataProvider reference when the user hits save.
(2) Clone the Calendar as above, but have the Editor modify the
original, and restore the clone in case the user cancels.
(3) Something more clever?

The problem with (1) is that cloning may be somewhat complicated, and it
feels ugly to have the Editor update the dataProvider reference
(instead of modifying the actual object that was set as the data
provider). (2) hits the same issue. Perhaps the solution is to maintain
a private clone, and copy back the state on save? Or is the right answer
here that the model should not expect that the editor will update the
object it set as the dataProvider, but should instead expect an update
through a mechanism like a Mate map?

Any thoughts? (Please keep in mind that my experience with MVC
frameworks is unfortunately minimal, though I'm looking into Mate right
now).

Thanks,
Maciek





[flexcoders] Re: Forcing an Image to redraw when the source filename is the same

2009-02-19 Thread flexcoder2008
Thanks for that suggestion, but I don't think that's an approach I can
take.  Any other suggestions?

Is this just a browser cache issue?



[flexcoders] Fwd: help needed on Image scalling and manipulations

2009-02-19 Thread Amplify Mindware




--- On Wed, 2/18/09, Amplify Mindware projectonf...@gmail.com wrote:

 From: Amplify Mindware projectonf...@gmail.com
 Subject: Fwd: help needed on Image scalling and manipulations
 To: Amplify Mindware projectonf...@ymail.com
 Date: Wednesday, February 18, 2009, 7:41 PM
 -- Forwarded message --
 From: Amplify Mindware projectonf...@gmail.com
 Date: Wed, Feb 18, 2009 at 7:40 AM
 Subject: help needed on Image scalling and manipulations
 To: flex_in...@googlegroups.com
 
 
 Hello All,
 
I am taking the images  form the user. I want to  store
 it in a fixed
 size on the server.
How can I achieve this?
 
Awating for prompt reply.
 Regards,
 Amplifys


  



[flexcoders] Re: Weird XMLListCollection behaviour - items won't remove

2009-02-19 Thread flexcoder2008
The collections are independent.  
When my app starts up I have an XML variable that gets split into 2
seperate lists.

So for example:

var myList:XML

I then split the lists into 2 like so:

for each(var x:XML in myList){
 if(x.Status == UnApproved) 
  unApproved.addItem(x.copy()); 
 else if(x.Status == Approved) 
  approvedList.addItem(x.copy()); 
}


I used the .copy()  method to ensure that this isn't tied back to the
original XML by reference.


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

 First, are you sure your collections are independent?  If you use the
 same XMLList for both, they are not.
 
  
 
 Tracy Spratt 
 Lariat Services 
 
 Flex development bandwidth available 
 
 
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of flexcoder2008
 Sent: Thursday, February 19, 2009 2:27 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Weird XMLListCollection behaviour - items
 won't remove
 
  
 
 I should make a correction...the 2nd example doesn't workwhere I
 am using the delete with an index. That just removes one of the nodes
 of the object itself.
 
 So I am still stuck as to how to successfully remove a shared object
 between 1 list and another and have the item removed from 1 datagrid
 and added to another.
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , flexcoder2008 djohnson29@ wrote:
 
  I am having all sorts of problems with removing items from an
  XMLListCollection. Not sure if this is because the dataBinding is
  preventing the items from being removed or not - I'm hoping someone
  who has run into this issue as well can give me some insight.
  
  I have 2 XMLListCollections, each 1 is bound to a seperate DataGrid.
  
  There is an approvedItemList bound to dgApproved, and an
  unApprovedList bound to dgUnApproved.
  
  Sometimes, I want to remove an object from the 1 list, and then add it
  to the other list. (I am using Cairngorm by the way)
  
  For example, I want to take an item in the unApprovedList and add it
  to the ApprovedList. So first I would add the object to the
  ApprovedList, and then get the Index of the object in the
  UnApprovedList and use RemoveAt like so:
  
  approvedList.addItem(myObject);
  var index:int = unApprovedItemList.getItemIndex(myObject);
  unApprovedList.removeAt(index);
  
  I am looking at the collections in the watch window, and I can see
  that when the .removeAt fires, the object is still left in the
  unApprovedList! Why is this happening?
  
  I then attempted to remove the item this way as a workaround:
  
  approvedList.addItem(myObject);
  
  var index:int = 0;
  for each(var o:Object in unApprovedList){
  if(o.Id == myObject.Id.toString()){
  delete o[index];
  break;
  }
  else
  index++; 
  
  }
  
  Here again, when the delete command gets hit, the line executes, but
  the object is left in the collection. I am left with 2 copies, the
  newly added one in the approvedList, and the leftover copy that I've
  tried to delete in the unApprovedList.
  
  Is the databinding somehow making a copy or locking that object?
 





[flexcoders] Label as item renderer cuts off data when opaqueBackground specified

2009-02-19 Thread Maciek Sakrejda
It looks like setting opaqueBackground on a Label used as an
itemRenderer causes the item text to be cut off when the item is
mid-scroll (at the end of the grid). This does not happen when
opaqueBackground is not set.

Small example:

mx:DataGrid dataProvider={[ foo, bar, baz, quux ]} height=90
mx:columns
mx:DataGridColumn dataField=category
mx:itemRenderer
mx:Component
mx:Label opaqueBackground=0xFF/
/mx:Component
/mx:itemRenderer
/mx:DataGridColumn
mx:DataGridColumn dataField=category/
/mx:columns
/mx:DataGrid

Anyone run into this?

-Maciek





RE: [flexcoders] Re: Browser Memory Consumption not coming down even after remove child

2009-02-19 Thread Alex Harui
See my presentation on memory management and garbage collection on my blog.

GC normally does not run on removal/deallocation.  It only runs on new 
allocations.

Don, can you reference a bug so I can see what you're talking about and whether 
someone is looking into it?

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 Nirav Gosalia
Sent: Thursday, February 19, 2009 1:46 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Browser Memory Consumption not coming down even after 
remove child


I faced the problem in Flash Player 9 as well.

I think the issue is that the garbage collection of non referenced
entities is not happening due to which my browser memory footprint
goes on icreasing making the app very sluggish and eventually hang.

When I say 'hang' I mean popups stop opening, traversing among fields
in a form using the tab key does not work etc.

Also the fact that those non referenced objects get GC'd using the
Run Garbage Collector button in flex profiler shows that my code does
not have any other reference to those objects !

Can you suggest me the approach that I should follow as I dont know
What Next ?

:-(

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Don 
Kerr fusionp...@... wrote:

 See my earlier posting about Flash 10 memory issues and crashing
IE. There are many
 bugs reported related to this on Adobe's bug tracking.

 Does your app just hang, or in some cases does it crash IE?

 Did your app work better/ok using Flash 9? Mine did not have any
memory issues under
 Flash 9, but they do with Flash 10.

 It may or may not be your code. It may be a this known issue with
Flash 10. If it turns out
 to be Flex code related...please let us know. So far, I've not seen
any coding solutions
 proposed to fix memory/crash issues. I'm looking for help too.

 Maybe this list will help us both. I wish I had the answer for
both of us.

 Don


 --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, 
 Nirav Gosalia nirav_290@
wrote:
 
  Hi,
 
  We have developed large applications like CRM typically having
  several tabs.
 
  We allow the user to travere a list of names in a tree and on his
  choice we add tabs to the tab navigator. These tabs can be closed
by
  the user using a close button on the tab.
 
  Issue: As the user opens new tabs the browser consumes more and
more
  memory( 250MB). When tabs are closed we explicitly use
removeChildAt
  () method to remove them from the tab navigator. However browser
  memory consumption does not decrease.
 
  In Flex profiler the closed tabs get garbage collected when I
click
  on the 'Run Garbage Collector' button which proves that there are
no
  references to the closed tabs and they are perfect candidates for
GC.
 
  Why does the browser memory consumption not go down ?
  The application gets sluggish and eventually hangs ?
 
  We are not in a position to do a production release till we get
  around this issue ?
 
  I am using IE7 and flash player 10
 
  Please help !
 




RE: [flexcoders] Re: Weird XMLListCollection behaviour - items won't remove

2009-02-19 Thread Tracy Spratt
Good.

 

Are you using copy() when you addItem() to the approvedList?

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of flexcoder2008
Sent: Thursday, February 19, 2009 2:49 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Weird XMLListCollection behaviour - items
won't remove

 

The collections are independent. 
When my app starts up I have an XML variable that gets split into 2
seperate lists.

So for example:

var myList:XML

I then split the lists into 2 like so:

for each(var x:XML in myList){
if(x.Status == UnApproved) 
unApproved.addItem(x.copy()); 
else if(x.Status == Approved) 
approvedList.addItem(x.copy()); 
}

I used the .copy() method to ensure that this isn't tied back to the
original XML by reference.

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

 First, are you sure your collections are independent? If you use the
 same XMLList for both, they are not.
 
 
 
 Tracy Spratt 
 Lariat Services 
 
 Flex development bandwidth available 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of flexcoder2008
 Sent: Thursday, February 19, 2009 2:27 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Re: Weird XMLListCollection behaviour - items
 won't remove
 
 
 
 I should make a correction...the 2nd example doesn't workwhere I
 am using the delete with an index. That just removes one of the nodes
 of the object itself.
 
 So I am still stuck as to how to successfully remove a shared object
 between 1 list and another and have the item removed from 1 datagrid
 and added to another.
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 , flexcoder2008 djohnson29@ wrote:
 
  I am having all sorts of problems with removing items from an
  XMLListCollection. Not sure if this is because the dataBinding is
  preventing the items from being removed or not - I'm hoping someone
  who has run into this issue as well can give me some insight.
  
  I have 2 XMLListCollections, each 1 is bound to a seperate DataGrid.
  
  There is an approvedItemList bound to dgApproved, and an
  unApprovedList bound to dgUnApproved.
  
  Sometimes, I want to remove an object from the 1 list, and then add
it
  to the other list. (I am using Cairngorm by the way)
  
  For example, I want to take an item in the unApprovedList and add it
  to the ApprovedList. So first I would add the object to the
  ApprovedList, and then get the Index of the object in the
  UnApprovedList and use RemoveAt like so:
  
  approvedList.addItem(myObject);
  var index:int = unApprovedItemList.getItemIndex(myObject);
  unApprovedList.removeAt(index);
  
  I am looking at the collections in the watch window, and I can see
  that when the .removeAt fires, the object is still left in the
  unApprovedList! Why is this happening?
  
  I then attempted to remove the item this way as a workaround:
  
  approvedList.addItem(myObject);
  
  var index:int = 0;
  for each(var o:Object in unApprovedList){
  if(o.Id == myObject.Id.toString()){
  delete o[index];
  break;
  }
  else
  index++; 
  
  }
  
  Here again, when the delete command gets hit, the line executes, but
  the object is left in the collection. I am left with 2 copies, the
  newly added one in the approvedList, and the leftover copy that I've
  tried to delete in the unApprovedList.
  
  Is the databinding somehow making a copy or locking that object?
 






RE: [flexcoders] Re: Forcing an Image to redraw when the source filename is the same

2009-02-19 Thread Tracy Spratt
Have you tried setting source=null; then resetting the source to the
actual url?

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of flexcoder2008
Sent: Thursday, February 19, 2009 2:43 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Forcing an Image to redraw when the source
filename is the same

 

Thanks for that suggestion, but I don't think that's an approach I can
take. Any other suggestions?

Is this just a browser cache issue?





[flexcoders] Re: How can I shorten the heading on the Advanced Data Grid

2009-02-19 Thread boy_trike
THANKS!  Just what I was looking for.  I must have OLD eyes and
missed it!

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

 Set sortExpertMode=true
 
  




[flexcoders] Repeaters and Referencing Component IDs

2009-02-19 Thread Merrill, Jason
I have a repeater inside a Viewstack working fine. i.e., the Tree
component gets created over and over as expected, however, I would like
to access an array of all the mx:Image instances, so I can load images
into them with Actionscript later (the file name for the image is not
loaded into the app until after the repeater runs and the XML is
loaded).

I thought inside a repeater, the examples I have seen
(http://www.adobe.com/devnet/flex/quickstart/using_the_repeater/  - see
the last example on that page) indicate that the id tag converts to an
array of each repeated component.  However, when I trace _image.length
(ensuring I'm checking after Application.COMPLETE fires), it's always 1,
even though the dataprovider length for the repeater is 5.  Here is the
relevant MXML part of my script:

mx:ViewStack selectedIndex={buttonBar.selectedIndex}
  mx:Repeater id=cubeSideRepeater dataProvider={arr} 
 mx:VBox width={vBoxWidth} height={toggleButtonBarHeight}
backgroundColor={vBoxBackgroundColor}verticalAlign=middle
horizontalAlign=center hideEffect=cache showEffect=cube
 mx:HBox
  mx:Tree borderThickness=0 width={treeWidth}
height=100% dataProvider={_currentTreeNode} labelField=@label
itemClick=treeItemClicked(event) /
  mx:Spacer width=5/
  mx:Image id=_images /
 /mx:HBox
  /mx:VBox
   /mx:Repeater
/mx:ViewStack

How would you handle this?


Jason Merrill 

 Picture (Device Independent Bitmap) Bank of  America   |  Learning
Performance Solutions Instructional Technology  Media   
Learn about the Adobe Flash platform for rich media experiences - join
the Bank of America Flash Platform Community
http://sharepoint.bankofamerica.com/sites/tlc/flash/default.aspx  

Anyone can follow my nonsense on Twitter: jmerrill_2001.  If you know me
personally, follow more nonsense on Facebook. 





.  
attachment: ole0.bmp

[flexcoders] Loading modules from within AIR

2009-02-19 Thread skuteboarding
Hi, I'm currently converting a Flex app to AIR and I've hit a
stumbling block right at the start. When I try to load a module from
disk I get the following error:

SWF is not a loadable module

Which after reading a couple of links I discover is a security message
(normally in Flex it means you're trying to load something on a
different server).

In AIR how do I load a module from disk?

A code example would be great. This is what I'm using currently:

m_moduleInfo = ModuleManager.getModule(url);

Where url is a File.url property.



[flexcoders] Re: Weird XMLListCollection behaviour - items won't remove

2009-02-19 Thread flexcoder2008
Thanks Tracey - yes I am doing that as well.

I'm trying a new approach now - the problem now is that when I try to
retrieve the item index, even though I can see that the object is
there, I am getting an index of -1.  Is there something wrong with
this code block?

approvedList.addItem(myObject.copy());

var index:int = 0;
for each(var o:Object in unApprovedList){
  if(o.id == o.id.toString()){
break;
  }
  else
index++;

}


var x:XML = unApprovedList[index];
// x should refer to the same object in unApprovedList!

var index:int = unApprovedList.getItemIndex(x); // is returning -1
unApprovedList.removeItemAt(index);



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

 Good.
 
  
 
 Are you using copy() when you addItem() to the approvedList?
 
  
 
 Tracy Spratt 
 Lariat Services 
 
 Flex development bandwidth available 
 
 
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of flexcoder2008
 Sent: Thursday, February 19, 2009 2:49 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Weird XMLListCollection behaviour - items
 won't remove
 
  
 
 The collections are independent. 
 When my app starts up I have an XML variable that gets split into 2
 seperate lists.
 
 So for example:
 
 var myList:XML
 
 I then split the lists into 2 like so:
 
 for each(var x:XML in myList){
 if(x.Status == UnApproved) 
 unApproved.addItem(x.copy()); 
 else if(x.Status == Approved) 
 approvedList.addItem(x.copy()); 
 }
 
 I used the .copy() method to ensure that this isn't tied back to the
 original XML by reference.
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Tracy Spratt tspratt@ wrote:
 
  First, are you sure your collections are independent? If you use the
  same XMLList for both, they are not.
  
  
  
  Tracy Spratt 
  Lariat Services 
  
  Flex development bandwidth available 
  
  
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of flexcoder2008
  Sent: Thursday, February 19, 2009 2:27 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] Re: Weird XMLListCollection behaviour - items
  won't remove
  
  
  
  I should make a correction...the 2nd example doesn't workwhere I
  am using the delete with an index. That just removes one of the nodes
  of the object itself.
  
  So I am still stuck as to how to successfully remove a shared object
  between 1 list and another and have the item removed from 1 datagrid
  and added to another.
  
  --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  , flexcoder2008 djohnson29@ wrote:
  
   I am having all sorts of problems with removing items from an
   XMLListCollection. Not sure if this is because the dataBinding is
   preventing the items from being removed or not - I'm hoping someone
   who has run into this issue as well can give me some insight.
   
   I have 2 XMLListCollections, each 1 is bound to a seperate DataGrid.
   
   There is an approvedItemList bound to dgApproved, and an
   unApprovedList bound to dgUnApproved.
   
   Sometimes, I want to remove an object from the 1 list, and then add
 it
   to the other list. (I am using Cairngorm by the way)
   
   For example, I want to take an item in the unApprovedList and add it
   to the ApprovedList. So first I would add the object to the
   ApprovedList, and then get the Index of the object in the
   UnApprovedList and use RemoveAt like so:
   
   approvedList.addItem(myObject);
   var index:int = unApprovedItemList.getItemIndex(myObject);
   unApprovedList.removeAt(index);
   
   I am looking at the collections in the watch window, and I can see
   that when the .removeAt fires, the object is still left in the
   unApprovedList! Why is this happening?
   
   I then attempted to remove the item this way as a workaround:
   
   approvedList.addItem(myObject);
   
   var index:int = 0;
   for each(var o:Object in unApprovedList){
   if(o.Id == myObject.Id.toString()){
   delete o[index];
   break;
   }
   else
   index++; 
   
   }
   
   Here again, when the delete command gets hit, the line executes, but
   the object is left in the collection. I am left with 2 copies, the
   newly added one in the approvedList, and the leftover copy that I've
   tried to delete in the unApprovedList.
   
   Is the databinding somehow making a copy or locking that object?
  
 





RE: [flexcoders] Repeaters and Referencing Component IDs

2009-02-19 Thread Tracy Spratt
The first thing I would do is crate a custom component that encapsulates
the repeated UI(tree and image), and repeat that.  Then I would create a
setter for the image source (set imageSource()) in the repeated
component.

 

I would give my component and id, say myTree.  Repeater would make an
array of the 5 instances.  Then I could do:

myTree[0].imageSource = myImageUrl;

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Merrill, Jason
Sent: Thursday, February 19, 2009 3:43 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Repeaters and Referencing Component IDs

 

I have a repeater inside a Viewstack working fine. i.e., the Tree
component gets created over and over as expected, however, I would like
to access an array of all the mx:Image instances, so I can load images
into them with Actionscript later (the file name for the image is not
loaded into the app until after the repeater runs and the XML is
loaded).

I thought inside a repeater, the examples I have seen (
http://www.adobe.com/devnet/flex/quickstart/using_the_repeater/
http://www.adobe.com/devnet/flex/quickstart/using_the_repeater/   -
see the last example on that page) indicate that the id tag converts to
an array of each repeated component.  However, when I trace
_image.length (ensuring I'm checking after Application.COMPLETE fires),
it's always 1, even though the dataprovider length for the repeater is
5.  Here is the relevant MXML part of my script:

mx:ViewStack selectedIndex={buttonBar.selectedIndex}

  mx:Repeater id=cubeSideRepeater dataProvider={arr} 

 mx:VBox width={vBoxWidth} height={toggleButtonBarHeight}
backgroundColor={vBoxBackgroundColor}verticalAlign=middle
horizontalAlign=center hideEffect=cache showEffect=cube

 mx:HBox

  mx:Tree borderThickness=0 width={treeWidth}
height=100% dataProvider={_currentTreeNode} labelField=@label
itemClick=treeItemClicked(event) /

  mx:Spacer width=5/

  mx:Image id=_images /

 /mx:HBox

  /mx:VBox

   /mx:Repeater

/mx:ViewStack

How would you handle this?

Jason Merrill

 Bank of  America   |  Learning Performance Solutions Instructional
Technology  Media  
Learn about the Adobe Flash platform for rich media experiences - join
the Bank of America Flash Platform Community
http://sharepoint.bankofamerica.com/sites/tlc/flash/default.aspx  

Anyone can follow my nonsense on Twitter: jmerrill_2001.  If you know me
personally, follow more nonsense on Facebook. 





.  



image001.gif

RE: [flexcoders] Re: Weird XMLListCollection behaviour - items won't remove

2009-02-19 Thread Tracy Spratt
Did you verify that var x:XML = unApprovedList[index]; is returning a
good reference?

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of flexcoder2008
Sent: Thursday, February 19, 2009 3:57 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Weird XMLListCollection behaviour - items
won't remove

 

Thanks Tracey - yes I am doing that as well.

I'm trying a new approach now - the problem now is that when I try to
retrieve the item index, even though I can see that the object is
there, I am getting an index of -1. Is there something wrong with
this code block?

approvedList.addItem(myObject.copy());

var index:int = 0;
for each(var o:Object in unApprovedList){
if(o.id == o.id.toString()){
break;
}
else
index++; 

}

var x:XML = unApprovedList[index];
// x should refer to the same object in unApprovedList!

var index:int = unApprovedList.getItemIndex(x); // is returning -1
unApprovedList.removeItemAt(index);

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

 Good.
 
 
 
 Are you using copy() when you addItem() to the approvedList?
 
 
 
 Tracy Spratt 
 Lariat Services 
 
 Flex development bandwidth available 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of flexcoder2008
 Sent: Thursday, February 19, 2009 2:49 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Re: Weird XMLListCollection behaviour - items
 won't remove
 
 
 
 The collections are independent. 
 When my app starts up I have an XML variable that gets split into 2
 seperate lists.
 
 So for example:
 
 var myList:XML
 
 I then split the lists into 2 like so:
 
 for each(var x:XML in myList){
 if(x.Status == UnApproved) 
 unApproved.addItem(x.copy()); 
 else if(x.Status == Approved) 
 approvedList.addItem(x.copy()); 
 }
 
 I used the .copy() method to ensure that this isn't tied back to the
 original XML by reference.
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 , Tracy Spratt tspratt@ wrote:
 
  First, are you sure your collections are independent? If you use the
  same XMLList for both, they are not.
  
  
  
  Tracy Spratt 
  Lariat Services 
  
  Flex development bandwidth available 
  
  
  
  From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of flexcoder2008
  Sent: Thursday, February 19, 2009 2:27 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] Re: Weird XMLListCollection behaviour - items
  won't remove
  
  
  
  I should make a correction...the 2nd example doesn't workwhere I
  am using the delete with an index. That just removes one of the
nodes
  of the object itself.
  
  So I am still stuck as to how to successfully remove a shared object
  between 1 list and another and have the item removed from 1 datagrid
  and added to another.
  
  --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  , flexcoder2008 djohnson29@ wrote:
  
   I am having all sorts of problems with removing items from an
   XMLListCollection. Not sure if this is because the dataBinding is
   preventing the items from being removed or not - I'm hoping
someone
   who has run into this issue as well can give me some insight.
   
   I have 2 XMLListCollections, each 1 is bound to a seperate
DataGrid.
   
   There is an approvedItemList bound to dgApproved, and an
   unApprovedList bound to dgUnApproved.
   
   Sometimes, I want to remove an object from the 1 list, and then
add
 it
   to the other list. (I am using Cairngorm by the way)
   
   For example, I want to take an item in the unApprovedList and add
it
   to the ApprovedList. So first I would add the object to the
   ApprovedList, and then get the Index of the object in the
   UnApprovedList and use RemoveAt like so:
   
   approvedList.addItem(myObject);
   var index:int = unApprovedItemList.getItemIndex(myObject);
   unApprovedList.removeAt(index);
   
   I am looking at the collections in the watch window, and I can see
   that when the .removeAt fires, the object is still left in the
   unApprovedList! Why is this happening?
   
   I then attempted to remove the item this way as a workaround:
   
   approvedList.addItem(myObject);
   
   var index:int = 0;
   for each(var o:Object in unApprovedList){
   if(o.Id == myObject.Id.toString()){
   delete o[index];
   break;
  

[flexcoders] Re: Repeaters and Referencing Component IDs

2009-02-19 Thread Jason
--- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote:

 The first thing I would do is crate a custom component that 
encapsulates
 the repeated UI(tree and image), and repeat that.  Then I would 
create a
 setter for the image source (set imageSource()) in the repeated
 component.
 
  
 
 I would give my component and id, say myTree.  Repeater would 
make an
 array of the 5 instances.  Then I could do:
 
 myTree[0].imageSource = myImageUrl;

OK thanks! I will do that, however, custom component discussion 
aside, this seems to be do-able without a custom component (even 
though yeah, I should wrap it up into one).  The main point of my 
question is that it seems that, applying your example, myTree is not 
an array of several objects (demonstrated with my example) as I would 
have thought - that is the problem with my code I'm trying to figure 
out. In your example, I would think myTree be an array with a length 
of 5 (since the DP is 5 in length) - each object in the array being 
an Image (or in your example, an instance of your custom component).  
But as my example shows, it's length is 1.  Best practices aside, 
from a pure coding perspective (bad as it may be), why does my 
_images array have a length of 1 instead of 5 like the DP?



RE: [flexcoders] Loading modules from within AIR

2009-02-19 Thread Alex Harui
Module must be in same dir as main SWF

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 skuteboarding
Sent: Thursday, February 19, 2009 12:47 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Loading modules from within AIR


Hi, I'm currently converting a Flex app to AIR and I've hit a
stumbling block right at the start. When I try to load a module from
disk I get the following error:

SWF is not a loadable module

Which after reading a couple of links I discover is a security message
(normally in Flex it means you're trying to load something on a
different server).

In AIR how do I load a module from disk?

A code example would be great. This is what I'm using currently:

m_moduleInfo = ModuleManager.getModule(url);

Where url is a File.url property.



[flexcoders] Re: Weird XMLListCollection behaviour - items won't remove

2009-02-19 Thread flexcoder2008
What is the best way to do this?  I tried this line and it returned
true so it should be a good reference right?

var x:XML = unApprovedList[index];
trace(x == unApprovedList[index]);


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

 Did you verify that var x:XML = unApprovedList[index]; is returning a
 good reference?
 
  
 
 Tracy Spratt 
 Lariat Services 
 
 Flex development bandwidth available 
 
 
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of flexcoder2008
 Sent: Thursday, February 19, 2009 3:57 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Weird XMLListCollection behaviour - items
 won't remove
 
  
 
 Thanks Tracey - yes I am doing that as well.
 
 I'm trying a new approach now - the problem now is that when I try to
 retrieve the item index, even though I can see that the object is
 there, I am getting an index of -1. Is there something wrong with
 this code block?
 
 approvedList.addItem(myObject.copy());
 
 var index:int = 0;
 for each(var o:Object in unApprovedList){
 if(o.id == o.id.toString()){
 break;
 }
 else
 index++; 
 
 }
 
 var x:XML = unApprovedList[index];
 // x should refer to the same object in unApprovedList!
 
 var index:int = unApprovedList.getItemIndex(x); // is returning -1
 unApprovedList.removeItemAt(index);
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Tracy Spratt tspratt@ wrote:
 
  Good.
  
  
  
  Are you using copy() when you addItem() to the approvedList?
  
  
  
  Tracy Spratt 
  Lariat Services 
  
  Flex development bandwidth available 
  
  
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of flexcoder2008
  Sent: Thursday, February 19, 2009 2:49 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] Re: Weird XMLListCollection behaviour - items
  won't remove
  
  
  
  The collections are independent. 
  When my app starts up I have an XML variable that gets split into 2
  seperate lists.
  
  So for example:
  
  var myList:XML
  
  I then split the lists into 2 like so:
  
  for each(var x:XML in myList){
  if(x.Status == UnApproved) 
  unApproved.addItem(x.copy()); 
  else if(x.Status == Approved) 
  approvedList.addItem(x.copy()); 
  }
  
  I used the .copy() method to ensure that this isn't tied back to the
  original XML by reference.
  
  --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  , Tracy Spratt tspratt@ wrote:
  
   First, are you sure your collections are independent? If you use the
   same XMLList for both, they are not.
   
   
   
   Tracy Spratt 
   Lariat Services 
   
   Flex development bandwidth available 
   
   
   
   From: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  [mailto:flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  ] On
   Behalf Of flexcoder2008
   Sent: Thursday, February 19, 2009 2:27 PM
   To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com 
   Subject: [flexcoders] Re: Weird XMLListCollection behaviour - items
   won't remove
   
   
   
   I should make a correction...the 2nd example doesn't workwhere I
   am using the delete with an index. That just removes one of the
 nodes
   of the object itself.
   
   So I am still stuck as to how to successfully remove a shared object
   between 1 list and another and have the item removed from 1 datagrid
   and added to another.
   
   --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com 
  mailto:flexcoders%40yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
   , flexcoder2008 djohnson29@ wrote:
   
I am having all sorts of problems with removing items from an
XMLListCollection. Not sure if this is because the dataBinding is
preventing the items from being removed or not - I'm hoping
 someone
who has run into this issue as well can give me some insight.

I have 2 XMLListCollections, each 1 is bound to a seperate
 DataGrid.

There is an approvedItemList bound to dgApproved, and an
unApprovedList bound to dgUnApproved.

Sometimes, I want to remove an object from the 1 list, and then
 add
  it
to the other list. (I am using Cairngorm by the way)

For example, I want to take an item in the unApprovedList and add
 it
to the ApprovedList. So first I would add the object to the
ApprovedList, and then get the Index of the object in the
UnApprovedList and use RemoveAt like so:

approvedList.addItem(myObject);
var index:int = unApprovedItemList.getItemIndex(myObject);
unApprovedList.removeAt(index);

I 

RE: [flexcoders] Re: Weird XMLListCollection behaviour - items won't remove

2009-02-19 Thread Tracy Spratt
trace(x.toXMLString());  //is that the node you expect?

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of flexcoder2008
Sent: Thursday, February 19, 2009 4:15 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Weird XMLListCollection behaviour - items
won't remove

 

What is the best way to do this? I tried this line and it returned
true so it should be a good reference right?

var x:XML = unApprovedList[index];
trace(x == unApprovedList[index]);

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

 Did you verify that var x:XML = unApprovedList[index]; is returning a
 good reference?
 
 
 
 Tracy Spratt 
 Lariat Services 
 
 Flex development bandwidth available 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of flexcoder2008
 Sent: Thursday, February 19, 2009 3:57 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Re: Weird XMLListCollection behaviour - items
 won't remove
 
 
 
 Thanks Tracey - yes I am doing that as well.
 
 I'm trying a new approach now - the problem now is that when I try to
 retrieve the item index, even though I can see that the object is
 there, I am getting an index of -1. Is there something wrong with
 this code block?
 
 approvedList.addItem(myObject.copy());
 
 var index:int = 0;
 for each(var o:Object in unApprovedList){
 if(o.id == o.id.toString()){
 break;
 }
 else
 index++; 
 
 }
 
 var x:XML = unApprovedList[index];
 // x should refer to the same object in unApprovedList!
 
 var index:int = unApprovedList.getItemIndex(x); // is returning -1
 unApprovedList.removeItemAt(index);
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 , Tracy Spratt tspratt@ wrote:
 
  Good.
  
  
  
  Are you using copy() when you addItem() to the approvedList?
  
  
  
  Tracy Spratt 
  Lariat Services 
  
  Flex development bandwidth available 
  
  
  
  From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of flexcoder2008
  Sent: Thursday, February 19, 2009 2:49 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] Re: Weird XMLListCollection behaviour - items
  won't remove
  
  
  
  The collections are independent. 
  When my app starts up I have an XML variable that gets split into 2
  seperate lists.
  
  So for example:
  
  var myList:XML
  
  I then split the lists into 2 like so:
  
  for each(var x:XML in myList){
  if(x.Status == UnApproved) 
  unApproved.addItem(x.copy()); 
  else if(x.Status == Approved) 
  approvedList.addItem(x.copy()); 
  }
  
  I used the .copy() method to ensure that this isn't tied back to the
  original XML by reference.
  
  --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  , Tracy Spratt tspratt@ wrote:
  
   First, are you sure your collections are independent? If you use
the
   same XMLList for both, they are not.
   
   
   
   Tracy Spratt 
   Lariat Services 
   
   Flex development bandwidth available 
   
   
   
   From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  ] On
   Behalf Of flexcoder2008
   Sent: Thursday, February 19, 2009 2:27 PM
   To: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com 
   Subject: [flexcoders] Re: Weird XMLListCollection behaviour -
items
   won't remove
   
   
   
   I should make a correction...the 2nd example doesn't workwhere
I
   am using the delete with an index. That just removes one of the
 nodes
   of the object itself.
   
   So I am still stuck as to how to successfully remove a shared
object
   between 1 list and another and have the item removed from 1
datagrid
   and added to another.
   
   --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com 
  mailto:flexcoders%40yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
   , flexcoder2008 djohnson29@ wrote:
   
I am having all sorts of problems with removing items from an
XMLListCollection. Not sure if this is 

Re: [flexcoders] [Inspectable]

2009-02-19 Thread Fotis Chatzinikos
If i remember correctly, inspectable makes the variable appear in flex
builder as a gui field...

On Thu, Feb 19, 2009 at 9:32 PM, tchredeemed apth...@liberty.edu wrote:

   Can someone tell me when I would want to use certain parts of
 Inspectable and what they do for me?

 The only one I have really found useful is 'enumeration'...

 For instance, what is the difference between

 -
 [Bindable]
 public var arrowDirection:String = 'right';
 -

 AND

 -
 [Inspectable(defaultValue=right)]
 [Bindable]
 public var arrowDirection:String = 'right';
 -

 What benefit do you get from the rest of them as well?

 Thanks for any help!

  




-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
fotis.chatzini...@gmail.com,


[flexcoders] Re: Loading modules from within AIR

2009-02-19 Thread skuteboarding
Hi, I thought they could be in subdirectories as well?
They were in a plugins subdirectory.
I've just moved them into the same folder as the app and it still
doesn't work.

I missed a line of code from original post:

m_moduleInfo = ModuleManager.getModule(url);
m_moduleInfo.load(ApplicationDomain.currentDomain);


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

 Module must be in same dir as main SWF
 
 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 skuteboarding
 Sent: Thursday, February 19, 2009 12:47 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Loading modules from within AIR
 
 
 Hi, I'm currently converting a Flex app to AIR and I've hit a
 stumbling block right at the start. When I try to load a module from
 disk I get the following error:
 
 SWF is not a loadable module
 
 Which after reading a couple of links I discover is a security message
 (normally in Flex it means you're trying to load something on a
 different server).
 
 In AIR how do I load a module from disk?
 
 A code example would be great. This is what I'm using currently:
 
 m_moduleInfo = ModuleManager.getModule(url);
 
 Where url is a File.url property.





RE: [flexcoders] Re: Repeaters and Referencing Component IDs

2009-02-19 Thread Tracy Spratt
I don't know that repeater makes a reference array for child components
of the repeated parent.  It may, but I never do it that way.  

 

Try the component.  The refactor will take you maybe 3 minutes, and you
will never go back.

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Jason
Sent: Thursday, February 19, 2009 4:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Repeaters and Referencing Component IDs

 

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

 The first thing I would do is crate a custom component that 
encapsulates
 the repeated UI(tree and image), and repeat that. Then I would 
create a
 setter for the image source (set imageSource()) in the repeated
 component.
 
 
 
 I would give my component and id, say myTree. Repeater would 
make an
 array of the 5 instances. Then I could do:
 
 myTree[0].imageSource = myImageUrl;

OK thanks! I will do that, however, custom component discussion 
aside, this seems to be do-able without a custom component (even 
though yeah, I should wrap it up into one). The main point of my 
question is that it seems that, applying your example, myTree is not 
an array of several objects (demonstrated with my example) as I would 
have thought - that is the problem with my code I'm trying to figure 
out. In your example, I would think myTree be an array with a length 
of 5 (since the DP is 5 in length) - each object in the array being 
an Image (or in your example, an instance of your custom component). 
But as my example shows, it's length is 1. Best practices aside, 
from a pure coding perspective (bad as it may be), why does my 
_images array have a length of 1 instead of 5 like the DP?





[flexcoders] Re: Weird XMLListCollection behaviour - items won't remove

2009-02-19 Thread flexcoder2008
Yes, I tried that and it is the correct node.

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

 trace(x.toXMLString());  //is that the node you expect?
 
  
 
 Tracy Spratt 
 Lariat Services 
 
 Flex development bandwidth available 
 
 
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of flexcoder2008
 Sent: Thursday, February 19, 2009 4:15 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Weird XMLListCollection behaviour - items
 won't remove
 
  
 
 What is the best way to do this? I tried this line and it returned
 true so it should be a good reference right?
 
 var x:XML = unApprovedList[index];
 trace(x == unApprovedList[index]);
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Tracy Spratt tspratt@ wrote:
 
  Did you verify that var x:XML = unApprovedList[index]; is returning a
  good reference?
  
  
  
  Tracy Spratt 
  Lariat Services 
  
  Flex development bandwidth available 
  
  
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of flexcoder2008
  Sent: Thursday, February 19, 2009 3:57 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] Re: Weird XMLListCollection behaviour - items
  won't remove
  
  
  
  Thanks Tracey - yes I am doing that as well.
  
  I'm trying a new approach now - the problem now is that when I try to
  retrieve the item index, even though I can see that the object is
  there, I am getting an index of -1. Is there something wrong with
  this code block?
  
  approvedList.addItem(myObject.copy());
  
  var index:int = 0;
  for each(var o:Object in unApprovedList){
  if(o.id == o.id.toString()){
  break;
  }
  else
  index++; 
  
  }
  
  var x:XML = unApprovedList[index];
  // x should refer to the same object in unApprovedList!
  
  var index:int = unApprovedList.getItemIndex(x); // is returning -1
  unApprovedList.removeItemAt(index);
  
  --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  , Tracy Spratt tspratt@ wrote:
  
   Good.
   
   
   
   Are you using copy() when you addItem() to the approvedList?
   
   
   
   Tracy Spratt 
   Lariat Services 
   
   Flex development bandwidth available 
   
   
   
   From: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  [mailto:flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  ] On
   Behalf Of flexcoder2008
   Sent: Thursday, February 19, 2009 2:49 PM
   To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com 
   Subject: [flexcoders] Re: Weird XMLListCollection behaviour - items
   won't remove
   
   
   
   The collections are independent. 
   When my app starts up I have an XML variable that gets split into 2
   seperate lists.
   
   So for example:
   
   var myList:XML
   
   I then split the lists into 2 like so:
   
   for each(var x:XML in myList){
   if(x.Status == UnApproved) 
   unApproved.addItem(x.copy()); 
   else if(x.Status == Approved) 
   approvedList.addItem(x.copy()); 
   }
   
   I used the .copy() method to ensure that this isn't tied back to the
   original XML by reference.
   
   --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com 
  mailto:flexcoders%40yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
   , Tracy Spratt tspratt@ wrote:
   
First, are you sure your collections are independent? If you use
 the
same XMLList for both, they are not.



Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com 
  mailto:flexcoders%40yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
   [mailto:flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com 
  mailto:flexcoders%40yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
   ] On
Behalf Of flexcoder2008
Sent: Thursday, February 19, 2009 2:27 PM
To: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  mailto:flexcoders%40yahoogroups.com 
Subject: [flexcoders] Re: Weird XMLListCollection behaviour -
 items
won't remove



I should make a correction...the 2nd example doesn't workwhere
 I
am using the delete with an index. That just removes one of the
  nodes
of the object itself.

So I am still stuck as to how to successfully remove a shared
 object
between 1 list and another and have the item removed from 1
 datagrid
and added to another.

--- In flexcoders@yahoogroups.com
 

[flexcoders] Re: ColumnChart - Data tip target for invisible column

2009-02-19 Thread Richard Rodseth
Turns out I have something else going on, where data items with the same
category name are automatically stacked, leaving multiple empty categories,
and one with stacked columns.

Is there any way to control this, short of ensuring unique categories?

On Thu, Feb 19, 2009 at 10:51 AM, Richard Rodseth rrods...@gmail.comwrote:

 Is there a way to force a ColumnChart to display a data tip target even
 when the column value is so small (relative to the others) that the column
 is invisible?



[flexcoders] Re: Repeaters and Referencing Component IDs

2009-02-19 Thread Jason
--- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote:
 I don't know that repeater makes a reference array for child 
components
 of the repeated parent.  It may, but I never do it that way.  

OK, because you just said, 

Repeater would 
make an
 array of the 5 instances.

How is that fundamentally different?

The custom component you're suggesting is just a class just like 
mx:Image is, so I don't see how your example is any different 
really? NOT trying to argue, just trying to understand.  If you say,  
myTree[0].imageSource = myImageUrl; - isn't myTree an array created 
from doing c:MyTree id=myTree / inside the repeater - just like 
mx:Image id=_images /  as in my example? 

Again, NOT trying to argue, just trying to understand the difference! 
Thanks so much for your help!




RE: [flexcoders] design question: editing / saving complex valueobjects

2009-02-19 Thread Maciek Sakrejda
I could, but display (since the CalendarEditor component expects data
from a Calendar) is still an issue, no? Perhaps I should just be doing
what the DataGrid does when outfitted with an itemEditor and just assume
that I should operate on the data directly. I can re-request the
unaltered object from the server if the users cancels the edit.


-Original Message-
From: Tracy Spratt tspr...@lariatinc.com
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] design question: editing / saving complex
valueobjects
Date: Thu, 19 Feb 2009 14:36:42 -0500

Can you make the validation functionality independently available?

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 




From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Maciek Sakrejda
Sent: Thursday, February 19, 2009 11:21 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] design question: editing / saving complex
valueobjects


 

Anyone? I'm sure this sort of thing comes up pretty frequently--I'd be
curious to know how other Flex users tackle it.

-Maciek

-Original Message-
From: Maciek Sakrejda msakre...@truviso.com
Reply-To: flexcoders@yahoogroups.com
To: flexcoders flexcoders@yahoogroups.com
Subject: [flexcoders] design question: editing / saving complex value
objects
Date: Wed, 18 Feb 2009 10:35:04 -0800

Suppose I have a class Calendar that mirrors a server-side class (we're
not really working with Calendars, but I think this is a reasonably good
and simple analogy):

class Calendar {
public var appointments:ArrayCollection;
/* other stuff */
}

Then I want users to be able to edit and save the Calendar: I have a
CalendarEditor. Editing a Calendar is moderately complicated (e.g.,
adding, removing, or editing Appointments), so I want explicit
save/cancel steps.

When editing something really simple, this is not really a problem--when
the user saves, I propagate the view state to the object; when she hits
cancel, I don't do anything.

However, the Calendar determines what combination of Appointments is
valid (they can't overlap), and the Calendar is the dataProvider of the
CalendarEditor, so I can't fully validate a combination of Appointments
without adding them to the Calendar. This means I actually need to add
the appointments to the Calendar before it is saved so that they can be
(a) validated in combination and (b) used to update the view while the
edit is in progress. This makes save/cancel steps trickier: do I

(1) Clone the Calendar (and therefore have it provide a clone() method)
when assigned in the dataProvider, modify the clone, and assign the
dataProvider reference when the user hits save.
(2) Clone the Calendar as above, but have the Editor modify the
original, and restore the clone in case the user cancels.
(3) Something more clever?

The problem with (1) is that cloning may be somewhat complicated, and it
feels ugly to have the Editor update the dataProvider reference
(instead of modifying the actual object that was set as the data
provider). (2) hits the same issue. Perhaps the solution is to maintain
a private clone, and copy back the state on save? Or is the right answer
here that the model should not expect that the editor will update the
object it set as the dataProvider, but should instead expect an update
through a mechanism like a Mate map?

Any thoughts? (Please keep in mind that my experience with MVC
frameworks is unfortunately minimal, though I'm looking into Mate right
now).

Thanks,
Maciek







Re: [flexcoders] ColumnChart - Data tip target for invisible column

2009-02-19 Thread Brendan Meutzner
A dude on the list here put together a custom line series example for
showing multiple datatips based on horizontal axis mouse position.  If you
could extend this example to the ColumnSeries that would take care of  the
issue where there isn't a column item large enough to catch the event...
http://tech.groups.yahoo.com/group/flexcoders/message/90045


Brendan

On Thu, Feb 19, 2009 at 12:51 PM, Richard Rodseth rrods...@gmail.comwrote:

   Is there a way to force a ColumnChart to display a data tip target even
 when the column value is so small (relative to the others) that the column
 is invisible?
  




-- 
Brendan Meutzner
http://www.meutzner.com/blog/


[flexcoders] Re: Weird XMLListCollection behaviour - items won't remove

2009-02-19 Thread flexcoder2008
Got it working!!

I stepped through the code and could see that an index of -1 was being
thrown from Sort.as.  
I had applied a Sort to these XMLListCollections at an earlier point
in the application's lifecycle. 

I had to call .refresh() on the collection before I remove the item
and somehow this gets the collection all in nice shape and then
returns the correct index.

So now my code looks like this:

approvedList.addItem(myObject);


unApprovedList.refresh();
var index:int = unApprovedList.getItemIndex(myObject);
unApprovedList.removeItemAt(index);

Not sure why I had to explicitly call .refresh here.  I have other
XMLListCollections in my application that are sorted and I am able to
call .removeAt without always calling .refresh() first.

This brings me to another related question.  When you have a Sort
applied to an XMLListCollection, is there a way to turn off or reset
that Sort to some sort of default value?

--- In flexcoders@yahoogroups.com, flexcoder2008 djohnso...@... wrote:

 Yes, I tried that and it is the correct node.
 
 --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote:
 
  trace(x.toXMLString());  //is that the node you expect?
  
   
  
  Tracy Spratt 
  Lariat Services 
  
  Flex development bandwidth available 
  
  
  
  From: flexcoders@yahoogroups.com
[mailto:flexcod...@yahoogroups.com] On
  Behalf Of flexcoder2008
  Sent: Thursday, February 19, 2009 4:15 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Weird XMLListCollection behaviour - items
  won't remove
  
   
  
  What is the best way to do this? I tried this line and it returned
  true so it should be a good reference right?
  
  var x:XML = unApprovedList[index];
  trace(x == unApprovedList[index]);
  
  --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
  , Tracy Spratt tspratt@ wrote:
  
   Did you verify that var x:XML = unApprovedList[index]; is
returning a
   good reference?
   
   
   
   Tracy Spratt 
   Lariat Services 
   
   Flex development bandwidth available 
   
   
   
   From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
  [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
  ] On
   Behalf Of flexcoder2008
   Sent: Thursday, February 19, 2009 3:57 PM
   To: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
   Subject: [flexcoders] Re: Weird XMLListCollection behaviour - items
   won't remove
   
   
   
   Thanks Tracey - yes I am doing that as well.
   
   I'm trying a new approach now - the problem now is that when I
try to
   retrieve the item index, even though I can see that the object is
   there, I am getting an index of -1. Is there something wrong with
   this code block?
   
   approvedList.addItem(myObject.copy());
   
   var index:int = 0;
   for each(var o:Object in unApprovedList){
   if(o.id == o.id.toString()){
   break;
   }
   else
   index++; 
   
   }
   
   var x:XML = unApprovedList[index];
   // x should refer to the same object in unApprovedList!
   
   var index:int = unApprovedList.getItemIndex(x); // is returning -1
   unApprovedList.removeItemAt(index);
   
   --- In flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
   , Tracy Spratt tspratt@ wrote:
   
Good.



Are you using copy() when you addItem() to the approvedList?



Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
   [mailto:flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
   ] On
Behalf Of flexcoder2008
Sent: Thursday, February 19, 2009 2:49 PM
To: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
  mailto:flexcoders%40yahoogroups.com 
Subject: [flexcoders] Re: Weird XMLListCollection behaviour -
items
won't remove



The collections are independent. 
When my app starts up I have an XML variable that gets split
into 2
seperate lists.

So for example:

var myList:XML

I then split the lists into 2 like so:

for each(var x:XML in myList){
if(x.Status == UnApproved) 
unApproved.addItem(x.copy()); 
else if(x.Status == Approved) 
approvedList.addItem(x.copy()); 
}

I used the .copy() method to ensure that this isn't tied back
to the
original XML by reference.

--- In flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com 
   mailto:flexcoders%40yahoogroups.com
   mailto:flexcoders%40yahoogroups.com
, Tracy Spratt tspratt@ wrote:

 First, are you sure your collections are independent? If you use
  the
 same XMLList for both, they are not.
 
 
 
 Tracy Spratt 
 

Re: [flexcoders] ColumnChart - Data tip target for invisible column

2009-02-19 Thread Richard Rodseth
Thanks, but it's the *target* I'd want displayed, not the tip itself.
Also, as I indicated in my follow up, the column chart actually does display
the target and tip when you roll over the empty column, but I have this
other issue with the stacking of non-unique categories.

On Thu, Feb 19, 2009 at 1:44 PM, Brendan Meutzner bmeutz...@gmail.comwrote:

   A dude on the list here put together a custom line series example for
 showing multiple datatips based on horizontal axis mouse position.  If you
 could extend this example to the ColumnSeries that would take care of  the
 issue where there isn't a column item large enough to catch the event...

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


 Brendan

 On Thu, Feb 19, 2009 at 12:51 PM, Richard Rodseth rrods...@gmail.comwrote:

   Is there a way to force a ColumnChart to display a data tip target even
 when the column value is so small (relative to the others) that the column
 is invisible?




 --
 Brendan Meutzner
 http://www.meutzner.com/blog/
  



[flexcoders] Re: Using an itemRenderer in a grid and rendering glitches

2009-02-19 Thread lelander
--- In flexcoders@yahoogroups.com, Amy amyblankens...@... wrote:

 --- In flexcoders@yahoogroups.com, biosmonkey biosmonkey@ 
 wrote:
 
  I have an adg that displays a tree of items, along with a custom 
 item
  renderer that shows an icon representing status.
  
  For the most part this works well, however, in some rare 
 circumstances
  when scrolling I have seen the item renderer glitch ... sometimes it
  appears to be double rendered, sometimes it is rendered in the wrong
  place.  I have also seen the text labels in the tree superimpose on
  top of themselves sometimes.
  
  This problem is actually not unique to this situation, because I 
 have
  seen it in other grids with IRs.  This problem, however, just 
 happens
  to be in a MAJOR project of mine :).
  
  Has anyone else seen similar problems?  I don't know how it would be
  my code ... it seems more like a flash player bug.  I am using flash
  10.  Note also that my IR is not doing any graphical drawing; it is
  essentially an hbox with an img that just gets its source changed.
 
 Check out Q2
 http://www.magnoliamultimedia.com/flex_examples/Amys_Flex_FAQ.pdf


I'm having the same problem, and checked out this pdf.  Amy says to override 
the set data 
protected function - but what do I change?

Thanks!
JP



[flexcoders] (Again ) Capabilities.language or how to get keyboard Locale in Air/Flex

2009-02-19 Thread alex
Well , I know Capabilities.language or Capabilities.languages gives me
only the language locale the my project was compiled with  But if
I have to know  where user comes from when he runs my application ,
mainly if he is from Canada or US. One way it to check the keyboard
layout for en-US or en-Ca ,fr-CA how can I get it ?





[flexcoders] Re: Loading modules from within AIR

2009-02-19 Thread skuteboarding
Hi, I've managed to find the problem. I was using the File.url and the
File.nativePath properties to try to load module. If you change it to
using just a relative path, i.e. plugins\\myplugin.swf it works just
fine. Looks like it doesn't like paths like C:\... and file:///C:/...

Cheers,

Mark

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

 Module must be in same dir as main SWF
 
 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 skuteboarding
 Sent: Thursday, February 19, 2009 12:47 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Loading modules from within AIR
 
 
 Hi, I'm currently converting a Flex app to AIR and I've hit a
 stumbling block right at the start. When I try to load a module from
 disk I get the following error:
 
 SWF is not a loadable module
 
 Which after reading a couple of links I discover is a security message
 (normally in Flex it means you're trying to load something on a
 different server).
 
 In AIR how do I load a module from disk?
 
 A code example would be great. This is what I'm using currently:
 
 m_moduleInfo = ModuleManager.getModule(url);
 
 Where url is a File.url property.





RE: [flexcoders] Re: Loading modules from within AIR

2009-02-19 Thread Alex Harui
Yes, it isnt' going to do the math for an absolute path to see if it is in the 
same security folder.  You are correct that subfolders are valid as well.

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 skuteboarding
Sent: Thursday, February 19, 2009 3:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Loading modules from within AIR


Hi, I've managed to find the problem. I was using the File.url and the
File.nativePath properties to try to load module. If you change it to
using just a relative path, i.e. plugins\\myplugin.swf it works just
fine. Looks like it doesn't like paths like C:\... and 
file:///C:/...file:///C:\...

Cheers,

Mark

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

 Module must be in same dir as main SWF

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

 From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com]
On Behalf Of skuteboarding
 Sent: Thursday, February 19, 2009 12:47 PM
 To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
 Subject: [flexcoders] Loading modules from within AIR


 Hi, I'm currently converting a Flex app to AIR and I've hit a
 stumbling block right at the start. When I try to load a module from
 disk I get the following error:

 SWF is not a loadable module

 Which after reading a couple of links I discover is a security message
 (normally in Flex it means you're trying to load something on a
 different server).

 In AIR how do I load a module from disk?

 A code example would be great. This is what I'm using currently:

 m_moduleInfo = ModuleManager.getModule(url);

 Where url is a File.url property.




Re: [flexcoders] Why cant I use mouseOver() in Image class, but using mx:Image tag, I can?

2009-02-19 Thread Nathaniel Skiba
toolTipCreate is an event, so when using AS, you have to use the
addEventListener function. The following should help:

img.addEventListener(ToolTipEvent.TOOL_TIP_CREATE, myHandlerFunction);

Just remember that you have to import ToolTipEvent, and
myHandlerFunction has to be a function that takes one argument which is
a ToolTipEvent.

~Nate


RE: [flexcoders] Re: Repeaters and Referencing Component IDs

2009-02-19 Thread Tracy Spratt
I'd have to test it to know for sure, but I was just theorizing on why
you were not able to access the id array for the image.  I could further
theorize that the image tag, being a child of the repeated container, is
treated differently by Repeater than the container, but that is
theorizing to support a theory that I do not even know is correct.

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Jason
Sent: Thursday, February 19, 2009 4:34 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Repeaters and Referencing Component IDs

 

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Tracy Spratt tspr...@... wrote:
 I don't know that repeater makes a reference array for child 
components
 of the repeated parent. It may, but I never do it that way. 

OK, because you just said, 

Repeater would 
make an
 array of the 5 instances.

How is that fundamentally different?

The custom component you're suggesting is just a class just like 
mx:Image is, so I don't see how your example is any different 
really? NOT trying to argue, just trying to understand. If you say, 
myTree[0].imageSource = myImageUrl; - isn't myTree an array created 
from doing c:MyTree id=myTree / inside the repeater - just like 
mx:Image id=_images / as in my example? 

Again, NOT trying to argue, just trying to understand the difference! 
Thanks so much for your help!





RE: [flexcoders] Re: Using an itemRenderer in a grid and rendering glitches

2009-02-19 Thread Tracy Spratt
...override the set data protected function - but what do I change?...
that depends on what your renderer does.

 

I suggest that you start with a renderer that someone else has written
and modify it to meet your purposes.  Either that or start reading up on
renderers.  Some of the key parts you should learn about are:

set data() 

commitProperties()

createChildren()

updateDisplayList

measure()

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of lelander
Sent: Thursday, February 19, 2009 5:10 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Using an itemRenderer in a grid and rendering
glitches

 

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Amy amyblankens...@... wrote:

 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , biosmonkey biosmonkey@ 
 wrote:
 
  I have an adg that displays a tree of items, along with a custom 
 item
  renderer that shows an icon representing status.
  
  For the most part this works well, however, in some rare 
 circumstances
  when scrolling I have seen the item renderer glitch ... sometimes it
  appears to be double rendered, sometimes it is rendered in the wrong
  place. I have also seen the text labels in the tree superimpose on
  top of themselves sometimes.
  
  This problem is actually not unique to this situation, because I 
 have
  seen it in other grids with IRs. This problem, however, just 
 happens
  to be in a MAJOR project of mine :).
  
  Has anyone else seen similar problems? I don't know how it would be
  my code ... it seems more like a flash player bug. I am using flash
  10. Note also that my IR is not doing any graphical drawing; it is
  essentially an hbox with an img that just gets its source changed.
 
 Check out Q2
 http://www.magnoliamultimedia.com/flex_examples/Amys_Flex_FAQ.pdf
http://www.magnoliamultimedia.com/flex_examples/Amys_Flex_FAQ.pdf 


I'm having the same problem, and checked out this pdf. Amy says to
override the set data 
protected function - but what do I change?

Thanks!
JP





[flexcoders] Flex ShareObject | Firefox Reported Web Forgery

2009-02-19 Thread bsyyu
I found one of my designed Flex website is blocked by Firefox with
Reported Web Forgery. 

I use Flex standard HTML template.
Does the reason for 'Reported Web Forgery' due to the issue of of the
SharedObject ?

Any idea ?



Re: [flexcoders] (Again ) Capabilities.language or how to get keyboard Locale in Air/Flex

2009-02-19 Thread Sam Lai
Capabilities.languages should give you the preferred languages of the
user running the app, not for the compilation.
http://livedocs.adobe.com/flex/3/langref/flash/system/Capabilities.html#languages

If it is playing up, you can always get it via Javascript:
http://www.ebessette.com/d/ClientSideLocale

2009/2/20 alex myth_dran...@yahoo.com:
 Well , I know Capabilities.language or Capabilities.languages gives me
 only the language locale the my project was compiled with  But if
 I have to know  where user comes from when he runs my application ,
 mainly if he is from Canada or US. One way it to check the keyboard
 layout for en-US or en-Ca ,fr-CA how can I get it ?





 

 --
 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] ItemRenderer in Actionscript

2009-02-19 Thread kotha poornima
Hi All,

mx:DataGridColumn headerText=col1 dataField=col1
mx:itemRenderer
mx:Component
   mx:Label text={outerDocument.showUpper(data.Name)} 
fontSize=10 verticalCenter=true paddingTop=5
/mx:Label
/mx:Component
/mx:itemRenderer
/mx:DataGridColumn


I want the same functionality as above in Actionscript code. How can i do that. 
Please help me out of this.


Thanks in Advance,
Poornima