Script to connect separate flash files??

I created a bunch of separate flash files and i need them to
be linked so when i click a button it loads the requested file. I
made them all separate html files to link but it doesn't look
right...loading each page separately...is there a better way? I
tried loadMovie but i don't know the correct action script to make
it happen i guess.

having separate .html files works fine, I used that method
before. you have to use getURL()
but a better way, and much cleaner:

Similar Messages

  • Flash files in a container

    Hello
    I hope someone can guide me in the right direction. I am
    producing a cd in Flash.
    I want my flash files to play inside of a container/frame.
    The container will be viewed as a red bar at the top and bottom of
    the flash, containing my play, pause buttons etc. The flash movie
    will play inside of the red bars.
    Can the container be a separate object object as I want the
    heading to be maintained in the container, so that heading changes
    will be updated on the container extending the flash movie
    lifespan.
    I also want to add a preloader which is built into the
    container to let users know that the next movie is loading.
    Can the container be built in flash or would I have to use a
    scripting language?
    My flash files currently run as external movies - is this ok
    or would they need to be internal?
    Can anyone help?

    If you are only going to put ALV's in the screen containers. You can control it in the program using the split screen container.
    You can either split the screen or split a container. In this case I am splitting the entire screen.
    DATA: SPLITTER_V            type ref to CL_GUI_SPLITTER_CONTAINER.
          create object SPLITTER_V
          exporting
            PARENT = CL_GUI_CONTAINER=>SCREEN0
            ROWS = 2
            COLUMNS = 1.
            g_CONTAINER_TOP     = SPLITTER_V->GET_CONTAINER( ROW = 1 COLUMN = 1 ).
            g_CONTAINER_BOTTOM  = SPLITTER_V->GET_CONTAINER( ROW = 2 COLUMN = 1 ).
    This is also useful if you want to create a dynamic layout ie. 1 alv in summary or 2 - 3 in detail mode. Also CL_GUI_CONTAINER=>SCREEN0 can just as easily be a container on the screen.

  • Ending Flash Files with Actionscript

    Hi there folks,
    Unfortunately I'm new to flash so you'll have to forgive this
    question,
    Q) What is the correct script to end a flash file once it
    reaches a specific frame (e.g If you want to end a Flash
    presentation when it reaches a certain point!?).
    If anyone can help with this, it would be much appreciated!!
    :)

    Captain Elgy,
    > Unfortunately I'm new to flash so you'll have to forgive
    > this question,
    No worries. :) Every one of us was new at some point.
    > Q) What is the correct script to end a flash file once
    it
    > reaches a specific frame (e.g If you want to end a Flash
    > presentation when it reaches a certain point!?).
    What do you mean by "end a flash file"? Do you mean stop? If
    so, a
    stop() action may be all you need -- that will stop the
    timeline. Do you
    mean quit and close the browser window? If so, you'll be
    stepping outside
    the realm of Flash, so you'd have to trigger JavaScript to
    close the window.
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Unix Script to connect to Portal Database and move the files to XI Server

    Hi all,
    we have a requirement where the source BW system is placing files in Content Management in the link http://xxx:50100/irj/go/km/docs/documents/Public%20Documents/HFM.
    XI needs to read the files from the above location.Since the files are stored in Portal database,we cant do FTP to this location.
    So we have been asked to write a script which connect to this location and moves the files to XI directory.
    Can someone plz help me with this script?

    The concern has been discussed earlier at
    here and should be helpful to check the database size and free available space in exchange server.
    This blog has also good explained about "how to count mailbox per database in exchange 2010". Please check this :
    http://blog.powershell.no/2010/11/21/retrieve-number-of-mailboxes-per-database-in-exchange-server-2010/

  • Can I use a 2.0 script in a 3.0 script Flash file?

    The following script is a simple photo gallery, written in Action Script 2.0. When I attempt to apply the same script in a Flash file designated as having Action Script 3.0, it does not work properly (the photos advance from frame to frame in a runaway fashion, in one continuous loop).
    Is there some reason why a 2.0 script should not work in a 3.0-specified document?
    Thanks, and here is the script:
    stop();
    btn_next.onRelease=function() {
        if (_root._currentframe==20) {
            gotoAndStop(1);
        else {
            nextFrame();
    btn_prev.onRelease=function() {
        if (_root._currentframe==1) {
            gotoAndStop(20);
        else {
            prevFrame();

    there's no easy way to convert most code.  but that's almost the same in both as2 and as3:
    stop();
    btn_next.addEventListener(MouseEvent.CLICK,nextF);
    function nextF() {
        if (MovieClip(root).currentFrame==20) {
            gotoAndStop(1);
        else {
            nextFrame();
    btn_prev.addEventListener(MouseEvent.CLICK,prevF);
    function prevF() {
        if (MovieClip(root).currentFrame==1) {
            gotoAndStop(20);
        else {
            prevFrame();

  • Collect Thread Dump using Script and direct to separate log file

    Dear Legends,
    I request you to provide me some useful guide lines to collect Thread Dump using script in linux and redirect the output to a separate log file, not the STDOUT file. If it is redirecting to STDOUT then how to extract only the thread stack to a separate log file.
    i used
    ps -ef | grep java
    kill -3 <pid> >> ss1_td.log
    but it is not providing the thread stack to the log file.
    Anykind of help would be appreciated much.
    Regards,
    Karthik

    Hi Ram,
    Really a great and useful script for me at the right time. It solved my requirement and i made some changes to my requirement and the script it working fine to collect the thread dump and even i have checked the thread dump with SAMURAI works fine.
    Helpful site also refer sites like these which contains more valuable things for weblogic. We will meet in the forums again.
    Note: also please update several links available in the site like UNIX scripts, WLST, Python etc.
    Regards,
    Karthik

  • Missing flash files with Dreamweaver CS3

    my uploaded site (which works fine when I preview before
    uploading) 'ignores' all flash animations once uploaded... the
    flash files are on the servers... is there a script I am missing? I
    usually use a separate FTP program for synching... the root and
    server folders are identical (so it seems)... help! Otherwise, the
    site is the way it should be.

    I'm having the exact same problem here:
    http://www.stjohnsgeorgetown.org/
    There's supposed to be a flash file at the top of the page, which
    isn't showing up. I tried changing the URL to an absolute path and
    it doesn't work. HELP!

  • Creating uicomponents in loaded flash file

    hello flex developers. i have a flex application and a flash swf file. flex application loads this flash file (which contains different overlays and some logic) and creates some flex components (UIComponents like Buttons and Labels) inside it in some places (in some overlays).
    i've tried various options with UIMovieClip, ContainerMovieClip, FlexContentHolder and FlexComponentKit but none of them works... after i add a UIComponent to loaded flash file - the component doesn't get initialized.
    also i tried examples with custom flash components embedded directly into flex application, which inherit from UIMovieClip and ContainerMovieClip, and they work fine inside flex application. but if i paste them in flash file and then load inside flex application - i again see UIComponents not being initialized...
    please help.
    here is my source code:
    flexLoadUITest.zip (loads flash file and then tries to create a button inside its custom flash component, but the button doesn't get initialized...) - http://www.megaupload.com/?d=J9Y28JX0
    flexUISpriteTest.zip (uses embedded flash custom components and displays button properly) - http://www.megaupload.com/?d=YF9BLCW0
    also here is my plain source code from not working flexLoadUITest:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" minWidth="955" minHeight="600" addedToStage="onStageAdded(event)">
        <mx:Script>
            <![CDATA[
                import mx.controls.Button;
                import mx.core.UIComponent;
                import mx.flash.ContainerMovieClip;
                private var loader:Loader;
                private var wrapper:UIComponent;
                private var container1MC:ContainerMovieClip;
                private var btn:Button;
                private function onStageAdded(event:Event):void{
                    trace("onStageAdded");
                    wrapper = new UIComponent;
                    addChild(wrapper);
                    loader = new Loader();
                    loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onComplete);
                    var loaderContext:LoaderContext=new LoaderContext();
                    loaderContext.applicationDomain=ApplicationDomain.currentDomain;
                    //loaderContext.securityDomain=SecurityDomain.currentDomain;
                    loader.load(new URLRequest("flash.swf"),loaderContext);
                private function onComplete(event:Event):void{
                    trace("onComplete");
                    loader.contentLoaderInfo.removeEventListener(Event.COMPLETE,onComplete);
                    loader.content.addEventListener(Event.ADDED_TO_STAGE,onContentAdded);
                    wrapper.addChild(loader.content);
                private function onContentAdded(event:Event):void{
                    trace("onContentAdded");
                    loader.content.removeEventListener(Event.ADDED_TO_STAGE,onContentAdded);
                    container1MC = loader.content["container1_mc"];
                    trace("container1MC is " + container1MC);
                    btn = new Button();
                    btn.label="deniska";
                    btn.width=btn.height=100;
                    btn.addEventListener(Event.ADDED_TO_STAGE,onBtnAdded);
                    container1MC.content=btn;
                    //container1MC.addChild(btn);
                private function onBtnAdded(event:Event):void{
                    trace("onBtnAdded");
                    btn.removeEventListener(Event.ADDED_TO_STAGE,onBtnAdded);
            ]]>
        </mx:Script>
    </mx:Application>

    got it, thanks. basically i don't want to spend time hacking UIComponents. to tell the truth i already have a custom UISprite logic to work with UIComponents, but it still using hacks... maybe you can recommend me some unified/modern way how to be able creating flex components dynamically and work with them in loaded swf files? simply these swfs are created by designers who work in Flash Professional. they draw there different animations, paste various assets and map some "content" for future dynamic components. of course i can create there non flex components, add sprites to these "content" areas, but i want flex UI components to appear there because they need to work close with system's core and various air/flex features. as i see flex component kit gives me ability to use some separate custom components created in flash with a small additional conversion of them. but these are all separate components, and i need to work with loaded swf file. are there any recommendations or guidelines for this direction? or maybe there is simply a tool/class that can be used/loaded into these swfs and make them fully capable for flex usage after loading?

  • Merging 8 Flash Files

    Hi,
       There are 8 different flash files and all these flash files are being merged to a single PPT and this merged PPT is being sent for Users. As this involves repeated tasks, now there is a requirement to merge all these files to single dashboard. Each dashboard is having Panel Containers and there are many charts, tickers etc.
    1. Is this possible to merge all these 8 different dashboard? How Can I merge? I assume the performance will be affected as there will be multiple connections. Any tips to have same performance after merging (as LO connections will be more tah 8)
    2. I am thinking of using Next/Previous button options to link various dashboards, if first one fails. Which button to use to give link to another dashboard.
    Could you please help
    Regards, Nanda Kishore.

    Hi Nanda,
    It is very well possible to merge 8 separate dashboards into a single dashboard. Rather I would suggest you to call those dashboards into your main one (with the help on Image component or SWF loader with some workaround ). use a play control to give ti a dynamic display or use a next and previous button to navigate. Only problem with this approach is that every time you change it to next it will reload again (this might be annoying). To avoid this you can load all of the dashboards to separate  image components an show or hide dip-pending on the value of the play-control or the button used for transition. Benefit is that it wont load again and again rather it will load all the dashboards at once, so initially it will take some time. See which one is the best possible solution for you.
    As you said you can use buttons to dynamical display and hide the components or use the standard play control for the same.
    Let us know if you need further clarification.
    Good Luck.

  • Figuring Out Complex Flash Files

    I had a complex flash files with all sorts of pictures,
    buttons and action scripts given to me by a friend to work on but I
    can only view the whole thing in SWF. Although I have MX2004, I am
    plodding through an 8 text but still can't figure out the trick of
    a) how to view the whole thing play on the Flash palette the
    way I did simpler Flash files
    b) how to easily see which timelines are connected with which
    symbols, buttons, etc
    Thanks so much for your assistance

    artnat wrote:
    > I had a complex flash files with all sorts of pictures,
    buttons and action
    > scripts given to me by a friend to work on but I can
    only view the whole thing
    > in SWF. Although I have MX2004, I am plodding through an
    8 text but still
    > can't figure out the trick of
    > a) how to view the whole thing play on the Flash palette
    the way I did simpler
    > Flash files
    there is no way, complex file is "complex" for a reason, made
    of lots of clips,
    timelines and action and there is no easy way to view it.
    > b) how to easily see which timelines are connected with
    which symbols,
    > buttons, etc
    only by studying the entire file, there is no easy "see" for
    timelines connectivity.
    Regards
    Urami
    Happy New Year guys - all the best there is in the 2006 :)
    <urami>
    http://www.Flashfugitive.com
    </urami>
    <web junk free>
    http://www.firefox.com
    </web junk free>

  • Help with Script created to check log files.

    Hi,
    I have a program we use in our organization on multiple workstations that connect to a MS SQL 2005 database on a Virtual Microsoft 2008 r2 Server. The program is quite old and programmed around the days when serial connections were the most efficient means
    of connection to a device. If for any reason the network, virtual server or the SAN which the virtual server runs off have roughly 25% utilization or higher on its resources the program on the workstations timeout from the SQL database and drop the program
    from the database completely rendering it useless. The program does not have the smarts to resync itself to the SQL database and it just sits there with "connection failed" until human interaction. A simple restart of the program reconnects itself
    to the SQL database without any issues. This is fine when staff are onsite but the program runs on systems out of hours when the site is unmanned.
    The utilization of the server environment is more than sufficient if not it has double the recommended resources needed for the program. I am in regular contact with the support for the program and it is a known issue for them which i believe they do not
    have any desire to fix in the near future. 
    I wish to create a simple script that checks the log files on each workstation or server the program runs on and emails me if a specific word comes up in that log file. The word will only show when a connection failure has occurred.
    After the email is sent i wish for the script to close the program and reopen it to resync the connection.
    I will schedule the script to run ever 15 minutes.
    I have posted this up in a previous post about a month ago but i went on holidays over xmas and the post died from my lack or response.
    Below is what i have so far as my script. I have only completed the monitoring of the log file and the email portion of it. I had some help from a guy on this forum to get the script to where it is now. I know basic to intermediate scripting so sorry for my
    crudity if any.
    The program is called "wasteman2G" and the log file is located in \\servername\WasteMan2G\Config\DCS\DCS_IN\alert.txt
    I would like to get the email side of this script working first and then move on to getting the restart of the program running after.
    At the moment i am not receiving an error from the script. It runs and doesn't complete what it should.
    Could someone please help?
    Const strMailto = "[email protected]"
    Const strMailFrom = "[email protected]"
    Const strSMTPServer = "mrc1tpv002.XXXX.local"
    Const FileToRead = "\\Mrctpv005\WasteMan2G\Config\DCS\DCS_IN\alert.txt"
    arrTextToScanFor = Array("SVR2006","SVR2008")
    Set WshShell = WScript.CreateObject("WScript.Shell")
    Set objFSO = WScript.CreateObject("Scripting.FileSystemObject")
    Set oFile = objFSO.GetFile(FileToRead)
    dLastCreateDate = CDate(WshShell.RegRead("HKLM\Software\RDScripts\CheckTXTFile\CreateDate"))
    If oFile.DateCreated = dLastCreateDate Then
    intStartAtLine = CInt(WshShell.RegRead("HKLM\Software\RDScripts\CheckTXTFile\LastLineChecked"))
    Else
    intStartAtLine = 0
    End If
    i = 0
    Set objTextFile = oFile.OpenAsTextStream()
    Do While Not objTextFile.AtEndOfStream
    If i < intStartAtLine Then
    objTextFile.SkipLine
    Else
    strNextLine = objTextFile.Readline()
    For each strItem in arrTextToScanFor
    If InStr(LCase(strNextLine),LCase(strItem)) Then
    strResults = strNextLine & vbcrlf & strResults
    End If
    Next
    End If
    i = i + 1
    Loop
    objTextFile.close
    WshShell.RegWrite "HKLM\Software\RDScripts\CheckTXTFile\FileChecked", FileToRead, "REG_SZ"
    WshShell.RegWrite "HKLM\Software\RDScripts\CheckTXTFile\CreateDate", oFile.DateCreated, "REG_SZ"
    WshShell.RegWrite "HKLM\Software\RDScripts\CheckTXTFile\LastLineChecked", i, "REG_DWORD"
    WshShell.RegWrite "HKLM\Software\RDScripts\CheckTXTFile\LastScanned", Now, "REG_SZ"
    If strResults <> "" Then
    SendCDOMail strMailFrom,strMailto,"VPN Logfile scan alert",strResults,"","",strSMTPServer
    End If
    Function SendCDOMail( strFrom, strSendTo, strSubject, strMessage , strUser, strPassword, strSMTP )
    With CreateObject("CDO.Message")
    .Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
    .Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = strSMTP
    .Configuration.Fields.item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 'basic
    .Configuration.Fields.item("http://schemas.microsoft.com/cdo/configuration/sendusername") = strUser
    .Configuration.Fields.item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = strPassword
    .Configuration.Fields.Update
    .From = strFrom
    .To = strSendTo
    .Subject = strSubject
    .TextBody = strMessage
    On Error Resume Next
    .Send
    If Err.Number <> 0 Then
    WScript.Echo "SendMail Failed:" & Err.Description
    End If
    End With
    End Function

    Thankyou for that link, it did help quite a bit. What i wanted was to move it to csript so i could run the wscript.echo in commandline. It all took to long and found a way to complete it via Batch. I do have a problem with my script though and you might
    be able to help.
    What i am doing is searching the log file. Finding the specific words then outputting them to an email. I havent used bmail before so thats probably my problem but then im using bmail to send me the results.
    Then im clearing the log file so the next day it is empty so that when i search it every 15 minutes its clean and only when an error occurs it will email me.
    Could you help me send the output via email using bmail or blat?
    @echo off
    echo Wasteman Logfile checker
    echo Created by: Reece Vellios
    echo Date: 08/01/2014
    findstr "SRV2006 & SRV2008" \\Mrctpv005\WasteMan2G\Config\DCS\DCS_IN\Alert.Txt > c:\log4mail.txt
    if %errorlevel%==0 C:\Documents and Settings\rvellios\Desktop\DCS Checker\bmail.exe -s mrc1tpv002.xxx.local -t [email protected] -f [email protected] -h -a "Process Dump" -m c:\log4mail.txt -c
    for %%G in (\\Mrctpv005\WasteMan2G\Config\DCS\DCS_IN\Alert.Txt) do (copy /Y nul "%%G")
    This the working script without bmail
    @echo off
    echo Wasteman Logfile checker
    echo Created by: Reece Vellios
    echo Date: 08/01/2014
    findstr "SRV2006 & SRV2008" \\Mrctpv005\WasteMan2G\Config\DCS\DCS_IN\Alert.Txt > C:\log4mail.txt
    if %errorlevel%==0 (echo Connection error)
    for %%G in (\\Mrctpv005\WasteMan2G\Config\DCS\DCS_IN\Alert.Txt) do (copy /Y nul "%%G")
    I need to make this happen:
    If error occurs at "%errorlevel%=0" then it will output the c:\log4mail.txt via smtp email using bmail.

  • How to use as3 in flash cs3 to add dynamic text from a text file into a flash file

    let me start out by saying today is my first day of scripting
    in flash.
    I have a text file text.txt
    it contains
    text1=hello world
    can someone please show me how to display this text in a
    flash file
    i have been searching for this for hours and there are
    solutions with flash mx and actionscript 2.0 but i would like to
    see how to do this in as3.
    just a simple frame that loads that file and displays it when
    you test run the program
    much apreciated
    RC

    I'm not up on AS3 yet, but many things are still similar. You
    need to use the LoadVars class to accomplish this, You can find
    information this in Flahs Help>Actionscript>Actionscript
    Language Reference>Actionscript classes.
    rem: the text.txt file and the text.fla file must be in the
    same directory.
    The code will look something like this:

  • Flash file not opening in XP system

    hi...
          I did one flash file by using Action Script 3.0. That SWF running in Vista and Windows7 systems but it not running in XP systems.
         What the Resion for that..

    no.. is there...
             Other SWF files are Running...

  • Security restriction while executing Flash file

    Hi,
    I am a beginer with Flash and I developed some sample Flash
    files(swf) using Flash MX 2004. The files were able to run with IE
    with out any issue on my XP machine which is having IE 6. The same
    files when I tried with IE 7 on Windows Vista, it is not letting me
    to run initially. It says ".... IE has restricted this web page
    from running scripts or Activex controlls that could access your
    computer....". Though I can right click and click 'Allow Blocked
    Content' to execute the file, I am wondering whether I can do some
    setting on the file itself to make it trusted or something like
    that. I can also change the IE settings not to restrict the file.
    But I think it won't be a general solution.
    I wanted embedd this flah file on an html page and I want to
    make sure that the file will execute with out the security warning
    or change in the IE settings.
    Most of the internet sites that I used access has flash
    content and my IE does not used to show any warning. How can I
    achieve the same with my flash file?
    Thanks in advance
    Seb

    If you embed the swf in the HTML it will not display that
    warning. The warning is something that IE displays when you open
    the SWF directly.

  • How do I get rid of the flashing file with a question mark in it?

    I wanted to start clean on my MacBook Pro osx 10.9.4. So I did the command r and erased what I thought was the right one. I restarted my computer and did the command r again and what came up was internet recovery. It can't find my internet because it's WEP and I don't know to change it to wpa. So I restarted my computer again and I didn't do the command r but just let it load itself to see what would happen and all I get is a flashing file with a question mark. I don't know what to do. Someone please help me.

    Do you get this display?
    If so, you have to select an Internet connection.  Do not expect quick response time in this mode.  All activities in this mode will be lengthy.
    Ciao.

Maybe you are looking for