have u tried mode="event" or "polling" in progressbar......
On Fri, May 15, 2009 at 11:47 AM, <[email protected]> wrote: > Hi > > i Create progressBar for SWFLoader. The problem is i can see loading 0% > after few seconds directly it goes to 100 % but it didnt progress between 1 > to 99 % > > I tried many ways but i am facing the same problem > > what is the problem in my code > Index.swf (size is 5.6 MB) > > > > <?xml version="1.0" encoding="utf-8"?> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" > layout="absolute"> > <mx:Script> > <![CDATA[ > import mx.controls.SWFLoader; > import mx.controls.Alert; > import flash.system.Security > > > private var ldap_swf:SWFLoader = new SWFLoader(); > > > private function loadswf():void > { > ldap_swf.load("assets/Index.swf"); > ldap_swf.addEventListener(ProgressEvent.PROGRESS,LDAPProgress); > ldap_swf.percentHeight = 100; > ldap_swf.percentWidth = 100; > c1.addChild(ldap_swf); > } > > private function LDAPProgress(event:ProgressEvent):void > { > var numPerc:Number = Math.round((Number(event.bytesLoaded) / > Number(event.bytesTotal)) * 100); > pb.setProgress(numPerc, 100); > } > ]]> > </mx:Script> > <mx:Canvas id="c1" width="1195" height="776"/> > <mx:Button id="LOADSWF" label="LOADSWF" x="638" y="754" click="loadswf()"/> > <mx:ProgressBar id="pb" y="360" x="500" mode="manual"/> > <mx:Text id="txtLoaded" x="500" y="396"/> > </mx:Application> > > > Plz Help me > > Waiting for ur solutions > > > Regards > Natarajan > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---

