What can i use as an alternative to Flash?

Discussion in 'General Off-Topic Chat' started by sodaddict, Jun 3, 2017.

  1. sodaddict
    OP

    sodaddict GBAtemp Regular

    Member
    147
    44
    Mar 18, 2016
    I am making a joke website (not a screamer site) and i would like to add a simple flash animation (.swf file) to play at the front page, but then i found out that certain browsers and people are no longer trusting Flash and are disabling it on their browsers, but i would like the animation to still play on the site.

    Is there some sort of alternative for Flash i can use, which does the same thing as Flash? Just play an animation with sound and all, and that its trusted by many and/or all. That's all i really want.
     
  2. catlover007

    catlover007 GBAtemp Regular

    Member
    145
    164
    Oct 23, 2015
    Germany
    render it as a video and embed it using the html5 video tag

    if it's a vector animation you could try exporting it to an animated SVG
    (I'm not an absolute expert of these web technologies, so there might be a better way of doing it)
     
  3. VinLark

    VinLark This machine kills bourgeois sentimentality.

    Member
    4,068
    4,704
    Jun 11, 2016
    Trinidad and Tobago
    4chan and other wonders of the internet
    Convert the animation as something else?
     
  4. gnmmarechal

    gnmmarechal Kirigiri > Naoto

    Member
    GBAtemp Patron
    gnmmarechal is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    4,477
    2,665
    Jul 13, 2014
    Portugal
    https://gs2012.xyz
    Flash is a thing of the past. I'd say play it as a video. HTML5 supports that.
     
  5. sodaddict
    OP

    sodaddict GBAtemp Regular

    Member
    147
    44
    Mar 18, 2016
    Can i do this without player controls showing up automatically? And can i make the animation loop automatically?
     
  6. erman1337

    erman1337 GBAtemp Maniac

    Member
    1,211
    928
    Sep 27, 2015
    Belgium
    Brussels
    Don't include the controls attribute and add the loop attribute to the <video> element
     
    Jacklack3 and gnmmarechal like this.
  7. RoseyDreamy

    RoseyDreamy TheKawaiiNeko

    Member
    116
    129
    Mar 25, 2017
    England
    Like this:
    <video autoplay loop>
    <source src="VIDEO URL" type="MIME TYPE OF VIDEO">
    </video>

    Make sure to provide two sources, one of an .mp4 and one of a .webm for different browsers.