[flexcoders] Mouse Clicks' Queue when Button is Disabled

2009-02-16 Thread giladozer
Hi, I was wondering about the Disable property for UI Components.
In the docs it says that when the component is disabled it ignores all
interaction whatsoever - in particular - user interaction.
In my case, the button is disabled for a few seconds right after it
was clicked by the user (I disable it till the httprequest is returned
and then enable it).
What happens is that if the user clicks the button while it's disabled
- nothing happens. But when the button turns enabled - it acts as if
it just got the click event.
It seems like the mouse click event went into this queue and the
button listened to it right after to turned enable?
Am I correct? If so - how can I prevent this problem?
If I'm wrong, what's the reason for this? And again, how can I sort
this so the user can't send mouse clicks to the button when it's
disabled??

Many thanks :)
Gilad




[flexcoders] SeriesInterpolate - showDataEffect - Line Chart

2009-02-16 Thread giladozer
Hi, 
This is a flex2-flex3 migration issue.
I'm using the SeriesInterpolate as an effect when Line Chart is
updated with new data.
In flex 2 these are the parameters I gave:
protected var _interpolateEff:SeriesInterpolate = new SeriesInterpolate();
 _interpolateEff.duration = 1000;
 _interpolateEff.minimumElementDuration = 200;
 _interpolateEff.elementOffset = 10;
 _interpolateEff.hideFocusRing = true;

This was enough to apply to the entire chart.
In flex 3 - it seems that the dots ( at the end of each line in the
chart) are not affected by the this and only take their new position
after the effect is done.
Is there a fix to it ? is thee a property or a mothoed which I can
specify that the dots also should apply the effect ?

Thanks, 
Gilad



[flexcoders] Statically adding one more item to the dynamically driven combobox dataprovider.

2009-02-16 Thread kotha poornima
Hi All,
In my project i have a combobox in which i need to add dynamic values from the 
xml file and in addition i need to add one static value All to the combobox 
dataprovider.
For combobox dataprovider iam directly giving xml values like this:

usecases1.dataProvider=cbolXML.Market[0].child(UseCase).attributes();

usecases1 is nothing but combobox and cboxXML is an xml file from which iam 
reading the data's for the combobox.

SO, here how can i add one more static value All to the above data coming 
from the xml file.

i dont find any addItem or push methods for combobox dataprovider.

If i am using arraycollection or array its not giving the correct data but its 
appending ALL to the data from the xml.

Anyone can help me out of this.

Thanks in Advance,
Poornima



  

Re: [flexcoders] PrintAdvancedDataGrid

2009-02-16 Thread Tom Chiverton
On Tuesday 10 Feb 2009, lehaianh1986 wrote:
 normal, it always print white page. I check my printer and see the

Try both the vector and bitmap print modes.

-- 
Tom Chiverton
Helping to continuously deploy robust networks



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

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

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

Re: [flexcoders] 3D flip effect

2009-02-16 Thread Tom Chiverton
On Friday 13 Feb 2009, Russ Ferguson wrote:
  I am getting a type error 1009 cant access properties of null objects.

And what is null ?
Did you try setting the creation policy to all ?

-- 
Tom Chiverton
Helping to biannually synthesize e-business



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

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

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

Re: [flexcoders]Does Flex 4 Gumbo support styles and other questions

2009-02-16 Thread Tom Chiverton
On Friday 13 Feb 2009, dorkie dork from dorktown wrote:
 1. If I add a Gumbo component to the stage (design view) am I able to set
 styles on it?

Yes.

 Do these styles affect vector FXG graphics that already exist 
 in the skin file or are they drawn with the graphics object like in the
 halo set, graphics.drawRectangle() etc?

You can probably do both.

 4. What would be a better acronym than PIFF (photoshop, illustrator,
 fireworks and flash), sounds like a graphic format :P? Any other compatible
 graphic tools I'm missing?

I think that's Thermo :-)

-- 
Tom Chiverton
Helping to globally market information



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

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

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

Re: [flexcoders] Re: Showing grid in line series graph

2009-02-16 Thread Vik
Hie
Thankx it worked!!!


Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.blogspot.com


On Mon, Feb 16, 2009 at 12:29 PM, sunild99 sunilbd...@gmail.com wrote:

   You need to specify a Stroke to use for the grid lines. You can make
 the Stroke for the grid lines bolder by setting the weight
 property of the Stroke to a number greater than 1.

 If you view the source of this example, you can see one way of doing
 this:
 http://blog.sunild.com/2008/08/inverting-chart-series.html

 Sunil


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Vik
 vik@... wrote:
 
  Hie
  That worked thankx.. but the grid lines are very light. almost hard
 to see..
 
  how to make them look a bit bold?
 
  Thankx and Regards
 
  Vik
  Founder
  www.sakshum.com
  www.sakshum.blogspot.com
 

  



[flexcoders] Flas 10 on mobile is a go

2009-02-16 Thread Tom Chiverton
It seems full blown Flash Player 10 (not lite !) is to come to just about 
every mobile smartphone except the iPhone (Apples fault): 
http://tinyurl.com/d68voq
-- 
Tom Chiverton
Helping to heterogeneously envisioneer bleeding-edge fine-grained impactful 
customized action-items



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

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

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

[flexcoders] Re: Socket communications in Flex

2009-02-16 Thread markgoldin_2000
I actually got it working: Problem with Flex not getting data 
was ...
From Help:
Each XML message is a complete XML document, terminated by a zero 
(0) byte
After I added it to my server message to Flex it worked fine. 
Thanks everyone for help.

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

 Firewall? Is the port you're using open? Is the data event 
firing at  
 all? If so, what's in it? If not, either your server is not 
serving  
 data like you think it is, or the data can't get to your flex 
app  
 because there's something in the way.
 
 
 On 16/02/2009, at 3:50 AM, markgoldin_2000 wrote:
 
  I was able to create a server socket using VB code. I am 
sending
  data from a Flex test application to my server socket but 
cannot
  send any data to Flex. Any idea?
 
  --- In flexcoders@yahoogroups.com, Guy Morton guy@ wrote:
  
   As Tracy said, yes. A socket is just a network connection. 
Your
  flex
   XMLSocket doesn't know or care what language the program
  listening on
   the other was written in. A socket connection is like a call
  connected
   between two telephones - if no-one at either end talks or
  neither end
   understands the other nothing much will happen. It's up to 
you
  to make
   conversation by defining how you will pass messages back and
  forth and
   how you will process them at either end.
  
  
   On 15/02/2009, at 3:41 AM, markgoldin_2000 wrote:
  
I am not sure myself about my question :).
First, can Flex be listening to a socket that is created 
within
any program? I mean, if a vb program creates a socket using
Winsock will Flex be able to listen to such socket?
Second, if yes, how would data actually be transfered?
   
Thanks
   
--- In flexcoders@yahoogroups.com, Guy Morton guy@ wrote:

 Well...nothing would, normally. You'd have to set up a
  server to
talk
 to you on that socket, develop a protocol for conversing 
over
the
 socket, etc.

 An XML socket is just a pipe to communicate over. Unlike
  normal
http
 requests which encapsulate the http conversation so you 
don't
see it,
 a raw XML socket requires you to define what messages are
  going
to be
 sent by whom and what those messages mean.

 Does that help, or have I misunderstood your question?

 Guy


 On 14/02/2009, at 10:50 PM, markgoldin_2000 wrote:

  I am trying to understand how socket communications 
work in
flex.
  This code will connect to a port 8080 on a local 
computer:
 
  var xmlsock:XMLSocket = new XMLSocket();
  xmlsock.connect(127.0.0.1, 8080);
 
  But what I dont understand is what would be sending 
data to
that
  port?
 
  Thanks
 
 
 

   
   
   
  
 
 
 





RE: Re: [flexcoders] AIR Application is not Appearing

2009-02-16 Thread Jim Hayes
Have you looked at this part of the application descriptor file
(yourapplication-app.xml) :
 
!-- Whether the window is initially visible. Optional. Default false.
--
visibletrue/visible
?
 
Here I've uncommented it and set it true, but by default it will be
commented out and defaults to false.
I suspect this is not your problem, mind you.
 
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of verma.lu...@gmail.com
Sent: 16 February 2009 06:09
To: Kevin Benz; flexcoders@yahoogroups.com
Subject: Re: Re: [flexcoders] AIR Application is not Appearing
 
Hello Kevin, 

Yes, you are right I am using SDK 3.2. I have changed the namespace to
1.5 in App xml but still it's not appearing on new machine. 

Pls tell me what to do. 


Best, 
Ashish 

On Feb 14, 2009 9:27pm, Kevin Benz kb...@passalongnetworks.com wrote: 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 Please be aware of a very simple issue that I don't 
 
 believe is well documented... When you go through an upgrade of an
existing 
 
 project from SDK 3.1 to 3.2 where Air is involved, the compiler links
the 
 
 appropriate Air objects based on what is contained in the app.xml file
(YOUR 
 
 APPLICATION NAME-app.xml) in the project home directory. You will find
either (the 
 
 compiler usually crabs about this if you rely on objects not in the
chosen library 
 
 though) 
 
 
 
 
 
 xmlns=http://ns.adobe.com/air/application/1.1; or 
 
 
 
 
 
 xmlns=http://ns.adobe.com/air/application/1.5; 
 
 
 
 
 Make sure this is set correctly for your target environment. 
 
 
 
 
   
 
 
 
 
 KFB 
 
 
 
 
 
 
 
 
 
 
 
 
 From: 
 
 flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Douglas 
 
 Knudsen 
 
 
 Sent: Saturday, February 14, 2009 7:17 AM 
 
 
 To: flexcoders@yahoogroups.com 
 
 
 Subject:  Re: [flexcoders] AIR Application is not Appearing 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
   
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 I've seen this occur if there is some sort of startup error. ( No 
 
 
 global exception handler, eh? ). For example, if your Air app is 
 
 
 looking for a config file using static inatialiser on startup and 
 
 
 can't find it, it could just hang there. Check the flashlog for 
 
 
 errors. 
 
 
 
 
 
 DK 
 
 
 
 
 
 On 2/13/09, Alex Harui aha...@adobe.com 
 
 wrote: 
 
 
  Did they try uninstalling and re-installing? 
 
 
  
 
 
  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 Ashish Verma 
 
 
  Sent: Friday, February 13, 2009 7:03 AM 
 
 
  To: flexcoders@yahoogroups.com 
 
 
  Subject: [flexcoders] AIR Application is not Appearing 
 
 
  
 
 
  
 
 
  Hello All, 
 
 
  
 
 
  I created an AIR Application which was previously based on AIR 1.0
and I 
 
 am 
 
 
  some more features in that application and compiling with the update
of 
 
 Flex 
 
 
  3 and targeting it for AIR 1.5. After making air file I am putting
it onto 
 
 
  sever to access by users. But when any user trying to run it after 
 
 uploading 
 
 
  it's not displaying any window only showing task-bar button and
doing 
 
 
  noting. When I use the task-bar context to move command I can see
the 
 
 dotted 
 
 
  rectangle on the desktop. I also checked for the installation folder
of the 
 
 
  application in C:\Documents and Settings\username\Local Settings but
there 
 
 
  was no any folder for it. 
 
 
  
 
 
  Please help me out. 
 
 
  
 
 
  
 
 
  Best, 
 
 
  Ashish 
 
 
  
 
 
  
 
 
 
 
 
 -- 
 
 
 Sent from my mobile device 
 
 
 
 
 
 Douglas Knudsen 
 
 
 http://www.cubicleman.com 
 
 
 this is my signature, like it? 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 -- 
 
 
 This message has been scanned for viruses and 
 
 
 dangerous content by MailScanner, 
 
 and is 
 
 
 believed to be clean. 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 



__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

[flexcoders] Is it possible to set different width for columns in HorizontalList ?

2009-02-16 Thread yossi.baram
Hi, 
I'm created a new HorizontalList() 
and tried to set different width of its columns (by override set Data
()) 
but its always gives me the same width... 
Can i set the columns width for HorizontalList or is it fixed? 

Thanks 

Jo 




[flexcoders] VerifyError: Error #1014: Class IMXMLObject could not be found.

2009-02-16 Thread vikram kumar
Hi All,

I am a novice flex programmer. I have written a small flex application
that was working fine until yesterday!

But today, when I was about to give demo, to my strange, I started
receiving the following error.

VerifyError: Error #1014: Class IMXMLObject could not be found.

Can you please tell me, what went wrong!
Thanks a lot in advance!

Best wishes,
Vikram



Re: [flexcoders] Re: Help Me for SharedObject and registerClassAlias method

2009-02-16 Thread Braam Genis
Use the metadata tag [RemoteClass(alias=WindowInfo)] above your WindowInfo
class declaration and your objects should be typed when you retrieve them
from SharedObject.

On Sun, Feb 15, 2009 at 3:59 PM, valdhor valdhorli...@embarqmail.comwrote:

   I don't think you can do that. A SharedObject is just an object. What
 you would need to do is put the WindowInfo objects you want to store
 into an array and store the array in the SharedObject. When you want
 to retrieve the WindowInfo objects, read them into an array and coerce
 each array item into a WindowInfo object.


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 thelordsince1984 lore...@... wrote:
 
  Hi,
 
  i've yet posted this question but i can't resolve this problem..
 
  i've created a custom value object class..a simple class with private
  properties and getters methods to retrieve them.
 
  public class WindowInfo
  {
 
  private var _id:String;
 
  private var _module:String
 
  private var _xpos:int;
 
  private var _ypos:int;
 
  private var _width:int;
 
  private var _height:int;
 
  public function WindowInfo(id:String, module:String, xpos:int,
  ypos:int, width:int, height:int)
  {
  this._id = id;
  this._module = module;
  this._xpos = xpos;
  this._ypos = ypos;
  this._width = width;
  this._height = height;
  }
 
  public function get id():String {
  return _id;
  }
 
  public function get module():String {
  return _module;
  }
 
  public function get xpos():int {
  return _xpos;
  }
 
  public function get ypos():int {
  return _ypos;
  }
 
  public function get width():int {
  return _width;
  }
 
  public function get height():int {
  return _height;
  }
  }
 
  then i created an array collection where each item is an istance of
  value object.
  then i have a shared object manager that looks like this:
 
  package util{
 
  import flash.net.SharedObject;
 
  import mx.collections.ArrayCollection;
 
  public class SharedObjectApplicationManager {
 
  private var mySO:SharedObject;
  private var ac:ArrayCollection;
  private var lsoType:String;
 
  public function SharedObjectApplicationManager(s:String) {
  init(s);
  }
 
  private function init(s:String):void {
  mySO = SharedObject.getLocal(s);
  if (getf()) {
  getf();
  }
  }
 
  public function getf():ArrayCollection {
  return mySO.data.arrayc;
  }
 
  private function adda(array:ArrayCollection):void {
  mySO.data.arrayc = new ArrayCollection();
  mySO.data.arrayc = array;
  mySO.flush();
  }
  }
  }
 
  so when i try to get arraycollection with getf method i get an
  arraycollection of generic objects…not with windowinfo objects..in
  this manner i can't get value properties of value object class.
 
  so i would use registerClassAlias(Info, WindowInfo) where WindowInfo
  is the VO..but where?
 
  the architecture of my app is:
 
  -main application (verify the shared object, if full then call a
  public function of canvas to create windows with specific parameters
  saved in windowinfo class)
  –canvas (contains one or more windows)
 
  any suggestions?
 
  Thanks in advance
 
  Regards Lorenzo
 

  



RE: [flexcoders] Re: Socket communications in Flex

2009-02-16 Thread Jim Hayes
Are you sending the magic character that flash interprets as the end of
a piece of data coming in on a socket connection?
It's been two years since I did this, so I can't remember what that
character is, probably either a null or a newline.
That's the only special thing I remember doing with a socket server,
if you don't do that then it can appear as if it's not working.
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of markgoldin_2000
Sent: 15 February 2009 16:50
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Socket communications in Flex
 
I was able to create a server socket using VB code. I am sending 
data from a Flex test application to my server socket but cannot 
send any data to Flex. Any idea?

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

 As Tracy said, yes. A socket is just a network connection. Your 
flex 
 XMLSocket doesn't know or care what language the program 
listening on 
 the other was written in. A socket connection is like a call 
connected 
 between two telephones - if no-one at either end talks or 
neither end 
 understands the other nothing much will happen. It's up to you 
to make 
 conversation by defining how you will pass messages back and 
forth and 
 how you will process them at either end.
 
 
 On 15/02/2009, at 3:41 AM, markgoldin_2000 wrote:
 
  I am not sure myself about my question :).
  First, can Flex be listening to a socket that is created within
  any program? I mean, if a vb program creates a socket using
  Winsock will Flex be able to listen to such socket?
  Second, if yes, how would data actually be transfered?
 
  Thanks
 
  --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , Guy Morton guy@ wrote:
  
   Well...nothing would, normally. You'd have to set up a 
server to
  talk
   to you on that socket, develop a protocol for conversing over
  the
   socket, etc.
  
   An XML socket is just a pipe to communicate over. Unlike 
normal
  http
   requests which encapsulate the http conversation so you don't
  see it,
   a raw XML socket requires you to define what messages are 
going
  to be
   sent by whom and what those messages mean.
  
   Does that help, or have I misunderstood your question?
  
   Guy
  
  
   On 14/02/2009, at 10:50 PM, markgoldin_2000 wrote:
  
I am trying to understand how socket communications work in
  flex.
This code will connect to a port 8080 on a local computer:
   
var xmlsock:XMLSocket = new XMLSocket();
xmlsock.connect(127.0.0.1, 8080);
   
But what I dont understand is what would be sending data to
  that
port?
   
Thanks
   
   
   
  
 
 
 



__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

[flexcoders] Re: help with datagrid cell custom itemrenderer

2009-02-16 Thread Amy
--- In flexcoders@yahoogroups.com, sbeausol sbeausol...@... wrote:

 Hi-
 
 I've been able to implement a custom Text Color Item Renderer for a
 datagrid based off of this post Custom item renderer
 
http://blogs.adobe.com/aharui/2007/03/thinking_about_item_renderers_1
.h\
 tml  .  I've added 2 classes, a ComputedStylesColumn and
 ComputedStylesRenderer and I can successfully implement this in the 
mxml
 file, but I was hoping to build my datagrids dynamically with
 actionscript.
 
 the mxml that works:
 mx:DataGrid id=dg1 initialize=dg1.dataProvider = dp 
paddingTop=0
 paddingBottom=0 verticalAlign=middle 
 mx:columns
 mx:DataGridColumn headerText=Name dataField=name width=140/
 mx:DataGridColumn headerText=Symbol dataField=symbol 
width=60 /
 local:ComputedStylesColumn headerText=Price dataField=price
   stylesFunction=computeStyles
 itemRenderer=ComputedStylesRenderer /
 /mx:columns
 /mx:DataGrid
 
 I've been able to reconstruct most things in actionscript except 
for the
 itemRenderer=ComputedStylesRenderer.
 
 when I try this:
 var custColumn1:ComputedStylesColumn = new ComputedStylesColumn();
 custColumn1.dataField = price;
 custColumn1.headerText = Price;
 custColumn1.width = 75;
 custColumn1.stylesFunction = computeStyles;
 
 Everything works except:
 
 custColumn1.itemRenderer = ComputedStylesRenderer();
 Implicit coercion of a value of type ComputedStylesRenderer to an
 unrelated type mx.core:IFactory

Have you considered just using this:
http://flexdiary.blogspot.com/2008/09/extended-datagrid-with-
stylefunction.html

It's what it's for...




Re: RE: Re: [flexcoders] AIR Application is not Appearing

2009-02-16 Thread verma . lucky
This Visible property is true at statring but later on I am keeping it  
false. Well problem has been solved. Since in starting I made the build  
using SDK 3.1 and than after I add some more features to application and  
made the build using SDK 3.2 but didn't clean the whole Project and  
therefore build was containing some executable code from 3.1 whereas some  
from 3.2 and giving abnormal behavior. But Now I first cleaned the whole  
project and rebuild it and it's running :)


Thanks for all of your support


Best,
Ashish

On Feb 16, 2009 6:36pm, Jim Hayes j...@primalpictures.com wrote:

























































Have

you looked at this part of the application descriptor file

(yourapplication-app.xml) :











Whether the window is initially visible. Optional. Default false. --




visibletrue




?









Here I’ve uncommented it and set it true, but

by default it will be commented out and defaults to false.




I suspect this is not your problem, mind you.














-Original

Message-


From: flexcoders@yahoogroups.com

[mailto:flexcod...@yahoogroups.com] On Behalf

Of verma.lu...@gmail.com


Sent: 16 February 2009 06:09


To: Kevin Benz;

flexcoders@yahoogroups.com


Subject: Re: Re: [flexcoders] AIR

Application is not Appearing





















Hello Kevin,





Yes, you are right I am using SDK 3.2. I have changed the namespace to  

1.5 in


App xml but still it's not appearing on new machine.





Pls tell me what to do.








Best,


Ashish





On Feb 14, 2009 9:27pm, Kevin Benz kb...@passalongnetworks.com wrote:






































































































































































 Please be aware of a very simple issue that I don’t





 believe is well documented... When you go through an upgrade of an

existing





 project from SDK 3.1 to 3.2 where Air is involved, the compiler links  

the






 appropriate Air objects based on what is contained in the app.xml file

(YOUR





 APPLICATION NAME-app.xml) in the project home directory. You will find

either (the





 compiler usually crabs about this if you rely on objects not in the  

chosen


library





 though)

















 xmlns=http://ns.adobe.com/air/application/1.1; or



















 xmlns=http://ns.adobe.com/air/application/1.5;














 Make sure this is set correctly for your target environment.





























 KFB






































 From:





 flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]

On Behalf Of Douglas





 Knudsen








 Sent: Saturday, February 14, 2009 7:17 AM








 To: flexcoders@yahoogroups.com








 Subject: Re: [flexcoders] AIR Application is not Appearing































































































 I've seen this occur if there is some sort of startup error. ( No








 global exception handler, eh? ). For example, if your Air app is








 looking for a config file using static inatialiser on startup and








 can't find it, it could just hang there. Check the flashlog for








 errors.

















 DK

















 On 2/13/09, Alex Harui aha...@adobe.com





 wrote:








  Did they try uninstalling and re-installing?








 








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








  Sent: Friday, February 13, 2009 7:03 AM








  To: flexcoders@yahoogroups.com








  Subject: [flexcoders] AIR Application is not Appearing








 








 








  Hello All,








 








  I created an AIR Application which was previously based on AIR 1.0

and I





 am








  some more features in that application and compiling with the update

of





 Flex








  3 and targeting it for AIR 1.5. After making air file I am putting it

onto








  sever to access by users. But when any user trying to run it after





 uploading








  it's not displaying any window only showing task-bar button and doing










  noting. When I use the task-bar context to move command I can see the







 dotted








  rectangle on the desktop. I also checked for the installation folder

of the








  application in C:\Documents and Settings\username\Local Settings

but there








  was no any folder for it.








 








  Please help me out.








 








 








  Best,








  Ashish








 








 

















 --








 Sent from my mobile device

















 Douglas Knudsen








 http://www.cubicleman.com








 this is my signature, like it?
















































































 --


Re: [flexcoders] Re: Socket communications in Flex

2009-02-16 Thread Weyert de Boer
It's \0 or null character for the XMLSocket class. This limitation 
doesn't exist when you use the binary sockets.


[flexcoders] Image-swfLoader-memory

2009-02-16 Thread thibodeau.alain
Hi all,
I am building a photo library using tileList and the mx:Image. I do 
notice that the memory does grow the more images I load. The mx:Image 
is bound to my modelLocator, so I am not actually unloading the image 
per say, I am just changing the source with databinding. I did assume 
however that it would unload the image before loading the next...That 
said, I've also tested to unload the image manually. 

I've read various conflicting posts on swfLoader and how it doesn't 
actually unload loaded swf's or images. I've also read that in player 
10+ it actually unloads swf's properly...Can someone please tell me 
what simply is the truth? And if there is an issue with the swfLoader, 
than what would be a good workaround?

Thanks in advance, I appreciate it.





Re: [flexcoders] How to reload a SWFLoader swf in place

2009-02-16 Thread Adrian Williams

Hi Gregor,
  
   This primary reason this isn't feasible is that a couple of the 
datasets are incredibly complex and immense, including some serious 
grouping collection work.  We toyed with the idea of doing just what you 
suggested, but it would be a coding nightmare to force, for example, a 
new parent node created in one widget to be added to a completely 
separate ADG in another widget (which has the same hierarchical 
structure, but displays a different dataset)...unless someone has some 
ideas on how to implement this easily


Thanks,
Adrian

Gregor Kiddie wrote:


have a scenario (or six) where a user may change data in one widget 
that needs to be reflected in another widget. 


 

Why can't you use localconneciton or shared object to move the data 
rather than doing a reload?


 


Gk.

**Gregor Kiddie**
Senior Developer
*INPS*

Tel:   01382 564343

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

Registered Number: 1788577

Registered in the UK

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


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






[flexcoders] Datagrid not displaying selected item or rollover color any more.

2009-02-16 Thread Jason Nichols
I've searched around and have yet to find an answer for this question.
 Perhaps I'm just phrasing it incorrectly.

I have a Flex app that until recently performed as expected.  The Tab
is a class that Extends from FlexLib MDICanvas. Tabs are put into a
FlexLib SuperTab.  I've gotten everything to work in production, so I
feel the issue doesn't have anything to do with use of FlexLib. 
Either I've added something to my code base, or changed a setting
because with the exception of one subtab, every single datagrid on
every single tabbed page (8 in all) only shows the header row for each
datagrid.  Has anyone ever seen this before?


Thanks,
j



[flexcoders] How to make a Runtime Shared Library (RSL)?

2009-02-16 Thread srikanth_reddy_007
Hi,

I Created an application in Flex Builder 3 and I used the Flex
Properties - Library Path - Framework Linkage as Runtime Shared
Library(RSL). The It created a framework_3.1.0.2710.swf. I have a
question; if I use the library cairngorm.swc and if I want to
externalize that too into RSL, What should I do?

Can I only externalize framework libraries or can I externalize all
the dependent libraries? How do I externalize the cairngorm swc from
my application as RSL.

Thanks,
Srikanth



[flexcoders] Re: MouseEvent.MOUSE_WHEEL fires twice in Firefox

2009-02-16 Thread hu22hugo
Just for reference, it's a known bug:
http://bugs.adobe.com/jira/browse/FP-347



[flexcoders] Re: How to read the received ByteArray as SQLite?

2009-02-16 Thread handitan
I would like to clear one thing:
- The .Net webservice returns the bytearray-conversion of a SQLite 
file from the server.


--- In flexcoders@yahoogroups.com, handitan handi...@... wrote:

 Hi all,
 
 I have a .Net webservice the bytearray-conversion of a SQLite file.
 My client call the webservice and I received the byteArray as 
expected 
 but I couldn't treat it as SQLite until I do the following:
 - Write the byteArray to a file with .db extension.
 - Then open the SQLConnection to that file.
 
 So is there a way to treat the byteArray as SQLite without saving it 
 first to the local storage and read it?
 
 Thx!






[flexcoders] Re: fade effect not fading all items in a container

2009-02-16 Thread djepyon
Thanks for pointing this out, I fixed the problem. I had embedded the
font but I hadn't specified the family for the item in question.


--- In flexcoders@yahoogroups.com, Fotis Chatzinikos
fotis.chatzini...@... wrote:

 Do you mean the text in the buttons?
 
 Fade effects work with embeded fonts only.
 
 I think that are other ways to do it, but can not remember at the moment
 (something about layer mode?)
 
 Search the archives for fading text
 
 On Tue, Feb 10, 2009 at 6:46 PM, djepyon i...@... wrote:
 
Like the title says, I've got a container full of children that I'm
  setting the showEffect to a FadeEffect and it fades some of the
  children but not all. Specifically the things that don't fade seem to
  be buttons. Are there any reasons why things would not fade properly?
 
   
 
 
 
 
 -- 
 Fotis Chatzinikos, Ph.D.
 Founder,
 Phinnovation
 fotis.chatzini...@...,





Re: [flexcoders] Re: How to read the received ByteArray as SQLite?

2009-02-16 Thread Johannes Nel
you have to write it to the file system. if security is your concern encrypt
it. we do this a lot, but we do not send it over web services, just using
https get.

On Mon, Feb 16, 2009 at 5:58 PM, handitan handi...@yahoo.com wrote:

   I would like to clear one thing:
 - The .Net webservice returns the bytearray-conversion of a SQLite
 file from the server.


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 handitan handi...@... wrote:
 
  Hi all,
 
  I have a .Net webservice the bytearray-conversion of a SQLite file.
  My client call the webservice and I received the byteArray as
 expected
  but I couldn't treat it as SQLite until I do the following:
  - Write the byteArray to a file with .db extension.
  - Then open the SQLConnection to that file.
 
  So is there a way to treat the byteArray as SQLite without saving it
  first to the local storage and read it?
 
  Thx!
 

  




-- 
j:pn
\\no comment


Re: {Disarmed} [flexcoders] AIR update framework only works to update AIR file

2009-02-16 Thread handitan
Hi KFB,

Thank you for your great input.
So basically for my need, I need to have a customized update system 
since I am dealing not just AIR file but other files as well.
 
 There are a number of references about determining whether it's the
 first-run or not so adaptation of those techniques is probably worth
 looking at.

Could you please let me know where I can get these references?


Thanks!
--- In flexcoders@yahoogroups.com, Kevin Benz kb...@... wrote:

 You need to be aware of the two paths to update Air applications. 
The UI
 approach, one where you configure the UI of the update process 
through a
 XML file and an API approach where you take programmatic control of 
the
 update. Ultimately the goal of the UpdaterUI was to update the Air 
file
 alone (and then start it)so if you need to move files around, update
 SQLite or something like that, you are going to have to do what you 
need
 in Actionscript. The update framework  in no-way has the 
capabilities of
 commercial installers. Can't call external processes, directly move
 files around, etc
 
  
 
 Since the updater mechanisms are running in the old code, not the 
new
 Air file, it can't know what needs to updated, meaning you are going 
to
 end up writing code in your app's normal bootstrap process that
 determines that an update has occurred and makes the necessary 
changes.
 There are a number of references about determining whether it's the
 first-run or not so adaptation of those techniques is probably worth
 looking at.
 
  
 
 In our apps, we have the current client version in the SQLite 
database.
 If the running client does not match that version number, we call
 whatever update process we need and on completion update SQLite to 
the
 current running client version id.
 
 KFB
 
  
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] 
On
 Behalf Of handitan
 Sent: Friday, February 13, 2009 1:02 PM
 To: flexcoders@yahoogroups.com
 Subject: {Disarmed} [flexcoders] AIR update framework only works 
to
 update AIR file?
 
  
 
 Hi all,
 
 I have been reading articles about using AIR update framework.
 To my understanding this only works to update AIR file??
 
 I hope I am wrong...
 Since my AIR app is using Flex-only swcs and is loading Flex-only 
 modules.
 
 Anybody can shed a light on this? 
 
 
 
 
 -- 
 This message has been scanned for viruses and 
 dangerous content by MailScanner http://www.mailscanner.info/ , 
and is
 
 believed to be clean.






Re: [flexcoders] Re: Help Me for SharedObject and registerClassAlias method

2009-02-16 Thread Johannes Nel
watch out for classes that take arguments in the constructer or java style
enums.

On Mon, Feb 16, 2009 at 12:07 AM, Braam Genis braamge...@gmail.com wrote:

   Use the metadata tag [RemoteClass(alias=WindowInfo)] above your
 WindowInfo class declaration and your objects should be typed when you
 retrieve them from SharedObject.


 On Sun, Feb 15, 2009 at 3:59 PM, valdhor valdhorli...@embarqmail.comwrote:

   I don't think you can do that. A SharedObject is just an object. What
 you would need to do is put the WindowInfo objects you want to store
 into an array and store the array in the SharedObject. When you want
 to retrieve the WindowInfo objects, read them into an array and coerce
 each array item into a WindowInfo object.


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 thelordsince1984 lore...@... wrote:
 
  Hi,
 
  i've yet posted this question but i can't resolve this problem..
 
  i've created a custom value object class..a simple class with private
  properties and getters methods to retrieve them.
 
  public class WindowInfo
  {
 
  private var _id:String;
 
  private var _module:String
 
  private var _xpos:int;
 
  private var _ypos:int;
 
  private var _width:int;
 
  private var _height:int;
 
  public function WindowInfo(id:String, module:String, xpos:int,
  ypos:int, width:int, height:int)
  {
  this._id = id;
  this._module = module;
  this._xpos = xpos;
  this._ypos = ypos;
  this._width = width;
  this._height = height;
  }
 
  public function get id():String {
  return _id;
  }
 
  public function get module():String {
  return _module;
  }
 
  public function get xpos():int {
  return _xpos;
  }
 
  public function get ypos():int {
  return _ypos;
  }
 
  public function get width():int {
  return _width;
  }
 
  public function get height():int {
  return _height;
  }
  }
 
  then i created an array collection where each item is an istance of
  value object.
  then i have a shared object manager that looks like this:
 
  package util{
 
  import flash.net.SharedObject;
 
  import mx.collections.ArrayCollection;
 
  public class SharedObjectApplicationManager {
 
  private var mySO:SharedObject;
  private var ac:ArrayCollection;
  private var lsoType:String;
 
  public function SharedObjectApplicationManager(s:String) {
  init(s);
  }
 
  private function init(s:String):void {
  mySO = SharedObject.getLocal(s);
  if (getf()) {
  getf();
  }
  }
 
  public function getf():ArrayCollection {
  return mySO.data.arrayc;
  }
 
  private function adda(array:ArrayCollection):void {
  mySO.data.arrayc = new ArrayCollection();
  mySO.data.arrayc = array;
  mySO.flush();
  }
  }
  }
 
  so when i try to get arraycollection with getf method i get an
  arraycollection of generic objects…not with windowinfo objects..in
  this manner i can't get value properties of value object class.
 
  so i would use registerClassAlias(Info, WindowInfo) where WindowInfo
  is the VO..but where?
 
  the architecture of my app is:
 
  -main application (verify the shared object, if full then call a
  public function of canvas to create windows with specific parameters
  saved in windowinfo class)
  –canvas (contains one or more windows)
 
  any suggestions?
 
  Thanks in advance
 
  Regards Lorenzo
 


  




-- 
j:pn
\\no comment


[flexcoders] Re: Help Me for SharedObject and registerClassAlias method

2009-02-16 Thread djepyon
What you're saying here works, but you can definitely use
RegisterClassAlias to get strongly typed objects when
storing/retrieving data from a SharedObject or anything else AMF2
based (LocalConnection for example). This would prevent the need to
cast any objects.

--- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote:

 I don't think you can do that. A SharedObject is just an object. What
 you would need to do is put the WindowInfo objects you want to store
 into an array and store the array in the SharedObject. When you want
 to retrieve the WindowInfo objects, read them into an array and coerce
 each array item into a WindowInfo object.
 
 
 --- In flexcoders@yahoogroups.com, thelordsince1984 loreboa@ wrote:
 
  Hi,
  
  i've yet posted this question but i can't resolve this problem..
  
  i've created a custom value object class..a simple class with private
  properties and getters methods to retrieve them.
  
  public class WindowInfo
  {   
  
  private var _id:String;
  
  private var _module:String
  
  private var _xpos:int;
  
  private var _ypos:int;
  
  private var _width:int;
  
  private var _height:int;
  
  public function WindowInfo(id:String, module:String, xpos:int,
  ypos:int, width:int, height:int)
  {
  this._id = id;
  this._module = module;
  this._xpos = xpos;
  this._ypos = ypos;
  this._width = width;
  this._height = height;
  }
  
  public function get id():String {
  return _id;
  }
  
  public function get module():String {
  return _module;
  }
  
  public function get xpos():int {
  return _xpos;
  }
  
  public function get ypos():int {
  return _ypos;
  }
  
  public function get width():int {
  return _width;
  }
  
  public function get height():int {
  return _height;
  }
  }
  
  then i created an array collection where each item is an istance of
  value object.
  then i have a shared object manager that looks like this:
  
  package util{
  
  import flash.net.SharedObject;
  
  import mx.collections.ArrayCollection;
  
  public class SharedObjectApplicationManager {
  
  private var mySO:SharedObject;
  private var ac:ArrayCollection;
  private var lsoType:String;
  
  public function SharedObjectApplicationManager(s:String) {
  init(s);
  }
  
  private function init(s:String):void {
  mySO = SharedObject.getLocal(s);
  if (getf()) {
  getf();
  }
  }
  
  public function getf():ArrayCollection {
  return mySO.data.arrayc;
  }
  
  private function adda(array:ArrayCollection):void {
  mySO.data.arrayc = new ArrayCollection();
  mySO.data.arrayc = array;
  mySO.flush();
  }
  }
  }
  
  so when i try to get arraycollection with getf method i get an
  arraycollection of generic objects…not with windowinfo objects..in
  this manner i can't get value properties of value object class.
  
  so i would use registerClassAlias(Info, WindowInfo) where WindowInfo
  is the VO..but where?
  
  the architecture of my app is:
  
  -main application (verify the shared object, if full then call a
  public function of canvas to create windows with specific parameters
  saved in windowinfo class)
  –canvas (contains one or more windows)
  
  any suggestions?
  
  Thanks in advance
  
  Regards Lorenzo
 





RE: {Disarmed} [flexcoders] AIR update framework only works to update AIR file

2009-02-16 Thread Kevin Benz
Mike Chambers blog should be a starting point.

 

http://www.mikechambers.com/blog/2007/11/07/detecting-whether-an-air-app
lication-has-run-before/

 

KFB

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of handitan
Sent: Monday, February 16, 2009 8:04 AM
To: flexcoders@yahoogroups.com
Subject: Re: {Disarmed} [flexcoders] AIR update framework only works
to update AIR file

 

Hi KFB,

Thank you for your great input.
So basically for my need, I need to have a customized update system 
since I am dealing not just AIR file but other files as well.

 There are a number of references about determining whether it's the
 first-run or not so adaptation of those techniques is probably worth
 looking at.

Could you please let me know where I can get these references?

Thanks!
--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Kevin Benz kb...@... wrote:

 You need to be aware of the two paths to update Air applications. 
The UI
 approach, one where you configure the UI of the update process 
through a
 XML file and an API approach where you take programmatic control of 
the
 update. Ultimately the goal of the UpdaterUI was to update the Air 
file
 alone (and then start it)so if you need to move files around, update
 SQLite or something like that, you are going to have to do what you 
need
 in Actionscript. The update framework in no-way has the 
capabilities of
 commercial installers. Can't call external processes, directly move
 files around, etc
 
 
 
 Since the updater mechanisms are running in the old code, not the 
new
 Air file, it can't know what needs to updated, meaning you are going 
to
 end up writing code in your app's normal bootstrap process that
 determines that an update has occurred and makes the necessary 
changes.
 There are a number of references about determining whether it's the
 first-run or not so adaptation of those techniques is probably worth
 looking at.
 
 
 
 In our apps, we have the current client version in the SQLite 
database.
 If the running client does not match that version number, we call
 whatever update process we need and on completion update SQLite to 
the
 current running client version id.
 
 KFB
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] 
On
 Behalf Of handitan
 Sent: Friday, February 13, 2009 1:02 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: {Disarmed} [flexcoders] AIR update framework only works 
to
 update AIR file?
 
 
 
 Hi all,
 
 I have been reading articles about using AIR update framework.
 To my understanding this only works to update AIR file??
 
 I hope I am wrong...
 Since my AIR app is using Flex-only swcs and is loading Flex-only 
 modules.
 
 Anybody can shed a light on this? 
 
 
 
 
 -- 
 This message has been scanned for viruses and 
 dangerous content by MailScanner http://www.mailscanner.info/ , 
and is
 
 believed to be clean.





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

RE: [flexcoders] Datagrid not displaying selected item or rollover color any more.

2009-02-16 Thread Alex Harui
No data or dataProvider is null or empty?

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 Jason Nichols
Sent: Monday, February 16, 2009 6:50 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Datagrid not displaying selected item or rollover color 
any more.


I've searched around and have yet to find an answer for this question.
Perhaps I'm just phrasing it incorrectly.

I have a Flex app that until recently performed as expected. The Tab
is a class that Extends from FlexLib MDICanvas. Tabs are put into a
FlexLib SuperTab. I've gotten everything to work in production, so I
feel the issue doesn't have anything to do with use of FlexLib.
Either I've added something to my code base, or changed a setting
because with the exception of one subtab, every single datagrid on
every single tabbed page (8 in all) only shows the header row for each
datagrid. Has anyone ever seen this before?

Thanks,
j



RE: [flexcoders] How to reload a SWFLoader swf in place

2009-02-16 Thread Alex Harui
In a model/view or MVC pattern, widgets don't affect other widgets, they affect 
they data-model which other widgets then respond to.

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 Adrian Williams
Sent: Monday, February 16, 2009 6:40 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How to reload a SWFLoader swf in place


Hi Gregor,

This primary reason this isn't feasible is that a couple of the datasets 
are incredibly complex and immense, including some serious grouping collection 
work.  We toyed with the idea of doing just what you suggested, but it would be 
a coding nightmare to force, for example, a new parent node created in one 
widget to be added to a completely separate ADG in another widget (which has 
the same hierarchical structure, but displays a different dataset)...unless 
someone has some ideas on how to implement this easily

Thanks,
Adrian

Gregor Kiddie wrote:
have a scenario (or six) where a user may change data in one widget that needs 
to be reflected in another widget. 

Why can't you use localconneciton or shared object to move the data rather than 
doing a reload?

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343
Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ
Registered Number: 1788577
Registered in the UK

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

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





RE: [flexcoders] Image-swfLoader-memory

2009-02-16 Thread Alex Harui
Use the Profiler to see if you really have such a problem.  We have seen issues 
with some browsers not releasing memory even though Flex has.

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 thibodeau.alain
Sent: Monday, February 16, 2009 6:00 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Image-swfLoader-memory


Hi all,
I am building a photo library using tileList and the mx:Image. I do
notice that the memory does grow the more images I load. The mx:Image
is bound to my modelLocator, so I am not actually unloading the image
per say, I am just changing the source with databinding. I did assume
however that it would unload the image before loading the next...That
said, I've also tested to unload the image manually.

I've read various conflicting posts on swfLoader and how it doesn't
actually unload loaded swf's or images. I've also read that in player
10+ it actually unloads swf's properly...Can someone please tell me
what simply is the truth? And if there is an issue with the swfLoader,
than what would be a good workaround?

Thanks in advance, I appreciate it.



RE: [flexcoders] VerifyError: Error #1014: Class IMXMLObject could not be found.

2009-02-16 Thread Alex Harui
Maybe you are using the RSL linkage and couldn't get to any of the RSLs?

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 vikram kumar
Sent: Monday, February 16, 2009 1:12 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] VerifyError: Error #1014: Class IMXMLObject could not be 
found.


Hi All,

I am a novice flex programmer. I have written a small flex application
that was working fine until yesterday!

But today, when I was about to give demo, to my strange, I started
receiving the following error.

VerifyError: Error #1014: Class IMXMLObject could not be found.

Can you please tell me, what went wrong!
Thanks a lot in advance!

Best wishes,
Vikram



RE: [flexcoders] Is it possible to set different width for columns in HorizontalList ?

2009-02-16 Thread Alex Harui
All cells in HorizontalList must be the same size.  If you don't have lots of 
images, just use HBox and Repeater

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 yossi.baram
Sent: Sunday, February 15, 2009 10:05 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Is it possible to set different width for columns in 
HorizontalList ?


Hi,
I'm created a new HorizontalList()
and tried to set different width of its columns (by override set Data
())
but its always gives me the same width...
Can i set the columns width for HorizontalList or is it fixed?

Thanks

Jo



RE: [flexcoders] Statically adding one more item to the dynamically driven combobox dataprovider.

2009-02-16 Thread Alex Harui
dataProvider is typed as Object so code-hint doesn't help.  It is an IList so 
there is addItem

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 kotha poornima
Sent: Monday, February 16, 2009 3:02 AM
To: flexcoders
Subject: [flexcoders] Statically adding one more item to the dynamically driven 
combobox dataprovider.

Hi All,
In my project i have a combobox in which i need to add dynamic values from the 
xml file and in addition i need to add one static value All to the combobox 
dataprovider.
For combobox dataprovider iam directly giving xml values like this:

usecases1.dataProvider=cbolXML.Market[0].child(UseCase).attributes();

usecases1 is nothing but combobox and cboxXML is an xml file from which iam 
reading the data's for the combobox.

SO, here how can i add one more static value All to the above data coming 
from the xml file.

i dont find any addItem or push methods for combobox dataprovider.

If i am using arraycollection or array its not giving the correct data but its 
appending ALL to the data from the xml.

Anyone can help me out of this.

Thanks in Advance,
Poornima




RE: [flexcoders] Mouse Clicks' Queue when Button is Disabled

2009-02-16 Thread Alex Harui
I would try to find out why it gets enabled again.  Maybe the data has returned 
but is being parsed.  If so, you could wait until after parsing to re-enable 
the button.  There is no queuing of events unless the OS does 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 giladozer
Sent: Monday, February 16, 2009 1:45 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Mouse Clicks' Queue when Button is Disabled


Hi, I was wondering about the Disable property for UI Components.
In the docs it says that when the component is disabled it ignores all
interaction whatsoever - in particular - user interaction.
In my case, the button is disabled for a few seconds right after it
was clicked by the user (I disable it till the httprequest is returned
and then enable it).
What happens is that if the user clicks the button while it's disabled
- nothing happens. But when the button turns enabled - it acts as if
it just got the click event.
It seems like the mouse click event went into this queue and the
button listened to it right after to turned enable?
Am I correct? If so - how can I prevent this problem?
If I'm wrong, what's the reason for this? And again, how can I sort
this so the user can't send mouse clicks to the button when it's
disabled??

Many thanks :)
Gilad



[flexcoders] Re: Datagrid not displaying selected item or rollover color any more.

2009-02-16 Thread Jason Nichols
I guess I didn't put down.  There is still data in every row of the
datagrid, however the only row that displays a rollover effect is the
header row.

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

 No data or dataProvider is null or empty?
 
 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 Jason Nichols
 Sent: Monday, February 16, 2009 6:50 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Datagrid not displaying selected item or
rollover color any more.
 
 
 I've searched around and have yet to find an answer for this question.
 Perhaps I'm just phrasing it incorrectly.
 
 I have a Flex app that until recently performed as expected. The Tab
 is a class that Extends from FlexLib MDICanvas. Tabs are put into a
 FlexLib SuperTab. I've gotten everything to work in production, so I
 feel the issue doesn't have anything to do with use of FlexLib.
 Either I've added something to my code base, or changed a setting
 because with the exception of one subtab, every single datagrid on
 every single tabbed page (8 in all) only shows the header row for each
 datagrid. Has anyone ever seen this before?
 
 Thanks,
 j





[flexcoders] Re: local file thumbnail preview :: possible?

2009-02-16 Thread app.developer
--- In flexcoders@yahoogroups.com, app.developer appdevelo...@... 
wrote:

 --- In flexcoders@yahoogroups.com, artur_desig2dev artur@ wrote:
 
  nevermind.. found it:
  
 
 http://blog.flexexamples.com/2008/08/25/previewing-an-image-before-
uploading-it-using-the-filereference-class-in-flash-player-10/
  
  * thanks Juan!
 
 
 
 Uhh 
 Isn't that using Flex 4 (Gumbo).  How do you do it with Flex 3.2?
 
 P


I have a working test app with Flex 3.2.  No need to respond.

P




[flexcoders] Re: Flas 10 on mobile is a go

2009-02-16 Thread app.developer
A big THANK YOU to Adobe and the necessary mobile vendors that made 
this happen.

Precia



--- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiver...@... 
wrote:

 It seems full blown Flash Player 10 (not lite !) is to come to just 
about 
 every mobile smartphone except the iPhone (Apples fault): 
 http://tinyurl.com/d68voq
 -- 
 Tom Chiverton
 Helping to heterogeneously envisioneer bleeding-edge fine-grained 
impactful 
 customized action-items
 
 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in 
England and Wales under registered number OC307980 whose registered 
office address is at Halliwells LLP, 3 Hardman Square, 
Spinningfields, Manchester, M3 3EB.  A list of members is available 
for inspection at the registered office together with a list of those 
non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or 
consultant with equivalent standing and qualifications. Regulated by 
the Solicitors Regulation Authority.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named 
above and may be confidential or legally privileged.  If you are not 
the addressee you must not read it and must not use any information 
contained in nor copy it nor inform any person other than Halliwells 
LLP or the addressee of its existence or contents.  If you have 
received this email in error please delete it and notify Halliwells 
LLP IT Department on 0870 365 2500.
 
 For more information about Halliwells LLP visit www.halliwells.com.





Re: [flexcoders] Image-swfLoader-memory

2009-02-16 Thread Alain Thibodeau
Thanks Alex,

So there shouldn't be any issues with the way I set the swfLoader in Cairngorn 
then? 

I did test with the profiler and unless I am blind I don't see it releasing 
memory, however, I am not an expert with it. When I do test with the browser 
(IE), I see the memory go down then back up, in the long run it always goes 
much higher and doubles or triples from original. I am not sure at this point 
if I should worry about it or code it a different way. If it is the brower, 
then I gather there isn't much I can do...

Thanks again.





From: Alex Harui aha...@adobe.com
To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
Sent: Monday, February 16, 2009 11:43:24 AM
Subject: RE: [flexcoders] Image-swfLoader-memory


Use the Profiler to see if you really have such a problem.  We have seen issues 
with some browsers not releasing memory even though Flex has.
 
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs. adobe.com/ aharui
 
From:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
Behalf Of thibodeau.alain
Sent: Monday, February 16, 2009 6:00 AM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] Image-swfLoader-memory
 
Hi all,
I am building a photo library using tileList and the mx:Image. I do 
notice that the memory does grow the more images I load. The mx:Image 
is bound to my modelLocator, so I am not actually unloading the image 
per say, I am just changing the source with databinding. I did assume 
however that it would unload the image before loading the next...That 
said, I've also tested to unload the image manually. 

I've read various conflicting posts on swfLoader and how it doesn't 
actually unload loaded swf's or images. I've also read that in player 
10+ it actually unloads swf's properly...Can someone please tell me 
what simply is the truth? And if there is an issue with the swfLoader, 
than what would be a good workaround?

Thanks in advance, I appreciate it.



  

[flexcoders] Re: filter arraycollection with checkbox acting wired

2009-02-16 Thread Tim Hoff

Hi,

There's a few problems with your original code.  First, pizzaSelected
will never change after the first click of the CheckBox; because you're
only setting it if the CheckBox is selected.  Also not sure why you
don't just use pizzaSelected = pizza_ckb.selected; instead of
pizza_ckb.data, or why use a reference variable at all.  Second, you're
trying to compare String values to Boolean values.  Boolean values are
sometimes stored as varchar, int, or bit in a database.  Once the data
gets to the client, you need to make sure that you are either casting
these values to Boolean, or comparing them to similar data types; in
this case it looks like String.  If you are using strings, also be
careful of spelling and case.  Finally, you only need to use refresh()
once; after a sort or filterFunction has been applied to a collection.

Give this code a whirl:


private var pizzaSelected:String;



private function pizzaFilter():void
{
  pizzaSelected = pizza_ckb.selected ? yes : no ;
  filterGrid();
}

private function filterGrid() :void
{
  // this assumes that you want to show all; if pizza_chb is not
selected
 pizzaAr.filterFunction = (pizzaSelected == yes) ? myFilterFunction
: null;
 pizzaAr.refresh();
}



private function myFilterFunction(item:Object): Boolean
{
  return (item.pizza.toLowerCase() == pizzaSelected) ;
}

-TH

--- In flexcoders@yahoogroups.com, johndoematrix johndoemat...@...
wrote:

 i have tried every advise provide so far and still doesn't work. this
 is the senario, in my database i have a column(Field Name) for pizza
 with Data Type YES/NO. i display everything in a flex app through a
 arraycollection and want to filter that data. i use a checkbox to
 filter data if there is pizza or not. when the pizza checkbox is
 checked i want to show only entries with pizza. hope that details what
 i wanna do.





[flexcoders] Re: Datagrid not displaying selected item or rollover color any more.

2009-02-16 Thread Tim Hoff

Perhaps your DataGrids are inheriting some styles from the new
containers.  Since the header is showing a rollover, it's probably not
an enabled issue.  Try setting the styles directly on the DataGrid tag;
to see if it is an inheritance issue and/or to isolate the problem.  You
want to make sure that useRollOver=true, selectable=true, and that
rollOverColor and selectionColor isn't the same as the backgroundColor. 
You might also check to see if any new CSS has been introduced; that has
settings for DataGrid.

-TH

--- In flexcoders@yahoogroups.com, Jason Nichols jason...@... wrote:

 I guess I didn't put down. There is still data in every row of the
 datagrid, however the only row that displays a rollover effect is the
 header row.

 --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
 
  No data or dataProvider is null or empty?
 
  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 Jason Nichols
  Sent: Monday, February 16, 2009 6:50 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Datagrid not displaying selected item or
 rollover color any more.
 
 
  I've searched around and have yet to find an answer for this
question.
  Perhaps I'm just phrasing it incorrectly.
 
  I have a Flex app that until recently performed as expected. The Tab
  is a class that Extends from FlexLib MDICanvas. Tabs are put into a
  FlexLib SuperTab. I've gotten everything to work in production, so I
  feel the issue doesn't have anything to do with use of FlexLib.
  Either I've added something to my code base, or changed a setting
  because with the exception of one subtab, every single datagrid on
  every single tabbed page (8 in all) only shows the header row for
each
  datagrid. Has anyone ever seen this before?
 
  Thanks,
  j
 






Re: [flexcoders] Re: Help Me for SharedObject and registerClassAlias method

2009-02-16 Thread Peter Hall
I'm not sure what you mean about casting in this context. Also, I
guess you meant AMF3 when you said AMF2? (with AMF0/ AS2, you can use
Object.registerClass() for the same effect).

In AS3, registerClassAlias() is the way to make this work. But, as
Braam said, [RemoteClass] is the simplest way: it will insert the
registerClassAlias() code for you, so you don't have to worry about
where to put it, and will make sure it is ready when you need it.


Peter


On Mon, Feb 16, 2009 at 4:16 PM, djepyon i...@auricom.com wrote:
 What you're saying here works, but you can definitely use
 RegisterClassAlias to get strongly typed objects when
 storing/retrieving data from a SharedObject or anything else AMF2
 based (LocalConnection for example). This would prevent the need to
 cast any objects.

 --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote:

 I don't think you can do that. A SharedObject is just an object. What
 you would need to do is put the WindowInfo objects you want to store
 into an array and store the array in the SharedObject. When you want
 to retrieve the WindowInfo objects, read them into an array and coerce
 each array item into a WindowInfo object.


 --- In flexcoders@yahoogroups.com, thelordsince1984 loreboa@ wrote:
 
  Hi,
 
  i've yet posted this question but i can't resolve this problem..
 
  i've created a custom value object class..a simple class with private
  properties and getters methods to retrieve them.
 
  public class WindowInfo
  {
 
  private var _id:String;
 
  private var _module:String
 
  private var _xpos:int;
 
  private var _ypos:int;
 
  private var _width:int;
 
  private var _height:int;
 
  public function WindowInfo(id:String, module:String, xpos:int,
  ypos:int, width:int, height:int)
  {
  this._id = id;
  this._module = module;
  this._xpos = xpos;
  this._ypos = ypos;
  this._width = width;
  this._height = height;
  }
 
  public function get id():String {
  return _id;
  }
 
  public function get module():String {
  return _module;
  }
 
  public function get xpos():int {
  return _xpos;
  }
 
  public function get ypos():int {
  return _ypos;
  }
 
  public function get width():int {
  return _width;
  }
 
  public function get height():int {
  return _height;
  }
  }
 
  then i created an array collection where each item is an istance of
  value object.
  then i have a shared object manager that looks like this:
 
  package util{
 
  import flash.net.SharedObject;
 
  import mx.collections.ArrayCollection;
 
  public class SharedObjectApplicationManager {
 
  private var mySO:SharedObject;
  private var ac:ArrayCollection;
  private var lsoType:String;
 
  public function SharedObjectApplicationManager(s:String) {
  init(s);
  }
 
  private function init(s:String):void {
  mySO = SharedObject.getLocal(s);
  if (getf()) {
  getf();
  }
  }
 
  public function getf():ArrayCollection {
  return mySO.data.arrayc;
  }
 
  private function adda(array:ArrayCollection):void {
  mySO.data.arrayc = new ArrayCollection();
  mySO.data.arrayc = array;
  mySO.flush();
  }
  }
  }
 
  so when i try to get arraycollection with getf method i get an
  arraycollection of generic objects…not with windowinfo objects..in
  this manner i can't get value properties of value object class.
 
  so i would use registerClassAlias(Info, WindowInfo) where WindowInfo
  is the VO..but where?
 
  the architecture of my app is:
 
  -main application (verify the shared object, if full then call a
  public function of canvas to create windows with specific parameters
  saved in windowinfo class)
  –canvas (contains one or more windows)
 
  any suggestions?
 
  Thanks in advance
 
  Regards Lorenzo
 


 




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

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

* Your email settings:
Individual Email | Traditional

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

* To change settings via email:
mailto:flexcoders-dig...@yahoogroups.com 
mailto:flexcoders-fullfeatu...@yahoogroups.com

* To unsubscribe from this group, send an email to:
flexcoders-unsubscr...@yahoogroups.com

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



Re: [flexcoders] DYNAMIC LINKBUTTONS styleNames.

2009-02-16 Thread - -
Hi tracy, where can I find some docs on taking references from childs?
Thanks.





From: Tracy Spratt tspr...@lariatinc.com
To: flexcoders@yahoogroups.com
Sent: Monday, February 16, 2009 12:20:05 AM
Subject: RE: [flexcoders] DYNAMIC LINKBUTTONS styleNames.


“…set their IDs…”  That does not work in actionscript, only in mxml.  You need 
to take the reference from addChild, and put in your array.
 
Tracy Spratt
Lariat Services
Flex development bandwidth available



From:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
Behalf Of - -
Sent: Sunday, February 15, 2009 4:04 PM
To: flexcod...@yahoogro ups.com
Subject: Re: [flexcoders] DYNAMIC LINKBUTTONS styleNames.
 
Hi Tracy, I have a little more complicated situation... 
My linkButtons are now created with actionScript (addChild). 
I set their IDs before adding them to their parent.
My action script also fills up my Array of linkButton IDs called buttons.
 
[Bindable]
privatevar buttons:Array = new Array();
 
foreach (var itemsIDs:String in buttons)
{ 
trace(itemsIDs);
this[itemsIDs].setStyle (styleName,linkButton);
}

My trace properly returns all the IDs of my buttons but I get the following 
error:
Property test001 not found... and there is no default value.
It's like I don't have access to the ID of my linkButtons because they were 
created via the ADDCHILD ???
Is this possible?
 
Any ideas how I can get around this?
 
Thanks again :)
 
-David
 
 



From:Tracy Spratt tspr...@lariatinc. com
To: flexcod...@yahoogro ups.com
Sent: Friday, February 13, 2009 5:49:57 PM
Subject: RE: [flexcoders] DYNAMIC LINKBUTTONS styleNames.
styleName is not a property, it is a style. You have to use setStyle();

Also, debug your loop, make sure you have a good refrence to the button.

Tracy Spratt 
Lariat Services 
Flex development bandwidth available 
 _ _ _ _
From: flexcod...@yahoogro ups.com [mailto:flexcod...@yahoogro ups.com] On 
Behalf Of - -
Sent: Friday, February 13, 2009 5:31 PM
To: flexcod...@yahoogro ups.com
Subject: Re: [flexcoders] DYNAMIC LINKBUTTONS styleNames.

Hi Tracy, I can get it to work as a var, but when I try to access the Array, I 
get: 
Cannot access a property or method of a null object reference.

This is my array:
 
[Bindable]
private var buttons:Array = new Array(test001 , test002, test003);
 
for each(var target:String in buttons)
{
this[target] .styleName = linkButton; 
}
 
Thanks again! :)

 _ _ _ _
From: Tracy Spratt tspr...@lariatinc. com
To: flexcod...@yahoogro ups.com
Sent: Friday, February 13, 2009 5:15:22 PM
Subject: RE: [flexcoders] DYNAMIC LINKBUTTONS styleNames.
Yes, sailorsea, see that link.
 
Also, be careful of terminology.  I said store references.  This is not the 
same as storing IDs.
 
You can do this using ids, with bracket notation.  
var sId:String = test001;
this[sId].setStyle( );  //should work
 
Tracy Spratt 
Lariat Services 
Flex development bandwidth available 
 _ _ _ _
From: flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
Behalf Of Ryan Graham
Sent: Friday, February 13, 2009 5:08 PM
To: flexcod...@yahoogro ups.com
Subject: RE: [flexcoders] DYNAMIC LINKBUTTONS styleNames.
 
Hey now, you knew this was in the docs... :D
 
http://livedocs. adobe.com/ flex/3/html/ help.html? content=03_ Language_ 
and_Syntax_ 16.html
 
HTH,
Ryan
 
From: flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
Behalf Of - -
Sent: Friday, February 13, 2009 2:28 PM
To: flexcod...@yahoogro ups.com
Subject: Re: [flexcoders] DYNAMIC LINKBUTTONS styleNames.
 
Hi Tracy, I created an array of all the IDs of my linkButtons, can you show me 
an example how to loop in the array?
 
Thanks.
 
 _ _ _ _
From: Tracy Spratt tspr...@lariatinc. com
To: flexcod...@yahoogro ups.com
Sent: Friday, February 13, 2009 4:11:05 PM
Subject: RE: [flexcoders] DYNAMIC LINKBUTTONS styleNames.
Store references to each in an Array, then loop over the array.
 
Tracy Spratt 
Lariat Services 
Flex development bandwidth available 
 _ _ _ _
From: flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
Behalf Of sailorsea21
Sent: Friday, February 13, 2009 4:01 PM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] DYNAMIC LINKBUTTONS styleNames.
 
I have a series of 3 linkButtons.
I am able to switch the styleName of a linkButton when I click on it 
as follows:

[Bindable]
private var linkButton:String = 'linkButton' ;

[Bindable]
private var linkButtonOff: String = 'linkButtonOff' ;

mx:LinkButton id=test001 label=001 styleName={ linkButton}  
buttonMode= true click=setType( event)/

mx:LinkButton id=test002 label=002 styleName={ linkButton}  
buttonMode= true click=setType( event)/

mx:LinkButton id=test003 label=003 styleName={ 

[flexcoders] Re: Datagrid not displaying selected item or rollover color any more.

2009-02-16 Thread Jason Nichols
Thanks Tim,

I went ahead and defined a datagrid on the same canvas the one of the
ones that aren't working, and it works just fine.  I guess it's
possible that there's something hidden within the domain model since
that seem to be the only thing that all non working tabs now have in
common. It's just very confusing since every has worked in past, and I
have attempted to roll back to previous version with the same result.
  The one thing I haven't seen is if a parent class in the domain is
messing everything up, or if it's something else coming from the
grails side.

Thanks for the help,

j


--- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote:

 
 Perhaps your DataGrids are inheriting some styles from the new
 containers.  Since the header is showing a rollover, it's probably not
 an enabled issue.  Try setting the styles directly on the DataGrid tag;
 to see if it is an inheritance issue and/or to isolate the problem.  You
 want to make sure that useRollOver=true, selectable=true, and that
 rollOverColor and selectionColor isn't the same as the backgroundColor. 
 You might also check to see if any new CSS has been introduced; that has
 settings for DataGrid.
 
 -TH
 
 --- In flexcoders@yahoogroups.com, Jason Nichols jasonnic@ wrote:
 
  I guess I didn't put down. There is still data in every row of the
  datagrid, however the only row that displays a rollover effect is the
  header row.
 
  --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
  
   No data or dataProvider is null or empty?
  
   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 Jason Nichols
   Sent: Monday, February 16, 2009 6:50 AM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Datagrid not displaying selected item or
  rollover color any more.
  
  
   I've searched around and have yet to find an answer for this
 question.
   Perhaps I'm just phrasing it incorrectly.
  
   I have a Flex app that until recently performed as expected. The Tab
   is a class that Extends from FlexLib MDICanvas. Tabs are put into a
   FlexLib SuperTab. I've gotten everything to work in production, so I
   feel the issue doesn't have anything to do with use of FlexLib.
   Either I've added something to my code base, or changed a setting
   because with the exception of one subtab, every single datagrid on
   every single tabbed page (8 in all) only shows the header row for
 each
   datagrid. Has anyone ever seen this before?
  
   Thanks,
   j
  
 





[flexcoders] open new browser in maximized state

2009-02-16 Thread GeeTee

Hi everyone,

Can anyone let me know if it is possible using Flex / AS to open a new
browser (using navigateToURL(arg1,_blank)) with the new browser in
maximized state? On my system, it always opens at a smaller size and does
not create a good user experience.

Thanks.
Gaurav
-- 
View this message in context: 
http://www.nabble.com/open-new-browser-in-maximized-state-tp22044344p22044344.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Re: Datagrid not displaying selected item or rollover color any more.

2009-02-16 Thread Jason Nichols
Status = Fixed.

I started looking at the domain model since that seemed to be the one
common thread throughout the non functioning pages.

In the parent class at some point I had put:

get uid and set uid, when I was playing around with IUID.  Although
the implements IUID had been commented out the set and get were still
visible on the object.  Removing get/set fixed everything.

j 

--- In flexcoders@yahoogroups.com, Jason Nichols jason...@... wrote:

 I've searched around and have yet to find an answer for this question.
  Perhaps I'm just phrasing it incorrectly.
 
 I have a Flex app that until recently performed as expected.  The Tab
 is a class that Extends from FlexLib MDICanvas. Tabs are put into a
 FlexLib SuperTab.  I've gotten everything to work in production, so I
 feel the issue doesn't have anything to do with use of FlexLib. 
 Either I've added something to my code base, or changed a setting
 because with the exception of one subtab, every single datagrid on
 every single tabbed page (8 in all) only shows the header row for each
 datagrid.  Has anyone ever seen this before?
 
 
 Thanks,
 j





[flexcoders] Re: Flas 10 on mobile is a go

2009-02-16 Thread oneworld95
Any timeline on the iPhone Flash implementation? My boss is an iPhone
fanatic; the apps we build need to work on that. Thanks.

- Alex C

--- In flexcoders@yahoogroups.com, app.developer appdevelo...@...
wrote:

 A big THANK YOU to Adobe and the necessary mobile vendors that made 
 this happen.
 
 Precia
 
 
 
 --- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiverton@ 
 wrote:
 
  It seems full blown Flash Player 10 (not lite !) is to come to just 
 about 
  every mobile smartphone except the iPhone (Apples fault): 
  http://tinyurl.com/d68voq
  -- 
  Tom Chiverton
  Helping to heterogeneously envisioneer bleeding-edge fine-grained 
 impactful 
  customized action-items
  
  
  
  This email is sent for and on behalf of Halliwells LLP.
  
  Halliwells LLP is a limited liability partnership registered in 
 England and Wales under registered number OC307980 whose registered 
 office address is at Halliwells LLP, 3 Hardman Square, 
 Spinningfields, Manchester, M3 3EB.  A list of members is available 
 for inspection at the registered office together with a list of those 
 non members who are referred to as partners.  We use the word 
 “partner” to refer to a member of the LLP, or an employee or 
 consultant with equivalent standing and qualifications. Regulated by 
 the Solicitors Regulation Authority.
  
  CONFIDENTIALITY
  
  This email is intended only for the use of the addressee named 
 above and may be confidential or legally privileged.  If you are not 
 the addressee you must not read it and must not use any information 
 contained in nor copy it nor inform any person other than Halliwells 
 LLP or the addressee of its existence or contents.  If you have 
 received this email in error please delete it and notify Halliwells 
 LLP IT Department on 0870 365 2500.
  
  For more information about Halliwells LLP visit www.halliwells.com.
 





RE: [flexcoders] DYNAMIC LINKBUTTONS styleNames.

2009-02-16 Thread Tracy Spratt
Search the archives for; addChild reference array

 

One example:

_aChildren[one] = tiletest.addChild(moduleloader);

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of - -
Sent: Monday, February 16, 2009 2:20 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] DYNAMIC LINKBUTTONS styleNames.

 

Hi tracy, where can I find some docs on taking references from childs?

Thanks.

 



From: Tracy Spratt tspr...@lariatinc.com
To: flexcoders@yahoogroups.com
Sent: Monday, February 16, 2009 12:20:05 AM
Subject: RE: [flexcoders] DYNAMIC LINKBUTTONS styleNames.

...set their IDs...  That does not work in actionscript, only in mxml.
You need to take the reference from addChild, and put in your array.

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcod...@yahoogro ups.com http://ups.com/  [mailto:flexcoders@
yahoogroups. com] On Behalf Of - -
Sent: Sunday, February 15, 2009 4:04 PM
To: flexcod...@yahoogro ups.com
Subject: Re: [flexcoders] DYNAMIC LINKBUTTONS styleNames.

 

Hi Tracy, I have a little more complicated situation... 

My linkButtons are now created with actionScript (addChild). 

I set their IDs before adding them to their parent.

My action script also fills up my Array of linkButton IDs called
buttons.

 

[Bindable]

private var buttons:Array = new Array();

 

for each (var itemsIDs:String in buttons)

{ 

trace(itemsIDs);

this[itemsIDs].setStyle (styleName,linkButton);

}


My trace properly returns all the IDs of my buttons but I get the
following error:

Property test001 not found... and there is no default value.

It's like I don't have access to the ID of my linkButtons because they
were created via the ADDCHILD ???

Is this possible?

 

Any ideas how I can get around this?

 

Thanks again :)

 

-David

 

 



From: Tracy Spratt tspr...@lariatinc. com
To: flexcod...@yahoogro ups.com
Sent: Friday, February 13, 2009 5:49:57 PM
Subject: RE: [flexcoders] DYNAMIC LINKBUTTONS styleNames.

styleName is not a property, it is a style. You have to use setStyle();

Also, debug your loop, make sure you have a good refrence to the button.

Tracy Spratt 
Lariat Services 
Flex development bandwidth available 
 _ _ _ _
From: flexcod...@yahoogro ups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcod...@yahoogro ups.com
mailto:flexcoders%40yahoogroups.com ] On Behalf Of - -
Sent: Friday, February 13, 2009 5:31 PM
To: flexcod...@yahoogro ups.com mailto:flexcoders%40yahoogroups.com 
Subject: Re: [flexcoders] DYNAMIC LINKBUTTONS styleNames.

Hi Tracy, I can get it to work as a var, but when I try to access the
Array, I get: 
Cannot access a property or method of a null object reference.

This is my array:
 
[Bindable]
private var buttons:Array = new Array(test001 , test002, test003);
 
for each(var target:String in buttons)
{
this[target] .styleName = linkButton; 
}
 
Thanks again! :)

 _ _ _ _
From: Tracy Spratt tspr...@lariatinc. com
mailto:tspratt%40lariatinc.com 
To: flexcod...@yahoogro ups.com mailto:flexcoders%40yahoogroups.com 
Sent: Friday, February 13, 2009 5:15:22 PM
Subject: RE: [flexcoders] DYNAMIC LINKBUTTONS styleNames.
Yes, sailorsea, see that link.
 
Also, be careful of terminology.  I said store references.  This is
not the same as storing IDs.
 
You can do this using ids, with bracket notation.  
var sId:String = test001;
this[sId].setStyle( );  //should work
 
Tracy Spratt 
Lariat Services 
Flex development bandwidth available 
 _ _ _ _
From: flexcod...@yahoogro ups.com http://ups.com/  [mailto:flexcoders@
yahoogroups. com] On Behalf Of Ryan Graham
Sent: Friday, February 13, 2009 5:08 PM
To: flexcod...@yahoogro ups.com
Subject: RE: [flexcoders] DYNAMIC LINKBUTTONS styleNames.
 
Hey now, you knew this was in the docs... :D
 
http://livedocs. http://livedocs./  adobe.com/ flex/3/html/ help.html?
content=03_ Language_ and_Syntax_ 16.html
 
HTH,
Ryan
 
From: flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com]
On Behalf Of - -
Sent: Friday, February 13, 2009 2:28 PM
To: flexcod...@yahoogro ups.com
Subject: Re: [flexcoders] DYNAMIC LINKBUTTONS styleNames.
 
Hi Tracy, I created an array of all the IDs of my linkButtons, can you
show me an example how to loop in the array?
 
Thanks.
 
 _ _ _ _
From: Tracy Spratt tspr...@lariatinc. com
To: flexcod...@yahoogro ups.com
Sent: Friday, February 13, 2009 4:11:05 PM
Subject: RE: [flexcoders] DYNAMIC LINKBUTTONS styleNames.
Store references to each in an Array, then loop over the array.
 
Tracy Spratt 
Lariat Services 
Flex development bandwidth available 
 _ _ _ _
From: 

RE: [flexcoders] open new browser in maximized state

2009-02-16 Thread Tracy Spratt
Write a javascript function in the html wrapper that actually opens the
browser, and use ExternalInterface to call that function.

 

  function showHelp(sURL)

  {

if (windowHelp  windowHelp.open  !windowHelp.closed)  {//Be
SURE the window is available

  if (sURL != sLastURL  sURL.length  0)  {  //If
user wants a new url

windowHelp.location.href = sURL;
//navigate

sLastURL = sURL;

  }

  windowHelp.focus();
//always focus

}

else  {

  if (sURL.length  0)  {
//make sure we have an url

var iBorderWidth = 50;

var iLeft = window.screenLeft;

var iTop = window.screenTop;

var iWidth = document.body.offsetWidth;

var iHeight = document.body.offsetHeight;   



var sWindowProperties =
location=no,toolbar=no,scrollbars=yes,menubar=no,resizable=yes

sWindowProperties += ,top= + (iTop + iBorderWidth);

sWindowProperties += ,left= + (iLeft + iBorderWidth);

sWindowProperties += ,height=500;

sWindowProperties += ,width=400;

windowHelp = window.open(sURL,'Help',sWindowProperties);

sLastURL = sURL;

  }

}

  }//showHelp

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of GeeTee
Sent: Monday, February 16, 2009 2:44 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] open new browser in maximized state

 


Hi everyone,

Can anyone let me know if it is possible using Flex / AS to open a new
browser (using navigateToURL(arg1,_blank)) with the new browser in
maximized state? On my system, it always opens at a smaller size and
does
not create a good user experience.

Thanks.
Gaurav
-- 
View this message in context:
http://www.nabble.com/open-new-browser-in-maximized-state-tp22044344p220
44344.html
http://www.nabble.com/open-new-browser-in-maximized-state-tp22044344p22
044344.html 
Sent from the FlexCoders mailing list archive at Nabble.com.





Re: [flexcoders] Re: DYNAMIC actionscript child layout.

2009-02-16 Thread - -
Using the percentWidth and percentHeight, how can I use values other than 0-100 
?
Can I use the width of a component divided by two???
testlayout.width/2
How can I accomplish this?

Thanks.

-David





From: sunild99 sunilbd...@gmail.com
To: flexcoders@yahoogroups.com
Sent: Monday, February 16, 2009 1:46:46 AM
Subject: [flexcoders] Re: DYNAMIC actionscript child layout.


In Actionscript, you can use the percentWidth and percentHeight 
properties to specify width and height of your components.

--- In flexcod...@yahoogro ups.com, sailorsea21 sailorsea21@ ... 
wrote:

 Hi everyone, when I create my layout with mxml components, my 
layout is 
 dynamic. If I resize my browser window, my components are also 
resized.
 How can I achieve this in actionscript using addChild???
 
 var Layout:Canvas = new Canvas();
 graphLayout. width=testlayout .width/2;
 graphLayout. height=testlayou t.width/2;
 layout_graphs. addChild( graphLayout) ; 
 
 testlayout is my vbox that will be parent to the canvas.
 
 Thanks.






  

[flexcoders] Need advise on how to display multiple SWF apps

2009-02-16 Thread todd.bruner
I have developed a small flex charting app that displays a graph based
on xml returned from a web service.  Works great.  Now I want to
display many of these charts in a single interface.  The idea is to
have 3 or so of these charts in a horizontal line say C1, C2, C3.  At
a time interval or a click event from the user, I'd like to shift C1
off screen  to the left, Shift C2 to C1's former location, C3 to C2's
former location and finally add C4 to C3's former location.  (and the
reverse if the user clicks the to the right).  I'm open to doing
this with JavaScript/HTML or inside another FLEX application.

I thought I saw a demo (with source) once that had something similar
where each picture in a gallery was a flash movie and you could
walk through the gallery.  Unfortunately, my googling has not turned
that up again.  

Can anyone point me to an example that I could extrapolate from?  I'm
 new to flex programming so I apologize if this something I should
just know how to do.  (pointers on where to learn that, appreciated
as well.)

Thanks in advance for any help or pointers.

Todd



RE: [flexcoders] open new browser in maximized state

2009-02-16 Thread Tracy Spratt
And the Flex side:
var sLoadUrl:String = _sSiteAssetsUrl + help/ + sFileName;
ExternalInterface.call(showHelp, sLoadUrl);   

Tracy Spratt 
Lariat Services 
Flex development bandwidth available 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Tracy Spratt
Sent: Monday, February 16, 2009 3:56 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] open new browser in maximized state

Write a javascript function in the html wrapper that actually opens the 
browser, and use ExternalInterface to call that function.
 
  function showHelp(sURL)
  {
    if (windowHelp  windowHelp.open  !windowHelp.closed)  {    //Be SURE 
the window is available
  if (sURL != sLastURL  sURL.length  0)  {  //If user 
wants a new url
    windowHelp.location.href = sURL;   //navigate
    sLastURL = sURL;
  }
  windowHelp.focus();  //always 
focus
    }
    else  {
  if (sURL.length  0)  {  //make sure 
we have an url
    var iBorderWidth = 50;
    var iLeft = window.screenLeft;
    var iTop = window.screenTop;
    var iWidth = document.body.offsetWidth;
    var iHeight = document.body.offsetHeight;   
    
    var sWindowProperties = 
location=no,toolbar=no,scrollbars=yes,menubar=no,resizable=yes
    sWindowProperties += ,top= + (iTop + iBorderWidth);
    sWindowProperties += ,left= + (iLeft + iBorderWidth);
    sWindowProperties += ,height=500;
    sWindowProperties += ,width=400;
    windowHelp = window.open(sURL,'Help',sWindowProperties);
    sLastURL = sURL;
  }
    }
  }//showHelp
 
Tracy Spratt 
Lariat Services 
Flex development bandwidth available 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of GeeTee
Sent: Monday, February 16, 2009 2:44 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] open new browser in maximized state
 

Hi everyone,

Can anyone let me know if it is possible using Flex / AS to open a new
browser (using navigateToURL(arg1,_blank)) with the new browser in
maximized state? On my system, it always opens at a smaller size and does
not create a good user experience.

Thanks.
Gaurav
-- 
View this message in context: 
http://www.nabble.com/open-new-browser-in-maximized-state-tp22044344p22044344.html
Sent from the FlexCoders mailing list archive at Nabble.com.




RE: [flexcoders] Need advise on how to display multiple SWF apps

2009-02-16 Thread Tracy Spratt
HBox, Repeater, and repeat a custom component containing SWFLoader.  The
custom component wrapper will make it easier when you want to interact
with the items.

 

But wait, that is only if you need the charts to be their own
Application.  Why not just use instances the same charting component
with different data?

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of todd.bruner
Sent: Monday, February 16, 2009 3:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Need advise on how to display multiple SWF apps

 

I have developed a small flex charting app that displays a graph based
on xml returned from a web service. Works great. Now I want to
display many of these charts in a single interface. The idea is to
have 3 or so of these charts in a horizontal line say C1, C2, C3. At
a time interval or a click event from the user, I'd like to shift C1
off screen to the left, Shift C2 to C1's former location, C3 to C2's
former location and finally add C4 to C3's former location. (and the
reverse if the user clicks the to the right). I'm open to doing
this with JavaScript/HTML or inside another FLEX application.

I thought I saw a demo (with source) once that had something similar
where each picture in a gallery was a flash movie and you could
walk through the gallery. Unfortunately, my googling has not turned
that up again. 

Can anyone point me to an example that I could extrapolate from? I'm
new to flex programming so I apologize if this something I should
just know how to do. (pointers on where to learn that, appreciated
as well.)

Thanks in advance for any help or pointers.

Todd





[flexcoders] perl and AMF

2009-02-16 Thread Guy Morton
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


RE: [flexcoders] Image-swfLoader-memory

2009-02-16 Thread Alex Harui
There's a profiler tutorial on my blog.  However, in general, the number of 
instances of SWFLoader, Bitmap and BitmapData should not keep going up after 
you force garbage collection.

Several people say that if it is the browser, especially IE, you can minimize 
and restore IE and the memory will be reclaimed.
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 Alain Thibodeau
Sent: Monday, February 16, 2009 9:00 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Image-swfLoader-memory

Thanks Alex,

So there shouldn't be any issues with the way I set the swfLoader in Cairngorn 
then?

I did test with the profiler and unless I am blind I don't see it releasing 
memory, however, I am not an expert with it. When I do test with the browser 
(IE), I see the memory go down then back up, in the long run it always goes 
much higher and doubles or triples from original. I am not sure at this point 
if I should worry about it or code it a different way. If it is the brower, 
then I gather there isn't much I can do...

Thanks again.


From: Alex Harui aha...@adobe.com
To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
Sent: Monday, February 16, 2009 11:43:24 AM
Subject: RE: [flexcoders] Image-swfLoader-memory
Use the Profiler to see if you really have such a problem.  We have seen issues 
with some browsers not releasing memory even though Flex has.

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

From: flexcod...@yahoogro ups.comhttp://ups.com/ [mailto:flexcoders@ 
yahoogroups. com] On Behalf Of thibodeau.alain
Sent: Monday, February 16, 2009 6:00 AM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] Image-swfLoader-memory


Hi all,
I am building a photo library using tileList and the mx:Image. I do
notice that the memory does grow the more images I load. The mx:Image
is bound to my modelLocator, so I am not actually unloading the image
per say, I am just changing the source with databinding. I did assume
however that it would unload the image before loading the next...That
said, I've also tested to unload the image manually.

I've read various conflicting posts on swfLoader and how it doesn't
actually unload loaded swf's or images. I've also read that in player
10+ it actually unloads swf's properly...Can someone please tell me
what simply is the truth? And if there is an issue with the swfLoader,
than what would be a good workaround?

Thanks in advance, I appreciate it..




Re: [flexcoders] DYNAMIC LINKBUTTONS styleNames.

2009-02-16 Thread - -
Perfect! Thanks again :)





From: Tracy Spratt tspr...@lariatinc.com
To: flexcoders@yahoogroups.com
Sent: Monday, February 16, 2009 3:54:22 PM
Subject: RE: [flexcoders] DYNAMIC LINKBUTTONS styleNames.


Search the archives for; addChild reference array
 
One example:
_aChildren[one] = tiletest.addChild( moduleloader) ;
 
Tracy Spratt
Lariat Services
Flex development bandwidth available



From:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
Behalf Of - -
Sent: Monday, February 16, 2009 2:20 PM
To: flexcod...@yahoogro ups.com
Subject: Re: [flexcoders] DYNAMIC LINKBUTTONS styleNames.
 
Hi tracy, where can I find some docs on taking references from childs?
Thanks.
 



From:Tracy Spratt tspr...@lariatinc. com
To: flexcod...@yahoogro ups.com
Sent: Monday, February 16, 2009 12:20:05 AM
Subject: RE: [flexcoders] DYNAMIC LINKBUTTONS styleNames.
“…set their IDs…”  That does not work in actionscript, only in mxml.  You need 
to take the reference from addChild, and put in your array.
 
Tracy Spratt
Lariat Services
Flex development bandwidth available



From:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
Behalf Of - -
Sent: Sunday, February 15, 2009 4:04 PM
To: flexcod...@yahoogro ups.com
Subject: Re: [flexcoders] DYNAMIC LINKBUTTONS styleNames.
 
Hi Tracy, I have a little more complicated situation... 
My linkButtons are now created with actionScript (addChild). 
I set their IDs before adding them to their parent.
My action script also fills up my Array of linkButton IDs called buttons.
 
[Bindable]
privatevar buttons:Array = new Array();
 
foreach (var itemsIDs:String in buttons)
{ 
trace(itemsIDs);
this[itemsIDs].setStyle (styleName,linkButton);
}

My trace properly returns all the IDs of my buttons but I get the following 
error:
Property test001 not found... and there is no default value.
It's like I don't have access to the ID of my linkButtons because they were 
created via the ADDCHILD ???
Is this possible?
 
Any ideas how I can get around this?
 
Thanks again :)
 
-David
 
 



From:Tracy Spratt tspr...@lariatinc. com
To: flexcod...@yahoogro ups.com
Sent: Friday, February 13, 2009 5:49:57 PM
Subject: RE: [flexcoders] DYNAMIC LINKBUTTONS styleNames.
styleName is not a property, it is a style. You have to use setStyle();

Also, debug your loop, make sure you have a good refrence to the button.

Tracy Spratt 
Lariat Services 
Flex development bandwidth available 
 _ _ _ _
From: flexcod...@yahoogro ups.com [mailto:flexcod...@yahoogro ups.com] On 
Behalf Of - -
Sent: Friday, February 13, 2009 5:31 PM
To: flexcod...@yahoogro ups.com
Subject: Re: [flexcoders] DYNAMIC LINKBUTTONS styleNames.

Hi Tracy, I can get it to work as a var, but when I try to access the Array, I 
get: 
Cannot access a property or method of a null object reference.

This is my array:
 
[Bindable]
private var buttons:Array = new Array(test001 , test002, test003);
 
for each(var target:String in buttons)
{
this[target] .styleName = linkButton; 
}
 
Thanks again! :)

 _ _ _ _
From: Tracy Spratt tspr...@lariatinc. com
To: flexcod...@yahoogro ups.com
Sent: Friday, February 13, 2009 5:15:22 PM
Subject: RE: [flexcoders] DYNAMIC LINKBUTTONS styleNames.
Yes, sailorsea, see that link.
 
Also, be careful of terminology.  I said store references.  This is not the 
same as storing IDs.
 
You can do this using ids, with bracket notation.  
var sId:String = test001;
this[sId].setStyle( );  //should work
 
Tracy Spratt 
Lariat Services 
Flex development bandwidth available 
 _ _ _ _
From: flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
Behalf Of Ryan Graham
Sent: Friday, February 13, 2009 5:08 PM
To: flexcod...@yahoogro ups.com
Subject: RE: [flexcoders] DYNAMIC LINKBUTTONS styleNames.
 
Hey now, you knew this was in the docs... :D
 
http://livedocs. adobe.com/ flex/3/html/ help.html? content=03_ Language_ 
and_Syntax_ 16.html
 
HTH,
Ryan
 
From: flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
Behalf Of - -
Sent: Friday, February 13, 2009 2:28 PM
To: flexcod...@yahoogro ups.com
Subject: Re: [flexcoders] DYNAMIC LINKBUTTONS styleNames.
 
Hi Tracy, I created an array of all the IDs of my linkButtons, can you show me 
an example how to loop in the array?
 
Thanks.
 
 _ _ _ _
From: Tracy Spratt tspr...@lariatinc. com
To: flexcod...@yahoogro ups.com
Sent: Friday, February 13, 2009 4:11:05 PM
Subject: RE: [flexcoders] DYNAMIC LINKBUTTONS styleNames.
Store references to each in an Array, then loop over the array.
 
Tracy Spratt 
Lariat Services 
Flex development bandwidth available 
 _ _ _ _
From: flexcod...@yahoogro ups.com 

[flexcoders] Re: open new browser in maximized state

2009-02-16 Thread jim.abbott45
If all your users are running very old versions of Internet Explorer
then you can use the ExternalInterface API to call a JavaScript
function which calls the Browser/DOM window.open() function. The third
argument to window.open() should have fullscreen in the features
list (i.e., ..., fullscreen=yes,channelmode=yes, ...).
This technique -may- even work on recent versions of IE, but I
wouldn't rely on it work robustly (x-browser, or even x-version).

See: http://msdn.microsoft.com/en-us/library/ms536651(VS.85).aspx

For a more modern, standards-orient take on this, see:
https://developer.mozilla.org/En/DOM/Window.open

This feature of windows.open() was fun and even potentially useful
back in the old days of IE-only DHTML coding, but _not_ something I'd
recommend these days. (If I remember correctly, in I.E. 5.0 you could
create a kiosk/full-screen browser window, and then invoke
window.resizeTo() on it; thereby creating an arbitrarily sized,
*completely frameless* browser 'canvas' on a user's desktop. Just the
thing for spoofing native OS dialog boxes and other social
engineering. Good times, that!)

Regards,
Jim

--- In flexcoders@yahoogroups.com, GeeTee guns_n_mai...@... wrote:

 
 Hi everyone,
 
 Can anyone let me know if it is possible using Flex / AS to open a new
 browser (using navigateToURL(arg1,_blank)) with the new browser in
 maximized state? On my system, it always opens at a smaller size and
does
 not create a good user experience.
 
 Thanks.
 Gaurav
 -- 
 View this message in context:
http://www.nabble.com/open-new-browser-in-maximized-state-tp22044344p22044344.html
 Sent from the FlexCoders mailing list archive at Nabble.com.





[flexcoders] Flex Print Preview Component testers needed

2009-02-16 Thread kaleb_pederson
Hello,

We at Soph-Ware Associates have been working on a print preview
component for Flex and are now making the source available, as-is. 
The preview component works great except for what appears to be a
Flash Player bug that shows up in the printout on some browsers,
despite a perfect print preview.

For more details about the print preview component, how it works, and
the bug, please see:

http://blogs.soph-ware.com/?p=17

And here's the demo:

http://blogs.soph-ware.com/posted-content/files/flex_printing_test/

If you've been wanting a Print Preview Component or have the time to
help, please test this out and provide as much feedback as you can. 
Adobe has been unable to reproduce this bug, but all five or six
machines we've tried it on exhibit the problem.

Thanks for the help, and we hope you enjoy the Flex Print Preview
Component.

Kaleb Pederson
Soph-Ware Associates, Inc.
http://blogs.soph-ware.com



Re: [flexcoders] Re: Flas 10 on mobile is a go

2009-02-16 Thread Carlos Rovira
Hope will be soon... Many of us have an iPhone and need Flash Player 10
inside!

Adobe, Apple make it happen!

:)

Thanks

C.



2009/2/16 oneworld95 oneworl...@yahoo.com

   Any timeline on the iPhone Flash implementation? My boss is an iPhone
 fanatic; the apps we build need to work on that. Thanks.

 - Alex C

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 app.developer appdevelo...@...
 wrote:

 
  A big THANK YOU to Adobe and the necessary mobile vendors that made
  this happen.
 
  Precia
 
 
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Tom
 Chiverton tom.chiverton@
  wrote:
  
   It seems full blown Flash Player 10 (not lite !) is to come to just
  about
   every mobile smartphone except the iPhone (Apples fault):
   http://tinyurl.com/d68voq
   --
   Tom Chiverton
   Helping to heterogeneously envisioneer bleeding-edge fine-grained
  impactful
   customized action-items
  
   
  
   This email is sent for and on behalf of Halliwells LLP.
  
   Halliwells LLP is a limited liability partnership registered in
  England and Wales under registered number OC307980 whose registered
  office address is at Halliwells LLP, 3 Hardman Square,
  Spinningfields, Manchester, M3 3EB. A list of members is available
  for inspection at the registered office together with a list of those
  non members who are referred to as partners. We use the word
  “partner†to refer to a member of the LLP, or an employee or
  consultant with equivalent standing and qualifications. Regulated by
  the Solicitors Regulation Authority.
  
   CONFIDENTIALITY
  
   This email is intended only for the use of the addressee named
  above and may be confidential or legally privileged. If you are not
  the addressee you must not read it and must not use any information
  contained in nor copy it nor inform any person other than Halliwells
  LLP or the addressee of its existence or contents. If you have
  received this email in error please delete it and notify Halliwells
  LLP IT Department on 0870 365 2500.
  
   For more information about Halliwells LLP visit www.halliwells.com.
  
 

  



Re: [flexcoders] Re: Flas 10 on mobile is a go

2009-02-16 Thread Weyert de Boer
Carlos, just get a Palm Pre ;) Same coolness but with Flash.




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

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

* Your email settings:
Individual Email | Traditional

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

* To change settings via email:
mailto:flexcoders-dig...@yahoogroups.com 
mailto:flexcoders-fullfeatu...@yahoogroups.com

* To unsubscribe from this group, send an email to:
flexcoders-unsubscr...@yahoogroups.com

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



Re: [flexcoders] Re: Flas 10 on mobile is a go

2009-02-16 Thread Carlos Rovira
Hope Apple will see that other phones like this Palm Pre, with features like
FP10, can make the iPhone goes down. there's to much flash out there on the
web and they need to open the doors to all that content. It's a matter of
common sense...

2009/2/17 Weyert de Boer w...@innerfuse.biz

 Carlos, just get a Palm Pre ;) Same coolness but with Flash.


 

 --
 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] Forcing an Image to redraw when the source filename is the same

2009-02-16 Thread flexcoder2008
In my application, I have an Image control that I am using for an
application-wide image.

Then user is allowed to upload this image to the server and it is
saved with a set filename, for example  ApplicationImage.png

I was having trouble getting the Image to update when a new image is
selected and uploaded to the server.  This is because the source
property is set to the same filename and the image was not reloading.  

I have seen posts elsewhere that explain that the browser caches the
response it got from the first call you make when the image source
property is set.   To prevent this caching, you append a unique value
to the end of the source path. For example, 

myImage.source = 'myPath/ApplicationImage.png?param=+(new
Date()).getTime);

This works for the most part but there appears to be a timing issue.

If I select an image to upload, it uploads fine to the server, then in
my complete handler where I get the response back from the server I
reset the image .source property to the filename again and append the
date value to trigger a refresh and the image loads with the selected
value.  

But if I initiate this process over again, then image just stays to
the old value.  The source actually has been reassigned (because if I
refresh the new image will be there) but the image has not been
reloaded or refreshed.
 
If I wait a good 5 seconds between each attempt to upload a new image,
then the image will always be correctly updated to the newly selected one.

How do I force the image to refresh every time?  What is this strange
timing issue that caches the old image value even though I am setting
the source property to a unique value?  Is there a way to prevent the
image from caching or is there some timout value that can be set?








Re: [flexcoders] Re: Flas 10 on mobile is a go

2009-02-16 Thread Paul Andrews
- Original Message - 
  From: Carlos Rovira 
  To: flexcoders@yahoogroups.com 
  Sent: Monday, February 16, 2009 11:55 PM
  Subject: Re: [flexcoders] Re: Flas 10 on mobile is a go


  Hope Apple will see that other phones like this Palm Pre, with features like 
FP10, can make the iPhone goes down. there's to much flash out there on the web 
and they need to open the doors to all that content. It's a matter of common 
sense...

Apple like to make money from their Appstore without having to compete with 
flash apps.
  2009/2/17 Weyert de Boer w...@innerfuse.biz

Carlos, just get a Palm Pre ;) Same coolness but with Flash.





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847

Search Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links

   http://groups.yahoo.com/group/flexcoders/









  

Re: [flexcoders] Re: Flas 10 on mobile is a go

2009-02-16 Thread Jon Bradley


On Feb 16, 2009, at 6:55 PM, Carlos Rovira wrote:

Hope Apple will see that other phones like this Palm Pre, with  
features like FP10, can make the iPhone goes down


Not if the touch screen and the rest of the UI stink.

The touch screen is, by far, the most important aspect of any smart  
phone, or device (like the ipod touch). There's no other device that  
comes even remotely close in terms of touch screen usability.


- j

Re: [flexcoders] Re: Flas 10 on mobile is a go

2009-02-16 Thread Anatole Tartakovsky
Jon,
That is assumption based on the current status quo and not counting Adobe's
and community capabilities and hardware in 15 month from now. Touchscreen is
very questionable in most cases - slow and not very accessible in real
life. I would expect other features to be way more important - as iPhone
user but also early adopter of bunch of linux/windows/palm/nokia/android
smartphones as well as great dumb phones that have no problem to serve as
trunking devices/routers for laptops. Here is what I think Flash 10 is
destined to do:
1. Break application jail - I want build application in the same environment
- now I have to manage 3 guys coding for different platforms ( not counting
Flex)  and have to work in all of them. Single platform to deliver apps not
controlled by apple store profit center is long overdue.
2. Break connectivity jail. I expect voice to be more important then
touchscreen. While iPhone google apps do not work well, Jott does - but lack
of integration and costs of calls are show stoppers for adoption. Flash can
fix that with great mashups.
3. Integration APIs are really important - exposing
bluetooth, accelerometers, GPS, camera, photo and multitude of voice codecs
for input and output and all other standard capabilities.
3a. I wonder if Adobe can work on simultaneous integration of their
technologies into supporting platforms the way Apple built their business -
building ecosystem - either with free or low cost licensing of embeddable
technology. I really think that GMaps on iPhone are way better then top of
the line car navigation system based on stale hard drive data. But iPhone
screen is not usable while driving. On contrary, 7+ car display is perfect
- but you can't transfer phones display there. Perfect application for Adobe
display technology.

Sincerely,
Anatole Tartakovsky
Farata Systems



On Mon, Feb 16, 2009 at 8:57 PM, Jon Bradley jbrad...@postcentral.comwrote:


 On Feb 16, 2009, at 6:55 PM, Carlos Rovira wrote:

 Hope Apple will see that other phones like this Palm Pre, with features
 like FP10, can make the iPhone goes down


 Not if the touch screen and the rest of the UI stink.

 The touch screen is, by far, the most important aspect of any smart phone,
 or device (like the ipod touch). There's no other device that comes even
 remotely close in terms of touch screen usability.

 - j

  



[flexcoders] Components needed

2009-02-16 Thread brucewhealton
Hello all,
  I was wondering if anyone could recommend some good resources
for components, be they open-source, free, or commercial.  I was
reading Jack Herrington's book Flex 3: Component Solutions and I
found a number of interesting components discussed.  I'm looking at
the ones for presenting images, or photo galleries.  In particular I
found these sites useful, afcomponents.com, fxcomponents.com and
digicrafts.com to be useful and as having some great components.
  I'm doing a site for an Art Gallery.  I wanted to find a good
component for displaying photos that would look like presenting photos
of art on a virtual wall, as it were.  Can anyone recommend any good
sites and components.  In particular, if there are other great
open-source components that would be great.
  I found a few Photo book, flexbook type components also.  I
thought there was a freeware, open-source version of this also.
Thanks,
Bruce



[flexcoders] Presenting images with links to new Browser location

2009-02-16 Thread brucewhealton
Hello all,
  I was looking at the navigateToURL method and wanted to see
about using an image as a clickable link to a website.  The image
component does not have an onClick property, so it isn't possible to
make an image into an active link to a website.  Is there a way to
accomplish this?  Maybe by putting an image inside a button?
Thanks,
Bruce



Re: [flexcoders] perl and AMF

2009-02-16 Thread Guy Morton
Yeah, we're currently using XML, but believe we'd gain some benefit  
from transferring data in binary format.


All our existing back-end is written in perl. The idea of implementing  
a whole new infrastructure doesn't really thrill anyone.


Anyone else got any advice?


On 17/02/2009, at 3:30 PM, Deane Venske wrote:


What's Perl?

Just kidding :P I haven't seen any, but I haven't used perl in a  
number of years. I don't think you're going to have much luck in all  
honesty. Are you stuck with perl because of existing systems? Also  
are you stuck with AMF? I personally love using XML as a transport,  
because I've already had to have my backend provide data to  
both .NET and C++ clients. Having it in XML made it easy.


Thanks,
Deane

Guy Morton 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] netstream.client

2009-02-16 Thread arieljake
I am using code from the example provided on the Stratus project page,
and am trying to modify the code that sets the client property on a
netstream.

The code as delivered does something to this effect:

var sc:Object = {};
sc.onPeerConnect = function ():void {}
stream.client = sc;

I am trying to change this to:

var sc:CustomClient = new CustomClient();
stream.client = sc;

However, the functions on the CustomClient are never being called.

Has anyone encountered this, and how did you solve it?

Thanks.



[flexcoders] default skin in flex 3 component

2009-02-16 Thread gwangdesign
Hi,

I am trying to define the default skin (which is ProgrammaticSkin for
now) for my custom UIComponent. I would like to provide my own
programmaticSkin (hm.controls.myUICompClasses.BackdropSkin) as
default; and I am doing it in my UIComponent's style metadata, like so:

[Style(name=backdropSkin,
type=hm.controls.myUICompClasses.BackdropSkin, inherit=yes)]
...
protected var _backdrop:Class;
...


Is this the right way? What type should my _backdrop be? Or do I need
to provide a CSS anyhow? Or classConstruc()???

When I try to get the style using:

var backdropSkin:Class = getStyle(backdropSkin);

I get type of Object instead of Class.

I appreciate any lead while still poking around the flex
documentation/sdk code! Sorry everything looks a bit blurred right
now8) Good night!



RE: [flexcoders] How to get input language in Flex 3 app

2009-02-16 Thread Gordon Smith
I don't think the Flash Player has an API for this. What would you do with the 
input language?

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of bobmeyering
Sent: Friday, February 13, 2009 8:20 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to get input language in Flex 3 app


I am using Flex Builder 3, IE 7 and windows OS (XP and 2008 server). Is
there a way to programnatically determine the current input language as
set in the language bar? The Capabilities class always returns en
even after I select Chinese (ch) as my input language (using the
language bar).



[flexcoders] Re: default skin in flex 3 component

2009-02-16 Thread gwangdesign
I am looking at mx.controls.Button now. I guess I am confusing skin
name, skin class and skin as a DisplayObject;)

Hopefully I will figure it out tomorrow morning! Thanks.

--- In flexcoders@yahoogroups.com, gwangdesign gwangdes...@... wrote:

 Hi,
 
 I am trying to define the default skin (which is ProgrammaticSkin for
 now) for my custom UIComponent. I would like to provide my own
 programmaticSkin (hm.controls.myUICompClasses.BackdropSkin) as
 default; and I am doing it in my UIComponent's style metadata, like so:
 
 [Style(name=backdropSkin,
 type=hm.controls.myUICompClasses.BackdropSkin, inherit=yes)]
 ...
 protected var _backdrop:Class;
 ...
 
 
 Is this the right way? What type should my _backdrop be? Or do I need
 to provide a CSS anyhow? Or classConstruc()???
 
 When I try to get the style using:
 
 var backdropSkin:Class = getStyle(backdropSkin);
 
 I get type of Object instead of Class.
 
 I appreciate any lead while still poking around the flex
 documentation/sdk code! Sorry everything looks a bit blurred right
 now8) Good night!





[flexcoders] Re: filter arraycollection with checkbox acting wired

2009-02-16 Thread johndoematrix
Hi, Tim i tried your code, but the result is not good too. when then
check box is checked, all the data in the array collection disappears
and when its unchecked all data shows up again. what i want to achieve
is when the pizza_ckb is checked only the entries in the data base
that have pizza show up and when i uncheck it all entries with or
without pizza show up. thanks



[flexcoders] Re: Mouse Clicks' Queue when Button is Disabled

2009-02-16 Thread giladozer
Thanks Alex for the quick response.
However, the button is supposed to turn enabled after the result is
returned.
The problem is that while it looks like the button is disabled -
clicking on it results in entering to the function which listens to it.
Moreover, I logged/traced the time the the button turns back to enable
+ the time entering to the function that listens to it - 
it's exactly the same - by the millisecond. 
meaning - i can't event log the time the button was clicked - cause
the mouse click event is only dispatched after the button turned enable.

one last thing - I found a workaround by removing the eventListener
when the button is disabled , and adding it back with a timer that
starts counting after it turned enabled in ticks of 100ms. ( the the
clicks are not listened in that time space of when the button turned
enable and 100ms after that).
The thing is that i don't want to use a timer... it's a very ugly
solution.

Thanks again, 
Gilad





Re: [flexcoders] Re: filter arraycollection with checkbox acting wired

2009-02-16 Thread Haykel BEN JEMIA
Replace the following functions, run the app in debug mode and post the
output:

private function pizzaFilter():void {
  trace(pizza_ckb.selected);
  if ( == true)
pizzaSelected = pizza_ckb.data;
  filterGrid();
  pizzaAr.refresh();
}

private function myFilterFunction(item:Object): Boolean
{
  trace(item.pizza);
  return (item.pizza == pizzaSelected) ;
}

Haykel Ben Jemia

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




On Tue, Feb 17, 2009 at 7:44 AM, johndoematrix johndoemat...@yahoo.comwrote:

   Hi, Tim i tried your code, but the result is not good too. when then
 check box is checked, all the data in the array collection disappears
 and when its unchecked all data shows up again. what i want to achieve
 is when the pizza_ckb is checked only the entries in the data base
 that have pizza show up and when i uncheck it all entries with or
 without pizza show up. thanks

  



[flexcoders] Re: Is it possible to set different width for columns in HorizontalList ?

2009-02-16 Thread yossi.baram
Great,
Thanks, 
you pointed me to the right direction,
please advise of this 2 crucial issues, if you may :)
1. How do I place a repeater in an AdvacedDataGrid cell/column?
   I need to have a special column in a tree table that contain 
   a set of colored images side by side (the repeater creates it for 
me)
2. How do I eliminate the padding that I get from using a repeater to 
show a list of colored images?

Thanks for all the help

Jo


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

 All cells in HorizontalList must be the same size.  If you don't 
have lots of images, just use HBox and Repeater
 
 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 yossi.baram
 Sent: Sunday, February 15, 2009 10:05 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Is it possible to set different width for 
columns in HorizontalList ?
 
 
 Hi,
 I'm created a new HorizontalList()
 and tried to set different width of its columns (by override set 
Data
 ())
 but its always gives me the same width...
 Can i set the columns width for HorizontalList or is it fixed?
 
 Thanks
 
 Jo





[flexcoders] Prob with CopyTo in AIR[getting File or directory does not exist Error]

2009-02-16 Thread ursprakash6
Hi All

I'm very new to Adobe AIR,in My sample application i'm trying to copy
one image in website to local file system,i got File or directory does
not exist error

  i have tried the below lines of code

var vfile:File=new
File(http://tinycomb.com/wp-content/uploads/2008/12/adobe-logo.jpg;);
var dfile:File=File.applicationStorageDirectory.resolvePath(tempdata/
+ video_url);
vfile.copyTo(dfile, true);


here i'm copying to ApplicationstorageDirestory,this would be any local
direstory

But i'm gtting File or directory does not exist error fot the above
code.

Can any one tell me whats wrong with the above code

Thanks in Advance

Gnanz...
http://gnanz-flexworld.blogspot.com




[flexcoders] Re: filter arraycollection with checkbox acting wired

2009-02-16 Thread johndoematrix
when i replace the code and run the app, i get the following output
when i click the pizza_ckb checkbox and all the info disappears
[SWF] /IE_V1/bin/portal_V1-debug.swf - 2,109,478 bytes after
decompression
true