A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Putting Flash movie in a webpage...

  1. #1
    Junior Member
    Join Date
    Jul 2007
    Posts
    5

    Putting Flash movie in a webpage...

    Hello, I was recently told by someone that they had set up their PHP webpage to include JPEG images and therefore could not use flash animations in their site. Is this true? I'm really new to flash and I haven't tried putting it into webpages myself yet, so any info here would be greatly appreciated.

    Thanks )

  2. #2
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,875
    hi welcome to FK... that sounds like a load of baloney ..a php page having images doesnt stop you from embeddign a flash movie in anyway whatsoever ..get more details of them and ask them why exactly they think flash cannot be added
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

  3. #3
    Junior Member
    Join Date
    Jul 2007
    Posts
    5
    Here is what she said: (fyi... she has a virtual pet website with chinchillas, and I animated some of the chinchillas, and that's when the problem started)

    I didn't think you could save animation in .jpg format. I thought it had to be .gif. My script is set up so that the name of the file is saved in the database but the extension (the .jpg part) is hard coded into the HTML so all pets have to be in .jpg format or they will show up as a broken image. I realize now that was a bad idea but the amount of time it would take to fix it is just too much!

  4. #4
    An Average User warpdesign's Avatar
    Join Date
    Apr 2002
    Location
    Southern California
    Posts
    331
    Hi, it sounds like it's a limitation she's coded into her site, it's not a limitation of PHP. So what she's saying is if your file name is "yourfile.jpg" the part before the period is saved in the database and her script just adds .jpg to it, so if you have "yourfile.gif" her script will pull "yourfile" from the database and add ".jpg" to the end of it and that file doesn't exist since it's yourfile.gif... Hope that made sense.

    Embedding Flash in a webpage is a little more complex than putting an image on there so having a PHP script that can do both images and Flash would be kind of complex.
    You know what they say:
    Teach a man to fish and you feed him for a lifetime.
    Unless he doesn't like sushi—then you also have to teach him to cook.

  5. #5
    Junior Member
    Join Date
    Jul 2007
    Posts
    5
    She would be replacing the current chinchilla jpegs with the animations, so I don't think the script would have to do both, but it sounds like it's still going to be a bit of a pain to go through and replace everything if that's how PHP works. I'm not familiar at all with trying to put this stuff in webpages, I'm just learning how to make it. I made an animated chinchilla just goofing off, and she really liked it. We're trading out her building/hosting my webpage in exchange for me doing the chinchillas for her. She doesn't want to have to go through and swap everything out, so we're trying to find a way to do, otherwise I'm just drawing the jpegs for her.

    Thanks, for helping me understand this!!

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