[flexcoders] Re: Force HTTPService send() in child component

2007-01-30 Thread happy_christy01
I knew it was something silly.
me = nube;

Thank you.

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Ah ha.  You are trying to refer to the component using its class name.
> You must use the id:
> 
> pimagelist1.goGetIt();//
> 
>  
> 
> Tracy
> 




[flexcoders] Re: Force HTTPService send() in child component

2007-01-30 Thread happy_christy01
Maybe this will help:
http://www.eternaljourneys.com/FlexGallery/bin/main.html

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> The error means that Flex can't find the goGetIt method on the variable
> pImageList. That indicates to me that you may be instantiating the child
> component dynamically.  Is that so?  If so, how are you typing the
> variable?  If not, how are you instantiating the component.  Post the
> mxml.
> 
>  
> 
> Tracy
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of happy_christy01
> Sent: Tuesday, January 30, 2007 10:36 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Force HTTPService send() in child component
> 
>  
> 
> This is the error I'm getting: 
> 1061: Call to a possibly undefined method goGetIt through a reference
> with static type Class. 
> 
> The function from the parent:
> private function sharedDataHandler(event:TextEvent):void {
> sharedData = event.text;
> if (sharedData.length != 0){
> pImageList.goGetIt();//the component name and function name
> this.currentState = 'Preview';
> }
> The child function:
> public function goGetIt():void{
> mx.controls.Alert.show("You're Fired");
> //imgRequest.send();
> }
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> , "Tracy Spratt"  wrote:
> >
> > Make sure the function definition in the child component is marked
> > public. If it is you should have no problem calling it. Explicitly
> > scope ALL functions.
> > 
> > 
> > 
> > mychildComponent.myPublicfunction(event)
> > 
> > Tracy
> >
>




[flexcoders] Re: Force HTTPService send() in child component

2007-01-30 Thread happy_christy01
I don't believe so: (from main.mxml)

   
   



--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> The error means that Flex can't find the goGetIt method on the variable
> pImageList. That indicates to me that you may be instantiating the child
> component dynamically.  Is that so?  If so, how are you typing the
> variable?  If not, how are you instantiating the component.  Post the
> mxml.
> 
>  
> 
> Tracy
> 




[flexcoders] Re: Force HTTPService send() in child component

2007-01-30 Thread happy_christy01
This is the error I'm getting: 
1061: Call to a possibly undefined method goGetIt through a reference
with static type Class. 

The function from the parent:
private function sharedDataHandler(event:TextEvent):void {
   sharedData = event.text;
   if (sharedData.length != 0){
pImageList.goGetIt();//the component name and function name
this.currentState = 'Preview';
}
The child function:
public function goGetIt():void{
   mx.controls.Alert.show("You're Fired");
   //imgRequest.send();
}


--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Make sure the function definition in the child component is marked
> public.  If it is you should have no problem calling it.  Explicitly
> scope ALL functions.
> 
>  
> 
> mychildComponent.myPublicfunction(event)
> 
> Tracy
> 




[flexcoders] Re: Force HTTPService send() in child component

2007-01-29 Thread happy_christy01
invoking a function in one component from a click in another, yes.

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> So your issue is invoking a function call with a click?
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of happy_christy01
> Sent: Monday, January 29, 2007 12:15 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Force HTTPService send() in child component
> 
>  
> 
> Need help here. Spent all weekend looking at this, and I know I'm just
> missing something. I've got a small photo gallery app with two
> components. One component grabs all the 'albums' from the db on
> initialize and displays them in a TileList. When you click on one of
> the tiles, the second component should fire off a request to the
> HTTPService to get the images that belong to that album and display
> them. 
> 
> At this point, I've tried everything I can think of. I thought I found
> the answer in passing the album id to a form on the second component
> and firing the lookup on the change event. For some reason, however,
> it will only fire if I key in the album id by hand.
> 
> Anyone have any ideas?
> TIA
> -c-
>




[flexcoders] Force HTTPService send() in child component

2007-01-29 Thread happy_christy01
Need help here. Spent all weekend looking at this, and I know I'm just
missing something. I've got a small photo gallery app with two
components. One component grabs all the 'albums' from the db on
initialize and displays them in a TileList. When you click on one of
the tiles, the second component should fire off a request to the
HTTPService to get the images that belong to that album and display them. 

At this point, I've tried everything I can think of. I thought I found
the answer in passing the album id to a form on the second component
and firing the lookup on the change event. For some reason, however,
it will only fire if I key in the album id by hand.

Anyone have any ideas?
TIA
-c-



[flexcoders] Repeating objects in a grid-type format?

2007-01-24 Thread happy_christy01
I've got some items grouped together into a hierarchy of sorts. On the
front page, I want to show the highest level of the hierarchy. No
matter how many groupings are added, I want the app to add
horizontally to the container (panel) and then go to the next line,
filling up each line as it goes.

Does this make sense?

Is this even possible?