![]() |
![]() |
||||||
|
|||||||
| Tags: |
![]() |
|
|||
|
I've noticed that at least in my copy of Flex Builder 3, the code-completion
feature doesn't seem to work entirely correctly. I was trying to define a variable of type ListBaseContentHolder, but typing the dot "." after listClasses brought up a list of available classes -- but not ListBaseContentHolder! var lb:mx.controls.listClasses. // --> could not see that class here. All the online documentation said it was there, but Flex Builder wouldn't show it. I typed it in manually, var lb:mx.controls.listClasses.ListBaseContentHolder; and it compiled just fine. Any thoughts on what might be going on here? |
| Sponsored Links |
|
|||
|
"curious_Lee" <webforumsuser@macromedia.com> wrote in message news:gbgp4o$ovm$1@forums.macromedia.com... > I've noticed that at least in my copy of Flex Builder 3, the > code-completion > feature doesn't seem to work entirely correctly. I was trying to define a > variable of type ListBaseContentHolder, but typing the dot "." after > listClasses brought up a list of available classes -- but not > ListBaseContentHolder! I think that one is hidden somehow. I don't think they want you using it. What's the goal? We might be able to tell you how to achieve it without using it. The only time I ever used that class, I was doing something I wouldn't do now that I know better. |
|
|||
|
"curious_Lee" <webforumsuser@macromedia.com> wrote in message news:gbgp4o$ovm$1@forums.macromedia.com... > I've noticed that at least in my copy of Flex Builder 3, the > code-completion > feature doesn't seem to work entirely correctly. I was trying to define a > variable of type ListBaseContentHolder, but typing the dot "." after > listClasses brought up a list of available classes -- but not > ListBaseContentHolder! I think that one is hidden somehow. I don't think they want you using it. What's the goal? We might be able to tell you how to achieve it without using it. The only time I ever used that class, I was doing something I wouldn't do now that I know better. |
|
|||
|
"curious_Lee" <webforumsuser@macromedia.com> wrote in message news:gbgp4o$ovm$1@forums.macromedia.com... > I've noticed that at least in my copy of Flex Builder 3, the > code-completion > feature doesn't seem to work entirely correctly. I was trying to define a > variable of type ListBaseContentHolder, but typing the dot "." after > listClasses brought up a list of available classes -- but not > ListBaseContentHolder! I think that one is hidden somehow. I don't think they want you using it. What's the goal? We might be able to tell you how to achieve it without using it. The only time I ever used that class, I was doing something I wouldn't do now that I know better. |
|
|||
|
Thanks, Amy. Here's what the app needs to do: It has a DataGrid with an inline
ItemRenderer in one column. The ItemRenderer contains a read-only TextInput and Browse and Upload buttons. The Browse button allows a user to select a file and the Upload button enables a file upload. Each row represents an item that need to have an image file associated with it. I need to reference the ItemRenderer and its TextInput to display what file was selected; in addition, each row will need to fire off a validation to ensure files with the correct extension are selected. The ID column's value from that row will be used as the filename on the server. I found this article that partially explains how to reference the items in an ItemRenderer: http://danonflex.com/readarticle.php?article_id=5 The problem: How do you detect which row's ItemRenderer fired off the Click event -- in other words, which Browse button was clicked? And then how do you find that row's TextInput within the ItemRenderer? Thanks. |
|
|||
|
Thanks, Amy. Here's what the app needs to do: It has a DataGrid with an inline
ItemRenderer in one column. The ItemRenderer contains a read-only TextInput and Browse and Upload buttons. The Browse button allows a user to select a file and the Upload button enables a file upload. Each row represents an item that need to have an image file associated with it. I need to reference the ItemRenderer and its TextInput to display what file was selected; in addition, each row will need to fire off a validation to ensure files with the correct extension are selected. The ID column's value from that row will be used as the filename on the server. I found this article that partially explains how to reference the items in an ItemRenderer: http://danonflex.com/readarticle.php?article_id=5 The problem: How do you detect which row's ItemRenderer fired off the Click event -- in other words, which Browse button was clicked? And then how do you find that row's TextInput within the ItemRenderer? Thanks. |
|
|||
|
Thanks, Amy. Here's what the app needs to do: It has a DataGrid with an inline
ItemRenderer in one column. The ItemRenderer contains a read-only TextInput and Browse and Upload buttons. The Browse button allows a user to select a file and the Upload button enables a file upload. Each row represents an item that need to have an image file associated with it. I need to reference the ItemRenderer and its TextInput to display what file was selected; in addition, each row will need to fire off a validation to ensure files with the correct extension are selected. The ID column's value from that row will be used as the filename on the server. I found this article that partially explains how to reference the items in an ItemRenderer: http://danonflex.com/readarticle.php?article_id=5 The problem: How do you detect which row's ItemRenderer fired off the Click event -- in other words, which Browse button was clicked? And then how do you find that row's TextInput within the ItemRenderer? Thanks. |
|
|||
|
"curious_Lee" <webforumsuser@macromedia.com> wrote in message news:gbhd6g$j1t$1@forums.macromedia.com... > Thanks, Amy. Here's what the app needs to do: It has a DataGrid with an > inline > ItemRenderer in one column. The ItemRenderer contains a read-only > TextInput and > Browse and Upload buttons. The Browse button allows a user to select a > file and > the Upload button enables a file upload. Each row represents an item that > need > to have an image file associated with it. > > I need to reference the ItemRenderer and its TextInput to display what > file > was selected; in addition, each row will need to fire off a validation to > ensure files with the correct extension are selected. The ID column's > value > from that row will be used as the filename on the server. > > I found this article that partially explains how to reference the items in > an > ItemRenderer: http://danonflex.com/readarticle.php?article_id=5 > > The problem: How do you detect which row's ItemRenderer fired off the > Click > event -- in other words, which Browse button was clicked? And then how do > you > find that row's TextInput within the ItemRenderer? The item click event's event.target property will have a reference to the actual row involved. If that doesn't work for you, you can generate a custom event on from something happening in the renderer and pass whatever info you need in that event. HTH; Amy |
|
|||
|
"curious_Lee" <webforumsuser@macromedia.com> wrote in message news:gbhd6g$j1t$1@forums.macromedia.com... > Thanks, Amy. Here's what the app needs to do: It has a DataGrid with an > inline > ItemRenderer in one column. The ItemRenderer contains a read-only > TextInput and > Browse and Upload buttons. The Browse button allows a user to select a > file and > the Upload button enables a file upload. Each row represents an item that > need > to have an image file associated with it. > > I need to reference the ItemRenderer and its TextInput to display what > file > was selected; in addition, each row will need to fire off a validation to > ensure files with the correct extension are selected. The ID column's > value > from that row will be used as the filename on the server. > > I found this article that partially explains how to reference the items in > an > ItemRenderer: http://danonflex.com/readarticle.php?article_id=5 > > The problem: How do you detect which row's ItemRenderer fired off the > Click > event -- in other words, which Browse button was clicked? And then how do > you > find that row's TextInput within the ItemRenderer? The item click event's event.target property will have a reference to the actual row involved. If that doesn't work for you, you can generate a custom event on from something happening in the renderer and pass whatever info you need in that event. HTH; Amy |
|
|||
|
"curious_Lee" <webforumsuser@macromedia.com> wrote in message news:gbhd6g$j1t$1@forums.macromedia.com... > Thanks, Amy. Here's what the app needs to do: It has a DataGrid with an > inline > ItemRenderer in one column. The ItemRenderer contains a read-only > TextInput and > Browse and Upload buttons. The Browse button allows a user to select a > file and > the Upload button enables a file upload. Each row represents an item that > need > to have an image file associated with it. > > I need to reference the ItemRenderer and its TextInput to display what > file > was selected; in addition, each row will need to fire off a validation to > ensure files with the correct extension are selected. The ID column's > value > from that row will be used as the filename on the server. > > I found this article that partially explains how to reference the items in > an > ItemRenderer: http://danonflex.com/readarticle.php?article_id=5 > > The problem: How do you detect which row's ItemRenderer fired off the > Click > event -- in other words, which Browse button was clicked? And then how do > you > find that row's TextInput within the ItemRenderer? The item click event's event.target property will have a reference to the actual row involved. If that doesn't work for you, you can generate a custom event on from something happening in the renderer and pass whatever info you need in that event. HTH; Amy |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
- Contact Us
-|-
Adobe Dreamweaver Forums -|-
Archive -|-
Top -|-Rules/Disclaimer-|-Help/Support-|-Advertise