[flexcoders] Write a Firefox extension in Flex

2009-06-14 Thread argmn
I wrote an article on how to develop a Firefox extension with Flex. I
though it might interest this group.
http://strawberrypixel.com/blog/2009/06/13/how-to-write-firefox-extensio\
ns-in-flex/
http://strawberrypixel.com/blog/2009/06/13/how-to-write-firefox-extensi\
ons-in-flex/
cheers.



[flexcoders] Datagrid Row height

2009-06-14 Thread Mike Chang
Hi,
One of my rows in a data grid contains items that are larger than the
default height of the cell (1 line). It's fine that it stretches, but is it
possible not to have all the rows increase by the same? All the rows are
bigger in height now.
Please help.

Mike


Re: [flexcoders] Datagrid Row height

2009-06-14 Thread thomas parquier
Hi,

Set variableRowHeight to true.

thomas
---
http://www.web-attitude.fr/
msn : thomas.parqu...@web-attitude.fr
softphone : sip:webattit...@ekiga.net sip%3awebattit...@ekiga.net
téléphone portable : +33601 822 056


2009/6/14 Mike Chang mik...@gmail.com



 Hi,
 One of my rows in a data grid contains items that are larger than the
 default height of the cell (1 line). It's fine that it stretches, but is it
 possible not to have all the rows increase by the same? All the rows are
 bigger in height now.
 Please help.

 Mike
  



[flexcoders] Application in Full Screen

2009-06-14 Thread christophe_jacquelin
Hello, 

How to set an application in Full screen (without the navigator buttons) ? 

Thank you,
Christophe, 




[flexcoders] Video Player

2009-06-14 Thread christophe_jacquelin
Hello, 

I am searching a good video player component with an arrow on the center of the 
video to start the video. 

Thank you,
Christophe, 




[flexcoders] amfphp and https

2009-06-14 Thread christophe_jacquelin
Hello, 

Amfphp does not work when I use https.

I have set SecureAMFChannel.

I have tested on port 443, 80 and 8080.

Do you have any solution ?

Thank you,
Christophe, 




Re: [flexcoders] Application in Full Screen

2009-06-14 Thread Rohit Sharma
  Hi,

If I am right, you are looking for something like

   Application.application.stage.displayState =
StageDisplayState.FULL_SCREEN;


  Regards,
  Rohit

On Sun, Jun 14, 2009 at 6:04 PM, christophe_jacquelin 
christophe_jacque...@yahoo.fr wrote:



 Hello,

 How to set an application in Full screen (without the navigator buttons) ?

 Thank you,
 Christophe,

  



[flexcoders] swf loader

2009-06-14 Thread veritech82
I am working on a web site and having an issue with flash files.

I have a tabbed navigation viewport with a swfloader in the page.

I am having an issue with a flash file that I am loading on the page, it is a 
flash game (asteroids) that isn't contained by the swfloader.

The flash game occupies the the entire width of the page.

any suggestions

Thanks



[flexcoders] Clear user text after enter on TextInput (gumbo and/or moxie)

2009-06-14 Thread gwangdesign
Hello,

I have a TextInput, say, for user to type in to search something. After the 
user presses enter Key, I want the TextInput to clear the user input text while 
still staying in focus, so that the user can continue to type in other words.

I had a hard time to do this for a TextInput (either Gumbo or Flex 3, although 
they seemingly behave differently.)

For mx:TextInput, I am not even able to clear the user input text by handling 
the enter event:

private function mxTI_handleEnter(event:FlexEvent):void
{
trace(mxTI_handleEnter);
mx.controls.TextInput(event.currentTarget).text = ;
}

Doesn't do anything, even though the setter for text value does get called. 
Same thing for mx.controls.TextInput(event.currentTarget).htmlText= ;

For s:TextInput, setting text property to  does clear the user text but I 
lost caret inside the TextField in the TextInput. I have to click the TextInput 
to regain focus in order to enter something.

BTW, I am not sure if this behavior is something expected from user experience 
point of view since I looked at Google, Yahoo! and Bing, all of them did the 
same thing: once you pressed enter, the search textinput lost focus. You would 
have to regain focus for the textinput to do another search.

Sorry for the long text Hope this makes sense. Anyhow, is this something 
doable? Thanks.



[flexcoders] Re: Dynamically Naming Objects

2009-06-14 Thread Amy
--- In flexcoders@yahoogroups.com, Gordon Smith gosm...@... wrote:

 1. If accessing the ComboBoxes you'll create by an index number is 
 sufficient, declare an instance var of type Array:
 
 private var comboBoxes:Array = [];
 
 When you dynamically create a new ComboBox, simply add the reference onto the 
 end of this Array:

Or you can use a repeater, which automates this and will automatically handle 
destroying and recreating all the comboboxes if the data source they are based 
on changes.



[flexcoders] Re: Clear user text after enter on TextInput (gumbo and/or moxie)

2009-06-14 Thread gwangdesign

 BTW, I am not sure if this behavior is something expected from user 
 experience point of view since I looked at Google, Yahoo! and Bing, all of 
 them did the same thing: once you pressed enter, the search textinput lost 
 focus. You would have to regain focus for the textinput to do another search.

I just found out that the RL ToDoList widget at igoogle.com does exactly the 
same thing as I wanted, except that it is AJAX...:)

http://rlwidgets.com/




[flexcoders] Re: Flex and Reporting

2009-06-14 Thread martinosaint
Hi Angelo,

did you get any further with Flex Report as well? I am now at the point where I 
need to do some basic reporting (printing a Datagrid with a legend, etc), but 
somehow I run into troubles with FlexReport. Could you use it?

Any other suggestions how I could print a datagrid with colored rows?

Thanks,
Martin
--- In flexcoders@yahoogroups.com, Angelo Anolin angelo_ano...@... wrote:

 Not yet. But would certainly look out for it.
 
 So far, I am able to generate text based reports which I need in Flex + .NET 
 + Crystal.
 
 Thanks.
 
 
 
 
 
 
 
 
 From: bhaq1972 mbha...@...
 To: flexcoders@yahoogroups.com
 Sent: Wednesday, 10 June, 2009 16:27:00
 Subject: [flexcoders] Re: Flex and Reporting
 
 
 
 
 
 Have you seen Stimulsoft. One of things it has is a Flex runtime designer 
 very nice.
 
 --- In flexcod...@yahoogro ups.com, Angelo Anolin angelo_anolin@ ... wrote:
 
  Hi everyone,
  
  I am totally amazed at the cool front-end UI things that could be done in 
  Flex.  I have been dabbling a lot on Flex and steadily getting the hang of 
  it.
  
  Anyway, one thing which I am looking for is on creating and printing 
  reports.  I am looking for some resources on how to achieve such things, 
  like:
  
  1. Datagrid - creating a pdf file, open up in the swf application as well.
  2. Crosstab reports
  3. Executive summaries
  4. Free-Form reports
  
  Basically, am looking on how I would be able to design/generate reports 
  which could be used in a Flex application.
  
  I would certainly welcome advise and feedback on this. Resources for 
  further explorations on reporting would also be appreciated.
  
  Thanks.
 





[flexcoders] iFrame and adsense

2009-06-14 Thread iloveyouwisconsin
I've got my app up and running and decided to implement adsense via the iframe 
component (from what I've found there doesn't seem to be a better solution that 
fits my particular needs). 

Anyway, when I test the app on my local machine everything runs fine and the 
adsense appears. However, when I upload it to my server the application seems 
to break in that I cannot view any state that has the iframe implemented. I 
suspect it has something to do w/ one of two things: 

1. where the adsense.php page sits vis-a-vis the index.html page where the app 
sites OR 

2. some sort of permission problem.

for #1: I have www.mypage.com as where the user views  intereacts w/ the 
application. My adsense.php page is stored at www.mypage.com/adsense.php

Here is how I call it w/ my iframe component: 

local:IFrame height=90 source=/adsense.php y=1 width=500 x=325/

I've also tried various versions such as: source=www.mypage.com/adsense.php, 
source=http://www.mypage.com/adsense.php;
and even including the adsense.php page in the assets folder of my build but 
the same thing happens and I essentially get locked out of any frame that has 
the iframe component in it.


-So-, I figured it must be some sort of permission problem (even thought the 
app is hosted on the same server as the adsense page resides...I was running 
out of ideas ;) ). I put a crossdomain.xml file on the server but to no avail.


What am I doing wrong? I've toyed around w/ this for hours getting nowhere and 
am officially out of ideas. any help would be appreciated!

thx!




Re: [flexcoders] Application in Full Screen

2009-06-14 Thread Vivian Richard
I am using this but do not like it, because it will cover everything-
even the task bar at the bottom of the screen!! Also will not show
the native window chrome!!! To see those max, min, close button
you will need to press escape button to make the window smaller
and after that you will be able to minimize, maximize and close
the native air app window. What I would like is instead of full screen,
the window in max mode!!! Any idea???






On Sun, Jun 14, 2009 at 8:55 AM, Rohit Sharmarohit.sharma1...@gmail.com wrote:


   Hi,

                 If I am right, you are looking for something like

    Application.application.stage.displayState =
 StageDisplayState.FULL_SCREEN;


   Regards,
   Rohit

 On Sun, Jun 14, 2009 at 6:04 PM, christophe_jacquelin
 christophe_jacque...@yahoo.fr wrote:


 Hello,

 How to set an application in Full screen (without the navigator buttons) ?

 Thank you,
 Christophe,


 


RE: [flexcoders] Re: ambiguous reference error

2009-06-14 Thread Tracy Spratt
.there are 2 MediaProfiles. that would be where I looked first.  Why are
there two classes with the same name in the project?

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of [p e r c e p t i c o n]
Sent: Saturday, June 13, 2009 8:11 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: ambiguous reference error

 






Hi Tracy,

 

this is line 349

var target:MediaProfile = this;

 

??

 

actually i have 2 errors stating the same thing but on a different line
number (517)

 

this is line 517

(MediaProfile)._watcherSetupUtil = watcherSetupUtil;

 

 

but yes...there are 2 MediaProfiles...but in different namespaces...one is
in com.media.forms -- the code-behindand the other is in com.media.views
-- the mxml component...

 

thanks for all your help

 

 

 

On Sat, Jun 13, 2009 at 2:28 PM, Tracy Spratt tr...@nts3rd.
mailto:tr...@nts3rd.com com wrote:

 

Please post what is on line:

349 in the generated class MediaProfile-generated.as

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcod...@yahoogro mailto:flexcoders@yahoogroups.com ups.com
[mailto:flexcod...@yahoogro mailto:flexcoders@yahoogroups.com ups.com] On
Behalf Of [p e r c e p t i c o n]
Sent: Saturday, June 13, 2009 4:06 PM
To: flexcod...@yahoogro mailto:flexcoders@yahoogroups.com ups.com
Subject: Re: [flexcoders] Re: ambiguous reference error

 





oh yes, i've done this but it doesn't reveal anything...

On Sat, Jun 13, 2009 at 10:49 AM, Tim Hoff timh...@aol.
mailto:timh...@aol.com com wrote:

 


My advice is to add the -keep compiler argument, build the project, and
look at Line: 349 in the generated class MediaProfile-generated.as.

-TH



--- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
Tim Hoff timh...@... wrote:


 I think that the error is pointing to mediaupload. Is that a variable
 in MediaProfile?

 -TH

 --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
[p e r c e p t i c o n]
 percepticon@ wrote:
 
  @Timhmm, perhaps you are correct, but i'm not sure i understand
  completely...
  here's my root node..
 
  forms:MediaProfile xmlns:mx=http://www.adobe.
http://www.adobe.com/2006/mxml com/2006/mxml
 width=736
  height=594
  xmlns:forms=com.media.forms.*
  defaultButton={submitButton}
  creationComplete=init(); layout=absolute
 
  so I have a class called MediaProfile.as that has a bindable public
 var
  called isValid
  shouldn't this be accessible?
 
 
 
  On Sat, Jun 13, 2009 at 10:28 AM, Tim Hoff TimHoff@ wrote:
 
  
  
@Timno all methods and vars have to be public in order to be
 accessed in
   the
view..
  
   True, the getter has to be a public. However, you can make the
 setter
   private or protected; in order to create a read-only accessor:
  
  
  

http://www.rubenswi
http://www.rubenswieringa.com/blog/ambiguous-reference-bug-for-namespace
eringa.com/blog/ambiguous-reference-bug-for-namespace\
\
 s-in-flex
  
   Now that we actually see the error you are receiving, we notice
that
 you
   have sent us down the wrong path. MediaProfile has nothing to do
wih
   isValid.
  
   -TH
  
   --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com
ups.com, [p e r c e p t i c o n]
 percepticon@
   wrote:
   
@Timno all methods and vars have to be public in order to be
 accessed in
   the
view..
   
@Tracy
it's the class itself so the reference states
   
Severity and Description Path Resource Location Creation Time Id
Ambiguous reference to MediaProfile. [Generated code (use -keep
to
 save):
Path: com\media\views\MediaProfile-generated.as, Line: 349,
 Column: 14]
mediaupload Unknown 1244912081333 16143
   
   
thanks
   
On Fri, Jun 12, 2009 at 3:16 PM, Tim Hoff TimHoff@ wrote:
   


 Are you by any chance using a getter/setter for the isValid
var?
 If so,
   you
 may need to change the setter to public.

 -TH


 --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com
ups.com
 flexcoders%40yahoogroups. http://40yahoogroups.com com, [p
   e r
 c e p t i c o n] percepticon@ wrote:
 
  Hi Tracy,that was a mistake, actually i called it 'isValid'
 like this
 
  mx:Button x=504 y=511 id=submitButton
  label=Continueclick=Submit(); enabled={isValid}/
 
 
  is valid is a boolean that i declared in my code-behind
 
  also
 
  i noticed that when i put defaultButton in the root node of
my
 mxml
  component it does the same thing...
 
  very confused
 
 
  On Fri, Jun 12, 2009 at 8:42 AM, Tracy Spratt tracy@ wrote:
 
  
  
   Which reference is ambiguous?
  
  
  
   I would mistrust a variable named valid as being a
system
   reserved
 word.
  
  
  
   Tracy Spratt,
  
   Lariat Services, 

[flexcoders] Re: Dispatch Event Issue on BreadCrumb Trail Click

2009-06-14 Thread n_manjunatha
Hi Tim,
Thanks.I got it working

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

 
 Looks like you may be thinking about a little backwards.  First add this
 method to the script in contentpane:
 
 import mx.events.ItemClickEvent;
 
 public function handleBreadCrumbItemClick( event:ItemClickEvent ):void
 {
   // do something
 }
 
 Then Main.mxml would have:
 
 mx:Canvas
   mx:LinkBar itemClick=cp.handleBreadCrumbItemClick(event)/
 /mx:Canvas
 
 mycomponents:contentpane id=cp/
 
 -TH
 
 --- In flexcoders@yahoogroups.com, n_manjunatha nmanjunatha@
 wrote:
 
  Hi Tim
  Thanks for your time and reply. Yes you are right, I am not using MVC
 Framework.
 
  I tried this
  my main.mxml is like this...of course not with exact format of flex...
  script
  {
  breadcrumclicked(event:Event) which comes canvas below
  }
  mx:canvas.
  mx:linkbar click=breadcrumclicked(event)/
  /mx:canvas
  mycomponents:contentpane
  mycomponents:informationpane
 
  I guess i cant send the public method breadcrumclicked(event) in
  my contentpane bcoz i cant give something like this
  mycomponents:contentpane
 breadcrumclicked=breadcrumlistenerfunction(event)/
 
  i tried this it doesnt work..it says cant resolve attribute
 breadcrumclicked for contentpane.
 
  Thanks
 
 
  --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote:
  
  
   Hi,
  
   If you're not using an MVC framework, an easy way is to create a
 public
   method in contentpane.mxml, that will set the tree selection. On
   breadcrumb click, pass the event:
 contentpane.myPublicSelectionMethod(
   event ).
  
   -TH
  
 





[flexcoders] Re: ambiguous reference error

2009-06-14 Thread Tim Hoff

* ditto * - Try changing one of the duplicate class names and see what
happens.

-TH

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

 .there are 2 MediaProfiles. that would be where I looked first. Why
are
 there two classes with the same name in the project?



 Tracy Spratt,

 Lariat Services, development services available

 _

 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
On
 Behalf Of [p e r c e p t i c o n]
 Sent: Saturday, June 13, 2009 8:11 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Re: ambiguous reference error








 Hi Tracy,



 this is line 349

 var target:MediaProfile = this;



 ??



 actually i have 2 errors stating the same thing but on a different
line
 number (517)



 this is line 517

 (MediaProfile)._watcherSetupUtil = watcherSetupUtil;





 but yes...there are 2 MediaProfiles...but in different
namespaces...one is
 in com.media.forms -- the code-behindand the other is in
com.media.views
 -- the mxml component...



 thanks for all your help







 On Sat, Jun 13, 2009 at 2:28 PM, Tracy Spratt tr...@nts3rd.
 mailto:tr...@... com wrote:



 Please post what is on line:

 349 in the generated class MediaProfile-generated.as



 Tracy Spratt,

 Lariat Services, development services available

 _

 From: flexcod...@yahoogro mailto:flexcoders@yahoogroups.com ups.com
 [mailto:flexcod...@yahoogro mailto:flexcoders@yahoogroups.com
ups.com] On
 Behalf Of [p e r c e p t i c o n]
 Sent: Saturday, June 13, 2009 4:06 PM
 To: flexcod...@yahoogro mailto:flexcoders@yahoogroups.com ups.com
 Subject: Re: [flexcoders] Re: ambiguous reference error







 oh yes, i've done this but it doesn't reveal anything...

 On Sat, Jun 13, 2009 at 10:49 AM, Tim Hoff timh...@aol.
 mailto:timh...@... com wrote:




 My advice is to add the -keep compiler argument, build the project,
and
 look at Line: 349 in the generated class MediaProfile-generated.as.

 -TH



 --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com
ups.com,
 Tim Hoff TimHoff@ wrote:
 
 
  I think that the error is pointing to mediaupload. Is that a
variable
  in MediaProfile?
 
  -TH
 
  --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com
ups.com,
 [p e r c e p t i c o n]
  percepticon@ wrote:
  
   @Timhmm, perhaps you are correct, but i'm not sure i understand
   completely...
   here's my root node..
  
   forms:MediaProfile xmlns:mx=http://www.adobe.
 http://www.adobe.com/2006/mxml com/2006/mxml
  width=736
   height=594
   xmlns:forms=com.media.forms.*
   defaultButton={submitButton}
   creationComplete=init(); layout=absolute
  
   so I have a class called MediaProfile.as that has a bindable
public
  var
   called isValid
   shouldn't this be accessible?
  
  
  
   On Sat, Jun 13, 2009 at 10:28 AM, Tim Hoff TimHoff@ wrote:
  
   
   
 @Timno all methods and vars have to be public in order to be
  accessed in
the
 view..
   
True, the getter has to be a public. However, you can make the
  setter
private or protected; in order to create a read-only accessor:
   
   
   
 
 http://www.rubenswi

http://www.rubenswieringa.com/blog/ambiguous-reference-bug-for-namespac\
e
 eringa.com/blog/ambiguous-reference-bug-for-namespace\
 \
  s-in-flex
   
Now that we actually see the error you are receiving, we notice
 that
  you
have sent us down the wrong path. MediaProfile has nothing to do
 wih
isValid.
   
-TH
   
--- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com
 ups.com, [p e r c e p t i c o n]
  percepticon@
wrote:

 @Timno all methods and vars have to be public in order to be
  accessed in
the
 view..

 @Tracy
 it's the class itself so the reference states

 Severity and Description Path Resource Location Creation Time
Id
 Ambiguous reference to MediaProfile. [Generated code (use
-keep
 to
  save):
 Path: com\media\views\MediaProfile-generated.as, Line: 349,
  Column: 14]
 mediaupload Unknown 1244912081333 16143


 thanks

 On Fri, Jun 12, 2009 at 3:16 PM, Tim Hoff TimHoff@ wrote:

 
 
  Are you by any chance using a getter/setter for the isValid
 var?
  If so,
you
  may need to change the setter to public.
 
  -TH
 
 
  --- In flexcod...@yahoogro
mailto:flexcoders%40yahoogroups.com
 ups.com
  flexcoders%40yahoogroups. http://40yahoogroups.com com, [p
e r
  c e p t i c o n] percepticon@ wrote:
  
   Hi Tracy,that was a mistake, actually i called it
'isValid'
  like this
  
   mx:Button x=504 y=511 id=submitButton
   label=Continueclick=Submit(); enabled={isValid}/
  
  
   is valid is a boolean that i declared in my code-behind
  
   also
  
   i noticed that when i put defaultButton in the root node
of
 my
  mxml
   component it does the same thing...
  
   very confused
  
  
   On Fri, Jun 12, 

Re: [flexcoders] Re: ambiguous reference error

2009-06-14 Thread [p e r c e p t i c o n]
for the sake of consistency really, i just wanted the name of the
implementation to be the same as the presentation and figured it should be
ok since the namespaces were different...i know if i change the name it'll
work, but i was hoping there was something else to it...
thanks much

percy

On Sun, Jun 14, 2009 at 10:14 AM, Tracy Spratt tr...@nts3rd.com wrote:



  “…there are 2 MediaProfiles…” that would be where I looked first.  Why
 are there two classes with the same name in the project?



 Tracy Spratt,

 Lariat Services, development services available
   --

 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *[p e r c e p t i c o n]
 *Sent:* Saturday, June 13, 2009 8:11 PM

 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Re: ambiguous reference error






  Hi Tracy,



 this is line 349

 var target:MediaProfile = this;



 ??



 actually i have 2 errors stating the same thing but on a different line
 number (517)



 this is line 517

 (MediaProfile)._watcherSetupUtil = watcherSetupUtil;





 but yes...there are 2 MediaProfiles...but in different namespaces...one is
 in com.media.forms -- the code-behindand the other is in com.media.views
 -- the mxml component...



 thanks for all your help







 On Sat, Jun 13, 2009 at 2:28 PM, Tracy Spratt tr...@nts3rd.com wrote:



 Please post what is on line:

 349 in the generated class MediaProfile-generated.as



 Tracy Spratt,

 Lariat Services, development services available
   --

 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *[p e r c e p t i c o n]
 *Sent:* Saturday, June 13, 2009 4:06 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Re: ambiguous reference error





  oh yes, i've done this but it doesn't reveal anything...

 On Sat, Jun 13, 2009 at 10:49 AM, Tim Hoff timh...@aol.com wrote:




 My advice is to add the -keep compiler argument, build the project, and
 look at Line: 349 in the generated class MediaProfile-generated.as.

 -TH



 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Tim
 Hoff timh...@... wrote:
 
 
  I think that the error is pointing to mediaupload. Is that a variable
  in MediaProfile?
 
  -TH
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, [p e
 r c e p t i c o n]
  percepticon@ wrote:
  
   @Timhmm, perhaps you are correct, but i'm not sure i understand
   completely...
   here's my root node..
  
   forms:MediaProfile xmlns:mx=http://www.adobe.com/2006/mxml;
  width=736
   height=594
   xmlns:forms=com.media.forms.*
   defaultButton={submitButton}
   creationComplete=init(); layout=absolute
  
   so I have a class called MediaProfile.as that has a bindable public
  var
   called isValid
   shouldn't this be accessible?
  
  
  
   On Sat, Jun 13, 2009 at 10:28 AM, Tim Hoff TimHoff@ wrote:
  
   
   
 @Timno all methods and vars have to be public in order to be
  accessed in
the
 view..
   
True, the getter has to be a public. However, you can make the
  setter
private or protected; in order to create a read-only accessor:
   
   
   
 
 http://www.rubenswieringa.com/blog/ambiguous-reference-bug-for-namespace\
 \
  http://www.rubenswieringa.com/blog/ambiguous-reference-bug-for-namespace
 s-in-flex
   
Now that we actually see the error you are receiving, we notice
 that
  you
have sent us down the wrong path. MediaProfile has nothing to do
 wih
isValid.
   
-TH
   
--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 [p e r c e p t i c o n]
  percepticon@
wrote:

 @Timno all methods and vars have to be public in order to be
  accessed in
the
 view..

 @Tracy
 it's the class itself so the reference states

 Severity and Description Path Resource Location Creation Time Id
 Ambiguous reference to MediaProfile. [Generated code (use -keep
 to
  save):
 Path: com\media\views\MediaProfile-generated.as, Line: 349,
  Column: 14]
 mediaupload Unknown 1244912081333 16143


 thanks

 On Fri, Jun 12, 2009 at 3:16 PM, Tim Hoff TimHoff@ wrote:

 
 
  Are you by any chance using a getter/setter for the isValid
 var?
  If so,
you
  may need to change the setter to public.
 
  -TH
 
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  flexcoders%40yahoogroups.com, [p
e r
  c e p t i c o n] percepticon@ wrote:
  
   Hi Tracy,that was a mistake, actually i called it 'isValid'
  like this
  
   mx:Button x=504 y=511 id=submitButton
   label=Continueclick=Submit(); enabled={isValid}/
  
  
   is valid is a boolean that i declared in my code-behind
  
   also
  
   i noticed that when i put defaultButton in the root node of
 my
  mxml
   component it does the same thing...
  
   

[flexcoders] Subversive Client install on full FB3

2009-06-14 Thread Brad Bueche
Sorry to ask this here but I have searched everywhere over a period of
months and I cant find an answer.

If I install flex builder 3 (full install) at home, and bring it up, I can
connect to the cfeclipse updater and subversive updater in a hearbeat.

However, I need to really use subversive and fb at work not at home.  And I
can not figure out how to get the fb3 eclipse to connect to ANY update
site.  I have to keep installing everything manually.  Well the manual
install for subversive does not seem to work because they wont -- for
license reasons -- put the SVN connectors in the main build and I cant get
the manual install of those to work.

I'm getting to the point where I really, really, need version control and
this is really beginning to slow me down.

Every time I try to do a software update eclipse either gives me the this:

Error Parsing Stream [Premature end of file]

We do use a proxy at work.  I have put the the proxy server config into the
Eclipse-General-Network preferences but this does not seem to work.  I
notice that Eclipse has a setting for port but we dont specifically use port
in our proxy setting.  Additionally, in IE the proxy says Use AUTOMATIC
Configuration script whereas Eclipse's set up just says Manual Proxy
Configuration.

What am I missing here?

brad


Re: [flexcoders] Dynamically Naming Objects

2009-06-14 Thread Brad Bueche
Thanks! Gordon, that worked.  Also thanks for giving the two different
approaches.  I can probably get away with just using the arraybut I was
obsessing about that naming thing so you're giving me both approaches
allowed me to stop obsessing sooner! ;)

brad

On Sat, Jun 13, 2009 at 7:53 PM, Gordon Smith gosm...@adobe.com wrote:



  1. If accessing the ComboBoxes you'll create by an index number is
 sufficient, declare an instance var of type Array:



 private var comboBoxes:Array = [];



 When you dynamically create a new ComboBox, simply add the reference onto
 the end of this Array:



 var newComboBox:ComboBox = new ComboBox();

 …

 comboBoxes.push(newComboBox);



 You can then access the i-th ComboBox as comboBoxes[i].



 2. If you need to access them by some kind of name, declare an Object



 private var comboBoxes:Object = {};



 and do something like



 var newComboBox:ComboBox = new ComboBox();

 …

 comboBoxes[state] = new ComboBox();



 You can then access this ComboBox as comboBoxes[state].



 Gordon Smith

 Adobe Flex SDK Team



 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Brad Bueche
 *Sent:* Saturday, June 13, 2009 3:48 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Dynamically Naming Objects






  I have a button that creates new combo boxes with dataproviders.   I can
 hard code things and create combo-boxes as much as I want but thats a little
 silly.  I need to dynamically create new combo boxes and then reference them
 for hooking up the data providers and getting results etc.

 I have figured out how to create dynamic variable names.  For instance:

 this[cbx + counter].x = xValue;
 this[cbx +
 counter].addEventListener(FlexEvent.CREATION_COMPLETE,createRemoteObject);
 this[cbx + counter].labelField = Label;
 addChild(this[cbx + counter]);

 The problem is that I cant figure out how to dynamically create a new
 ComboBox.  This is as far as I can get (and its wrong)

 this[cbx + counter]:ComboBox = new ComboBox();

 brad

   



Re: [flexcoders] Re: Dynamically Naming Objects

2009-06-14 Thread Brad Bueche
Thanks, Amy, I didnt think about that.  I've always thought of the Repeater
as a simple grid creator but I guess I'll have to read up on it.

brad

On Sun, Jun 14, 2009 at 11:57 AM, Amy amyblankens...@bellsouth.net wrote:



 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Gordon
 Smith gosm...@... wrote:
 
  1. If accessing the ComboBoxes you'll create by an index number is
 sufficient, declare an instance var of type Array:
 
  private var comboBoxes:Array = [];
 
  When you dynamically create a new ComboBox, simply add the reference onto
 the end of this Array:

 Or you can use a repeater, which automates this and will automatically
 handle destroying and recreating all the comboboxes if the data source they
 are based on changes.

  



Re: [flexcoders] Subversive Client install on full FB3

2009-06-14 Thread Sam Lai
You need to get the URL to the automatic configuration script, then
put that into a web browser. Depending on your browser, you will
either have to download it then open it in notepad, or it will just
display it.

The script is basically javascript, telling the browser which proxy
address *and port* to use for what URLs. Generally, the last rule is
the one for 'everything else' (i.e. not internal or special
exceptions), so grab the proxy address and port from there and put it
into Eclipse. It will be either an IP or a host address, and a port,
usually 8080.

You may also need to add the exceptions in later if your SVN repo is
on an internal server inaccessible from the outside world.

2009/6/15 Brad Bueche brad.bue...@gmail.com:


 Sorry to ask this here but I have searched everywhere over a period of
 months and I cant find an answer.

 If I install flex builder 3 (full install) at home, and bring it up, I can
 connect to the cfeclipse updater and subversive updater in a hearbeat.

 However, I need to really use subversive and fb at work not at home.  And I
 can not figure out how to get the fb3 eclipse to connect to ANY update
 site.  I have to keep installing everything manually.  Well the manual
 install for subversive does not seem to work because they wont -- for
 license reasons -- put the SVN connectors in the main build and I cant get
 the manual install of those to work.

 I'm getting to the point where I really, really, need version control and
 this is really beginning to slow me down.

 Every time I try to do a software update eclipse either gives me the this:

 Error Parsing Stream [Premature end of file]

 We do use a proxy at work.  I have put the the proxy server config into the
 Eclipse-General-Network preferences but this does not seem to work.  I
 notice that Eclipse has a setting for port but we dont specifically use port
 in our proxy setting.  Additionally, in IE the proxy says Use AUTOMATIC
 Configuration script whereas Eclipse's set up just says Manual Proxy
 Configuration.

 What am I missing here?

 brad


 


RE: [flexcoders] Re: Dynamically Naming Objects

2009-06-14 Thread Tracy Spratt
.thought of the Repeater as a simple grid creator .  That is completely
wrong.  Repeater has *no* layout functionality at all.  It is simply a
replacement for addChild/ removeChild, with a lot of extra and useful
functionality like optional recycling and automatic creation of an array of
references via the id (myId[n]).

 

Look into Repeater before you write all of that code manually.

 

One suggestion: do not write any but the simplest repeated content
'in-line'.  Instead, create a custom component and repeat that, passing in
the entire currentItem via a setter function.  You will find this much
easier to code, especially dispatching events, etc.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Brad Bueche
Sent: Sunday, June 14, 2009 6:11 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Dynamically Naming Objects

 






Thanks, Amy, I didnt think about that.  I've always thought of the Repeater
as a simple grid creator but I guess I'll have to read up on it.

brad

On Sun, Jun 14, 2009 at 11:57 AM, Amy amyblankenship@
mailto:amyblankens...@bellsouth.net bellsouth.net wrote:

 

--- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
Gordon Smith gosm...@... wrote:

 1. If accessing the ComboBoxes you'll create by an index number is
sufficient, declare an instance var of type Array:
 
 private var comboBoxes:Array = [];
 
 When you dynamically create a new ComboBox, simply add the reference onto
the end of this Array:

Or you can use a repeater, which automates this and will automatically
handle destroying and recreating all the comboboxes if the data source they
are based on changes.

 





[flexcoders] Re: iFrame and adsense

2009-06-14 Thread iloveyouwisconsin
I gave up on the iframe and was toying around w/ a page that has php and my 
flex app. This brought up another question as I'm trying to just understand 
what's going on w/ the javascript/flash interaction. Here's the php code:

table width=100% border=0 cellspacing=0 cellpadding=0 align=left
  tr
th width=24% scope=colimg src=logo.png alt=logo width=295 
height=93 align=left/th
th width=24% scope=col?php include(adsense.php); ?/th
  /tr
  tr
th width=100% height=50% scope=col?php include(home.html); 
?/th
  /tr
/table

Basically, what I am doing here is I want my logo.png on the top left of the 
page, then the adsense.php to the right of the logo. Underneath all that is my 
flash.

My question is that doing it this way the logo.png file draws itself over the 
flash, but the adsense code doesn't. The resulting page looks like a flash file 
that has the logo.png file integrated but the adsense code gets pushed to the 
side of the page. Why does flash treat a .png file differently from java? 



Re: [flexcoders] Re: Dynamically Naming Objects

2009-06-14 Thread Brad Bueche
Ok, thanks for the underscore there, Tracy.  Sounds like exactly what I
need.  Basically, at a simple level I'm extending that searchcoders search
interface to a full adhoc query front end.  So the plus minus buttons will
add a row that will have combo-boxes with the data providers --both static
and from a db -- and text entry boxes.  So each row will actually be a
series of sub-  components.   So I guess I could turn the row into a master
component and stick it in the Repeater.  I'll have to look into all these
goodies that the Repeater provides.

thanks again!
brad

On Sun, Jun 14, 2009 at 6:43 PM, Tracy Spratt tr...@nts3rd.com wrote:



  “…thought of the Repeater as a simple grid creator …”  That is completely
 wrong.  Repeater has **no** layout functionality at all.  It is simply a
 replacement for addChild/ removeChild, with a lot of extra and useful
 functionality like optional recycling and automatic creation of an array of
 references via the id (myId[n]).



 Look into Repeater before you write all of that code manually.



 One suggestion: do not write any but the simplest repeated content
 ‘in-line’.  Instead, create a custom component and repeat that, passing in
 the entire currentItem via a setter function.  You will find this much
 easier to code, especially dispatching events, etc.



 Tracy Spratt,

 Lariat Services, development services available
   --

 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Brad Bueche
 *Sent:* Sunday, June 14, 2009 6:11 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Re: Dynamically Naming Objects






  Thanks, Amy, I didnt think about that.  I've always thought of the
 Repeater as a simple grid creator but I guess I'll have to read up on it.

 brad

 On Sun, Jun 14, 2009 at 11:57 AM, Amy amyblankens...@bellsouth.net
 wrote:



 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Gordon
 Smith gosm...@... wrote:
 
  1. If accessing the ComboBoxes you'll create by an index number is
 sufficient, declare an instance var of type Array:
 
  private var comboBoxes:Array = [];
 
  When you dynamically create a new ComboBox, simply add the reference onto
 the end of this Array:

 Or you can use a repeater, which automates this and will automatically
 handle destroying and recreating all the comboboxes if the data source they
 are based on changes.


   



Re: [flexcoders] Subversive Client install on full FB3

2009-06-14 Thread Brad Bueche
Sam,

Thanks. Good call, I had forgotten about that method. I got the proxy but
,alas, I think its my laptop firewall config that is killing it here and I
cant change that (well I probably good after lots of digging but then they
could just push out a a new config). Security is pretty tight here.

So my big issue with the subversive client is that I cant get the SVN
connectors installed.  I can get the main package installed but when I
download the connectors package it keeps giving me some sort of error to the
effect that it cant find the archive in the directory that I'm pointing
too.  Even when the exact same series of steps works correctly for the main
package.

sorry for the OT thread,
brad

On Sun, Jun 14, 2009 at 6:33 PM, Sam Lai samuel@gmail.com wrote:



 You need to get the URL to the automatic configuration script, then
 put that into a web browser. Depending on your browser, you will
 either have to download it then open it in notepad, or it will just
 display it.

 The script is basically javascript, telling the browser which proxy
 address *and port* to use for what URLs. Generally, the last rule is
 the one for 'everything else' (i.e. not internal or special
 exceptions), so grab the proxy address and port from there and put it
 into Eclipse. It will be either an IP or a host address, and a port,
 usually 8080.

 You may also need to add the exceptions in later if your SVN repo is
 on an internal server inaccessible from the outside world.

 2009/6/15 Brad Bueche brad.bue...@gmail.com brad.bueche%40gmail.com:

 
 
  Sorry to ask this here but I have searched everywhere over a period of
  months and I cant find an answer.
 
  If I install flex builder 3 (full install) at home, and bring it up, I
 can
  connect to the cfeclipse updater and subversive updater in a hearbeat.
 
  However, I need to really use subversive and fb at work not at home.  And
 I
  can not figure out how to get the fb3 eclipse to connect to ANY update
  site.  I have to keep installing everything manually.  Well the manual
  install for subversive does not seem to work because they wont -- for
  license reasons -- put the SVN connectors in the main build and I cant
 get
  the manual install of those to work.
 
  I'm getting to the point where I really, really, need version control and
  this is really beginning to slow me down.
 
  Every time I try to do a software update eclipse either gives me the
 this:
 
  Error Parsing Stream [Premature end of file]
 
  We do use a proxy at work.  I have put the the proxy server config into
 the
  Eclipse-General-Network preferences but this does not seem to work.  I
  notice that Eclipse has a setting for port but we dont specifically use
 port
  in our proxy setting.  Additionally, in IE the proxy says Use AUTOMATIC
  Configuration script whereas Eclipse's set up just says Manual Proxy
  Configuration.
 
  What am I missing here?
 
  brad
 
 
 
  



Re: [flexcoders] Subversive Client install on full FB3

2009-06-14 Thread Brad Bueche
I take that back.  I  de-installed fb3 again and re-installed and tried the
proxy again and it worked!!  Thanks a bunch!!

brad

On Sun, Jun 14, 2009 at 9:25 PM, Brad Bueche brad.bue...@gmail.com wrote:

 Sam,

 Thanks. Good call, I had forgotten about that method. I got the proxy but
 ,alas, I think its my laptop firewall config that is killing it here and I
 cant change that (well I probably good after lots of digging but then they
 could just push out a a new config). Security is pretty tight here.

 So my big issue with the subversive client is that I cant get the SVN
 connectors installed.  I can get the main package installed but when I
 download the connectors package it keeps giving me some sort of error to the
 effect that it cant find the archive in the directory that I'm pointing
 too.  Even when the exact same series of steps works correctly for the main
 package.

 sorry for the OT thread,
 brad


 On Sun, Jun 14, 2009 at 6:33 PM, Sam Lai samuel@gmail.com wrote:



 You need to get the URL to the automatic configuration script, then
 put that into a web browser. Depending on your browser, you will
 either have to download it then open it in notepad, or it will just
 display it.

 The script is basically javascript, telling the browser which proxy
 address *and port* to use for what URLs. Generally, the last rule is
 the one for 'everything else' (i.e. not internal or special
 exceptions), so grab the proxy address and port from there and put it
 into Eclipse. It will be either an IP or a host address, and a port,
 usually 8080.

 You may also need to add the exceptions in later if your SVN repo is
 on an internal server inaccessible from the outside world.

 2009/6/15 Brad Bueche brad.bue...@gmail.com brad.bueche%40gmail.com:

 
 
  Sorry to ask this here but I have searched everywhere over a period of
  months and I cant find an answer.
 
  If I install flex builder 3 (full install) at home, and bring it up, I
 can
  connect to the cfeclipse updater and subversive updater in a hearbeat.
 
  However, I need to really use subversive and fb at work not at home.
 And I
  can not figure out how to get the fb3 eclipse to connect to ANY update
  site.  I have to keep installing everything manually.  Well the manual
  install for subversive does not seem to work because they wont -- for
  license reasons -- put the SVN connectors in the main build and I cant
 get
  the manual install of those to work.
 
  I'm getting to the point where I really, really, need version control
 and
  this is really beginning to slow me down.
 
  Every time I try to do a software update eclipse either gives me the
 this:
 
  Error Parsing Stream [Premature end of file]
 
  We do use a proxy at work.  I have put the the proxy server config into
 the
  Eclipse-General-Network preferences but this does not seem to work.  I
  notice that Eclipse has a setting for port but we dont specifically use
 port
  in our proxy setting.  Additionally, in IE the proxy says Use AUTOMATIC
  Configuration script whereas Eclipse's set up just says Manual Proxy
  Configuration.
 
  What am I missing here?
 
  brad
 
 
 
  





RE: [flexcoders] Re: Dynamically Naming Objects

2009-06-14 Thread Tracy Spratt
.row into a master component and stick it in the Repeater.  Precisely.
And here are some snippets that might help, it is simpler than what you want
to do, but is a start.

 

..

 

Goal: Display a list of items using a complex display for each item, and
have each of those items behave like a menu element and respond to a click
anywhere on the item by running a handler function.

 

One solution is to use a Repeater with a custom component

 

In the main app or component, declare the Repeater, and the click handler
function.

mx:Application ...

mx:Script![CDATA[

  import MyRepeaterItem;

  ...

  

private function onRPItemClick(oEvent:Event):void

{

var xmlItem:XML = XML(oEvent.target);

 

}//onRPItemClick

]]/mx:Script

  mx:VBox ...

mx:Repeater id=rp dataProvider={_xmlData} ...

  !-- Note we pass in the entire currentItem, and define a click
handler  --

  MyRepeaterItem xmlItem={rp.currentItem}
itemClick=onRPItemClick(event) .../

/mx:Repeater

  /mx:VBox

/mx:Application

 

And in the component, MyRepeaterItem.mxml:

?xml version=1.0 encoding=utf-8?

mx:HBox mouseChildren=false buttonMode=true click=onClick(event)  

  !-- The metadata tag below allows us to define an itemClick handler in
mxml, as in the code above --

  mx:Metadata

 [Event(name=itemClick, type=flash.events.Event)]

  /mx:Metadata

mx:Script![CDATA[

  [Bindable]private var _xmlItem:XML;

  

  /** Setter function */

  public function set xmlItem(xml:XML):void  

  {

_xmlItem = xml;

//do any special, non-bound ui stuff you want

  }//set xmlItem

 

  /** Getter function */  

  public function get xmlItem():XML  

  {

return _xmlItem;

  }//get xmlItem

 

 

  /** Outer VBox Click handler function */  

  private function onClick():void 

  {

dispatchEvent(new Event(itemClick,false); //we do not need/want this
event to bubble

  }//onClick

 

]]/mx:Script

  !-- Now declare the Item UI --

  mx:Text id=lbDescription text={_xmlit...@description} width=100%
height=100% /

/mx:HBox

 

 

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Brad Bueche
Sent: Sunday, June 14, 2009 9:06 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Dynamically Naming Objects

 






Ok, thanks for the underscore there, Tracy.  Sounds like exactly what I
need.  Basically, at a simple level I'm extending that searchcoders search
interface to a full adhoc query front end.  So the plus minus buttons will
add a row that will have combo-boxes with the data providers --both static
and from a db -- and text entry boxes.  So each row will actually be a
series of sub-  components.   So I guess I could turn the row into a master
component and stick it in the Repeater.  I'll have to look into all these
goodies that the Repeater provides.

thanks again!
brad

On Sun, Jun 14, 2009 at 6:43 PM, Tracy Spratt tr...@nts3rd.
mailto:tr...@nts3rd.com com wrote:

 

.thought of the Repeater as a simple grid creator .  That is completely
wrong.  Repeater has *no* layout functionality at all.  It is simply a
replacement for addChild/ removeChild, with a lot of extra and useful
functionality like optional recycling and automatic creation of an array of
references via the id (myId[n]).

 

Look into Repeater before you write all of that code manually.

 

One suggestion: do not write any but the simplest repeated content
'in-line'.  Instead, create a custom component and repeat that, passing in
the entire currentItem via a setter function.  You will find this much
easier to code, especially dispatching events, etc.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcod...@yahoogro mailto:flexcoders@yahoogroups.com ups.com
[mailto:flexcod...@yahoogro mailto:flexcoders@yahoogroups.com ups.com] On
Behalf Of Brad Bueche
Sent: Sunday, June 14, 2009 6:11 PM
To: flexcod...@yahoogro mailto:flexcoders@yahoogroups.com ups.com
Subject: Re: [flexcoders] Re: Dynamically Naming Objects

 





Thanks, Amy, I didnt think about that.  I've always thought of the Repeater
as a simple grid creator but I guess I'll have to read up on it.

brad

On Sun, Jun 14, 2009 at 11:57 AM, Amy amyblankenship@
mailto:amyblankens...@bellsouth.net bellsouth.net wrote:

 

--- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
Gordon Smith gosm...@... wrote:

 1. If accessing the ComboBoxes you'll create by an index number is
sufficient, declare an instance var of type Array:
 
 private var comboBoxes:Array = [];
 
 When you dynamically create a new ComboBox, simply add the reference onto
the end of this Array:

Or you can use a repeater, which automates this and will automatically
handle destroying and recreating all the comboboxes if the data source they
are based on changes.

 

 





RE: [flexcoders] swf loader

2009-06-14 Thread Alex Harui
If a subswf expects to size to the stage then you can clip it, but you can't 
resize 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 veritech82
Sent: Sunday, June 14, 2009 5:46 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] swf loader





I am working on a web site and having an issue with flash files.

I have a tabbed navigation viewport with a swfloader in the page.

I am having an issue with a flash file that I am loading on the page, it is a 
flash game (asteroids) that isn't contained by the swfloader.

The flash game occupies the the entire width of the page.

any suggestions

Thanks



[flexcoders] Issue with TileList

2009-06-14 Thread Ben Densmore
I am using a TileList to pull in some profile info for an app I'm building. 
Inside the TileList I have a few Text Components that I'm trying to add a click 
event to. For some reason when I build the project I get an error that the 
method I'm trying to call does not exist, even though it does.

Is it not possible to call a method on a component inside a TileList other than 
using the itemClick event on the TileList itself?

The TileList is below.

Thanks,
Ben

mx:TileList id=searchList
 dataProvider={searchAryCol}
 paddingTop=25 left=10 borderStyle=none 
 allowMultipleSelection=false direction=horizontal
 top=56 right=10
 selectable=false verticalScrollPolicy=auto height=404 
columnCount=1
mx:itemRenderer
mx:Component
mx:VBox width=90% height=100%
paddingRight=5 paddingLeft=5
horizontalAlign=center

mx:HBox width=100% height=100%
mx:Image
height=200 width=100

source=/profile_pics/{data.ProfileID}/{data.userPicture} /
mx:VBox width=100% height=100%
mx:Label  id=friendName text={data.FirstName} 
{data.LastName}/
mx:Label  id=friendLocation 
text={data.ProfileCity}, {data.ProfileState} /
mx:Label  id=friendStatus text={data.status} /
/mx:VBox
 
 mx:VBox verticalGap=0.1
  mx:Text x=500 y=0 text=Add as Friend
 useHandCursor=true buttonMode=true 
 mouseChildren=false id=txtAddFriend
  click=addFriend();  /
  mx:HRule /
  mx:Text x=500 y=5 text=Send a Message  /
  mx:HRule /
  mx:Text x=500 y=10 text=View Profile /
  mx:HRule /
/mx:VBox
/mx:HBox

 
/mx:VBox
/mx:Component
/mx:itemRenderer
/mx:TileList

RE: [flexcoders] Issue with TileList

2009-06-14 Thread Tracy Spratt
mx:component . creates its own scope.  To reach the parent scope, use
outerDocument.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Ben Densmore
Sent: Monday, June 15, 2009 12:45 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Issue with TileList

 






I am using a TileList to pull in some profile info for an app I'm building.
Inside the TileList I have a few Text Components that I'm trying to add a
click event to. For some reason when I build the project I get an error that
the method I'm trying to call does not exist, even though it does.

Is it not possible to call a method on a component inside a TileList other
than using the itemClick event on the TileList itself?

The TileList is below.

Thanks,
Ben

mx:TileList id=searchList
 dataProvider={searchAryCol}
 paddingTop=25 left=10 borderStyle=none 
 allowMultipleSelection=false direction=horizontal
 top=56 right=10
 selectable=false verticalScrollPolicy=auto height=404
columnCount=1
mx:itemRenderer
mx:Component
mx:VBox width=90% height=100%
paddingRight=5 paddingLeft=5
horizontalAlign=center

mx:HBox width=100% height=100%
mx:Image
height=200 width=100
 
source=/profile_pics/{data.ProfileID}/{data.userPicture} /
mx:VBox width=100% height=100%
mx:Label  id=friendName text={data.FirstName}
{data.LastName}/
mx:Label  id=friendLocation
text={data.ProfileCity}, {data.ProfileState} /
mx:Label  id=friendStatus text={data.status} /
/mx:VBox
 
 mx:VBox verticalGap=0.1
  mx:Text x=500 y=0 text=Add as Friend
 useHandCursor=true buttonMode=true 
 mouseChildren=false id=txtAddFriend
  click=addFriend();  /
  mx:HRule /
  mx:Text x=500 y=5 text=Send a Message  /
  mx:HRule /
  mx:Text x=500 y=10 text=View Profile /
  mx:HRule /
/mx:VBox
/mx:HBox

 
/mx:VBox
/mx:Component
/mx:itemRenderer
/mx:TileList





[flexcoders] Re: Label a Button just like Flex Builder helps

2009-06-14 Thread chandruflex
Thank you Harish.

Chandra Kumar

--- In flexcoders@yahoogroups.com, Harish Sivaramakrishnan 
hsivaramakrish...@... wrote:

 While you add the child (TextInput) , make a dictionary to track the
 childIndex or even better the instance itself and bump it off once you
 complete the editing
 
 Harish
 
 On Fri, Jun 12, 2009 at 6:06 PM, chandruflex chandruf...@... wrote:
 
 
 
  Ok, I can use removeChildAt() for the question that I have asked. Actually
  I had to think about the next step. In my application, I will have a lot of
  other components (both statically and dynamically created). One or many of
  those dynamically created components may be Button components.
 
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Harish
  Sivaramakrishnan hsivaramakrishnan@ wrote:
  
   just curious, why can't you use removeChildAt()?
  
   On Fri, Jun 12, 2009 at 11:58 AM, chandruflex chandruflex@ wrote:
  
   
   
In my application, I have a Button. I want to double-click this Button,
  and
edit its label, just like we do in Flex Builder.
   
To do this, I have a double-click event-handler for my Button. In this
event-handler, I have written code to create a TextInput control (in
ActionScript). I have specified an enter-event-handler for this
  TextInput
control. In the enter-event-handler of the TextInput control, I assign
  the
typed-in Text to my Button control. I have to remove the TextInput
  control
now. Here is where I have a problem. I want to remove this TextInput
control, which has been created dynamically using ActionScript, only
  using
removeChild() and not using removeChildAt().
   
I get an error Cannot access a property or method of a null object
reference, when using the removeChild() to remove the TextInput
  control.
   
I would like to know, how I can remove this TextInput control, that I
  have
created using ActionScript.
   
   
   
  
 
   
 





[flexcoders] Binding two elements in a single datagrid column

2009-06-14 Thread Angelo Anolin
Hi FlexCoders,

I have a datagrid, where one of the columns is defined as follows:

mx:DataGridColumn width=150 
 mx:headerRenderer
  mx:Component
   mx:VBox horizontalScrollPolicy=off verticalScrollPolicy=off 
verticalGap=2
mx:Box horizontalAlign=center width=100%
 mx:Label text=Age / 
/mx:Box
mx:HBox horizontalAlign=center width=100% 
 mx:Label text=Year horizontalCenter=true width=50 /
 mx:Spacer width=10/
 mx:Label text=Month horizontalCenter=true width=50 / 
/mx:HBox
   /mx:VBox
  /mx:Component
 /mx:headerRenderer
 mx:itemRenderer
  mx:Component
   mx:HBox horizontalAlign=center width=100% horizontalScrollPolicy=off 
verticalScrollPolicy=off
mx:NumericStepper id=nsOutwardAgeYear minimum=0 maximum=200 
stepSize=1 width=50 textAlign=center/
mx:Spacer width=5/
mx:NumericStepper id=nsOutwardAgeMonths minimum=0 maximum=200 
stepSize=1 width=50 textAlign=center/
   /mx:HBox
  /mx:Component
 /mx:itemRenderer
/mx:DataGridColumn

Now, how would I be able to bind in both components my array collection? In the 
other columns, I can easily bind the datagridcolumn with a single item inside 
the arrayCollection object by 

mx:DataGridColumn headerText=Test dataField=myTestItem width=20/

I want to bind two items inside my array collection into the numericStepper 
which I placed side by side in the datagrid.

Like for example if my arraycollection has the following data

var _arrTest:ArrayCollection = new ArrayCollection([{Age:5, Months:10}, 
{Age:18, Months:3}, (Age:1, Months:2)]);

the Age and Months items should be bound to nsOutwardAgeYear and 
nsOutwardAgeMonths respectively.

Thanks and regards,
Angelo