Is there enough room for your form to show up?  Are the form SWFs in the
right place?

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of ANDREW_PRICE_1999
Sent: Wednesday, June 04, 2008 8:15 AM
To: [email protected]
Subject: [flexcoders] ModuleLoader

 

i am have problem with ModuleLoader is will not load any swf???

It a simple form with two button on to open dayl and the second to 
open dayl1 ?

It just looks at me.

Please Help
Andrew

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml
<http://www.adobe.com/2006/mxml> " 
layout="absolute">
<mx:Script>
<![CDATA[
import mx.events.ItemClickEvent;
import mx.modules.*;
private function clickHandler(event:ItemClickEvent):void {
myModule.url = event.label + ".swf";
myModule.loadModule();
}
]]>
</mx:Script>

<mx:Panel width="100%" height="100%"
layout="vertical"
title="Choose a Form to fill"
horizontalAlign="center">
<mx:ModuleLoader id="myModule" url="dayl.swf"/>
<mx:ControlBar>
<mx:ToggleButtonBar
id="myTB"
borderStyle="solid"
horizontalGap="1"
itemClick="clickHandler(event);">
<mx:dataProvider>
<mx:String>dayl</mx:String>
<mx:String>dayl1</mx:String>
</mx:dataProvider>
</mx:ToggleButtonBar>
</mx:ControlBar>
</mx:Panel>
</mx:Application>

 

Reply via email to