Flash file location
Last Post 11/11/2009 3:37 PM by Steve. 6 Replies.
Author Messages
Steve Livesley
Nuker
Nuker
Posts:16


--
11/06/2009 12:47 PM
    Hi, I was asked to move and then look after an existing website. Predictably and unfortunately, the old support company took the website down immediately they were informed of termination by my new client. Fortunately I had taked screenshots, copied images and text and so forth and was able to recreate the site using DNN with one small problem. There is a Flash area (we'll call it Main.swf) which calls any of several sub-flash files (sub.swf). I have all the files and it all works perfectly on my local PC if I run the main.swf file from folder MAIN (for example, actual names are not relevant) and place all the sub.swf files in MAIN\images. Unfortunately, while main.swf works fine on my DNN website, it is not finding the sub.swf files - probably because I haven't found the correct location for them.
    I managed to recompile the main.swf file and the relevant entries look like this:  loadMovieNum('images/sub1.swf', 20).
    Assuming that I don't have the expertise or applications to change or rebuild the .swf file, where should I locate the main.swf and the sub.swf files in respect to Portals\0?
    Any help would be appreciated as it's the only item which is holding me up.
    Joseph Craig
    DNN MVP
    Posts:11667


    --
    11/06/2009 6:58 PM
    You would need to look at the URLs from which the webserver is trying to load the sub.swf files

    Most likely, your problem is one of relative URLs. You might want to try /images/sub.swf. If you can get at an error message when it fails to find the files, you should be able to see where it is looking, rather than where the files are located.

    Joe Craig, Patapsco Research Group
    Complete DNN Support
    Steve Livesley
    Nuker
    Nuker
    Posts:16


    --
    11/06/2009 9:40 PM
    Thanks for that. When main.swf is running on the website and it should be showing sub.swf as well, it just shows "transferring files from www.myclient.com" in the lower left corner of the browser (Mozilla Firefox). IE8 won't show it at all.
    Steve Livesley
    Nuker
    Nuker
    Posts:16


    --
    11/06/2009 10:49 PM
    I copied the sub.swf files into as many places as I could and it eventually worked (in FF), thanks. Now, if I can only get it all to work in IE!!!
    www.totalmowers.co.nz/products.aspx
    Steve Livesley
    Nuker
    Nuker
    Posts:16


    --
    11/06/2009 11:39 PM
    Yay! I managed to fix the IE problem too. It's probably something that everyone in the world knows - except me, but I'll put it here in case it helps someone else.
    The code on the webpage was:

    < object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" xcodebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" height="315" width="640" >
    < param name="Movie" value="total_mowers_products.swf" >
    < param name="Quality" value="high" >< embed type="application/x-shockwave-flash" src="https://www.dnncreative.com/Portals/0/main.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" height="315" width="640" >< / object>

    I changed it to:
    < embed type="application/x-shockwave-flash" src="https://www.dnncreative.com/Portals/0/total_mowers_products.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" height="315" width="640" >

    Joseph Craig
    DNN MVP
    Posts:11667


    --
    11/07/2009 5:28 AM
    Pasting code into messages can have unexpected and undesirable results. Generally this is because the html tags are treated as tags and not as part of the message text. It's better to attach code as a file.

    Joe Craig, Patapsco Research Group
    Complete DNN Support
    Steve
    Nuke Active Member
    Nuke Active Member
    Posts:33


    --
    11/11/2009 3:37 PM
    I've recently worked a bit with a flash file that points to dependant files on one of my sites. I found that you have to speficy the file location a bit for dnn to accurately find the files. For instance if you put the flash (or xml files for that matter) in a directory on the portal root called flash/subfiles, you would need to specify that particular location in the markup that calls out the flash and it's dependants. In this example, it would be portals/0/flash/subfiles/file.swf. Just putting in the root will not work. You have to specify the portals/#/directorystring to get the dependants to work correctly. Hope that helps you.


    ---