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 8111129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T01:59:42+00:00 2026-06-06T01:59:42+00:00

Ok so I have an swf file that loads into the webview from the

  • 0

Ok so I have an swf file that loads into the webview from the sdcard. I was wondering if anyone knew if it was possible to set the “zoom” and position of the view once the page is loaded?
Then how could I have the view focus on the swf file without the user having to zoom in and scroll the the top of the article. Thanks.

  • 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-06-06T01:59:44+00:00Added an answer on June 6, 2026 at 1:59 am

    you can use this code

    public class FLVplayerActivity extends Activity {
        WebView webView;
        String htmlPre = "<!DOCTYPE html><html lang=\"en\"><head><meta charset=\"utf-8\"></head><body style='margin:0; pading:0; background-color: black;'>";  
        String htmlCode = 
                " <embed style='width:100%; height:100%' src='http://www.platipus.nl/flvplayer/download/1.0/FLVPlayer.swf?fullscreen=true&video=http://www.platipus.nl/flvplayer/download/pl-600.flv&autoplay=true' " +
                "  autoplay='true' " +
                "  quality='high' bgcolor='#000000' " +
                "  name='VideoPlayer' align='middle'" + // width='640' height='480' 
                "  allowScriptAccess='*' allowFullScreen='true'" +
                "  type='application/x-shockwave-flash' " +
                "  pluginspage='http://www.macromedia.com/go/getflashplayer' />" +
                "";
        String htmlPost = "</body></html>";
    
        @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.main); 
    
            webView = (WebView)findViewById(R.id.webview);
    
            webView.getSettings().setJavaScriptEnabled(true);
            webView.getSettings().setAllowFileAccess(true);
            webView.getSettings().setPluginsEnabled(true);
    
                webView.getSettings().setSupportZoom(false);
                webView.getSettings().setAppCacheEnabled(false);
                webView.getSettings().setAllowContentAccess(true);
                webView.getSettings().setCacheMode(webView.getSettings().LOAD_NO_CACHE);
    
            webView.setScrollBarStyle(View.SCROLLBARS_OUTSIDE_OVERLAY); //thanks Patrick!
    
            //webView.loadUrl("file:///android_asset/index.html");
            //htmlCode = htmlCode.replaceAll("@VIDEO@", "file:///android_asset/20051210-w50s.flv");
            webView.loadDataWithBaseURL("file:///android_asset/FLVPlayer.swf", htmlPre+htmlCode+htmlPost, "text/html", "UTF-8", null);  
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Load an SWF into a WebView I have a .swf file and
I have a .swf file that I try to browse to and it loads
I have a flex application that loads an external swf file. I created the
I have Flash application (main_container.swf) that loads another swf file (page1.swf). I want to
I have a flash movie that loads images dynamically from an xml file. I
I have created a SWF file using Flash that loads an FLV file on
I have a SWF file that connects to a remote flash server and receives
I have this swf (flash) file that provides the json that needs to be
I have some AS2 code that opens a SWF file through an HttpHandler. I'm
I have a situation where my main SWF file loads many external SWF files.

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.