rldjrsksl / flex-iframe

Automatically exported from code.google.com/p/flex-iframe
0 stars 0 forks source link

Provide an example using loadIndicatorClass #4

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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.

Original issue reported on code.google.com by dealingwith on 7 Nov 2008 at 10:13

GoogleCodeExporter commented 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

GoogleCodeExporter commented 8 years ago
This totally did the trick! Thanks so much Ryan.

- Daniel

Original comment by dealingwith on 8 Nov 2008 at 12:27

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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:

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
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