TinyPortal

Development => Support => Older SMF versions => Topic started by: KBkustoms on June 30, 2006, 09:02:29 AM

Title: Multi Movie Flash ... shows blank???
Post by: KBkustoms on June 30, 2006, 09:02:29 AM
Ive been using Flash on my front page blocks for quite awhile, but recently decided to start showing some clips from an upcoming dvd (hopefully soon) and instead of having one heavily bloated swf file for viewers to download as soon as the page loads, (as it is now... www.kbkustoms.com ).....I tried having one small swf movie loop with links to external swf movies, so the main page loads quicker.

Im running TP 086 and SMF 107

This link is a test html page (http://www.airbrushdiecast.com/kbkustoms/grafix/flash/FlashTest_Intro.htm) containing the swf file that I "want" to add to a javascript/html block.
BEWARE though, the two movies that are linked there, are 2.5 - 3 mb 30 sec movies...might not be the fastest downloads.

So apparently the flash file(s) itself is working as intended....

The problem is when I try to make/edit frontpage blocks within TP.....although Im using the same (standard) object / embed code in the blocks (javascript/html) as previously functional flash movies (self contained)....the new flash file (links to external movies) is either displayed blank to begin with or the first movie loop shows fine, but when clicked...the links to ext. swf movies result in "blank".
Obviously the new swf file works in that test html page link, but, not when pasted in a frontpage block within TP/SMF.

This is the code I have in the block to call the flash movie.  Is there a different way / code???
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="443" height="252" align="middle">
        <param name=movie value="/flash/websiteINTRO3_flash.swf">
        <param name=quality value=high>
        <param name="wmode" value="transparent">
        <embed src="/flash/websiteINTRO3_flash.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="443" height="252" align="middle">
        </embed>
      </object>


ANY ideas???

Ive tried all themes icluding the SMF default...same in all...and I wouldnt think it was a "browser" problem because the same files work fine in that html test page...I got IE6 though..cant use FF.

My main site will show the existing semi bloated swf file near the top...and the problematic block near the bottom...look for "TESTING"..cant miss it!!  LOL!!!

THANKS for any help!
Kevan
www.kbkustoms.com
Title: Re: Multi Movie Flash ... shows blank???
Post by: akulion on June 30, 2006, 09:08:59 AM
The code you are using above is outdated and will give issues with IE and some other browsers in the future


Please click the link below for more information and a code generation engine for flash files:

Kirupa: Flash Embed issue (http://www.kirupa.com/developer/flash8/flash_fix.htm)
Title: Re: Multi Movie Flash ... shows blank???
Post by: KBkustoms on June 30, 2006, 09:24:23 AM
Thanks akulion ... I did see that link, and tried the "click on it first" thing...didnt seem to help, still get blanks, ...clicking on these blanks doesnt do anything either.

And at this moment, I am still a little confused about where the "js" file goes... mentioned in the link you gave??  I better go read it again...maybe it will sink in...doh!!! lol

Thanks Again :)

PS.......if this were the problem though...wouldnt the test page I linked above get the same issues with the older "embed" code in use???
Title: Re: Multi Movie Flash ... shows blank???
Post by: KBkustoms on June 30, 2006, 10:12:43 AM
Well, Ive generated the code via the link from akulian...

<script type="text/javascript" src="flashobject.js"></script>

<div id="flashcontent" style="width: 443px; height: 252px"></div>

<script type="text/javascript">
var fo = new FlashObject("/flash/websiteINTRO3_flash.swf", "animationName", "443", "252", "8", "#FFFFFF");
fo.addParam("allowScriptAccess", "sameDomain");
fo.addParam("quality", "high");
fo.addParam("scale", "noscale");
fo.addParam("loop", "false");
fo.write("flashcontent");
</script>


pasted that into a JS/html block, uploaded the "flashobject.js" file to the same folder as the movies are contained in, (I think that was where it went anyway :-\ but...still not working.  Plus, I get a "debug" popup when I load the page with that new flash script.  "Error : Flash Object undefined"

What did I miss  / do wrong? 
Title: Re: Multi Movie Flash ... shows blank???
Post by: G6Cad on June 30, 2006, 10:14:08 AM
Try to put the .js file to your forum root instead.
Title: Re: Multi Movie Flash ... shows blank???
Post by: KBkustoms on June 30, 2006, 10:21:32 AM
Thanks  G6.....I did that....and no longer get the debug error....plus the file shows! 
HOWEVER....its still the same as before. 
When one of the external file links is clicked...it goes blank, nothing loads.

ALSO....I just tried to replace the old embed/object code within html tables instead of straight into an "empty" JS/html block....and that results in "total blank"...not even the the parent swf movie plays/shows.
Title: Re: Multi Movie Flash ... shows blank???
Post by: IchBin on June 30, 2006, 01:30:09 PM
If it works in the regular html file with your code, maybe you should try and use a phpbox instead.

Create a PHP Block and add this code:

include('path/to/your.html');
Title: Re: Multi Movie Flash ... shows blank???
Post by: akulion on June 30, 2006, 02:01:36 PM
I think the problem is this.....

In your block you are calling the swf file from the following folder

/kbkustoms/grafix/flash/

However your SMF folder path is different

/kbkustoms/forum/smf/

Inside your flash file you are making the following call:



on (release)
{
    gotoAndStop(37);
    loadMovieNum("FlameWheelMovie.swf", 1);
}



So what the flash file is doing is looking for the required file in:

/kbkustoms/forum/smf/

So try the following and let me know if it works or not

Modify the action script inside your flash to this:



on (release)
{
    gotoAndStop(37);
    loadMovieNum("http://www.airbrushdiecast.com/kbkustoms/grafix/flash/FlameWheelMovie.swf", 1);
}



Give it a try and it should work :)
Title: Re: Multi Movie Flash ... shows blank???
Post by: KBkustoms on June 30, 2006, 10:33:46 PM
WOO HOO!!!!!  SUCCESS!!!!! ;)  :)

THANKS akulion!!!
absolute path urls did the trick!!

You know...it never fails to surprise me how something that "should be" an easy task, turns into a lengthy ordeal all of a sudden!!  I didnt have a clue about that "embed tag" code being outdated (or whatever the prob was) and because of the other flash graphics I had in use not having issues...I certainly never suspected it was the main problem.
In my own defense though....EARLY on in this little dilemma...I actually did try the absolute full path urls, but it didnt make any difference at THAT time, so, I disregarded that as part of the problem and just kept using the relative urls ... didnt occur to me at the time that it could be (or become) the main problem!

THANKS FOR THE HELP FOLKES!!!!
Ich....you too!!  I may try that php block idea sometime too!!

Kevan
KB Kustoms
Title: Re: Multi Movie Flash ... shows blank???
Post by: akulion on June 30, 2006, 10:52:12 PM
You are welcome :D Glad we could help you out
Title: Re: Multi Movie Flash ... shows blank???
Post by: KBkustoms on July 01, 2006, 04:52:33 AM
On a "side observation" .. lol... I just viewed the site on another computer, and actually "saw" the effect that you mentioned (click to activate).  Until then, I had not had a problem with viewing/using any flash app though...apparently because I am still running win98 on this particular system.  Appears to only affect ME or higher OS.

But that is why this issue seemed to "sneek up" on me...XP isnt my "daily driver" ;) DOH!!!

THANKS AGAIN for the eye opening advice!! :)