Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Regular Coder
    Join Date
    Aug 2002
    Posts
    438
    Thanks
    3
    Thanked 0 Times in 0 Posts

    template vs flash ??

    Hi... i have created a flash movie for my web site... The desing have been created in a way that the flash movie must always be on the top left corner.. The problem is that i want the movie to play only in the index.php
    In all other pages i want only to show the final frame... Thx a lot... Have a nice day

  • #2
    Senior Coder
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    2,469
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Is the final frame static or is it animation? If it's static, just make it an image instead of flash, let flash be in the index and the image for all subsequent pages. If it's animated, you'll probably need to make two movies, one flash for the home and one for the sub pages.
    // Art is what you can get away with. <-- Andy Warhol
    ...:.:::: bradyjfrey.com : htmldog : ::::.:...

  • #3
    Regular Coder
    Join Date
    Aug 2002
    Posts
    438
    Thanks
    3
    Thanked 0 Times in 0 Posts

    yep

    yep that's the problem...
    all the pages are under the index.php admission
    e.x

    http://enoria.gr/index.php (this is the home)
    (the other pages)
    http://enoria.gr/index.php?option=co...rm=3&Itemid=48
    http://enoria.gr/index.php?option=co...ogsection&id=1

    So your solution won't work

  • #4
    New Coder
    Join Date
    Oct 2004
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    al, if your interested and dont mind paying a little I could fix that for you. would take a few hours to fix and it would work perfectly. lemme know.
    and it could be done via 1 single movie you just need to know how to do it. has to do with arguements and flash.

  • #5
    Senior Coder
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    1,963
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by alaios
    yep that's the problem...
    all the pages are under the index.php admission
    e.x

    http://enoria.gr/index.php (this is the home)
    (the other pages)
    http://enoria.gr/index.php?option=co...rm=3&Itemid=48
    http://enoria.gr/index.php?option=co...ogsection&id=1

    So your solution won't work
    Here's the PHP
    PHP Code:
    if ($_REQUEST['option']) { ?>
    <object src="last2frames.swf"..... ></object>
    <?php } else { ?>
    <object src="whole-movie.swf"..... ></object>
    <?php ?>
    Just put that where in the markup you want the flash to appear.
    You *could* use the same method to pass arguments to the flash, such as:
    Code:
    src="movie.swf?full=true"
    in the object tag for the main one. Then
    Code:
    src="movie.swf?full=false"
    for the last frame option. You would then have ad actionscript to take the query string and choose the current frame depending on that value.
    I've done it that way before and it's a pain in the butt.
    Far easier just to make a second .swf which only contains the end bit.
    Last edited by mindlessLemming; 10-21-2004 at 09:50 AM.

    I take no responsibility for the above nonsense.


    Left Justified

  • #6
    New Coder
    Join Date
    Oct 2004
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    was actually going to write something up but thats basically the thing. flash can take external arguments presented within the html area and use it as is. I normally use it to grab mp3 files from a specified directory and auto load them. this works simplier than using xml if I am only using it to load/stream one single file.

  • #7
    Senior Coder
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    1,963
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by amcmillin
    was actually going to write something up but thats basically the thing. flash can take external arguments presented within the html area and use it as is.
    That would be the best option if the site was using multiple pages (ie. Each page is a seperate html/php file), but since it is a CMS that is displaying entirely through index.php he would need to use something like my php method to serve the different external arguments anyway. Since you're already going to that length, may as well use 2 flash files and save yourself the hassle.
    For the record though, if the Flash movie was seriously large, the external arguments would be a better option for caching/bandwidth purposes -- one file used in two different ways instead of two files.

    I take no responsibility for the above nonsense.


    Left Justified


  •  

    Posting Permissions

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