Embed swf or html within a swf?

Is it possible to embed an swf or html file within another swf ...without using ActionScript?
AND

You cannot embed an html page in an swf page in any case.  If you import an swf with the intent to embed it into another swf, you can embed it, but if it has any actionscript it will be lost.  The only way to incorporate an swf into another swf without actionscript and still have its actionscript work is to copy the main tineline of the swf (ala its fla file) into a movieclip and copy that movieclip into the other swf.
It appears you had more to say but it was cut off if so.

Similar Messages

  • Creating an SWF to play within an SWF

    Basically I need to be able to play an SWF file within an SWF
    project. The project contains a layout of different navigational
    buttons. I wish for one of the buttons to go to a frame containing
    an older SWF project I created.
    Please help if you can.

    Even if the SWF played directly on the timeline it would
    still be ok. As long as you were able to alter it's X and Y
    positions. ( I really don't care too much about playing AS2 SWF's
    eather. I'm more concerned about AS3. Out with the old and in with
    the new)

  • Can we use flash lite 3.0 generated SWF in html as normal SWF?

    Hi all
    I would like to us the flash lite generated swf in a html page as normal flash file do.
    I would like to pass the flash vars to SWF(flash lite) and load the swf with the parameters
    is it necessary to have a flashlite 3 player in the mobile?
    any work around?
    thanks in advance.

    My problem is
    I have a html page which displays the list of videos when the user select the video from the mobile browser
    I need to load the SWF in the mobile with the selected video with options play and back
    as you said we cant pass FlashVars to SWF (not supported) is there any other option which full fill my requirement?
    thanks in advance.

  • FAQ: How do I load an external SWF file into a parent SWF file?

    A ton of Flash users visit Adobe’s we site every month wondering  about how to load an external SWF file from within another SWF.
    Adobe's own TechNote on the subject attempts to answer the basic question, along with some common follow-up questions, including:
    How do I load more than one SWF?
    How do I load a SWF into a specific location in the display list?
    How do I resize the loaded SWF?
    How do I set its X and Y location?
    Here are some additional resources that elaborate on loading content and on working with the display list:
    Sample files for the above TechNote. A set of 3 FLA and 3 corresponding SWF files, including a parent SWF and 2 SWFs that the parent loads.
    Help > AS3 Developer’s Guide > Loading an external SWF file
    Help > AS3 Developer’s Guide > Loading display content dynamically
    Loading multiple external SWFs within a main SWF – CreativeCow.net forums
    Video tutorial: ActionScript 101 – Episode 6: Adding named objects to the Stage. By Doug Winnie. An example of how to add the loaded external asset to the Stage and modify its location or other properties.
    Video tutorial: Preloading in ActionScript 3.0.  By Lee Brimelow. A slightly more complicated example, showing how to  make the parent SWF display information about the progress of loading  the external SWF.
    Tutorial: Loading and unloading SWFs - FlashAndMath.com
    This article provides several examples of how to communicate between a parent SWF file and the loaded SWF:
    SWF to SWF Communcation via ActionScript 3.0 (by kglad)

    quote:
    Originally posted by:
    NedWebs
    You now seem to want to get rid of the swf once it has loaded
    and played itself thru. To do that you would need to have something
    in the swf itself that triggers its removal in its last frame. The
    following might work...
    MovieClip(this.parent).removeChild(this);
    Unfortunately I couldn't get this to work. I placed it on the
    last frame of the SWF to be called - is that right?
    I am not sure I am doing it correctly...

  • Swf security html embed

    hi
    In site B (WWW.BBB.COM/mypage.html) I have embed into html  page an swf  from another site url (http://WWW.AAA.COM/test.swf).
    From site B I'm able to request all function in swf on www.aaa.com site.
    cross domain policy don't works with html emebed tag .
    this is an online example :
    http://www.amiamo.info/flex/test.html
    how can protect  swf on www.aaa.com ?
    thanks

    Hi there,
    Yes, the solution is to use a crossdomain.xml file where you have your .swf file hosted but be careful, you can limit the access to the .swf. Here's an example: http://api.flickr.com/crossdomain.xml but instead of <allow-access-from domain="*"/> you should have <allow-access-from domain="http://www.bbb.com"/> so that you'll limit swf access to only http://www.bbb.com
    With best regards,
    Barna Biro

  • Embedding swf into HTML+JS AIR app

    Hi
    I'm trying to embed swf into HTML+JS AIR app with no luck.
    First, I created flash library with this class in default package.
    package
         import mx.controls.Alert;
         public class Utilities
              public function Utilities()
                             //asdfasdf              
                   Alert.show("asdasd","");
    Then I compiled the project with Flash Builder and got library.swc as result. Then I extracted swf file.
    After this is added required code into my html:
    <html>
    <head>
        <script type="text/javascript" src="AIRAliases.js"></script>
        <script type="text/javascript" src="AIRIntrospector.js"></script>
        <script type="text/javascript" src="jquery-1.6.2.js"></script>
        <script src="library.swf" type="application/x-shockwave-flash"></script>
        <script type="text/javascript">
            $(document).ready(function () {
                alert('loaded');
                air.Introspector.logError("aaa");
                var v = new runtime.Utilities();
        </script>
    </head>
    <body>
    </body>
    </html>
    Then after I run application, I get error that result of expression is not constructor, function etc.
    Could you help me please?  Thanks in advance.
    Here is sample code:
    http://depositfiles.com/files/jztpnlb3a

    No. I mean that the Flex framework makes certain assumptions about the environment it is running in -- like having a stage to work with. The Alert function, for example, works by creating a sprite and adding it to the Flash display list. Since your embedded SWF is not on a stage, there's no way for it to work.
    You can can possibly use certain non-visual parts of the framework, such as the rpc package, but I can't guarantee it.

  • Embedd a database within a SWF?

    Hi -
    I'm wondering if the following can be done with Flash -
    - can a swf contain it's own database that the user can add,
    delete, read?
    - while the view is online, entering and interacting with the
    data- is it being sent back and forth to the server?
    - can this database be protected with some sort of encryption
    that is only unlocked by the user's code?
    - and so that if the user emailed the swf or the db file from
    within the swf, only a person with the key could access the data?
    Can it be done?
    Can someone point me to how to these features might be
    possible with Flash?
    TIA your input,
    jl

    Hi,
    1.- SWF files cannot contain their own databases but they can
    access several server side scripts to mantain/modify a server side
    database.
    2.- Yes the interaction with the database occurs without the
    user having to take notice.
    3.- You can use any type of session protection wih
    authentication to protect your data.
    4.- SWF are like HTML or plain text (anyone can find a way to
    read it) so I'd recomend using server side authentication rather
    than relying on swf key protection.
    Cheers,
    Gorka
    http://www.AquiGorka.com/blog

  • HTML/javascript interaction with swf content - can I call swf functions from JS?

    Hi,
    I've created an AIR application where the
    intialWindow.content is a HTML page / JavaScript application. On
    this HTML page I want to include some SWF content as a plugin (a
    Flex 3 app), so I have an object tag.
    From my SWF I can call out to JavaScript using
    flash.external.ExternalInterface fine. I can also call methods
    within the AIR and Flex APIs via the window or runtime objects.
    However, if I try to call methods within my SWF from
    JavaScript, nothing happens. Further, I can pass a function
    reference from my SWF to JavaScript (via ExternalInterface), and
    while I can see a valid function reference in JavaScript, calling
    it doesn't call the function within the SWF.
    Is this not supported? Or is this something else, like an
    applicationDomain issue? My SWF object is loaded via the app:/ uri,
    so I didn't think it would be that.

    I hadn't tried that, and it does work. Thank you. Everyone
    should note though that the documentation here
    Flex
    3 - External Interface
    and
    Flash
    9 - ExternalInterface.html
    says:
    "Note: Adobe AIR currently does not support the
    ExternalInterface class."
    which by my reading means that none of this should work,
    although it clearly does.
    The page
    Example:
    Using the external API with a web page container was most
    helpful in finding the solution, since it mentions referencing the
    object id of the plugin (e.g.
    window['my-object-id'].functionToCall()) when referencing the
    callback function.
    This
    page has a more concise example.

  • Difference between .swf and html publishing

    Hi,
    I am creating a flash player to stream my .flv files, as I am
    testing my results, I put my .swf and html files on my web server
    and then test respective URL paths: For example:
    http://mywebserver.com/video/file.html
    http://mywebserver.com/video/file.swf
    how come these file vary so much in size? when I call
    http://mywebserver.com/video/file.html
    on my browser; my player is very small. But, when I call
    http://mywebserver.com/video/file.swf
    I see the actual size.
    Thanks,

    Hi,
    Open ur html with DW or notepad. Find the <embed src="
    tag.
    Then replace the width and height of the swf as u want.
    When you tries to open the file.swf, it will hold the browser
    width and height.
    Regards,
    Sankarapandian T.

  • Swf or Html

    What is the difference between swf. and Html file? Which is better or necessary for publishing an interactive captivate presentation?
    Thank you

    You cannot embed an html page in an swf page in any case.  If you import an swf with the intent to embed it into another swf, you can embed it, but if it has any actionscript it will be lost.  The only way to incorporate an swf into another swf without actionscript and still have its actionscript work is to copy the main tineline of the swf (ala its fla file) into a movieclip and copy that movieclip into the other swf.
    It appears you had more to say but it was cut off if so.

  • Using AS 3.0 to create a popup .swf within an .swf

    Hi,
    I need to have an .swf running for a game.  Within this .swf there will be a "Help" button, which, when clicked, needs to create a new popup window from a different .swf file. The second .swf file must appear in a new window, in a separate popup, and not replace anything in the first .swf window.
    I want to know how to do this in ActionScript 3.0. I don't need help with the button click event, but I do need help on how to make the popup appear.  Any advice?
    Thanks.

    use
    navigateToURL(new URLRequest("yourswf.swf"));

  • Saving/Printing work from within a .swf file

    Okay so here's the deal. I have to create a flash game in
    which users will be creating artwork. When users are done with
    their artwork we want them to be able to SAVE their work, EMAIL it
    to a friend, and PRINT it out all within the .swf file.
    HOW IN THE WORLD DO YOU DO THIS?????? I have been searching a
    researching and going through many forums and tutorials trying to
    see if anyone out there can help but I have come up with nothing.
    Although I did come a across a website that was able to achieve
    what we are looking to do in this flash game.
    Click here to view
    Snowflake Website
    On this website users can make snowflake art the old fashion
    way but this time on the web within a flash site. When users are
    satisfied with their snowflake they can save it and the snowflake
    is added to an ever growing database of user created snowflakes
    that also can be viewed by others at anytime. Users are also given
    the option of emailing their snowflake design to friends and
    downloading their design as a JPEG or and EPS file. You can also do
    the same to any of other numerous snowflake designs with the
    snowflake design database.
    HOW IN THE WORLD DO YOU DO THIS??? I have contacted the
    agency that was responsible for creating this site for their help
    as well but any assistance I can get from you guys would be greatly
    appreciated as well.
    Still quite confused but eagerly awaiting your
    responses.

    Printing object:
    on (release) {
    //creates the object of the class printjob
    var pj:PrintJob = new PrintJob();
    //starts the procedure
    //opens the windows printing window
    pj.start();
    //sets the printing area (i may be made outside the stage,
    so using the A4 area and adding any other information that should
    not appear on screen)
    area = {xMin:0, yMin:28, xMax:465, yMax:296};
    //printing options - true=bitmap / false-=vetor... bitmap
    generates a bigger file, but results in better quality for images,
    vector is smaller and a good option if you work just with text
    options = {printAsBitmap:true};
    //adds the page the the printing queue
    pj.addPage(_root, area, options, null);
    //sends the page to the printer
    pj.send();
    //deletes the object to clear memory (very important)
    delete pj;

  • How do I keep the action created in Flash (.fla) the same when published in .swf or .html?

    I created a complex fixed line and a bird flying on the line using tweens from point A to B to C.  When I view the birdline in play or by scrubbing across them in the layers mode, the bird follows the line just as designed.  When I test the birdline in "test Scene" or "test movie" one bird flies from point A to C, then another bird appears at point B and flies the course to point C.  The published .swf and .html do the same as the test functions.  What can I do to get the published version to behave the same as the design?

    Rob,
    Thanks for your response.  There are no error messages in the test functions, and no alerts in the keyframes.  They show green.
    Attached you will find both the .fla file and the .swf file.  I am new at this, so your help is greatly appreciated.
    Richard (Sir rpm)
    PS- I am sitting in Sweden right now.  So I am off to bed and will be back on line in the morning.  Please forgive the delay in my response.

  • How do I Re enabled the Buttons in MainMovie.swf from a Button within SecondMovie.swf???

    I have the following situation
    MainMove.swf is doing a loadmovie of SecondMovie.swf
    The Button that loads SecondMovie.swf also disables other buttons in MainMovie.swf
    on (release) {
        _root.intro_btn.enabled = false;
        loadMovieNum("SecondMovie.swf", 2);
    How do I Re enabled the Buttons in MainMovie.swf from a Button within SecondMovie.swf???
    Using AS2 is this current project
    Thanks

    lol Sorry bout that I'm brand new here and was looking for the option to remove the post from the other location.

  • How may load an external (html) file in swf? Anyone!!!!!

    hi all,
        How may load an external html file in swf? such as google.com in a movieclip.
    anyone may help me.........????????

    With Flash, you can't do this.
    Just with FlashBuilder and Air (something like HTMLLoader  , not sure now)
    I mean loading in a movieclip..
    Of course you can open a page to display in a browser.

Maybe you are looking for

  • Mac Indesign tables don't seem to be recognised by Acrobat 9 Windows

    Maybe someone else can try this to confirm? Acrobat 9 (Mac and Windows) has a command where you can select the contents of a table (using the select tool), then right click "copy as table". The theory is that you can then go to a spreadsheet like Exc

  • I removed my "settings" icon

    while trying to jailbreak my ipod touch i some how ereased my settings app alonge with music,itunes store, app store, browser, contacts, and a few other things. i've been looking for solutions ALL day and have found nothing! PLEASE HELP!!!    

  • TS1398 Apple won't help and I need some please :-)

    I had md197ll and the speaker broke so apple replaced it. My girlfriend and i both had white md197ll (white iphone4 8gig) all electronics in our house run on dd-wrt(linksys wrt54g) during Xmas I had 10 of them and they all connected... Apple replaced

  • Unsuported Image Format error with referenced images

    Hi, importing referenced images does not work for me: when selecting "store images in their current location" (i.e., referencing them), the preview is visible for a moment and then becomes gray; the large preview says "Unsupported Image Format" (if A

  • How does the proximity sensor work?

    How do you know if the proximity sensor is working if you have a screen protector on the phone?