How do I target a specific frame of an .swf from an HTML document

I am creating a site half of the site if Flash application and the other half is HTML based, I can link to the HTML pages from by Flash site, but I can't seem to find out how to target a specific withing my Flash site from the HTML, no matter what I do it only links to the 1st frame of the .swf. Can somebody help me please.
I am using AS2 for the flash portion and Dreamwaver CS3 for the HTML (or CSS).

Sorry, I don't know what AS2 is .
If you're using Flash or Swishmax, the workflow would go something like this:
Copy your original work file.  Delete portions you don't need.  Save as project 1. Export as project1.swf.
Open original work file. Delete other portions you don't need. Save as project 2. Export as project2.swf, and so on.
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media  Specialists
www.alt-web.com/
www.twitter.com/altweb

Similar Messages

  • GotoAndPlay specific frame in external swf from main swf

    I have a main swf that loads 2 external swfs.
    I click on button to see content of external swf #1 and see stuff. I do something that causes external swf to show other stuff (i.e. not at beginning state)
    In the main swf I click on button to see content of external swf #2. External swf #1 content is made invisible and I see content of external swf stuff.
    NOW, if I click on button to take me back to see external swf #1, I see it's content in current state. I want to force it to start over again at frame #1 which will reset content.
    However, no matter what I try, I can't seem to control which frame to go to in external swf using gotoAndplay.
    Here is code in frame #1 of main swf to load external swfs:
    //load academic movie
    var swfLoader1:Loader = new Loader();
    container1.addChild(swfLoader1);
    var url1:URLRequest = new URLRequest("academic.swf");
    swfLoader1.load(url1);
    //load wisdom movie
    var swfLoader3:Loader = new Loader();
    container3.addChild(swfLoader3);
    var url3:URLRequest = new URLRequest("wisdom.swf");
    swfLoader3.load(url3);
    Here is code in frame 2 of main swf that checks button to see where to go in external swf:
    //academic button clicked
    function academicClick(event:MouseEvent){
       container3.alpha = 0;
       container3.visible = false;
       container1.visible = true;
       container1.gotoAndPlay(1); //this is where I am trying to force it to start at frame 1
       container1.alpha = 1;
    I don't want to reload the external movie to force it to start over.
    Any help would be much appreciated.

    You can easily control this by making the external swf to load with your movieclip, The below is the code snippet that clear on accessing the specific frame on external swf.
    //Loading clips content
    var ldr:Loader;
    var mcExt:MovieClip;
    //Loading
    loadswf("external.swf");
    function loadswf(tmp:String):void{
        unloadSwf();
        ldr= new Loader();
        ldr.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, progressListener);
        ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoaded);
        ldr.load(new URLRequest(tmp));
        function progressListener (e:ProgressEvent):void{
            ploader.visible=true;
        function swfLoaded(e:Event):void {
            mcExt = e.target.content as MovieClip;
            ldr.contentLoaderInfo.removeEventListener(Event.COMPLETE, swfLoaded);
            mcExt.addEventListener(Event.ENTER_FRAME,onEnterfn);
            ploader.visible=false;
            addChild(mcExt);
    //UnLoading
    function unloadSwf():void{
        if (ldr!=null){
            ldr.unloadAndStop();
            removeChild(mcExt);
            mcExt=null;
    //Intervals (The part you work on the specific frame within the external swf
    function onEnterfn(e:Event):void{
        var num:int=mcExt.currentFrame;
        if (num==1) mcExt.play();
        if (num==9) {
                mcExt.skipmc.addEventListener(MouseEvent.CLICK,skipfn);
                function skipfn(e:MouseEvent):void{
                    mcExt.stop();
                    mcExt.removeEventListener(Event.ENTER_FRAME,onEnterfn);
                    gotoAndStop("help");
        if (num==mcExt.totalFrames){
            mcExt.removeEventListener(Event.ENTER_FRAME,onEnterfn);
            gotoAndStop("help");
    hope it solve

  • 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.

  • Using Actionscript 3, how do I code a button in a parent file to load at a specific frame in another swf file?

    Using Actionscript 3, how do I code a button in a parent file to load another swf file at a specific frame?

    You can either place the loading code in the desired frame of the parent file, or continuously monitor the currentFrame proiperty of the parent file and do the loading when the value matches the desired frame number.

  • Linking to a specific Acrobat page from an HTML document

    Hi –
    I need to create links from a website to specific pages/locations within a PDF document which is hosted on our server. When I was creating PDFs with Acrobat 8 Professional, I would just create a link in the site HTML that had the page number at the end (like: <a href=http://www.website.com/document.pdf#page=6>, and it worked fine. We upgraded to Acrobat 9 last fall, and it seems that this particular trick no longer works. I’ve also tried creating destinations, but still no dice.
    Any suggestions? I found one forum thread from last year that detailed a similar issue in Acrobat 9, but the issue was not resolved. Thanks.

    The simplest way:
    in the HTML you expand the two occurences of "movie.swf" (in
    the object and embed tag) to "movie.swf?jump=50", where "jump" is
    the variable name and "50" is the frame somewhere in the middle of
    your movie.swf that you want to start with.
    In the first frame of movie.swf you have actionscript
    if(this._framesloaded<jump) {
    this.gotoAndPlay(1)}
    else {
    this.gotoAndPlay(jump)}
    Of course, this doesn't check for error conditions and has
    other weaknesses, but I hope you get the point.
    Good luck
    Wolf

  • Targeting a specific frame on a specific movieclip

    Hi,
    I'm trying to get the following movieclip smallbutton to link to frame 5 on movieclip cont.
    The way the timeline is built is as so:
    content_mc > cont > (more mcs) > smallbutton
    This seems to be an issue from every answer I've tried so far since the movieclip "cont" is not being called in the main timeline; first there's content_mc and then comes cont.
    How would I go about getting the movieclip "smallbutton" to link to the 5th frame of movieclip "cont"?
    This is for AS 2.0
    So far I'm at:
    on (release) {
        _root.gotoAndPlay("cont");
        _root.smallbutton.gotoAndPlay(5);
    Any help is greatly appreciated.
    Thanks.

    This seems to make a bit more sense.
    Although still not working.
    What I want the code to do is call the content_mc from the main timeline and read frame 5 from the cont movieclip (which is inside the content_mc)
    I believe I should put this code on the smallbutton movieclip. I'm not sure it's necessary to write "smallbutton" inside the AS code since it's already on the button. But I might be wrong.
    The smallbutton movieclip has some code already on it like so:
    onClipEvent (load) {
        this.num = 1;
    this.hitArea = this.area;
    on (rollOver) {
        this.gotoAndPlay("s1");
    on (rollOut, releaseOutside ) {
        this.gotoAndPlay("s2");
    Maybe if we rearrange the code to something similar:
    on (release) {
         _root.content_mc.gotoAndPlay("cont", "5");
    I tried but no success. Not sure what to do.

  • How do I link to a specific frame in the timeline of an Edge document from a different page?

    lI have the intro of my new website made in Adobe Edge Animate, however I don't want people to watch the intro every time they click "back". So is there a way of linking directly to a label from another page? Should I use something like:
    "<a href="page_URL.com/edge_file.html" target="label_in_the_timeline">"

    Hey Squeege,
    I highly recommend you becoming familiar with basic javascript syntax (setting variables, functions, scope, if/else statements). Knowing at least the basics really makes Edge Animate come alive, and gives you a lot more power inside the application.
    Taking the code from the other thread, you would do something like this, on Stage.compositionReady event:
    // function to grab specified param
    sym.getParam = function(name) {
        name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
        var regexS = "[\\?&]" + name + "=([^&#]*)";
        var regex = new RegExp(regexS);
        var results = regex.exec(window.location.href);
        if (results == null)
            return "";
        else
            return results[1];
    // get query param called 'param', (should be "true", "false", or leave it out)
    var playIntro = sym.getParam('param');
    if( playIntro == "true" ) {
         // tell sym to play intro label
         sym.play( "intro" );
    }else if( playIntro == "" ) {
         // tell sym to play intro label
         sym.play( "intro" );
    }else if( playIntro == "false" ) {
         // tell sym to play skipIntro label
         sym.play( "skipIntro" );

  • How do I delete a few frames of my image from the beginning?

    There are a few frames of my image in front of the first title. I don't know how to delete these frames. I want my title to start without anything in front of it.
    I'm using PrE 11.
    Thanks to everyone who told me about viewing a video without the Adobe Flash Player.  

    Tommy,
    To remove a single Frame, I would zoom the Timeline to the max. Then, in that Clip, find the Frame that you wish to remove. With the CTI (Current Time Indicator at the last good Frame, hover the Cursor over that spot, until the Scissors Tool pops up (PrE 11 & 12), then click to Cut that Clip. Then, use the right arrow key, to move 1 Frame to the right, and perform the same operation, as above with the Scissors Tool. That will Cut your Clip on either side of that Frame. Rt-click on that Frame, choosing Delete & Close Gap. What version of PrE are you using? ATR, in Reply #2 covered the Scissors Tool, so there should be no difference here - other than placing the CTI on either side of that Frame.
    Note: there are considerations to using that method. I assume that you also want to Delete the Video & Audio for that Frame. If they are linked, then the Scissors Tool should Cut both. If they are not linked, you will probably need to do that for both the Video & Audio. Then, if you have Video, or Audio above/below that Frame, you will not be able to automatically Close Gap. Just something to plan for.
    Good luck, and hope that helps,
    Hunt

  • How do you make JSF draw frame in browser w/o JSP & HTML ?

    Hi all,
    I already have small web application which uses HTML & JSP and I want to convert it to JSF based application.
    I've read O'Reilly JSF books written by Hans Bergsten and in Chapter 15 he states that you can use pure Java classes only (without JSP & HTML) in your web application.
    My web application contains some frames. Since I only want to use pure Java classes using JSF what component should I use to draw frame ?
    I use MyFaces implementation of JSF.
    Any advice would be greatly appreciated.
    Best Regards,
    Setya

    I don't know anything about myFaces, but as far as I know, there is no component to draw frames. The JSF book you read is correct to a degree... It's possible to write completely with JSF tags, but it can be cumbersome sometimes.
    To output frame tags using a JSF tag, you can use one of two methods.
    First, you can use the outputText tag with escape attribute set to false.
    <h:outputText value="<FRAMESET blah blah blah>" escape="false" />The second way is to just wrap HTML in f:verbatim tags.
    <f:verbatim><FRAMESET blah blah blah></f:verbatim>If using the second method, be careful not to have any other JSF tags inside the f:verbatim tags.
    Hope this helps,
    CowKing

  • Play a Movie Clip on a frame In Main SWF from a button, within 2 MovieClips

    I’m using AS2, Flash 8
    I have a frame on my main Timeline Called “Gallery” within this frame I have 2 movie clips, which I need to work together:
    One is called:
    Gall_Lge_1
    Which contains 37 frames.
    Each frame has a different movie – basically 37 different photos which pop up on each frame.
    (MC’s named Lge_1, Lge_2, Lge_3 etc)
    The second Movie Clip I have on here is called:
    gall_strip_mc
    Which contains a movie clip called strip1 , (which is set to scroll its contents controlled by buttons on ”Gallery”- which works) inside that is a movie clip called strip_all , and contains one frame with 37 buttons/photo thumbnails, (Buttons named btn1, btn2, btn3 etc which I require to link each individual button to the corresponding photo/frame in Gall_Lge_1  …
    So,
    btn1 will go to and play Lge_1(Frame 1 of Gall_Lge_1)
    btn2 will go to and play Lge_2(Frame 2 of Gall_Lge_1)
    I’m stuck and can’t get it to work..
    Here is the site – under ‘Gallery’ so you can see what I’m trying to achieve
    http://www.blueshelldesign.com.au/draft/
    (I’ve placed in Back and Next buttons next to ‘Gall_Lge_1’ so you can see how its suppose to look when the thumbnails from ‘gall_strip_mc’ are clicked)

    First, you do not use quotes when you are specifying a frame number, so try changing that first.  The only time you use quotes for that argument is for frame label strings.
    If it still won't play, are you sure that the button is coded properly and executes the function when clicked?  You should put a trace in the function to make sure.  Also, you could try using _root instead of _level0... I forget the difference, if any, but _root will definitely get you to the main timeline.
    btn2.onRelease = function() {
         trace("btn2 clicked");
        _root.Gall_Lge_1.gotoAndPlay(2);

  • How do I reset the furthest page read in iBooks from an HTML Widget?

    Our training department just got a bunch of iPads and I'm writing some custom HTML widgets for iBooks for them for testing, in-class activities, etc.
    On the last page I have a link to clear all the forms and return to the first page.  Like this: <a href="ibooks:///#page(1)">Click here</a>
    That all works fine but the next time the book is opened it auto-syncs to the FURTHEST page read (the last page with the test on it) instead of the LAST page read (the first page- from the link mentioned above).
    Basically we want the link to reset the furthest page read to the first page of the book when they finish the test so that the next person to use the iPad goes to page one automatically.
    Does anyone have an idea of how to do something like completely clear the iBook cache?
    Much obliged!

    This was hand-coded HTML, CSS, jQuery/Javascript with a PHP file on our server that processes answers and emails them to our training director.
    I use Brackets exclusively for coding.
    Hope this helps you.

  • How to reduce the time of publication in the swf from the fla in Adobe Flash Professional CS5.5?

    My fla-file (27mB) is graphic resources to a project, split into pieces is very problematic.Publication time on my computer is 4 minutes. I tried setting "preferance / publish cache" - not result.

    Yes Arial will always export lightning quick.
    Compress movie was a chance that you used some bitmaps that might have agressive compression. Oh well.
    You copied 120 symbols and received good results. Great! Try copying half your library and do the same. Soon you will find out which item is causing this gigantic halt.
    Over a decade ago it took my old P4 about 5 minutes to export a movie I was making and I never knew why. It always ran very cruddy in one specific area too. I finally took a look inside one vector that was insanely complex and huge (like 3000x3000 size 8 years ago is HUGE). It was being scaled down to 5% of its size to fit on screen haha. I simply exported it to a bitmap and all of a sudden everything was fixed. Lots of these things happen. You just need to find out what part of your library is causing issues. So I'd keep copying more and more symbols while exporting until all of a sudden you copy, export and it takes forever. Then you know what the culprit is.
    In my experience the 2 things that have ALWAYS caused a ridiculos amount of time to export is audio and fonts with all glyphs exported.

  • How to extract content from a html-document

    Hi!
    I need to display the content of a news-feed
    like: http://news.bbc.co.uk/go/rss/-/1/hi/sci/tech/7662565.stm
    I'd like to display this in a JEditorPane with only the relevant content without the banner, menu and so on.
    Any idea on how I can do this?
    Cheers

    In this particular case, you don't want to parse the HTML but the RSS feed used to build this this page. The feed for this page is [http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/sci/tech/rss.xml]
    RSS feeds are XML based so it's easy to parse them. You can do it by hand or use a specialized library. One of the well-known library is ROME ( [http://wiki.java.net/bin/view/Javawsxml/Rome] ).
    Example : [Parse a RSS XML file|http://www.rgagnon.com/javadetails/java-0557.html]
    Bye.

  • How do I program the preloader in a fluid swf from another fluid swf?

    I have built a fluid swf(preloader.swf) which is like an intro-cum-preloader screen to a flash site which is stored in main.swf. How do I program the preloader.swf to show the preload percentage of main.swf ?
    All the swf files used here are fluid,so there is an actionscript file which loads the movieclips onto stage dynamically,please give me a solution to this keeping this in mind. Please do ask for clarifications if needed.

    You want to use the Loader class in Actionscript 3. If you look at the example in the online help, you'll see that there are, among others, a progress event and a complete event. You can use this progress event, to track the progress of the loading of the file. The complete event occurs when the file has completely loaded.
    Have a look at this: http://help.adobe.com/en_US/ActionScript/3.0_UsingComponentsAS3/WS5b3ccc516d4fbf351e63e3d1 18a9c65b32-7fa4.html it explains how to use a Progress Bar component to show the loading of a file.

  • How to call a method in a flash file (swf) from another fl;ash file (swf) and vica versa ?

    Hi, I have a Flash file (Flash1.fla). I have a  public method, method1() in a public class of the file. I have another Flash file (Flash2.fla). I have a public method, method2()  in the public class of this file. I want to call the method1() from Flash2.swf and the method2() from Flash1.swf. Please help!!

    swf-to-swf communication
    http://kb2.adobe.com/community/publishing/918/cpsid_91887.html

Maybe you are looking for

  • Can't save Photoshop file as a PDF

    The file is RGB and 8-bit, but it is a really large document (144 x 24 inches). When I go to Save As > No PDF option shows up...see screenshot.

  • Wrong/generic icon in Finder

    I decided to change some of my application icons today, but when I click an icon and select "Get Info," the small image displayed in the upper left corner is a generic icon labelled "ICNS" or "PNG," and not the icon I want. This appears to be happeni

  • Can I update iPhoto 8.1.2 directly to 9.5.1?

    I was finally able to reinstall iPhoto on my iMac. However, I'm running Maverick and my iPhoto version is 8.1.2 - can I upgrade directly to 9.5.1 from the Apple store?  I've been trying to download various updates to iPhoto but am unable to do so. I

  • MVP List #40 (June 2 - June 8, 2012)

    The Verizon Community Forums Most Valuable Posting List is where we recognize great work and words happening every day right here on our community. We know the success as a community is based on the continual and lively contributions of our valued me

  • Upload Excel file using GUI_UPLOAD

    I'm trying to upload a regular excel (*.xls) using the fm <b>GUI_UPLOAD</b>, though sy-subrc is set to 0 after the function call, the data that is uploaded into the internal table shows junk. Any thoughts are welcome.