A Flash Developer Resource Site

Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Dec 2013

    Index HTML & SWF file

    I know the first page of the website needs to have an index.html file, then the other pages of a web site can be Flash/SWF files.

    I have made a web site and the first file is index.html (with my Flash SWF file embedded inside it), which is an intro page. Then I have a separate Flash/SWF file for the main functional web pages.

    What type of coding do I need as a button to open a completely separate Flash/SWF file, so it remains in the same browser window.

  2. #2
    Senior Member
    Join Date
    Nov 2012
    Hello BenSCR-
    Browsers need to have HTML wrappers around flash content. You don't need to load individual SWF files into the HTML page... You can load other SWF's into the main SWF file.

    I would check out the Loader class with ActionScript3.

    var myLoader:Loader = new Loader();
    myLoader.load(new URLRequest("The path to the .swf file you want to load");
    Hope this helps.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.