Placing scripts into specific frames

Hello,
I am using Flex Builder 2 to create classes, leaving my FLA file void of scripts.
I wish to extend a MovieClip class so that my new class would dispatch a specific event everytime it reaches the last frame.
I could do this using an ENTER_FRAME listener which would launch a function call to see if the current frame is actually the last one, but I don't wish to do that and drop lag down my users' throat. I would rather prefer adding manually "endSequence()" to all of the animation sequences using Flash... which I really don't want to be doing as it would make updating very bothersome.
Is there a way to add a script to a frame programmatically so I don't have to use Flash to add bits of script to the last frame of each of my concerned MovieClips?
Thanks in advance,

Great! Thanks for the tip! Didn't find it in the Language Reference, but found the necessary synthaxe on:
http://74.125.113.132/search?q=cache:QWuOfC-AvusJ:www.kirupa.com/forum/showthread.php%3Fp% 3D2098271+addframescript+as3&cd=1&hl=en&ct=clnk&gl=ca

Similar Messages

  • Help with script to translate randomly-placed layer into specific coordinates.

    I have a set of images in a folder. They all have the same size (200px x 200px).
    I create a large blank document, and I'm making a script to put all the images in my large document as a series of layers.
    The idea is to make image1 align with the left edge of the document, and then have the rest of images follow to the right (imageX is X*250 pixels away from the left edge of the document). That way I would get a series of images that start at the left edge and go right, separated by 50 pixels from each other.
    My code is something like this:
    var folderPath=Folder("C:/bleh/images/");
    var images=10;
    var imagesWidth=200;
    var separation=10
    var newFileName;
    for(var i=0;i<images;i++){
         newFileName="image"+counter+".jpg"
         app.load(File(folderPath+"/"+newFileName));     //open the new image
         backFile=app.activeDocument;
         backFile.selection.selectAll();                 //select it's contents
         backFile.selection.copy();                      //copy them
         backFile.close(SaveOptions.DONOTSAVECHANGES);   //close the image
         app.activeDocument.paste();                     //paste the image's contents into the large document
         app.activeDocument.layers[0].translate(20,0)    // <---- THIS IS THE PROBLEM
    The problem is that when an image is pasted onto the large document, it seems that it aligns itself depending on the current view's zoom and seeing area. That means that each time the script is ran, the images will be pasted at different "global coordinates". This is a problem because the only way to move a layer seems to be with the layer.translate() function, which takes as parameters an amount in pixels to move the layer. I can't find anything that remotely looks like "align layer to the leftmost edge" or anything.
    I want to be able to translate them all the way to the left (and then translate them again in this manner: deltaX = i*(imagesWidth+separation)).
    So how can I find the gap in pixels between the left edge of the document and the edge of the layer/center of the layer?

    Here is the align method..
    align("AdRg");   // move layer to the bottom
    function align(method) {
    activeDocument.selection.selectAll();
       // methods:
       // 'AdCH' - center horizontal
       // 'AdCV' - center vertical
       // 'AdLf' - left
       // 'AdBt '- bottom
       // 'AdTp' - Top
       //  'AdRg' - Right
       var desc = new ActionDescriptor();
               var ref = new ActionReference();
               ref.putEnumerated( charIDToTypeID( "Lyr " ), charIDToTypeID( "Ordn" ), charIDToTypeID( "Trgt" ) );
           desc.putReference( charIDToTypeID( "null" ), ref );
           desc.putEnumerated( charIDToTypeID( "Usng" ), charIDToTypeID( "ADSt" ), charIDToTypeID( method ) );
        try{
       executeAction( charIDToTypeID( "Algn" ), desc, DialogModes.NO );
       }catch(e){}
       activeDocument.selection.deselect();

  • Using Flach CS4 and action script 2.0 how do I advance to a specific frame of the main timeline when a movie clip instance come to the end of its timeline?

    Using Flach CS4 and action script 2.0 how do I advance to a specific frame of the main timeline when a movie clip instance come to the end of its timeline?

    code on the last frame of your movieclip instance:
    _root.gotoAndStop('whatever_frame');  // will work unless this swf is loaded into another swf.  in that situation, you should use a relative path to the main timeline (eg,  _parent or _parent._parent etc).

  • Automatically placing images into frames?

    Hello all, I really hope im in the right part of this forum
    anyway, I work at a print shop, we layout our gang runs in indesign, our files are automatically renamed to 88888-F.xxx and 88888-B.xxx (front/back, xxx being the extension jpg/pdf/tiff/etc)
    the layouts are vertically symmetrical
    is there anyway I can manually drag 88888-F into its frame and have 88888-B automatically be placed into the frame on the other side?
    Thanks in advance!

    I not aware of a process that allows you to use a manual drag and drop.  Not sure if the event listener would work here. What you could do is using the ImageCatalog.jsx that comes in the sample JavaScript is create a script that selects a folder or files and places then in the order you require.

  • Script to split line of copy into 2 frames?

    Hello,
    I was wondering if anyone has come across a script that could split a line of copy within a text frame into two frames (at a point of the users choosing).
    The example below is similar to what I'm using in a catalog as a folio/photo credit. At the end of the design process, I have to go through and split text objects that are in color out from text objects that are b/w (this is so the catalog can be translated into a second language. Color items are on a common layer, each language is in black only and on it's own layer in the document).
    Seen anything like that kicking around the internet?

    Hi vasu_479,
    Based on your description, you want to split columns in source table into two destination tables.
    After testing the scenario in my environment, we can use Multicast to achieve your requirement. Just as you said, the Multicast would return all columns. But we can use the method below to achieve the goal:
    If the destination tables are existing tables, we can just map column A, B and D as Input Columns to the corresponding Destination Columns in the Mapping tab for destination A. Then map column A, C, D and E in destination B.
    If the destination tables are created in the Destination component, we can modify the create table query to directly create A, B and D for destination table A, create A, C, D and E for destination table B. Then there columns would be automatically mapped
    in the Mappings pane.
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • IE11 can't post form data to specific frame or window dialog opened via window.open()

    Hello,
    Form POST targeting to specific frame or dialog popped up via window.open() no longer works in IE11.
    It worked fine in IE10 and all previous versions of IE.
    Please see screenshot attached with simple test that reproduces this problem.
    Direct Link to screenshot:
    http://173.231.98.44/cgi/TestFolder/IE_11_widow_frame_targeting_BUG.jpg
    Direct link to simple test page demonstrating this problem:
    http://173.231.98.44/cgi/TestFolder/page2.asp
    Note: IE11 doesn't report any errors, doesn't complain about anything, even when debugged via F12 developer tools. The only thing it complained initially was missing doc type declaration on top of page, but even after adding doc type definition, problem still
    persists, makes no difference.
    I tested this on fresh install of Windows 2012R2 while testing our web application with the new IE11.
    I believe doing this on Windows 8.1 with IE11 will result in same bug/problem.
    Our web application uses a technique whereby it launches a popup window via call to window.open(), passing blank URL and specifying a name for the new window. It then does a from post targeting the name of new dialog.
    In IE11 this functionality has been broken and no longer works.
    Problem is that IE11, instead of posting form to the newly created dialog, it launches a new instance of IE and then loads the requested form in this new instance of IE, while the dialog launched via window.open() remains on screen and is empty. If user repeats
    launching same form post request (via button click for example), IE 11 keeps creating new empty dialogs and new IE instance for every form post executed. This totally breaks our application because we use many so called "wizards" that encapsulate
    specific functionality in separate web page launched in a popup window.
    Another related problem is that if a dialog is launched with window.open(), the java script code in the dialog can not target the parent frame that opened the dialog anymore. In our application, when a dialog is closed, it typically needs to trigger a refresh
    of a specific frame within the parent window (again targeted by name) to reflect saved/updated info that user entered in the popup dialog. The result is that we can't refresh the parent frame after the pop up dialog closes. Instead, IE11 launches
    a new instance of IE (not just a tab, but a whole new instance) and loads the parent frame in it.
    The problem seems to be caused by broken frame name targeting mechanism in IE11.
    Note that we force IE to compatibility mode 5, but even without specifying any compatibility, the problem remains.
    Typical java script to reproduce this is:
    <input type="button" onClick="Popup(this.form);" name="btn2" value="Popup Dialog">
    function Popup(f){
        window.open("","MyNewDialogName","width=200,height=150");
        f.action = "page3.asp";
        f.target = "MyNewDialogName";
        f.submit();
    Expected: IE11 should correctly post form to and load targeted page in the newly popped up dialog, without opening new IE instance and new tab. Repeatedly posting form to existing popup window should reuse that window, not keep on launching more popup windows
    and then more IE instances.
    Steps to reproduce the problem (include URL if applicable):
    URL with sample page: http://173.231.98.44/cgi/TestFolder/page2.asp
    1) Create page1.htm: <html><body>display "I'm in a popup window now ..."</body></html>
    2) Create page2.htm with a button and onclick() event calling function to open dialog, and do form POST targeting new dialog calling page1.htm, like below.
    <input type="button" onClick="Popup(this.form);" name="btn2" value="Popup Dialog"> function Popup(f){
        window.open("","MyNewDialogName","width=200,height=150");
        f.action = "page1.asp";
        f.target = "MyNewDialogName";
        f.submit();
    3) Open IE11, navigate to page2.htm, click the "Popup Dialog" dialog button. IE 11 will popup the new dialog, but then it will also launch new instance of IE11 and display the page1.htm in it, instead of in the popup dialog.
    Has anyone else encountered this problem?
    Any insight or help is appreciated.
    Regards
    Peter

    the default action of <input type="button" is submit. Note also that the default type of <button> elements is 'submit' also.
    add a return false to the onclick inline event handler (which constructs the form submit attribues) to cancel the default form.submit behavior.
    form elements have a target value with which you can specify the name window into which you want the form to open in.
    <form action="process.aspx" target="popup">
    you can use the window.open method with a query uri to achieve the same outcome.
    window.open('process.aspx?s=search+term&amp;foo=bar','popup',{features})
    the outcomes of all scripted windows are affected by
    your IE Popup blocker and tabbed browsing settings
    which in turn is affected by your IE Security zone settings (for popup blocking handling)
    and the settings of any third-party popup blocker you may have installed and enabled... it may not necessarily be visible on your browser toolbar.
    The first step in troubleshooting web browser issues is to test in no-addons mode.
    Use the Developer Tool to find out what documentMode the test page is opening in on your system. On Modal/Modeless popup windows use the f12 key to display the Developer tool positioned on the contentWindow.
    Use File>Properties to find out what IE Security zone it maps to... there is a security setting to prevent navigation into zones of lower integrity.
    Rob^_^

  • Opening new page to a Specific frame

    I am still learning Action Script but I have a problem with
    writing the full script for combing navigate to new URL and
    gotoAndPlay. More specifically what I want to do is use a button
    which when clicked will open a new page and then start playing my
    Flash movie at a certain frame on the Timeline. I have used buttons
    to navigate to a new URL and used the gotoAndPlay ( ) ; command to
    play a certain frame, both have been successful but when I combine
    the two I run into trouble. What happens is the new page loads
    correctly and goes to the specific frame but then opens the browser
    in a new window with the movie playing from the beginning. The
    correct sequence within the correct Webpage is playing but only if
    I close the current page, in other words what I am trying to
    achieve is running but in the background.
    I have attached some of the code I have tried if that helps.
    Many Thanks.

    How extensive are the corresponding text changes on the HTML
    page? How many HTML pages are there? The reason I am asking is that
    if HTML content is not big - your best bet may be to load all the
    HTML content at once and hide/unhide parts of it based on the
    commands that come from Flash.
    But if you are sticking to your guns:
    Your use case, as you described it, is:
    1. user clicks a button on a column
    2. the column clicked moves across the movie
    3. the movie starts to play a different section
    4. the text on the web page changes to match the new movie
    sequence.
    There is a problem here - No 4 requires browser reloading. I
    believe user experience will not be all that good because of the
    visual break (new html page loading) after all the animation
    sequence after the click occurs. Perhaps a better experience can
    be:
    click --> load appropriate page --> perform animation
    sequence.
    As for the variables that you add to the request,
    conceptually it is not different from appending url variables to
    the url string:
    You can do it this way:
    var url:String =
    "www.domain.com/mypage.html?myVariable1=something&myVariable2=somethingElse";
    Or you can do it this way:
    ar url:String = "www.domain.com/mypage.html";
    var variables:URLVariables = new URLVariables();
    variables.myVariable1 = "something";
    variables.myVariable2 = "somethingElse";
    var request:URLRequest = new URLRequest(url);
    request.data = variables;
    I hope you see the similarity. The result is the same - Flash
    sends request with the variables.
    You may perceive the second way as more cumbersome but there
    are several advantages of doing it this way. One of the most
    important is that Flash automatically makes variables values url
    formatted which is critical when you send strings with special
    characters. In addition, when you send many variables - it is much
    more manageable than keeping track of the variable and making
    assignments in one-line url string.
    How you deal with it further depends on how good you are with
    HTML and JavaScript OR server side processing.
    Say you need to start your Flash movie from a certain frame
    (say No 50). You may want to:
    1. Load HTML page with a url that contains a frame number:
    variables.startframe = 50;
    2. You need to read this variable with JavaScript and write
    an appropriate embed tag. There are several ways to do that. Read
    about FlashVars. It could be (in the embed tag):
    src="myMovie.swf?startframe=50" where 50 comes from browser
    location string.
    3. Inside Flash you will utilize LoaderInfo.parameters method
    to extract the value of the variable startframe.
    4. Write code that will perform and animation based on this
    variable/parameter.
    I guess a question is "How good are you at HTML and
    JavaScript?"

  • How do I align a placed image in a frame using JS?

    I am new both to javascript and to scripting for InDesign, so please bear with me on this question.
    I am trying to align an image in a graphic frame so it aligns to the top right corner of the frame.
    I can do this using the InDesign interface by following these steps:
    1. Create a rectangular frame.
    2. Right-clicking the frame and selecting "Fitting > Frame Fitting Options."
    3. Selecting the top-right square in the "Alignment" area of the Frame Fitting Options dialogue.
    For me, this automatically aligns the image to the top right corner in the selected text frame, even if there is a placed item in the frame.
    I am trying to apply this to the actual image frame using the following code where "modelFrame" is the rectangle that is the parent of the placed image:
              modelFrame.frameFittingOptions.fittingAlignment.anchorPoint = AnchorPoint.TOP_RIGHT_ANCHOR;
    I am not getting an error, but I am also not getting the desired results (in fact, it doesn't change anythign at all). What am I doing wrong?

    Hi lanejd,
    I have got the same issue as you but had just found the solution. Please see below:
    modelFrame.frameFittingOptions.fittingAlignment.anchorPoint = AnchorPoint.TOP_RIGHT_ANCHOR;
    This will only set the properties for the Frame Fitting Options. You will need to call a method/function. Add the below line to your script and it will execute the Frame fitting Options.
    modelFrame.fit(FitOptions.applyFrameFittingOptions);
    Hope this help!

  • Loading external movies in specific frames

    Here's what I'd like to have my project do: By clicking on a
    button in frame 5 I'd like to load a movie into an empty movie clip
    in frame 20. I'v ewritten the script to create the empty movie clip
    and also load the movie, but the movie loads into all frames of my
    project. I'd ideally like to have the movie clip waiting for my
    only in frame 20. Anyone know how to make this happen?
    Thanks
    Eric

    you could not load it into an empty movie clip located on
    frame 20 from frame 5, flash wouldn't know where to load it since
    the movie clip hasn't shown up... you could load it in on frame 5
    and give the movie clip a _visible = false; or set it's _x and _y
    properties to be off the stage, then on frame 20 set it to _visible
    = true; or move its _x and _y properties to be on the
    stage..

  • Translation of Iris script into Darwin

    Hi,
    I am trying to install a utility called EGS_Windows in Darwin and it comes with an installation script for the old Iris system. This utility is normally installed in Linux, and I have the linux installer script as well. Anyhowm I try to run the script by:
    make -f Makefile.iris
    or
    make -f Makefile.Linux
    Both of these return a long error message that I have attached to see if any can give me any word of advice on how do I start translating the iris script into something Darwin can understand in order to install the utility.
    Thanks a lot
    macarabe
    PS:
    _Here is the MAKEFILE.IRIS script_:
    # This is /usr/people/egsnrc/EGS_Windows/RCS/Makefile.iris,v
    # Revision 1.1 last edited 2001-02-02 15:14:51-05
    # Last changed by bwalters and currently locked by
    # Makefile for EGS graphics software.
    # See the Makefile for Linux for a description of the variables
    CC= cc
    F77= f77
    INCLUDES= -I./ -I/usr/include/GL -I/usr/local/include
    LIBS= -lforms -lglut -lGL -lGLU -lXmu -lXext -lX11 -lm -ltiff
    LDFLAGS= -L/usr/local/lib -L/usr/lib
    EGSSOURCE= egs_main.c \
    palette.c \
    egs_input.c \
    egs_graphics.c \
    egs_labels.c \
    egs_printer.c \
    egs_history.c \
    egs_prefs.c \
    egs_prefacts.c
    EGSOBJS= \
    egs_main.o \
    egs_graphics.o \
    palette.o \
    egs_input.o \
    egs_labels.o \
    egs_printer.o \
    egs_history.o \
    egs_prefs.o \
    egs_prefacts.o
    TARFILES= \
    *.c examples *.h *.f \
    *.help *.map Makefile README Announcement CHANGES
    EGSWindows4.0.sgi.exe: $(EGSOBJS)
    $(F77) $(EGSOBJS) ${INCLUDES} ${LDFLAGS} ${LIBS} -g -o EGSWindows4.0.iris.exe
    egs_main.o: egs_main.c egs_guis.c egs_prefs.h
    ${CC} egs_main.c $(CFLAGS) $(INCLUDES) -g -c -o egs_main.o
    palette.o: palette.c
    ${CC} palette.c $(CFLAGS) $(INCLUDES) -g -c -o palette.o
    egs_graphics.o: egs_graphics.c egs_guis.c egsgfxglobals.h
    $(CC) egs_graphics.c $(CFLAGS) $(INCLUDES) -DMACHINETYPE=sgi -g -c -o egs_graphics.o
    egs_labels.o: egs_labels.c egs_guis.c egs_guis.h
    $(CC) egs_labels.c $(CFLAGS) $(INCLUDES) -g -c -o egs_labels.o
    egs_printer.o: egs_printer.c egs_guis.c egs_guis.h
    $(CC) egs_printer.c $(CFLAGS) $(INCLUDES) -g -c -o egs_printer.o
    egs_history.o: egs_history.c egs_guis.c egsgfxglobals.h
    $(CC) egs_history.c $(CFLAGS) $(INCLUDES) -g -c -o egs_history.o
    egs_prefs.o: egs_prefs.c egs_prefs.h
    $(CC) egs_prefs.c $(CFLAGS) $(INCLUDES) -g -c -o egs_prefs.o
    egs_prefacts.o: egs_prefacts.c egs_prefs.h egsgfxglobals.h
    $(CC) egs_prefacts.c $(CFLAGS) $(INCLUDES) -g -c -o egs_prefacts.o
    egs_input.o: egs_input.c
    $(CC) egs_input.c $(CFLAGS) $(INCLUDES) -g -c -o egs_input.o
    clean:
    touch $(EGSSOURCE)
    rm *.o
    tarfile:
    tar -cvf EGSWindows4.0.tar $(TARFILES)
    gzip *.tar
    _And here is the MAKEFILE.LINUX script_:
    # This is /usr/people/egsnrc/EGS_Windows/RCS/Makefile.Linux,v
    # Revision 1.3 last edited 2002-12-29 08:12:45-05
    # Last changed by dave and currently locked by
    # Makefile for EGS graphics software.
    # Change the cc, g77 to what you use to compile C and FORTRAN.
    CC= cc
    F77= g77
    # The following lines tell us where to find the vaious include files
    # needed by the code. Specifically EGS_Windows needs to know where to
    # find the files
    # 1) egs_guis.h, egs_prefs.h, egsgfxglobals.h, banner.xbm,
    # canflag.xpm, which are in ./
    # 2) math.h, stdio.h, stdlib.h, string.h, X11/StringDefs.h,
    # X11/keysym.h, X11/cursorfont.h, X11/extensions/XShm.h, X11/Xlib.h,
    # which at NRC are in /usr/include
    # 3) gl.h, glx.h, glu.h, glut.h, which at NRC are in /usr/local/include/GL
    # 4) forms.h, tiffio.h which at NRC are in /usr/local/include. The make
    # utility has this path on its default directory search so it needn't be
    # specified.
    INCLUDES= -I./ -I/usr/include -I/usr/X11R6/include -I/usr/include/GL -I/usr/X11R6/include/X11
    # The following are the libraries that EGS_Windows requires to link in
    # at the final compilation stage.
    LIBS= -lforms -lglut -lGL -lGLU -lXmu -lXext -lX11 -lm -ltiff
    #in one installation, one needed to add -lXi to the above(Henning Kiel)
    # The following are the directory search paths of the above listed
    # libraries. All of the above libraries can be found in these
    # directories at NRC; they should be changed or added to depending on
    # where they live on your directory tree.
    LDFLAGS= -L/usr/X11R6/lib -L/usr/lib -L/usr/local/lib
    EGSSOURCE= egs_main.c \
    palette.c \
    egs_input.c \
    egs_graphics.c \
    egs_labels.c \
    egs_printer.c \
    egs_history.c \
    egs_prefs.c \
    egs_prefacts.c
    EGSOBJS= \
    egs_main.o \
    egs_graphics.o \
    palette.o \
    egs_input.o \
    egs_labels.o \
    egs_printer.o \
    egs_history.o \
    egs_prefs.o \
    egs_prefacts.o
    TARFILES= \
    *.c examples *.h *.f \
    *.help *.map Makefile README Announcement CHANGES
    EGSWindows4.0.Linux.exe: $(EGSOBJS)
    $(F77) $(EGSOBJS) ${INCLUDES} ${LDFLAGS} ${LIBS} -g -gldebug -o EGSWindows4.0.Linux.exe
    egs_main.o: egs_main.c egs_guis.c egs_prefs.h
    ${CC} egs_main.c $(CFLAGS) $(INCLUDES) -g -c -o egs_main.o
    palette.o: palette.c
    ${CC} palette.c $(CFLAGS) $(INCLUDES) -g -c -o palette.o
    egs_graphics.o: egs_graphics.c egs_guis.c egsgfxglobals.h
    $(CC) egs_graphics.c $(CFLAGS) $(INCLUDES) -DMACHINETYPE=linux -g -c -o egs_graphics.o
    egs_labels.o: egs_labels.c egs_guis.c egs_guis.h
    $(CC) egs_labels.c $(CFLAGS) $(INCLUDES) -g -c -o egs_labels.o
    egs_printer.o: egs_printer.c egs_guis.c egs_guis.h
    $(CC) egs_printer.c $(CFLAGS) $(INCLUDES) -g -c -o egs_printer.o
    egs_history.o: egs_history.c egs_guis.c egsgfxglobals.h
    $(CC) egs_history.c $(CFLAGS) $(INCLUDES) -g -c -o egs_history.o
    egs_prefs.o: egs_prefs.c egs_prefs.h
    $(CC) egs_prefs.c $(CFLAGS) $(INCLUDES) -g -c -o egs_prefs.o
    egs_prefacts.o: egs_prefacts.c egs_prefs.h egsgfxglobals.h
    $(CC) egs_prefacts.c $(CFLAGS) $(INCLUDES) -g -c -o egs_prefacts.o
    egs_input.o: egs_input.c
    $(CC) egs_input.c $(CFLAGS) $(INCLUDES) -g -c -o egs_input.o
    clean:
    touch $(EGSSOURCE)
    rm *.o
    tarfile:
    tar -cvf EGSWindows4.0.tar $(TARFILES)
    gzip *.tar

    macarabe wrote:
    Both of these return a long error message that I have attached to see if any can give me any word of advice on how do I start translating the iris script into something Darwin can understand in order to install the utility.
    You didn't include the error message. Porting a makefile from Linux shouldn't be too difficult. The only unusual thing I see is FORTRAN. You'll probably need a FORTRAN compiler to proceed.

  • Paste image into new frame with same offset

    InDesign CS4-- I'm trying to copy an image from one frame and Paste Into another frame on the same page, and have it appear in the same position within the frame. I want it to adhere to the offset coordinates of the previous frame, but instead, it uses the offset coordinates of the page, or centers the image within the new frame. As I recall, CS2 or CS3 had a feature that allowed me to do this, but I cannot figure it out in CS4. Please help! Thanks.

    Thanks, Rob. Unfortunately, I got a new error with the latest script you posted (sorry--not trying to be a pest!!). It says,
    Apple Script Error!
    Error Number: -2753
    Error String: The variable myRend is not defined.
    (One thing that's different is I'm working on a different machine than I was the first day I posted about this, but I'm using the exact same version of InDesign. Would this make a difference? I forgot to copy the original script file from the other computer before coming to work today... If I need to do that, I can.)
    Thanks for your continued help!

  • Can PrE do multiple specific frame searches?

    I'm trying to find a not too expensive editing program, possibly PRE 10, that will allow me to do a search in a video for specific frame locations based on criteria within a frame. I've done exhaustive searching on web to no avail so far. I've been using Corel Videostudio which doesn't have anything like that.
    Specifically I want to search the infamous Norwegian Bergne/Oslo train ride video, all seven hours of it. The video consists of the uninterrupted train ride, which by itself is great to watch except for one thing.
    Every time the train passes into a tunnel, or reaches a town, a blue sign drops down from the top of the screen with the location's name. That's not so bad, but then someone has inserted a very loud gong sound at that moment, totally destroying the relaxing ambience of the video.
    What I want to do is find each occurrance of this event, which is about four seconds long, and replace the audio gong sound with either silence or filler. The bad part is that there are easily a hundred plus of these, probably over 200.
    So I'm hoping that some program, somewhere, would be able to either find all of them at once, or quickly 'step' forward to each so I don't have to slowly play the video, stop, insert, hoping I don't miss one, etc. It would search keying on either something in the video frame like the big blue sign, or the sound, it really doesn't matter what.
    I've broken the video up into 30 minute segments to make editing easier and faster.
    Any advice or recommendations would be greatly appreciated!
    Thanks!

    I know of no NLE program, that offers the ability to match, or search frames. While I have not used them all, and some many versions ago, I do not recall such a function in AVID (Liquid, or Composer), PrPro, Pinnacle Studio, Magix MovieEdit Pro or CyberLink's PowerDirctor.
    There might be some forensic programs, that can do this, but not sure that anyone, outside of law enforcement would have access to it.
    Maybe others know of such software.
    In PrE, about the best that I can think of is to use the Jog Shuttle in the Program Monitor, and visually watch, as the footage goes by very quickly, stopping when one reaches a tunnel, or town.
    Good luck,
    Hunt

  • Go to specific frame of an external swf?

    How can I load a specific frame/label of an external swf
    file?
    anyone?

    me,
    > How can I load a specific frame/label of an external
    > swf file?
    First, you load the external SWF file. There are a number of
    ways to do
    this. I recommend either the MovieClip.loadMovie() method or
    the
    MovieClipLoader class. This causes the external SWF to be
    loaded into a
    movie clip container. Once the external SWF has fully loaded,
    invoke
    MovieClip.gotoAndPlay() on the container clip and specify the
    desired frame.
    David
    stiller (at) quip (dot) net
    Dev essays:
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Is it possible to load an external swf at a specific frame?

    Hey! I've got a flash file which acts as the main menu for a
    program I'm developing. Everything works fine from the main menu
    however when you click to return to the main menu the whole main
    menu file reloads. Is it possible to use loadMovieNum( ) to go to a
    specific frame within the main swf file? If not, is there a way to
    do this?
    Here's the button code I'm using now:
    on (release) {
    unloadMovieNum(0); //unloads the current movie so we can
    reload the main menu
    loadMovieNum("DemoMainMenu.swf", 0); //reloads the main menu
    Thank you for whatever help you can provide! :)

    mcommini wrote:
    > Hey! I've got a flash file which acts as the main menu
    for a program I'm
    > developing. Everything works fine from the main menu
    however when you click to
    > return to the main menu the whole main menu file
    reloads. Is it possible to
    > use loadMovieNum( ) to go to a specific frame within the
    main swf file? If
    > not, is there a way to do this?
    First let me clarify one thing with you. Level zero is the
    main level on the flash
    player. By loading things in level zero you will remove
    current content and replace
    it with the new one. This is not a good idea because it works
    like purge, clears the
    player and from there on you can't maintain any functionality
    unless you reload the
    whole html document over again. Also, do not unload and load
    in the same time in the
    same level. Flash can hold single SWF per level, once you
    load content, whatever previously
    loaded will be automatically replaced, so just the loadMovie
    action and you all set.
    Good practice is to have the main level (zero) an empty base
    and than load and unload
    things in above levels, 1 and so on...
    > Here's the button code I'm using now:
    > on (release) {
    > unloadMovieNum(0); //unloads the current movie so we can
    reload the main menu
    > loadMovieNum("DemoMainMenu.swf", 0); //reloads the main
    menu
    > }
    >
    In regard to the load and go to. Yes it is possible but no
    matter what frame you want to
    go to,you need to load the whole movie first. I will come
    back to that in a second.
    While you execute the loadMovie action, you can set up a
    variable, for example:
    loadMovieNum("file.swf", 1);
    Variable="mcommini_01";
    Than in the loaded movie you have preloader which makes sure
    that the movie is loaded before
    playing and once done loading, make it jump to frame which
    has IF ELSE condition in some kind
    of loop, using setInterval or Enterframe. That condition
    checks for the variable value and based
    on it proceed to particular frame.
    That's why I told you not to clear level zero, if you set
    variable and load movie in that level
    in the same time, all the information will be gone and you
    have totally no reference point to
    get the variable from.
    You could as well use shared object which is native form of
    Flash's cookies. Write SOL file into
    user drive temp folder, than read it from the other file and
    go to frame based on the given value.
    Best Regards
    Urami
    Beauty is in the eye of the beer holder...
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Exporting action script in 2nd frame

    I have a preloader in frame one so I export frame for classes
    in frame two in the publishing settings. I have a scrolling
    component in the .fla and when I set up the linkage for the
    scrollable movie clip, it exports into the 1st frame. How do I tell
    Flash to export action script for component in 2nd frame? Because
    of the conflict with the publishing settings set at frame 2, the
    scroll bar won't work unless I publish export action script into
    frame one.
    Please help,
    Darryl

    Thank you for replying. I was instructed that it is better to
    have the action script load in the second frame if my preloader is
    in the first frame in order for the page to cache faster on the
    users PC. So in the Publish Settings, in the Flash Tab under
    Settings, I was informed to "export frame for classes in "2".
    The action script for the compenent in the Library only gives
    me the choice of it exporting in frame 1. And because they do not
    correspond, the scroll bar will not appear unless I change the
    Publish settings to export in frame 1 and I will get this error
    message Error opening URL
    "file:///D|/Flash%20Studio%208/nams/scroll".
    My goal was to increase the download speed of the Flash page.
    Is there a way to get the compenent Action script to export in
    Frame 2? The only option box through the Library Linkage is Frame
    1.
    Thank you again for responding,
    Darryl

Maybe you are looking for

  • My email to apple about  problems syncing iBooks

    Here is the email I sent to Apple support today about my problems syncing ibooks. Am I the only one who can't figure out how I make this work? I can't figure out how to sync ibooks. There are limited choices. I can sync all books or select books on m

  • N80 Gallery Bug introduced in firmare 5.0719.0.2

    In case you guys from Nokia didnt notice it yet ... There was a new bug introduced into the Gallery application of the Nokia N80 with Firmware 5.0719.0.2. The bug looks as following: If you open the Picture Gallery there simply wont be any pictures o

  • Can the glass on my iphone 5 be replaced?

    I have a cracked glass where it was dropped. Can this be replaced at the apple store?

  • Work Order Field Selection after Release

    Hello, Can anybody help me in configuring Field Selection. We are creating Work Order or Service PO. We are entering Services in Short Discription Bcoz Service master is not used. We want to make this field in Display after completely release. We are

  • What do you do when you accidentally unplugged your Iphone4S while it was restoring from iTunes?

    I accidenlty unplugged my Iphone 4S while it was restoring and now it just has a apple sign poped up with a downloading bar below it. What should I do?! I tried plugging it back to itunes but its just frozen now. I know it was stupid to do that. Shou