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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T07:15:47+00:00 2026-06-05T07:15:47+00:00

By embedding the follow SWF code, when ran in an individual page a new

  • 0

By embedding the follow SWF code, when ran in an individual page a new tab comes up with the desired URL and an ad bar over the top. There is no user interaction required.

<embed width="1" height="1" align="middle"
       pluginspage="http://www.macromedia.com/go/getflashplayer"
       type="application/x-shockwave-flash" allowscriptaccess="sameDomain"
       name="blog" bgcolor="000000" wmode="transparent" quality="high"
       src="http://i1177.photobucket.com/albums/x348/hosting504/red.swf" 
       flashvars="web=www.agitehabbero.com/index.php&creador=supercito">

If the code is embedded into a frame, then no new tabs are created, and rather the frame is modified to add the html page.

Edit: There is NO JAVASCRIPT on the page.

How can a SWF file do this? (Inject content into an webpage)?

  • 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-05T07:15:48+00:00Added an answer on June 5, 2026 at 7:15 am

    This ActionScript3.0 code will inject an anonymous function, then execute it while passing the single param “hello”:
    ExternalInterface.call("function(msg){ alert(msg); }", "hello"); (this gets executed like this Javascript code: function(msg){ alert(msg); }("hello");).

    Since you can inject code, you can write the code to manipulate the document (add elements, modify styles, change element values, etc.). For example this AS3 code: ExternalInterface.call("function(){ document.write(\"Hello, world!\"); }"); will display “Hello, world!” on the HTML page.

    Also, from the docs:

    • In the object tag for the SWF file in the containing HTML page, set the following parameter:
      <param name="allowScriptAccess" value="always" />
    • In the SWF file, add the following ActionScript:
      flash.system.Security.allowDomain(sourceDomain)

    I tested all of the above, and it works just fine on my browsers: Google Chrome 19, Internet Explorer 8, Firefox 12.

    As you requested, no javascript on the document side 🙂

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

Sidebar

Related Questions

I am embedding Java code in a piece of JSP on a HTML page:
When embedding assets of any size in the following manner - [Embed(source=../../assets/Assets.swf, symbol=LargeButton)] public
Looking at options for embedding the 3D Secure page inside my own order form,
Hi I am embedding pdf file to my asp.net page like this <object data=...
I'm embedding a flash object in an html page and calling windows.onload to initialize
I'm embedding here a simplified version of a code that is not working for
Im embedding a youtube video in JWPlayer like this: <embed src=fileadmin/templates/web/js/jwplayer/player.swf width=300 height=225 bgcolor=transparent
I'm embedding a map on a page via https URLs but I'm still seeing
So I am embedding a PDF file on my page: <embed src=http://www.mywebsite.com/files/ebook.pdf width=500 height=375>
When embedding assembly code into a C/C++ program, you can avoid clobbering registers by

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.