flash media/ html

This is a discussion on flash media/ html within the Tech Board forums, part of the Community Boards category; i have a question. i made my first flash .fla file. it will be the splash screen to intering my ...

  1. #1
    essence of digital xddxogm3's Avatar
    Join Date
    Sep 2003
    Posts
    589

    flash media/ html

    i have a question.
    i made my first flash .fla file.
    it will be the splash screen to intering my website.
    what html element would i use to have it show the .fla file at the entrance to the site?
    also why will the follwing not work for showing it as a banner?
    Code:
    <img src="somebanner.fla">
    am i missing some steps?
    i have a couple books, but have not seen the code to insert the items into the page.
    does anyone know of a good/prefered website that may have the code for my review?
    i'm using macromedia studio mx 2004 professional.
    thanks for any help you can provide.
    Last edited by xviddivxoggmp3; 12-26-2004 at 03:42 PM.
    "Hence to fight and conquer in all your battles is not supreme excellence;
    supreme excellence consists in breaking the enemy's resistance without fighting."
    Art of War Sun Tzu

  2. #2
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    An excerpt from my HTML reference, the embed tag. The first indentation is a list of possible parameters, and the second indentation is a list of options you can use for a certain parameter. I imagine you won't have to use much more than the SRC, TYPE, and maybe PLUGINURL tag. I don't know where the JAR file for Flash is kept. The Flash website may be able to tell you.

    Code:
    EMBED - Embedded plug-in 
    SRC="x" - Specifies plug-in data file 
    TYPE="x" - Specifies MIME type 
    PLUGINSPAGE="x" - Specifies installation help URL 
    PLUGINURL="x" - Specifies location of JAR file 
    ALIGN="x" - Specifies plug-in alignment 
    	 "BOTTOM" - Specifies bottom alignment 
    	 "LEFT" - Specifies left alignment 
    	 "RIGHT" - Specifies right alignment 
    	 "TOP" - Specifies top alignment 
    BORDER=#n - Specifies border in pixels 
    FRAMEBORDER="x" - Specifies status of border
    edit: If you want to display a flash file as a banner, IMG won't work simply because flash is not really an "image" file. You can use the EMBED tag for this as well.
    Last edited by sean; 12-26-2004 at 03:47 PM.

  3. #3
    essence of digital xddxogm3's Avatar
    Join Date
    Sep 2003
    Posts
    589
    Thanks for the help.
    The clues that fixed the issue was the object and/or embed.
    Another question.
    Does anyone know of a list of reasons why flash looks different in other browsers?
    I was writing it on xp with ie and then tried the same movie on linux and netscape.
    Two completely different monsters.
    The example is my banner for my website linked below.
    This is my first Flash .swf ever. I would call it my "hello world" flash.

    [edit1]
    jar file for flash movies?
    what does the flash jar have inside it?
    [/edit1]
    Last edited by xviddivxoggmp3; 12-29-2004 at 04:58 PM.
    "Hence to fight and conquer in all your battles is not supreme excellence;
    supreme excellence consists in breaking the enemy's resistance without fighting."
    Art of War Sun Tzu

  4. #4
    essence of digital xddxogm3's Avatar
    Join Date
    Sep 2003
    Posts
    589
    so is there a common native flash player that is openly distributed in all browsers?
    perhaps one of the older versions?
    If I write for a common flash player located in all browsers, will the movies produce similar results when displayed to the client node dispite the os or browser?
    "Hence to fight and conquer in all your battles is not supreme excellence;
    supreme excellence consists in breaking the enemy's resistance without fighting."
    Art of War Sun Tzu

  5. #5
    and the Hat of Clumsiness GanglyLamb's Avatar
    Join Date
    Oct 2002
    Location
    between photons and phonons
    Posts
    1,109
    since some browsers use the embed tag and others the object tag its best to just use them both like this

    Code:
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
        codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=
        6,0,40,0" width="90" height="20">
        <param name="movie" value="Resources/swfs/welcome.swf">
        <param name="quality" value="high">
        <param name="play" value="true">
        <embed src="Resources/swfs/home_button.swf" quality="high" width="90" height="20"
      	play="true" type="application/x-shockwave-flash"
      	pluginspace="http://www.macromedia.com/go/getflashplayer"></embed>
      </object>
    This is thte way we were taught to display swf's to make sure they display in every browser, i just copy n paste the source from one of my projects i had to do some time ago, heres the link so you can instantly check wether its working or not the way you want it:
    http://gradict.kahosl.be/jan.audenae...ech/index.html

    //edit
    I'd also advise you not to use frames, actually because of numerous reasons but imo the most important one : bookmarking, when now someones wants to bookmark a page he will just bookmark one of the frames, if lucky he' ll bookmark the right frame and still end up on the correct page but still...
    And its not too much extra work to drop the frames once you have the layout of the site it'll come down to a couple more ctrl-a, ctrl-c and ctrl-v's
    Last edited by GanglyLamb; 12-31-2004 at 08:51 AM.

  6. #6
    essence of digital xddxogm3's Avatar
    Join Date
    Sep 2003
    Posts
    589
    Quote Originally Posted by GanglyLamb
    Code:
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=
    6,0,40,0" width="90" height="20">
    <param name="movie" value="Resources/swfs/welcome.swf">
    <param name="quality" value="high">
    <param name="play" value="true">
    <embed src="Resources/swfs/home_button.swf" quality="high" width="90" height="20"
    	play="true" type="application/x-shockwave-flash"
    	pluginspace="http://www.macromedia.com/go/getflashplayer"></embed>
    </object>
    ... This is thte way we were taught to display swf's to make sure they display in every browser
    is this line in linux directory format?
    I'm assuming that i would need to reference the drive location?
    Code:
    c://pathtofile/foo.swf
    "Hence to fight and conquer in all your battles is not supreme excellence;
    supreme excellence consists in breaking the enemy's resistance without fighting."
    Art of War Sun Tzu

  7. #7
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,825
    You use Linux directory format because that's the same format for internet URLS. And you don't use drive letters (first of all, Linux doesn't use drive letters). You can either do a relative URL, as shown above, or you can use an absolute URL, which would start with "http://", for example.

  8. #8
    Bob Dole for '08 B0bDole's Avatar
    Join Date
    Sep 2004
    Posts
    618
    always use relative URLs, please, for the sake of god...

    it'll save a lot of time later down the road, it's like commenting your code, it'll save you time later, TRUST me
    Hmm

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Speculative media
    By VirtualAce in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 07-17-2008, 10:06 PM
  2. Please Help - C code creates dynamic HTML
    By Christie2008 in forum C Programming
    Replies: 19
    Last Post: 04-02-2008, 07:36 PM
  3. uninstalling windows media player 10
    By MisterSako in forum Tech Board
    Replies: 0
    Last Post: 05-27-2006, 11:53 AM
  4. graphics to html, to flash, to scripts, now on to programming!
    By joymelody in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 05-09-2005, 11:16 AM
  5. Codec Bitrates?
    By gvector1 in forum C# Programming
    Replies: 2
    Last Post: 06-16-2003, 08:39 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21