A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: Flash in phpBB header with loadMovie

  1. #1
    Senior Member
    Join Date
    Apr 2002
    Posts
    682

    Flash in phpBB header with loadMovie

    I'm trying to put Flash into a phpBB (forum software) header. I can do that fine. However, even if all my flash file are in the same folder as my header file (overall_header.tpl) where I'm embedding the Flash, my files I'm trying to load with loadMovie into the main Flash movie will not load. Everything except the loadmovie stuff works fine. If I load the flash movie in a regular HTML file, it loads the movies fine. Any ideas? Thanks.

  2. #2
    Who, What, Why ... ? Fraggs's Avatar
    Join Date
    Jul 2003
    Location
    Flashland .. where else ?
    Posts
    786
    Move the movie(s) out of the sub silver templates directory and into a folder of their own. The just reference to them in your overall_header.tpl file.

    Regards,

  3. #3
    Senior Member
    Join Date
    Apr 2002
    Posts
    682
    Thanks, I tried that already with no luck. What's the idea behind that helping it to work. I mean, it kind of makes sense, as I did try it, but I wasn't sure why it made sense.

  4. #4
    Junior Member
    Join Date
    Aug 2004
    Posts
    19
    try putting the source file in the 'includes' folder

  5. #5
    Senior Member
    Join Date
    Apr 2002
    Posts
    682
    I tried it, but it didn't work. Can you explain why you thought that was the solution?

  6. #6
    Junior Member
    Join Date
    Aug 2004
    Posts
    19
    Sorry, I didn't read your question correctly the first time.

    It sounds like the path in your actionscript to the other movies is incorrect.

  7. #7
    Senior Member
    Join Date
    Apr 2002
    Posts
    682
    No, as I said, it works fine alone. The external SWF's load fine if you just load the main swf (500x70.swf). It stops loading the external SWF's if embedded in overall_header.tpl. The main Flash loads fine, it's only the external files that do not load.

    Click it and see.
    http://www.aspirin99.com/forums/includes/500x70.swf

  8. #8
    Who, What, Why ... ? Fraggs's Avatar
    Join Date
    Jul 2003
    Location
    Flashland .. where else ?
    Posts
    786
    What code lines are you using in the overall_header.tpl ?

  9. #9
    Senior Member
    Join Date
    Apr 2002
    Posts
    682
    To embed the file, I'm just using the publish code generated by Flash as follows (I added spaces around the < to make it display:

    Code:
    < object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="500" height="70" id="500x70" align="middle" >
    < param name="allowScriptAccess" value="sameDomain" />
    < param name="movie" value="500x70.swf" />
    < param name="quality" value="high" />
    < param name="bgcolor" value="#ffffff" />
    < embed src="500x70.swf" quality="high" bgcolor="#ffffff" width="500" height="70" name="500x70" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />< /object>
    The only difference is that I'm adding the complete URL to the SWF as follows:

    Code:
    < embed src="http://www.aspirin99.com/forums/includes/500x70.swf" quality="high" bgcolor="#ffffff" width="500" height="70" name="500x70"  - etc
    In thinking about it, having to add the complete URL could be related to the issue, as I was forced to add the complete path to SWF even when I tried putting the files in the same folder as the overall_header.tpl. Unfortunately, adding the complete path to the external SWF's in the loadMovie code did not help. It's as if the php is obscuring the real path to my external files.

    You can see that it works fine in html as you can see here:

    http://www.aspirin99.com/forums/includes/500x70.html

    Thanks again.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center