Closed GoogleCodeExporter closed 8 years ago
Don't worry, it's not you. The usage for loadIndicatorClass is not very clear.
Here's how I'm using it:
<local:IFrame id="designEditor" width="100%" height="100%" borderStyle="solid"
overlayDetection="true"
loadIndicatorClass="com.company.myPackage.EditorLoadIndicator"/>
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
Original comment by ryan2...@gmail.com
on 7 Nov 2008 at 10:38
This totally did the trick! Thanks so much Ryan.
- Daniel
Original comment by dealingwith
on 8 Nov 2008 at 12: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.
Original comment by dealingwith
on 5 Dec 2008 at 6:15
If anyone has a simple example showing the use of loadIndicatorClass, I will
integrate it in the examples.
Original comment by Julien.N...@gmail.com
on 7 Oct 2009 at 11:25
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
Original comment by luanviet...@gmail.com
on 7 Oct 2009 at 9:28
Attachments:
I added an example in the trunk.
@luanvietnguyen : You were right => Issue 36 . This is fixed in the trunk.
Original comment by Julien.N...@gmail.com
on 11 Oct 2009 at 12:13
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.
Original comment by luanviet...@gmail.com
on 12 Oct 2009 at 6:43
I could not reproduce it... Please open a new issue with more precisions ;)
Original comment by Julien.N...@gmail.com
on 12 Oct 2009 at 9:11
[deleted comment]
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?
Original comment by frobe...@innovateteam.com
on 20 Apr 2011 at 8:14
Original issue reported on code.google.com by
dealingwith
on 7 Nov 2008 at 10:13