Can you please checkout these URLs http://images.optin.com.au/optusxmas/flash/penguin_tebe.swf?msg=satish http://www.diesel.com/
When we observe these sites closely we found immediatly when we hit the URL, one flash file is loading until our actial page is loaded. Can we do this in mxml? Our live site is too slow to load the home page itself and no animation was added until loading the page. our url looks like www.xxxxxxx.com:9080/yyy/test.mxml or www.xxxxxxx.com:9080/yyy/test.mxml.swf If this kind of stuff is possible mxmls, can you please give the downloadable examples? we are using flex1.5. Anybody please refer me something on this! my homepage sample code looks like: ---------------------------------------------------------------------------------------------------------------------- <?xml version="1.0" encoding="iso-8859-1"?> <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" initialize="loadme()" styleName="main" xmlns="com.itpl.mysite.transferobjects.*" marginTop="10" marginBottom="10" marginLeft="0" marginRight="0" horizontalAlign="center" backgroundColor="white"> <mx:Script source="actionscripts/mysite.as" /> <mx:Script source="actionscripts/Remember_Help.as" /> <mx:Style source="css/commoncss.css" /> <mx:Style> .heading { background-color: #99CC99; } </mx:Style> <mx:Script> import com.itpl.mysite.transferobjects.LoginTO; //.class file var oMyObject:Object; //private var userId:SharedObject; var page: String; <![CDATA[ function loadme() { oMyObject = new Object(); Object.registerClass('com.itpl.mysite.transferobjects.LoginTO', com.itpl.mysite.transferobjects.LoginTO); //.as file binding the .as file with bean class. loginidObj.session('get', 'userId'); username.text = ""; password.text = ""; loaduser(); } public var myAlert:Alert; function getHelp() { //var popup = mx.managers.PopUpManager.createPopUp(_root, helpwindow, true, {deferred: true}); import mx.containers.TitleWindow; var pop1:TitleWindow = mx.containers.TitleWindow(popupWindow(helpwindow,{title:'Login Help', width:330, height:350, x:610, y:100})); } private function loginIdResult(oEvent) { var userId=oEvent.result; if(userId!=null && page!="home"){ getUrl("accounts/inbox.mxml"); } } ]]> </mx:Script> <mx:RemoteObject id="log" source="com.itpl.mysite.login.LoginDAO" showBusyCursor="true"> <mx:method name="validateUser" result="onResult(event)" fault="alert(event.fault.faultstring, 'Error')" /> <!-- java function name --> <mx:method name="getmysiteDetails" result="mysiteResult(event)" fault="alert(event.fault.faultstring, 'Error')" /> </mx:RemoteObject> <mx:RemoteObject id="emailObj" source="servlet" showBusyCursor="true" fault="mx.controls.Alert.show(event.fault.faultstring, 'Error')"/> <mx:RemoteObject id="loginidObj" source="servlet" result="loginIdResult(event)" showBusyCursor="true" fault="mx.controls.Alert.show(event.fault.faultstring, 'Error')"/> <mx:RemoteObject id="mysiteidsObj" source="servlet" showBusyCursor="true" fault="mx.controls.Alert.show(event.fault.faultstring, 'Error')"/> <LoginTO id="login"></LoginTO> <mx:Model id="validlogin"> <username>{username.text}</username> <password>{password.text}</password> </mx:Model> <mx:EmailValidator field="validlogin.username" invalidCharError="Invalid characters in your email address." invalidDomainError= "The domain in your email address is incorrectly formatted." invalidIPDomainError="The IP domain in your email address is incorrectly formatted." invalidPeriodsInDomainError="The domain in your email address has consecutive periods." missingAtSignError="Missing an at character in your email address." missingPeriodInDomainError="The domain in your email address is missing a period." tooManyAtSignsError="Too many at characters in your email address." /> <mx:StringValidator field="validlogin.password"/> <mx:Grid width="880" height="100%" borderStyle="solid" hScrollPolicy="off" horizontalAlign="center"> <!-- VBox 1 --> <mx:GridRow width="100%" height="15%" horizontalAlign="center" > <mx:GridItem hScrollPolicy="off" vScrollPolicy="off" horizontalGap="0" marginBottom="0" marginTop="0" verticalGap="0"> <mx:Grid hScrollPolicy="off" vScrollPolicy="off" horizontalGap="0" marginBottom="0" marginTop="0" verticalGap="0"> <mx:GridRow verticalAlign="top"> <mx:GridItem colSpan="3" width="410" height="35" verticalAlign="top" horizontalAlign="left" hScrollPolicy="off"> <mx:Image id="logo_loader" source="swf-templates/index_logo_new.swf" mouseDown="getUrl('mysite.mxml');" scaleContent="true" horizontalAlign="left" verticalAlign="top" showBusyCursor="true" /> </mx:GridItem> <mx:GridItem colSpan="4" height="30" hScrollPolicy="off" vScrollPolicy="off"> <mx:Canvas> <mx:TextInput x="0" y="7" text="" fontSize="7" width="80" height="14" backgroundColor="white" borderColor="#000000" id="username" enter="userlogin()" /> <mx:TextInput x="85" y="7" text="" fontSize="7" width="80" height="14" backgroundColor="white" borderColor="#000000" id="password" password="true" /> <mx:Image x="165" y="7" id="login_button_loader" width="75" source="swf-templates/top_GObut.swf" mouseDown="userlogin()" scaleContent="false" horizontalAlign="center" showBusyCursor="true" /> <mx:CheckBox x="220" y="7" id="remember" label="Remember Me!" labelPlacement="left" fontSize="9" mouseOver="showRememberMessage()" mouseOut="rememberMouseOut()" /> <mx:Link x="308" y="9" label="Login Help" fontSize="9" color="#000000" height="10" mouseDown="getForgot()" mouseOver="showHelpMessage()" mouseOut="helpMouseOut()"/> <mx:Image x="350" y="0" id="signup_button_loader" width="75" source="swf-templates/top_signupbut.swf" mouseDown="getURL('accounts/accounts.mxml')" scaleContent="false" horizontalAlign="center" showBusyCursor="true" /> </mx:Canvas> </mx:GridItem> </mx:GridRow> <mx:GridRow horizontalGap="0" marginBottom="0" marginTop="0" verticalGap="0" horizontalAlign="center"> <mx:GridItem colSpan="7" horizontalAlign="center"> <mx:Grid horizontalAlign="center"> <mx:GridRow horizontalGap="0" marginBottom="0" marginTop="0" verticalGap="0"> <mx:GridItem colSpan="7" horizontalGap="0" marginBottom="0" marginTop="0" verticalGap="0"> <mx:Image source="swf-templates/howitworks_but.swf" scaleContent="true" horizontalAlign="center" showBusyCursor="true" /> <mx:Image source="swf-templates/recipeclub_but.swf" scaleContent="true" horizontalAlign="center" showBusyCursor="true" /> <mx:Image source="swf-templates/yourguru_but.swf" scaleContent="true" horizontalAlign="center" showBusyCursor="true" /> </mx:GridItem> </mx:GridRow> <mx:GridRow horizontalGap="0" marginBottom="0" marginTop="0" verticalGap="0"> <mx:GridItem colSpan="7" horizontalGap="0" marginBottom="0" marginTop="0" verticalGap="0"> <mx:Image source="swf-templates/yourcalorie_but.swf" scaleContent="true" horizontalAlign="center" showBusyCursor="true" /> <mx:Image source="swf-templates/nutrition_but.swf" scaleContent="true" horizontalAlign="center" showBusyCursor="true" /> <mx:Image source="swf-templates/favfoods_but.swf" scaleContent="true" horizontalAlign="center" showBusyCursor="true" /> <mx:Image source="swf-templates/freebmi_but.swf" mouseDown="loadCalic()" scaleContent="true" horizontalAlign="center" showBusyCursor="true" /> </mx:GridItem> </mx:GridRow> </mx:Grid> </mx:GridItem> </mx:GridRow> </mx:Grid> </mx:GridItem> </mx:GridRow> <!-- VBox 2 --> <mx:GridRow width="100%" height="85%" horizontalAlign="center" > <mx:GridItem horizontalAlign="center"> <mx:Canvas> <mx:Grid width="100%" height="100%" x="0" y="-50"> <mx:GridRow width="100%" height="100%"> <mx:GridItem width="100%" height="100%" horizontalAlign="center" vScrollPolicy="off"> <mx:Image id="signup_content_loader" source="swf-templates/FFG-temp-landing-pg.swf" horizontalAlign="center" showBusyCursor="true" /> <!-- <mx:Loader id="signup_content_loader" source="swf-templates/back.swf" horizontalAlign="center" /> --> <!-- <mx:Image id="signup_content_loader" contentPath="swf-templates/FFG-temp-landing-pg.swf" horizontalAlign="center" /> --> <!-- <IFrame id="signup_content_loader" source="homeAnimation.html" width="100%" height="100%"/> --> </mx:GridItem> </mx:GridRow> </mx:Grid> <!-- <v:helpwindow id="helpwindow" height="0" width="0" x="0" y="0" cornerRadius="0" /> --> <mx:Grid horizontalAlign="left" hScrollPolicy="off" vScrollPolicy="off" height="132" x="0" y="374"> <mx:GridRow width="100%" horizontalAlign="center" > <mx:GridItem colSpan="3" horizontalAlign="center" hScrollPolicy="off" vScrollPolicy="off"> <mx:Image id="footer_loader" source="swf-templates/index_footer_new.swf" scaleContent="true" horizontalAlign="center" showBusyCursor="true" /> </mx:GridItem> </mx:GridRow> <mx:GridRow width="100%" height="30" horizontalAlign="center" > <mx:GridItem horizontalAlign="center"> <mx:FormItem> <mx:Image id="footerbut1_loader" source="swf-templates/index_footer_newbut1.swf" scaleContent="true" horizontalAlign="center" showBusyCursor="true" /> </mx:FormItem> </mx:GridItem> <mx:GridItem width="275"></mx:GridItem> <mx:GridItem width="36%" horizontalAlign="center" > <mx:FormItem> <mx:Image id="footerbut2_loader" source="swf-templates/index_footer_newbut2.swf" scaleContent="true" horizontalAlign="center" showBusyCursor="true" /> </mx:FormItem> </mx:GridItem> </mx:GridRow> <mx:GridRow width="100%" height="30" horizontalAlign="center" > <mx:GridItem colSpan="3" horizontalAlign="center" hScrollPolicy="off" vScrollPolicy="off"> <mx:Image id="copyright_loader" source="swf-templates/index_footernew.swf" scaleContent="true" horizontalAlign="center" showBusyCursor="true" /> </mx:GridItem> </mx:GridRow> </mx:Grid> </mx:Canvas> </mx:GridItem> </mx:GridRow> </mx:Grid> </mx:Application> ---------------------------------------------------------------------------------------------------------------------- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/