How to reload a swf

I am loading a swf using swfloader. In that swf i have 3
buttons. On click event of those buttons i load a html control
which displays the html pages. I have a home button outside the
html control. On click event of home button my first swf(ie having
3 buttons) has to reload. How to do this?????.
How to use window.location.reload in AIR??

Vbprog40 wrote:
> I want to reset everything back to default and reload
would be better. Is there not a simple code in flash to reload?
There is just no such option as reload. Flash files to not
work like that.
You can use html reload, call it from getURL action in flash
in conjunction with javascript function.
It will reload entire document.
Other than that. Load the file in level, when you want to
reload it, simply unload it and load it
back in that level but for it you need to place some holder
movie in html document.
Best Regards
Urami
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami>

Similar Messages

  • How to Load a SWF in Dynamically Loaded HTML

    Hello,
    I have a Flash movie with a multi-line text field that loads
    HTML text. As per the below Macromedia documentation I have swfs as
    images inside my HTML text.
    I'm trying to find a way to pre-load these swfs - if I do
    loadmovie to load the swf, when the html file is loaded will it
    need to reload the swf from scratch or will it take my loaded
    version? I'd love to show a "loading" message in the text as the
    swf was loading but am unsure how to do this now that I have the
    swf reference embedded in the html text.
    Any ideas?
    Thanks!
    Julia
    From the Macromedia documentation:
    Image tag (<img>
    The <img> tag lets you embed external JPEG files, SWF
    files, and movie clips inside text fields. The <img> tag has
    one required attribute, src, which specifies the path to a JPEG
    file, a SWF file, or the linkage identifier of a movie clip symbol.

    Thanks - your answer is exactly what I was looking for.
    I'm noticing that every swf I load via dynamic HTML is
    distorted - is there a way to prevent this? I can set the width and
    height of each swf in the HTML, which works ok, but then I run into
    a problem when I try and have a component item (like an accordion)
    included in the dynamic text field. It works properly, and the
    framing is sized correctly, but the guts are still skewed. I
    haven't been able to figure out why the swfs are being distorted in
    the first place.
    Any ideas?
    Thanks,
    Julia

  • How to reload the screen when changing languages in JavaFX 2?

    I'm beginner with javaFX and i need to change language of the screen. but i have no idea how to reload the screen when the language was changed. The application have a button where have the language available. I want just refresh screen when the user change language.
    Here is the start method to show the stage.
        @Override
        public void start(Stage stage) throws Exception
            this.stage = stage;
            Locale locale = Locale.getDefault();
            ResourceBundle rb = ResourceBundle.getBundle("resources/Label",locale);
            loader = new FXMLLoader(getClass().getResource("FXMLDocument.fxml"),rb);
            root = (Parent)loader.load();
            FXMLDocumentController controller = (FXMLDocumentController) loader.getController();
            controller.setMain(this);
            scene = new Scene(root);
            stage.setScene(scene);
            stage.show();
    here is the function to change the language(in the same class with start function),the rb is the new ResourceBundle:
        public void refresh(ResourceBundle rb)
              //change the language here
    1. I don't want to use the resourceBundle to get value in resource file and set label in scene one by one.like following:
    this.btnLabel.setText(rb.getString(key.test));
    2. I don't want to reload the scene,like following:
        public void refresh(ResourceBundle rb)
             try
                loader = new FXMLLoader(getClass().getResource("FXMLDocument.fxml"),rb);
                root = (Parent)loader.load();
                scene.setRoot(root);
                FXMLDocumentController controller = (FXMLDocumentController) loader.getController();
                controller.setMain(this);
            catch(Exception err)
                err.printStackTrace();
    So do we have a solution to just set the resourceBundle and reload the scene easier?
    Thanks and best regards!

    Your option 2 (reload the FXML for the scene using the new resource bundle as a parameter), is the way this would normally be done and what I would recommend.
    Failing that, you could use option 1 of individually resetting the label text of labeled items (I don't really recommend this).
    Why don't you want to use option 2?
    Perhaps it is because there is some internal state of the UI which differs from the initial state when the the UI is first loaded (e.g. user has typed text in a text field and you want to preserve that).  If that's the case you will need to either go with your option 1 of individually resetting the label text of labeled items, or implement something which preserves the UI state and user data by saving it in memory or to disk, reloading the UI via the FXMLLoader (essentially your option 2), then restoring the UI state and user data to what it was before the language change.  Preserving and restoring the modified state seems complicated to me if you have a lot of state, so I wouldn't really advise this approach unless you really needed it.

  • How to create the SWF file which was included surrogate pairs.

    I would like to make sure how to create the SWF file which are included surrogate pairs.
    The error of outside the scope of unicode occurred when I compiled(mxmlc) the as file which was set surrogate pairs to 'Unicoderange'.
    Ex, I set the '  '(UTF-16 is '20B9F') to 'Unicoderange'.
    However, I cannot add the surrogate pairs.
    The error of outside the scope of Unicode occurred when I compiled the AS file.
    The reason of error was that the Unicode(UTF-16) of surrogate pairs is invalid.
    Then, I read the following pages.
    These pages are written that unicode-range supported surrogate pairs.
    http://livedocs.adobe.com/flex/3/html/help.html?content=fonts_07.html
    http://www.w3.org/TR/1998/REC-CSS2-19980512/fonts.html#descdef-unicode -range
    So please let me know how to create the SWF file which are included surrogate pairs.
    Environment
    - Flex3.5a
    - TTC: meiryo(ver6.02), msgothic(ver2.50), mspgothic(ver2.50)
    Thanks,
    Takeshi Ishihara.

    I've been able to create project jar files in Eclipse by selecting Export from the File menu, then choose Java - Jar file - and provide the required information, name, destination folder etc. But when I do this, I do not export other jars on the build path this way nor do I expect to do this. I am only concerned with creating a jar file of my own work. A jar file does not "contain" other jar files. If the jar file contains the main method, and requires other jars for it's execution, then you may wish to include a reference to required jars on the class path entry of the Manifest file of the jar file you create. I'm not sure how to create a Manifest file in eclipse though..

  • How to put the swf in sub directory

    Would you guys let me know how to put the *.swf file which
    has *.flv in sub directory other than root.
    I've tried many things none of them working.
    a regular *.swf are OK. But if that swf file related with
    *.flv. that Swf has to be in root directory on the server.
    if I put that swf in sub directory such as /swf then it's not
    working.
    Please, help me out.

    Hi,
    It looks like this is for the certification, so I won't give you that much helpt. But you could use a modern IDE to do what you want, or use ant (http://ant.apache.org/) for building.
    /Kaj
    Ps. It looks like your classpath is wrong when you try to run the program.

  • In BI 7, how to reload a red request into a DSO without deactivating delta?

    Hi,
    In BI 7, how to reload a red request into a DSO without deactivating delta?
    I have a red request in DSO A. I have corrected the Transfer rules and want to reload the request from PSA to DSO A. I have active delta from DSO A to DSO B.
    The only way I have found to reload the red request into DSO A, is to delete it first (like in BW 3.5). The problem then is that the system then gives me no other option than deactivating the delta from DSO A to DSO B. I then have to re-initialize delta from DSO A to DSO B with data transfer. Of course I first have to delete the data content in DSO B. I cannot do this because DSO B is very large. A reload would take several days.
    I have tried to reload the request from PSA without first deleting it from DSO A, but DSO A is not a valid target in the scheduler unless I delete it from DSO A first.
    This scenario must be very common and there must be a very simple solution, I just cannot find it.
    Any one who can help me?
    Best regards
    Kent Dahlgren

    Hi Kent,
    Regarding your questions,
    Have you already  tried to delete the red request and reconstruct it ??
    If the system gives you no choice beside delete delta ODS A to B, how about if you keep deleting the delta from ODS A to B, but after that you re-initilize with the option : no data transfer.
    Hope it can help you a lot.
    Thanks,
    Best regards,
    Daniel

  • How to Preloading a swf file in one application

    hello friends,
    How to preload a swf file in one application??
    i have two panel in one panel i given login screen and In second panel there is one module i have to show this panel which is visible="false" when user logged in but i have to preload this module in second panel when the user is doing logi. and when user logged in that time i have to show the second panel hiding the first panel.
    so how to do this i m not getting can anyone help me??
    Thanking you,
    Gajanan

    i have created a jar file.Now i want to reuse this
    jar file in another java program.Could anyone please
    guide me with the steps of how to reuse a jar fileput your jar file in class path and import the class which u want to reuse in your code so that u can access all the methods in that class in ur code.

  • How can I associat ".swf" files with flashlite 2.1

    How can I associate ".swf" files with flashlite 2.1? When I
    install flash lite 2.0,it can do ---- click .swf files system can
    autoly use flashlite to play.But now I install flashlite 2.1,it
    lost this ability return as "unknow files formate".
    Now,how can I reassociate ".swf" with flashlite 2.1?
    first: I must use flashlite 2.1.
    second:I must click .swf file directly.
    I know another way to open :open the player and then find the
    .swf,and open it. But ,unfortunately,I can not use this way to
    open.Now I will be looking for another way.

    unfortunately, the 2.1 developer edition you have installed
    has not overwritten the original version integrated into the
    symbian OS by the manufacturer. This means that the only way to
    open the 2.1 files is to open the 2.1 player from your apps menuu,
    and click on the swf file. You will only get direct access if the
    updated player is in a firmware update for you handset.
    Matt
    http://www.outside-media.co.uk/blog

  • Does anyone know how to reload Java SE 6 back into Lion until Apple and Oracle get it together?

    Does anyone know how to reload Java SE 6 back into Lion until Apple and Oracle get it together?

    See the following, with all of its caveats:
    http://managingosx.wordpress.com/2013/01/31/disabled-java-plugins-xprotect-updat er/
    For what it's worth, I am not using this method, nor am I re-enabling Java until Oracle comes out with a fix. I also won't be available to advise you on troubleshooting this method.

  • Just changed HD, saved ff bookmarks from previous, how to reload them into the new ff i just downloaded?????

    just changed my HD. using XP. before the change, i saved the bookmarks to a file. i just put that file onto my desktop and can't figure out how to reload all of my previous bookmarks into the new firefox. when i do a search under desktop, that file isn't listed to import.
    what to do?

    See also:
    *http://kb.mozillazine.org/Backing_up_and_restoring_bookmarks_-_Firefox
    <br />
    Make sure that the backup file with the bookmarks has the correct file extension: .html for a HTML backup and .json for a JSON backup.<br />
    You can check that via the right-click context menu of that file and open the Properties.<br />
    If you are not sure about the file type then you can open the file in Firefox via "File > Open File"<br />
    A JSON backup will show as one long text line without line breaks and a HTML backup as a web page with clickable links.
    A JSON backup starts with: <b><nowiki>{"title":"","id":1,"dateAdded":</nowiki></b><br />
    An HTML backup starts with: <b><nowiki><!DOCTYPE NETSCAPE-Bookmark-file-1></nowiki></b>
    Add quotes ("") around the name to rename the file to the correct file extension if the current file extension is hidden or if it is otherwise not working.

  • When do you think a preloader is necessary?  How large should a swf file be to justify it?

    I'm looking for opinions on preloaders.  When do you use a preloader?  How large must a swf file be before you to put a preloader in it? I am working on a small program that is 80kb in size right now and I'm not sure if I should add a preloader.

    About 500kb, you should use a preloader.
    Below? It depends on your file. If everything is on frame 1 , maybe it's better to use one.
    You can test it  with "Simulate Download" (Control - Test Scene ->  View - Simulate Download)

  • I need to know how to reload  my copy of Adobe Photoshop Elements 11

    i Need to know how to reload my copy of Adobe Photoshop Elements 11

    if you're asking for the pse 11 installation file and if you follow all 7 steps you can directly download a trial here:  http://prodesigntools.com/photoshop-elements-11-direct-download-links-pse-premiere-pre.htm l
    and activate with your serial number.
    if you have a problem downloading, you didn't follow all 7 steps, or your browser does not accept cookies. 
    the most common problem is caused by failing to meticulously follow steps 1,2 and/or 3 (which adds a cookie to your system enabling you to download the correct version from adobe.com). 
    failure to obtain that cookie results in an error page being displayed after clicking a link on prodesigntools.com

  • How can I convert .swf  file to exe file?

    thanks

    Hi
    Thank for your choise.
    If showing only white screen, please download the lastest version, v2.03.
    http://www.bullrushsoft.com/download.html
    This problem occurs in Win7 sp1, especially IE has been upgraded to v10.
    Our SWF to EXE Converter must need the FlashPlayer plugin for IE, it 's not a atandalone program.
    So it only 880KB.
    Our online converter is the adobe flash player exe, it can be embed the swf  into, and standalone, so its size > 4MB.
    More details, please visit http://www.bullrushsoft.com/online.html
    Best Regards.
    2013-08-11
    Bullrushsoft Support Team
    From:  mmshahid73
    Date:  2013-08-11  02:52:01
    To:  Sandro_brs
    Cc: 
    Subject:  _How_can_I_convert_.swf fileto_exe_file?
    Re: How can I convert .swf file to exe file?
    created by mmshahid73 in Flash Ad Development - View the full discussion
    Hi, I used bullrushsoft SWF to EXE converter, but the created EXE file showing only white screen, i think i need to add flash player also but i don't know how to add flash player duriing swf to exe conversion.
    Because when i converted swf into exe from my pc, it showing size 880 KB where swf file size is 413 KB, onthe other hand, I convert the same online which is playing correctly but the converted file size is 4.57 MB.
    Am i right?
    Kindly help
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5583680#5583680
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5583680#5583680
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5583680#5583680. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Flash Ad Development by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • How to reload older version of  i tunes for  my i touch . dont care for the latest version

    how to reload older version of i tunes for my i touch,dontcare for the newest version

    Huh?
    Itunes for your ipod? 
    Do you mean the itunes version on your computer?

  • How to import a .swf photogallery to my .fla project?

    Hi, I need help please, I am very new to Flash. I created a
    photo-album that came as a template with CS3 and published it to
    .swf file; separately I am designing a .fla website hoping to use
    the photo-album in it. I imported .swf photo-album into my .fla
    library, but now I am stuck - I don't know how to link this .swf
    file to a button in my .fla site. I tried actionscrip code, but I
    received an error when testing the movie. I can't find an answer to
    this in any of the books I have searched, or online. Can anyone
    share their brilliant knowledge please? Thank you!

    I can't thank you enough for replying; you have to forgive me
    for my coding illiteracy, this is my very first project in Flash.
    I searched some and realized that having a movieclip of the
    photoalbum is better than having an external .swf file, so I will
    go with your second way of linking the album.
    I created a button for the album, and I have converted the
    .swf photoalbum into a movieclip symbol that I see in my library
    now (named it photos). But I can't assign an instance to it - when
    I click on it from the library I get a new 'scene' on the stage
    with all the photoalbum layers, and there is nowhere where I can
    name an instance. So instead I inserted a movieclip symbol on a new
    layer of my .fla site, but as soon as I do it I don't see it on the
    timeline anymore.
    Can you explain what am I doing wrong please, like to a kid?
    I am a bit flustered at not being able to figure this out.
    THANK YOU VERY MUCH
    Liza

Maybe you are looking for

  • Getting 2D array of data in tabular format using web services

    Hi all, I was trying to fetch data from MS access database and populate the same 2D array of data on my web browser. But unfortunately it says that the 2D array is not a "supported data type" for web applications and hence the 'build fails'. I would

  • Adobe Photoshop Lightroom 5 5.3.0.0 fails when trying to install

    When i am trying to install Adobe Photoshop Lightroom 5.5.3.0.0 it fails and give me the following error message: Exit Code: 7 Please see specific errors below for troubleshooting. For example,  ERROR:  -------------------------------------- Summary

  • Disconnecting external monitor in sleep causes MacBook wake problem

    Hi, With previous laptops I would put it to sleep and then disconnect the cables for my external monitor and put it in my bag. However, with my MacBook, after it goes to sleep and when I disconnect the cable for my external monitor it wakes up, excep

  • How does Time Machine Handle separate Boot and User Volumes?

    I recently installed an SSD and set it up as my boot drive, and I'm using another hard drive for my Home folder, if I ever run into a scenario that I need to restore my entire system, how will Time Machine handle it? Will it restore my system back to

  • Safari 5.1.2 will not install

    Downloaded Safari 5.1.2 from the Apple web sit, running OS X.7.2 on a Quad Core Mac Pro. Software will not install.  On installation window reads "Waiting for other installations to complete".  Does not compete nor install after 30 mintes. No other p