Closed nicoulaj closed 13 years ago
Updated by ryan2...@gmail.com on 2008-11-07T22:38:16
Don't worry, it's not you. The usage for loadIndicatorClass is not very clear.
Here's how I'm using it:
EditorLoadIndicator (located in the com > company > myPackage package) is an MXML Component that defines an HBox containing a label with some text ("Loading...") and an instance of Loading Spinner from the Flex Exchange here: http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&loc=en_us&extid=1219018# You could use a progress bar too though it should work just fine.
There's nothing magic about how this is implemented -- it can be any DisplayObject class defined in MXML or ActionScript, as long as you can reference the fully-qualified class name.
Hope that helps.
Ryan
Updated by dealingwith on 2008-11-08T00:27:24
This totally did the trick! Thanks so much Ryan.
Updated by dealingwith on 2008-12-05T18:15:27
I have a follow up question on this issue:
Is there a way to wait until all the elements (images etc) of the page have loaded b/f showing the page? I should probably know if there is such an event w/in the browser, but am ashamed to say I am not sure. We have some huge pages w/ many images and it would be nice to wait and show the entirely loaded page after the images and whatnot have loaded.
Updated by Julien.N...@gmail.com on 2009-10-07T11:25:52
If anyone has a simple example showing the use of loadIndicatorClass, I will integrate it in the examples.
Removed label Type-Defect Added label Type-Task Original ticket set status to Accepted (we converted to open) Title changed from 'Provide an example using loadIndicatorClass' to 'Provide an example using loadIndicatorClass'
Updated by luanviet...@gmail.com on 2009-10-07T21:28:26
loadIndicatorClass doesn't work. I had flexiframe.swc version 1.3.4 under libs directory. Created com/test package under src/ to put a simple loading label there for testing. I then created an application to show the iframe. Attached is the entire flex project that you can import into your flex builder and run to see that the loading won't show. You need to give source a slow loading page somewhere.
Thanks, Luan
Updated by Julien.N...@gmail.com on 2009-10-11T00:13:49
I added an example in the trunk.
@luanvietnguyen : You were right => Issue 36 . This is fixed in the trunk.
Original ticket set status to Verified (we converted to closed)
Updated by luanviet...@gmail.com on 2009-10-12T18:43:52
Thanks, Julien. Still a problem when the source being loaded is a pdf content. From the IFrameWithLoadIndicator example, change the source="http://some_pdf_content.pdf" on both panels. The top panel (without load indicator) works but the bottom panel just spin the Loading... forever.
Updated by Julien.N...@gmail.com on 2009-10-12T21:11:29
I could not reproduce it... Please open a new issue with more precisions ;)
Updated by frobe...@innovateteam.com on 2011-04-20T20:14:34
I have successfully implemented the SampleLoadindicator, however now that I have done that some web pages just show up white and other load just fine. If I remove the pointer to the "loadIndicatorClass" all pages work just dandy. Any ideas why the addition of "loadIndicatorClass" would cause this?
Originally filed by dealingwith on 2008-11-07T22:13:45
This is not an issue but the Wiki does not seem to be open (?) ...
At the risk of sounding the n00b, is there any sample code for using loadIndicatorClass? I would like to use it but am not quite sure where to start. Baking in the standard indeterminate progress bar would be a good idea, IMHO.
If I get some more time I'll look further into it, but for now the cost/benefit ratio has run out.