Aran,
I am working on the striped down live version now. (very simple)
I have a full time job in construction so thanks for bearing with me.
Hopefully when my new business fly's i will be a full time, but till
then i am jest a peon in this world.

thanks
PhilBuilt

On Mar 2, 5:45 pm, Aran Rhee <[email protected]> wrote:
> Hi Philbuilt
>
> You shouldn't need to set the visibility to true if you never hide it in the
> first place. I was just illustrating the logic of the embedSWF() method, and
> what calls are made in what order.
>
> Just to rewind a bit (and to try to remove as many unknown variables as
> possible), if you just replace the swf location in Philip's example code for
> onclick loading (http://demos.learnswfobject.com/load-onclick/onclick2.html)
> with your own swf, does your file behave as expected?
>
> If you could post a link of this stripped back example, that would be most
> helpful.
>
> I am really just trying to help you get to the core of what the issue might
> be. A fully worked up page with a bunch of css (and possible other things
> going on) is not the best place to try to find the source of an issue
>
> Aran
>
> On Wed, Mar 3, 2010 at 12:10 AM, philbuilt <[email protected]> wrote:
> > Aran,
> > I did a test as follows:
>
> > I set the object to visibility hidden this is the parm showing in the
> > div after the object has been loaded.
>
> > <td colspan="18" valign="middle" width="975" align="center"
> > height="575">
> >                <object style="visibility: hidden;" id="flashcontent"
> > data="flash_files/models.swf?1267534611666" type="application/x-
> > shockwave-flash" width="975" height="575"><param value="false"
> > name="menu"><param value="best" name="quality"><param value="."
> > name="base"><param value="#5B5B5B" name="bgcolor"><param
> > value="always" name="allowScriptAccess"></object>
> >      </td>
>
> > This is the javascript:
> > var obj = swfobject.createSWF(attributes, params, targetID);
> > function LoadEvt() {
>
> >  document.getElementById("flashcontent").style.visibility="hidden";
> >                }
> >                swfobject.addDomLoadEvent(LoadEvt);
> >        }
> > }
>
> > Now I set it visible with this javascript:
>
> >                var obj = swfobject.createSWF(attributes, params, targetID);
> > function LoadEvt() {
>
> >  document.getElementById("flashcontent").style.visibility="visible";
> >                }
> >                swfobject.addDomLoadEvent(LoadEvt);
> >        }
> > }
>
> > There is still no change in the problem?
> > Actually setting the div to hidden then right click and view source
> > selection is a great way to see what parms have been loaded in a div.
> > Philbuilt
>
> > On Mar 2, 7:18 am, philbuilt <[email protected]> wrote:
> > > Aran,
> > > I did not know i had to set the visibility back to true because you
> > > can see it as soon as it has completed it's download so i assumed it
> > > was set already? I tried to css the visibility on the div every way i
> > > could but that will not work because i need to deal with the object
> > > inside the div. That is made apparent when my index page loads and it
> > > works fine it's jest when the swf is changed there is a problem. i use
> > > swf address so when i open my index page the swf loads fine then i
> > > will go to any link and load another swf with no preloaded and it also
> > > works fine. then when i will hit the home link the sceen is blank
> > > until it is again loaded all the way. I also tried to toggle viability
> > > with some JavaScript at the end of my code to see if that would do it
> > > but nothing seems to work.
>
> > > PhilBuilt
>
> > > On Mar 1, 11:56 pm, Aran Rhee <[email protected]> wrote:
>
> > > > createSwf() is called internally by embedSWF(), so I don't think this
> > would
> > > > be causing the issue directly.
>
> > > > Basically embedSwf() :
>
> > > > - sets visibility to false on the DOM object (the replacement <div>)
> > > > then sets a dom load function to:
>
> > > > - add params, flashvars, attributes
> > > > - checks if the right flash player version is available
> > > > using hasPlayerVersion()
> > > > (assuming it is available)
> > > > - calls createSWF()
> > > > - sets visibility to true on the DOM object (now the swf <object>)
> > > > - calls the callback function (if any was defined)
>
> > > > Are you setting the visibility back to true at the right time?
>
> > > > Aran
>
> > > > On Tue, Mar 2, 2010 at 3:11 PM, philbuilt <[email protected]> wrote:
> > > > > Aran,
> > > > > Yes my swf has a pre-loader I have many swfs on my site with built-in
> > > > > preloaded like the one on my home page and they all works fine. when
> > > > > they are loaded from my home page swfobject.embedSWF, However when i
> > > > > load them via my code above swfobject.createSWF i don't see them
> > until
> > > > > they are 100% loaded? I know they are there in the div loading but i
> > > > > can't see anything and i have tried every parameter i can find. I
> > also
> > > > > tried to all the css styles on the div but nothing works? I am almost
> > > > > there with my site but this screws every thing up!
>
> > > > > On Mar 1, 10:05 pm, Aran Rhee <[email protected]> wrote:
> > > > > > His specific problem was that he was loading content further down
> > the
> > > > > page,
> > > > > > and was using anchor tags in order to set the correct scroll
> > position.
> > > > > This
> > > > > > ended up changing the address location. It sounds like he just used
> > some
> > > > > js
> > > > > > functionality to set the correct vscroll position.
>
> > > > > > In regards to your question, do you have a preloader on your swf?
> > If not,
> > > > > > then nothing is going to show on stage until the flash player has
> > > > > downloaded
> > > > > > enough content to display at least your first frame. Flash is a
> > > > > progressive
> > > > > > download format by nature, so you don;t HAVE to wait until 100% of
> > the
> > > > > file
> > > > > > is delivered before playback can begin, but all classes and artwork
> > > > > needed
> > > > > > to display your content needs to be available before the frame will
> > be
> > > > > > rendered.
>
> > > > > > This is not anything to do with SWFObject actually, but just a
> > general
> > > > > Flash
> > > > > > issue/concept.
>
> > > > > > Aran
>
> > > > > > On Tue, Mar 2, 2010 at 11:50 AM, philbuilt <[email protected]>
> > wrote:
> > > > > > > Hello everyone,
> > > > > > > I found this in my search for an answer to a problem i have which
> > by
> > > > > > > the way is identical to an old post here.
>
> > > > > > >http://markmail.org/message/mfv3bu3mt7xwpagw
>
> > > > > > > In the post (Shawn) found the solution but i am not sure exactly
> > what
> > > > > > > he is talking about?
> > > > > > > he say's: fixed, I replaced the usage of the anchor tag with
> > > > > > > javascript's
>
> > > > > > > I load my swfs into a div (<div id="flashcontent"></div>)
>
> > > > > > > with this javascript:
>
> > > > > > > function isObject(targetID){
> > > > > > >   var isFound = false;
> > > > > > >   var el = document.getElementById(targetID);
> > > > > > >   if(el && (el.nodeName === "OBJECT" || el.nodeName ===
> > "EMBED")){
> > > > > > >      isFound = true;
> > > > > > >   }
> > > > > > >   return isFound;
> > > > > > > }
> > > > > > > function replaceSwfWithEmptyDiv(targetID){
> > > > > > >   var el = document.getElementById(targetID);
> > > > > > >   if(el){
> > > > > > >        var div = document.createElement("div");
> > > > > > >        el.parentNode.insertBefore(div, el);
> > > > > > >        swfobject.removeSWF(targetID);
> > > > > > >        div.setAttribute("id", targetID)
> > > > > > >   }
> > > > > > > }
>
> > > > > > > function loadSWF(url, targetID){
> > > > > > >   if (swfobject.hasFlashPlayerVersion("9")){
> > > > > > >                var attributes = {
> > > > > > >                                                        data:url +
> > "?" +
> > > > > new
> > > > > > > Date().getTime(),
>
> > > > >  id:"flashcontent",
>
> >  width:"100%",
>
> >  height:"100%",
> > > > > > >                                                };
>
> > > > > > >                var params =    {
>
> >  menu:"false",
>
> >  quality:"best",
> > > > > > >                                                        base:".",
> > > > > > >                                                bgcolor:"#000000",
>
> > > > > > >  allowNetworking:"all",
>
> > > > > > >  allowScriptAccess:"always",
> > > > > > >                                                };
> > > > > > >                var obj = swfobject.createSWF(attributes, params,
> > > > > targetID);
>
> > > > > > >        }
> > > > > > > }
>
> > > > > > > Any help is appreciated!
> > > > > > > PhilBuilt
>
> > > > > > >www.philbuilt.com
>
> > > > > > > --
> > > > > > > You received this message because you are subscribed to the
> > Google
> > > > > Groups
> > > > > > > "SWFObject" group.
> > > > > > > To post to this group, send email to [email protected].
> > > > > > > To unsubscribe from this group, send email to
> > > > > > > [email protected]<swfobject%[email protected]>
> > <swfobject%[email protected]<swfobject%[email protected]>
>
> > > > > <swfobject%[email protected]<swfobject%[email protected]>
> > <swfobject%[email protected]<swfobject%[email protected]>
>
> > > > > > > .
> > > > > > > For more options, visit this group at
> > > > > > >http://groups.google.com/group/swfobject?hl=en.
>
> > > > > --
> > > > > You received this message because you are subscribed to the Google
> > Groups
> > > > > "SWFObject" group.
> > > > > To post to this group, send email to [email protected].
> > > > > To unsubscribe from this group, send email to
> > > > > [email protected]<swfobject%[email protected]>
> > <swfobject%[email protected]<swfobject%[email protected]>
>
> > > > > .
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/swfobject?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "SWFObject" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<swfobject%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/swfobject?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"SWFObject" 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/swfobject?hl=en.

Reply via email to