A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Displaying .swf file from a user input

  1. #1
    Junior Member
    Join Date
    Jul 2002
    Posts
    3

    Displaying .swf file from a user input

    Hi all,

    I am having an issue displaying .swf files all of which are located on my server.

    Background:

    I have a small form which allows a user to enter a 4 digit number, click on submit and display a .swf file (a small map). I have an sql query that looks up the user entered number and return the file name associated with the number.

    I can echo out the query result which is correct.

    I then use a PHP var in side the code below to display the require .swf file.

    Foir some reason this is not working. Can anyone see what or where I am going wrong.




    Code:
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','1100','height','800','src','<?php echo $flashFileID;?>','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','<?php echo $flashFileID;?>' ); //end AC code
                       </script>
                         <noscript>
                           <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="1100" height="800">
                             <param name="movie" value="<?php echo $roomPath."".$row_RoomLocator['flashfile'];?>" />
                             <param name="quality" value="high" />
                             <embed src="<?php echo $roomPath."".$row_RoomLocator['flashfile'];?>" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="1100" height="800"></embed>
                             </object>
                         </noscript>
    Many thanks for any help you can provide.

    Cheers,

    Dereck

  2. #2
    Registered User
    Join Date
    Feb 2001
    Posts
    13,041
    Hi,

    is is intentional that you use different movie inside the script vs noscript sections?

    Musicman

  3. #3
    Junior Member
    Join Date
    Jul 2002
    Posts
    3
    Hi Musicman,

    sorry, that was a mistake. New code:
    Code:
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','1100','height','800','src','<?php echo $roomPath."".$row_RoomLocator['flashfile'];?>','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','<?php echo $roomPath."".$row_RoomLocator['flashfile'];?>' ); //end AC code
                       </script>
                         <noscript>
                           <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="1100" height="800">
                             <param name="movie" value="<?php echo $roomPath."".$row_RoomLocator['flashfile'];?>" />
                             <param name="quality" value="high" />
                             <embed src="<?php echo $roomPath."".$row_RoomLocator['flashfile'];?>" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="1100" height="800"></embed>
                             </object>
                         </noscript>
    But it still will not load the selected movie, any ideas as to why this should not work.

    Regards,

    Dereck

  4. #4
    Junior Member
    Join Date
    Jul 2002
    Posts
    3
    Hi again,

    If I test the script out by subsituting the PHP var for a .swf file it works fine.

    It it because the Flash part of the script is not getting the PHP var, is there a way I can test this out.

    Regards,

    Dereck

  5. #5
    Registered User
    Join Date
    Feb 2001
    Posts
    13,041
    did you try a "view source" on that php page?

    Musicman

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