Displaying SWF files in sequence

Hi,
I am quite new to Flash and am creating my first website.
I currently have 3 SWF pages which I want to link together.
these pages are "Home_Page", "Portfolio" and "Portfolio_outro".
At the moment, when you click a button in "Home_Page" you are
taken to "Portfolio".
There is a button in "Portfolio" which when clicked I want to
take the user back to the "Home_Page", but in order for the
animation to work correctly, I want the "Portfolio_outro" page to
display first!
This means that in the action script for this home button, I
need to somehow ask that when it is released, first one movie is
played, then another. My current script for this looks like this:
on (release) {
//load Movie Behavior
if(this == Number(this)){
loadMovieNum("Home_Page.swf",this);
} else {
this.loadMovie("Home_Page.swf");
//End Behavior
//load Movie Behavior
if(this == Number(this)){
loadMovieNum("Portfolio_outro.swf",this);
} else {
this.loadMovie("Portfolio_outro.swf");
//End Behavior
CAN ANYONE TELL ME WHY THIS ISN'T WORKING AND WHAT I NEED TO
GET ONE MOVIE TO PLAY AFTER THE OTHER UPON PRESSING THIS BUTTON.
THANKS A MILLION,
LIAM

there are so many problems with that code it's not possible
to see how it could work. just for starters how could it ever occur
that your if(this==Number(this)) statement would resolve to
true?

Similar Messages

  • How to create an xml to load swf files in sequence?

    hello everyone
    I'm new in web design... I know how to animate in flash, using timeline, frames, layers, twins and so on... But I want to move forward so I want to create a xml to load swf files in sequence and in loop. Each swf file has 8 seconds.You can see the example here in www.cm-seixal.pt.
    I'm not a programmer but I understand how actionscript works... I hope you can help me
    Cheers!
    Ana

    you can use the urlloader class to load your xml file.  use the loader's complete event and the loader's data property to retrieve the data in your xml file.

  • How to display swf Files and have a datagrid with paging for javaFX

    is there any example of javaFX which can display swf files or have a datagrid with paging.
    sorry for my bad english and by the way i am new to javaFX
    any help wil be appreciate

    Please, refrain from posting identical messages in several forums. Thanks.
    And I doubt JavaFX can display SWF files (it is a concurrent technology, after all! :-)), unless using some JNI/JNA technology (via JDIC? a long way...).
    Datagrid: it is expected in next version (hopefully), there are some implementations around (look for CRUDfx, for example).

  • To Display SWF file or Flash file in Web Page Composer (WPC)

    Hi,
    I am goning to add & display 'swf file or flash file' in <b>Web Page Composer</b>.
    But it is not allowing me to do so.I tried by three ways
    1} to upload this file directly from local machine & to add in WPC
    2}By using linklist option
    3}By creating KM Document iview;which contain swf  file.& then adding that iview in wpc.
    but at last it is not displaying though allowing to add it in WPC.

    Vishal -
    First... we are all new to WPC!
    Second, no I don't think you need to create a new container.  I think that you just need to add the swf type as an allowed type for the container.
    So...
    Figure out which container you are trying to add the flash file to (as you mentioned, A1, A2, etc).
    Navigate to:
    Sys Admin --> Sys Config --> Knowledge Mgt --> Content Mgt --> WPC --> Containers.
    Edit the container you want to use.
    There will be a box named Allowed Mime Types.
    In here, select the "swf" mime type (make sure the check box is checked). Then Save.
    At my company, we had the WPC ramp up from SP12, and are now on SP13.
    I'm not sure what you get if the first time you had WPC is SP13, but for us I see two default A1 (and A2...B1..C4...etc) containers -- one that has "default" in the name and one that has "def" in the name.  From what I see, SP13 WPC uses the one with "def" in the name, not "default".  So, make sure you modify the one with "def" in the name.
    After you make this change, you should see "swf" in the list inside the container when you are editing a page.
    Is this clearer?  I wish I could attach a screenshot.

  • Cross domain error while displaying .SWF files in  portal

    Hi Experts,
    i am working on EP ,
    i am trying to display a .swf file in a iview but that file is  giving an error as
    Add a cross domain policy file to the external data web server
    this swf file is retriving data from BI system.
    Please suggest !!
    i got a solution of putting a crossdoaim.xml file in root directory but thats not possible

    I think two urls will work for you:
    Xcelsius SWF with QaaWS through SSL: Cannot access external data
    http://livedocs.adobe.com/flex/3/html/help.html?content=security2_04.html

  • How to display .swf files in java using eclips platform ???

    Here my java code plz some one help me...
    import javax.swing.*;
    import java.io.*;
    import java.net.MalformedURLException;
    import java.awt.*;
    import java.awt.event.*;
    public class DisplaySWF extends JFrame
        public JPanel  window_panel;//address_panel,
        public JLabel address_label;
        public JTextField address_tf;
        public JEditorPane window_pane,tree_pane,attr_pane;
        public JScrollPane window_scroll,tree_scroll,attr_scroll;
        TextArea t1,t2;
        JPanel pane;
        public JButton address_b, browse;
        public JLabel l,m;
        private Go go = new Go();
        JFrame f ;
        public DisplaySWF() throws IOException
        // Define address bar
        //tree_pane=new JEditorPane();
        //tree_pane.setBounds(650,50,300,250);
        //address_panel = new JPanel();
        //address_panel.setLayout(null);
        f= new JFrame("Web browser");
        f.setSize(1000,700);
        pane=new JPanel();
        pane.setVisible(true);
        pane.setLayout(null);
        f.setContentPane(pane);
        address_label = new JLabel(" address: ", SwingConstants.CENTER);
        address_label.setBounds(10, 10, 70, 30);
        pane.add(address_label);
        address_tf = new JTextField("",25);
        address_tf.setBounds(80,10,250,30);
        pane.add(address_tf);
        browse = new JButton("Browse");
        browse.setBounds(340, 10, 140, 30);
        browse.addActionListener(go);
        pane.add(browse);
        window_pane=new JEditorPane();
        window_pane.setBounds(10, 50, 600, 600);
        pane.add(window_pane);
        l=new JLabel("DOM Structure");
        l.setBounds(650,30,100,10);
        pane.add(l);
        t1=new TextArea();
        t1.setBounds(650,50,300,250);
        pane.add(t1);
        m=new JLabel("Attribute");
        m.setBounds(650,350,100,10);
        pane.add(m);
        t2=new TextArea();
        t2.setBounds(650,380,300,280);
        pane.add(t2);
        f.setVisible(true);
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        window_pane = new JEditorPane("http://www.yahoo.com")
            public boolean getScrollableTracksViewportWidth()
                return true;
    public class Go implements ActionListener
            public void actionPerformed(ActionEvent ae)
                JFileChooser fc = new JFileChooser();
                int result = fc.showOpenDialog(null);
                if (result == JFileChooser.APPROVE_OPTION)
                    File file = fc.getSelectedFile();
                    String sname = file.getAbsolutePath();
                    address_tf.setText(sname);
                    String ext=getFileExtension(sname);
                    try
                        if(ext.equals("swf"))
                            window_pane.setPage(address_tf.getText());
                            System.out.println("hi");
                    catch (MalformedURLException e)
                    {     // new URL() failed
                        window_pane.setText("MalformedURLException: " + e);
                    catch (IOException e)
                    {               // openConnection() failed
                        window_pane.setText("IOException: " + e);
       public String getFileExtension(String filename)
        if (filename == null)
                return null;
        int lastUnixPos = filename.lastIndexOf('/');
        int lastWindowsPos = filename.lastIndexOf('\\');
        int indexOfLastSeparator = Math.max(lastUnixPos, lastWindowsPos);
        int extensionPos = filename.lastIndexOf('.');
        int lastSeparator = indexOfLastSeparator;
        int indexOfExtension = lastSeparator > extensionPos ? -1 : extensionPos;
        int index = indexOfExtension;
        if (index == -1)
            return "";
        else
            return filename.substring(index + 1);
    public static void main(String args[]) throws IOException
      DisplaySWF wb = new DisplaySWF();

    Thanks for reply...
    but i search in the google about this topic...there is no results will appear..
    the problem is "i have to run program in the MacOS like extract all the
    .sit(StuffIt) extension files. These sit files same as zip files in the windows... we have one tool called StuffIt Expander but it is 3rd party tool. but here requirement is i have to write my own program to extract all the files same as zip file program...
    please do the needful..i am waiting for ur reply,,,

  • Loading a sequence of swf files in one main swf

    Can someone help me with this?
    I'm using this loadMovie actionscript to load a swf file, but
    I want to load mutiple swf files in sequence. Should I just repeat
    the actionscript?
    Something like this?
    loadMovie("filename1.swf", 1);
    loadMovie("filename2.swf", 1);
    loadMovie("filename3.swf", 1);

    just take three diff blank movie clip like a,b,c
    and place it properly where you want to load swf and write
    loadMovie("filename1.swf", "a");
    loadMovie("filename2.swf", "b");
    loadMovie("filename3.swf", "c");

  • Firefox not displaying swfs with their proper dimensions

    Some instances of Firefox are not displaying swf files with their proper dimensions. When the same .html and .swf combo is loaded on another domain, different dimensions are displayed. I'm not using swfobject or any other DOM manipulator to get the swf on the page. I'm using the standard wrapper that Flex generates with object/embed tags.
    The dimensions are 950x700. I wonder if the large size is part of the problem. I'm not going for any full screen effect.
    I've tested with and without css declarations. I've tried using swfobject. I've created a brand new project empty project and when I publish that, the dimensions are still off.
    == URL of affected sites ==
    http://www.webwebwebsite.com/badfit/BadFit.html

    That image doesn't seem to be working in Firefox 3 and 8 (works in Firefox 9 and later).
    It works if I save it as 24 bit instead of 32 bit.
    <pre><nowiki>data:image/x-icon;base64,
    AAABAAEAEBAAAAEAGABoAwAAFgAAACgAAAAQAAAAIAAAAAEAGAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</nowiki></pre>

  • How to stream .swf file?

    By using playMedia, I can display .mov and .dat file by Quicktime. Could you give me any info about what to do in order to display .swf file? Thanks in advance!

    Hi,
    I understand this is quite old topic but the question is actual for a lot of developers.
    The problem is that Flash ActiveX doesn't contain a method that plays movie from any source except file path or URL.
    So there are two approaches are possible:
    1. Emulate file by creating a fake file that provides data from your array. You may BoxedApp SDK for that, look here: BoxedApp SDK Features
    2. Use special .net component that provides this feature: http://f-in-box.com/dotnet/
    Hope this helps.

  • Is there any way to display a pdf inside of a swf file?

    Are there any software that will convert Word documents or pdf into swf files that ca be displayed inside of a Flash movie. Currently, I am using FlashPaper but the software is not supported anymore by Adobe. I am creating eLearning courses and having a pdf open inside of a course without opening multiple makes for a better learning experience. Any help will be greatly appreciated.

    http://cookbooks.adobe.com/post_PDF_2_SWF_Conversion-4701.html

  • .swf files not displaying all of a sudden!

    Hi all
    currently working on a new website for my design company and
    have hit an unexpected - and very annoying - problem!
    my portfolio graphics are all vector illustrations - I export
    them from there as a .swf file - dump them into dreamweaver - and
    away we go. all has been going fine - my portfolio covers 4 pages -
    first two have worked fine - the final two simply will not display
    when previewed in browser - or uploaded via ftp to a site area.
    the graphics have all been created in similar ways - the
    export functions for .swf have not been altered in any way at all -
    but still not displaying. when i open up flash player to preview
    the file - again blank - when i do the same with the first two .swf
    files, no issues!!
    I have recreated the html files to see if that was the issue
    ... to no avail.
    I also dumped the swfs into the 2 html files that are working
    fine - still no luck.
    tis driving me mad - any ideas guys??? as i said - they are
    just vector logos as with the first two pages so not sure what on
    earth is happening!
    incase this helps with any ideas....
    this page as you can see works fine:
    http://www.justsoho.com.au/test_portfolio.html
    this one doesn't! :
    http://www.justsoho.com.au/test_portfolio_02.html
    hoping someone can shed some light on this!
    cheers
    Rebecca

    Upload this file to server. portfolio2.swf
    It should be in this location
    http://www.justsoho.com.au/portfolio2.swf
    --Nancy O.
    Alt-Web Design & Publishing
    www.alt-web.com
    "justsoho" <[email protected]> wrote in
    message
    news:ftjufb$gut$[email protected]..
    > Hi all
    >
    > currently working on a new website for my design company
    and have hit an
    > unexpected - and very annoying - problem!
    >
    > my portfolio graphics are all vector illustrations - I
    export them from
    there
    > as a .swf file - dump them into dreamweaver - and away
    we go. all has been
    > going fine - my portfolio covers 4 pages - first two
    have worked fine -
    the
    > final two simply will not display when previewed in
    browser - or uploaded
    via
    > ftp to a site area.
    >
    > the graphics have all been created in similar ways - the
    export functions
    for
    > .swf have not been altered in any way at all - but still
    not displaying.
    when i
    > open up flash player to preview the file - again blank -
    when i do the
    same
    > with the first two .swf files, no issues!!
    >
    > I have recreated the html files to see if that was the
    issue ... to no
    avail.
    >
    > I also dumped the swfs into the 2 html files that are
    working fine -
    still no
    > luck.
    >
    > tis driving me mad - any ideas guys??? as i said - they
    are just vector
    logos
    > as with the first two pages so not sure what on earth is
    happening!
    >
    > incase this helps with any ideas....
    >
    > this page as you can see works fine:
    >
    http://www.justsoho.com.au/test_portfolio.html
    >
    > this one doesn't! :
    http://www.justsoho.com.au/test_portfolio_02.html
    >
    > hoping someone can shed some light on this!
    >
    > cheers
    > Rebecca
    >

  • SWF files not displaying in browsers

    Just installed CS6 Web and Design Premium on 27" iMac with OS X 10.7.4.  SWF files from Flash 5/Dreamweaver 5 display fine in all web browsers, but Flash CS6 (ActionScript 3.) SWF files result in the message - "Adobe Flash Player has stopped a potentially unsafe operation..."  I set the root folder of the web site I am working on as a Trusted Location Settings in my System Preferences and restarted, but no luck.   What am I missing?   Many thanks to anyone who knows what the issue is.

    For some darn reason, DW or swfobject thinks that there is a Flash player version 15.... and there ain't! ... at least as far as I know.
    Back the version down to the lowest that will work, version 10 if possible... that will avoid most of the "Update Flash" warnings.
    <param name="swfversion" value="15.0.0.0" />
    Change this in both places to version 10 and test again

  • Display a .swf file in the Gallery example

    Is it possible to display a .swf file instead of a .jpeg in
    the Gallery example? Any help would be appreciated.

    You "CAN" do it, but it would probably be kind of clunky. A
    detailed region rewrites the code and in theory you should be able
    to write in a new SWF. I don't mean, write in a new "location" but
    re-write out the entire tag.
    Hope this helps.

  • Spreadsheet component - bottom grid line not displaying in swf file

    Hi,
    I'm having an issue with the spreadsheet component. I'm using the "Ignore blank cells in Values" option on the behavior tab. This works fine. The problem I'm having is the bottom grid line in the spreadsheet table is not displaying in the swf file. The bottom grid line displays correctly in Preview mode....but is not displaying in the swf file. Anyone have any ideas on why?
    Thanks

    I'm not sure if I've interpreted your response correctly.  Our entire dashboard app is built on the swf files being called from the URL buttons.  We are not using HTML files.  Are you saying that if I do a file export to HTML that the swf file generated from this will display the bottom grid lines?
    I noticed that the spreadsheet component grid lines display correctly in the swf when not checking the ignore blank cells option in the behavior tab.
    So what would be our options here.....either uncheck the display grid lines for the spreadsheet component to not display the grid lines at all, or do not use the ignore blank cells option in the behavior tab to display a fixed number of rows each time?
    Thanks for the response, Matt.

  • Get the ipad to display my photos in file name sequence

    How can I get the ipad to display my photos in file name sequence instead of by time/date stamp? I want to display them in a particular sequence controlled by the filename I gave them. 

    Hey Tex,
    Good idea.  I've found a question that indicates that the ipad sorts by name (https://discussions.apple.com/message/9116248#9116248).  Mine are all sorted by date/time.  How did they do that?
    The app you suggested looks promising, but it sounds like i have to manually rearrange my pictures, and since i have hundreds in each folder, this would be tedious.  Is there an app that will allow me to display them by filename w/o me having to rearrange them myself??
    Thanks.
    WSC

Maybe you are looking for

  • Sorting notes on iPad and iPhone

    I have a iMac, MacBook pro, iPad and iPhone.  NOTES on my desktop computr and lap town automatically sorts alphabetically, but won't on my iPad or iPhone.  How can I get NOTES to sort alphabetically on the iPad and iPhone?

  • Inforecord Price is not taken in Costing-CK11N

    Hi, While executing costing run for a Material (Procurement Type F(External)), i am expecting the info record price to be picked (as per the valuation variant) for costing. However, i dont see it picked. I have checked the validity, vendor block etc.

  • SSO using spnego set up but not working for an Enterprise Web Service

    Hello, I am looking for some guidance. I have a function module that is exposed as a web service. I am trying to be able to access the web service with sso so the user does not need to logon. Systems has set up SSO using spnego to issue sap login tic

  • Subcontracting Scenario in PM

    Hi PM Expert, Can u tell me If I want to do Maintenance of my Machine Assembly from Outside and I also need to send the Material required for that Servicing   Please Explain Scenario that MAP in PM and also Hw to send material towards Vendor and Hw T

  • Oracle Developer Suite 11g support 64bit development?

    Is Oracle Developer Suite 11g going to support 64bit development? I have read the Statement of Direction and do not see any mention of supporting 64bit development. I can only find that the Oracle Database 11g will have a 64bit edition/version. jeema