Is there same method to upload a flash animated file as to upload an image?

kindly reply soon..?

Dani AI

Generated

Short answer: yes — you upload a .swf the same way you upload an image (server just stores bytes) but modern browsers will usually not play it because Flash was retired in 2020. For historical context, Flash Player reached end-of-life on December 31, 2020 and Adobe (and the major browser vendors) blocked/disabled Flash support afterward. (adobe.com)

Practical options (pick one depending on whether you need interactivity or just the animation):

  • Convert to a video (MP4) and embed with HTML5 <video>. This preserves playback on phones and modern browsers; Adobe Animate can export video/MP4 from your .fla. Use the <video> tag so browsers show controls and fallbacks. Example:

    <video controls width="640">
      <source src="animation.mp4" type="video/mp4">
      <p>Download: <a href="animation.mp4">animation.mp4</a></p>
    </video>

    ()

  • Re-publish as HTML5 Canvas (if you created the animation in Animate) so interactivity remains in JS/CANVAS. ()

  • Use a Flash emulator like Ruffle to run many SWFs in-browser without the old plugin. Include Ruffle via CDN (or self-host) and it will polyfill old <object>/<embed> tags, or use its JS API for more control. Example polyfill include:

    <!-- place before </body> -->
    <script src="https://unpkg.com/@ruffle-rs/ruffle"></script>
    
    <object data="yourmovie.swf" type="application/x-shockwave-flash" width="800" height="600">
      <p>Fallback: provide an MP4 or HTML5 version here.</p>
    </object>

    (ruffle.rs)

Quick troubleshooting/checklist (answers to issues raised by , , and ):

  • Upload in binary mode (FTP) and confirm file permissions. (stackoverflow.com)
  • If using Ruffle, ensure your server serves .wasm with MIME type application/wasm and set CORS correctly if SWFs come from another domain. (github.com)
  • If you publish from Animate or Dreamweaver, upload all generated JS/asset files from the publish folder; missing files break playback. ()

If you only need the visual animation and not Flash-era interactivity, MP4 or HTML5 Canvas is the simplest, most future-proof solution.

Recommended Answers

All 8 Replies

Yes. There is no difference between file types in file uploads. The browser and server do not care what file type it is. Only your server side code does.

bt its not displaying that animation in the explorer..?

That's probably not a file upload issue as the file is unchanged during upload.

This is most likely one of these:

- The browser doesn't have the right player.

- The file is too big for the cache or the ISP.

- The ISP is blocking certain file types.

- You have a case error in the filename.

- It is taking too long to download.

Here is a dreamlinestudio tutorial on how to upload a flash website, it's a flash tutorial but I followed it using my static html files and worked just fine. I doing like reading, viewing it makes it super easy for me.

Upload A Website

Is there same method to upload a flash animated file as to upload an image?

kindly reply soon..?

Follow these steps while handling you r flash.
1. you make sure you reduce the size of the flash as far as you can
2. you make sure you publish you flash from .fla to .swf
OR instead of 2. above you select export > movie from the file menu.
in export dialog box, change the version of flash player to smaller ones like from 8 to 4.
it may be that the browser does not support the current player.

Thanks to all of you for guidance

You use old version of flash. Then your html editor is later version. It will not display because of incompatibility. Another reason is you are not uploading java script generated by the dreamweaver to run the swf file.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.