Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3875330
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T22:15:18+00:00 2026-05-19T22:15:18+00:00

I don’t work with Flash and consequently know nothing of it, but I have

  • 0

I don’t work with Flash and consequently know nothing of it, but I have the task of embedding a swf film into a web page. I know nothing about the swf’s internal design, other than it plays a short film. I’d like to control when the swf starts playing, rewind it (it will be played infinitely), and possibly even cache it in the browser. It will be part of a Javascript-powered rotation of images, in which the <img> element will be temporarily replaced with an <object> for the swf.

My question is do swf files have an interface for Javascript built-in when compiled (Actionscript I think?), or would this entirely depend on the author’s decision to include such code? If it is dependent on the author’s inclusion of the code, are there any possible tests I can run to see what methods might be available?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T22:15:18+00:00Added an answer on May 19, 2026 at 10:15 pm

    Interesting question. Unfortunately, there aren’t really any easy answers to this – there are a million ways to do anything in Flash, and depending on what the original developer did you have various things you can try.

    The Flash Player provides an ExternalInterface method right in the native API, so every Flash application CAN call javascript. If the developer configured it, you can even register an internal callback method in flash to respond to javascript commands – so you can get it working both ways.

    That said, unless the developer specifically put that in because you wanted it it’s unlikely he did it, and there’d be no way for you to see it anyway.

    Depending on how the swf is built, there are a couple of options that you have. First and foremost, you can try adding the LOOP=TRUE parameter to your embed code (more info here). If this is a basic timeline animation, or if the frames of your video clip have been dumped onto the timeline and it’s using Flash’s own animation tools to play it then this might be all you need.

    If that doesn’t work, though, things get a bit more complex. You could try to decompile the .swf using one of any number of Flash decompilers – that might give you some insight into what methods are there, how it’s structured, etc. It’s not exactly a fine science, though – you’re in for some trial and error.

    If in the process of introspecting the swf you learn, for instance, that it has an object called “video” of type “Video” then you can write a wrapper .swf, load in your target swf and have your wrapper interface with JavaScript. If all you’re looking for is a loop, the video object might even have an autorepeat property or something to that effect.

    That was a bit long winded, but I hope it helped. Leave a comment if you have any questions!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Don't know whats exactly going on, but it's definitely killing my time for nothing.
Don't know if this is possible, but I have some code like this: val
Don't know why but I can't find a solution to this. I have 3
don't know better title for this, but here's my code. I have class user
don't know if the title describes anything about what I'm trying to say but
Don't ask me how but I'm in a situation where I have DCPs published
Don't really know how to formulate the title, but it should be pretty obvious
Don't know how to google for such, but is there a way to query
Don't know why but font is not displaying.Please help. CSS(in css folder): style.css: @font-face
I don't know why, but this code worked for me a month ago... maybe

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.