Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
dzlmbq #1
Opening .mxml components via ActionScript
I am working on a dynamic TabBar that will populate a datagrid under each tab
with reports from a document archive. I want to build my datagrid in a separate
..mxml file and pull it in via ActionScript when I build the tabs.
Has anyone found a way to integrate other .mxml files via ActionScript? I know
I can do this in .mxml itself.
dzlmbq Guest
-
Where I can get a mxml components list?
Where I can get a mxml components list? Each component should match a class, but help has no a List. Some components has a mx as prefix, but others... -
Working with MXML Components
:confused; I have a list box defined in an mxml component file. Then in the mxml application file I point to the component file by specifying the... -
synchronous actionscript vs mxml
Hi for making synchronous call with java method from as file i got example from http://www.adobe.com/devnet/flex/articles/flexfaq.html link 31Q. But... -
using MXML in ActionScript
Hello, There are many chapters describing how to use 'ActionScript in MXML' but I have found none about the opposite : how to perform the... -
ActionScript vs. MXML
Hello. Just curious if there is any difference in building components with straight Actionscript as opposed to a mix of MXML and Actionscript? ... -
ntsiii #2
Re: Opening .mxml components via ActionScript
Look into the createChild() method on containers. It allows you programatically create components.
Tracy
ntsiii Guest
-
dzlmbq #3
Re: Opening .mxml components via ActionScript
I was hoping I could pull in an external .mxml file in my action script. I had
played with createChild first but ran into a snag. Is there a way to have the
new control size to 100% width and height? I can set it to static width/heigth.
var newTab = reportDetails.createTab( mx.containers.VBox,
tabLabel,
tabData );
reportDetails.selectedChild = newTab;
newTab.createChild(mx.controls.DataGrid, undefined,
{dataProvider:dp, labelField:"Unit", width:"100%", height:"100%"});
dzlmbq Guest
-
ntsiii #4
Re: Opening .mxml components via ActionScript
If what you have is not working, try this:
var newControl = newTab.createChild(mx.controls.DataGrid, undefined,
{dataProvider:dp, labelField:"Unit"});
newControl.width = "100%";
I don't know that that will work, but it is worth a try.
Tracy
ntsiii Guest



Reply With Quote

