Problem Coding Button over Frame by Frame Animation

Compiler Error: Scene=Scene 1, layer=actoins, fr;'{'
expected

Thanks to all for your help. It ended up being a problem
involving the template supplied with Flash. I was using a template
I believe to have been based on ActionScript 2 and the tutorial I
was borrowing the code from was assuming I was working with an
ActionScript 3 document. As soon as I created an empty ActionScript
3 document and loaded my existing elements in, as MovieClips in the
first frame of the timeline, everything worked as it was supposed
to.
Thanks to everyone for your attempts to help.
Best regards,
-Bill

Similar Messages

  • Buttons over video, subtitle stream displays on wrong story!

    Here's a quick run down of my project:
    the client has a video program which should play two different ways. the first button on my main menu should play the video program with no subtitle streams on. the second button on my main menu enables the same program to be played only now with subtitles stream 1 turned on. the subtitle stream is serving as buttons that appear over the video which jump to other submenus.
    my problem is that the first button, no matter what i've tried, still displays the subtitles stream though i don't want it to. i have one track of the video with two stories, 1 for display without the subtitle track and the other to display with the subtitle track. the button for the 1st story is set with the "view" option unchecked for subtitle stream 1 while the second is set with the "view" box checked...yet it still displays both! i've checked my disc options and the subtitle track's "view" is unchecked...
    i'm at a loss for what else to try. please help!

    i'm encountering the exact same problem with buttons over video in dvd studio pro. despite of the fact that the simulation within dvd studio pro works flawlessly, after buidling the video_TS folder and opening it in the dvd-player application, you can't hide the subtitles anymore (you can set the subtitle-streams in the menu to whatever you like but the subtitles never disappear). the same problem exists if i burn or build and format a physical dvd.
    help is really appreciated! thanks in advance for every hint!

  • Frame by Frame Button in AS3

    Hello,
    I started some days ago with Adobe Flash CS4, and I need to create buttons now. The button i want to create this time should be a frame by frame button, so when the user clicks 1 time on the button the animation needs to go 1 frame further and pause there.
    This is what i coded so far:
    nextframeknop_btn.addEventListener(MouseEvent.CLICK, nextframeClick);
    function nextframeClick(event:MouseEvent):void{
        play();
        stop();
    And i assume i need to create some kind of time interval of 1 frame between the "play();" and the "stop();".
    Before everyone says use the search button, yes I tryed that and I didnt find an explenation for my problem. Also if you find something else in the code that is not correct please tell me, Im not so familiar with flash yet and every help/tip is welcome!
    Also for the ones that are interpunction-nerds, dont blame me, I'm only 15 and English is not my main language, and yes I do pay attention in the English lessons...
    Greetings,
    Coyke

    Thanks for the fast reaction and the solution, but here's my next question. How to get to the previous frame? Because this code doesnt work :
    previousframeknop_btn.addEventListener(MouseEvent.CLICK, previousframeClick);
    function previousframeClick(event:MouseEvent):void{
        previousFrame();
    This error i get : 1180: Call to a possibly undefined method previousFrame.
    I assume the code "previousFrame" doesnt exist. Is there a similar code that does work?
    Thanks,
    Coyke

  • Frame in frame with graphics problem-or maybe not

    Hi from Croatia.
    Well I have and extremely demanding costumer that wants to control every single bit of the project.
    The problem is as follows.
    I have a book that every once in a wile has annotation which above and bellow has a graphic line (not simple line but complex graphic imported from illustrator.)
    I tried to anchor one object above and another bellow this text which lets say stands in the middle of text frame and for me everything works ok.
    But this demanding customer wants that those annotations are in separate frame so that he can have full control over them(?).
    So I made frame in frame-put wrapping around this smaller frame.
    The problem is- is it possible to put those graphics in this smaller frame, create text object and add it to library so that i can use it multiple times. I have more than hundred of those annotations.
    And is it possible when i cut the text from this main frame to paste it in this smaller one and that this small frame automatically fills with text so that frame expands vertically according with amount of text. I am not placing text but pasting. I hope you have understood but in every case here is an example.
    Main text frame(text fills full width of page)
    sadbhjasdsdab
    sagsafgsfgafsd
    agsfgfasg
    (Now smaller frame with graphic fills full width of main frame)
    ewfewtf
    agasg
    sdagasdga
    (text fom main frame continues)
    fasdfs
    dsgasgasg
    dfgdfsg
    dfsgsd
    Uf this was exhausting even for me.
    THX for any help.

    I tried to use 3 row table with header and footer, but the problem is that indesign does not allow tables to break when the part of table goes to another page.
    And THX for in for on those plugins.

  • Distributing keyframes in frame by frame animation

    I am doing a frame by frame animation of something I brought
    in from Illustrator. I have 20 keyframes, each with one (slightly
    different) symbol. I need this to move accross the screen.
    How does one do it, I must be missing something, this must
    come up all the time in frame by frame animation? I need the
    symbols to be distribited exactly same distance apart.
    I tried using the "align/distribute" feature the same way I
    know it from illustrator, and it is just kind of working. I check
    "edit all frames" make sure all the keyframes are selected and then
    go to the align panel and distribute the centers of all symbols.
    What goes wrong is this: it distributes them, but out of
    order. Instead of putting frame 2 couple pixels to the right from
    frame 1, it puts it right at the end where I would like the frame
    #20. the middle then seems in the right order but beginning and end
    are always mixed up.
    Is the distribute feature the best way of doing this , and
    why am I having this problem?

    I think you need to go into a bit more detail here. Try to describe exactly what you want to do, and what kind of footage we are talking about here. I really have no clue what you are trying to do with the current description.
    Are you trying to do stop motion animation? Make a cup move across a table or something like that? Then get iStopMotion.

  • Anaglyph Animation (frame by frame) does this procedure sound OK?

    Hello Everyone,
    I want to make 3D animation files, using Adobe toolkit and PSCS3. Does this route sound OK?
    Open .ASM file in Adobe toolkit, produce two animated Avi files (left) & (right).
    Import .avi (left) into PhotoShop as layers (save layers into folder named left).
    Import .avi (right) into PhotoShop as layers (select layers and drag over to my "left" file. save layers into folder named right).
    Frame by frame turn on corresponding layers in both left and right folders and convert the two layers as per "making 3d anaglyphs with Photoshop tuts." available on the web. e.g.:
    Layer (left) frame 1 of 300
    Ctrl L,
    Ctrl 2 (green) 255 to 0
    Ctrl 3 (blue) 255 to 0
    Turn layer to screen
    Layer (right) frame 1 of 300
    Ctrl L,
    Ctrl 1 (red) 255 to 0
    Etc.....
    Does anyone have an alternative or a different method?

    thank you so much for talking to me. I didn't realize
    tweening applied to frame by frame animation. So I create a motion
    tween btw each key frame?
    What I don't understand is: I want to be able to take the
    symbol in the last keyframe, drag it away from the rest of the
    symbols that are all aligned, and then get them to distribute
    automaticaly in their own keyframes. This is really done best
    through tweening? I thought this would only worked if all the in
    between steps were not keyframes.
    When I select all the keyframes at once and tween them they
    do not distribute.
    But I am probably not doing this right, I don't have time to
    experiment right now, I just wanted to say thanks.

  • Motion tweening a frame-by-frame animation

    Hello,
    I am an experienced animator who is new to using Flash. I need to know how to add a motion tween to an animation that I already made frame-by-frame. The animation will be of a fish blinking as it swims across the stage. I already created the frame animation of the fish blinking, but now I want to motion tween the whole animation (not just one frame) across the stage. However, I cannot figure out how to do this. Is there a way to create a simple animation that uses frame-by-frame animation and motion tweens simultaneously?

    Unfortunately, Adobe let (character) animators down by not developing any of Flash's animation tools since v8 - quite the contrary, the latest incarnation, CC, removed a lot of (quite essential) animation functionality. No more bones (yikes!) or motion curves control.
    A shame, because once Flash was the industry standard app for tv show animation. Not so anymore, though: Adobe dropped the ball in that regard, and mostly focuses on web/mobile apps and games development currently.
    There are two options:
    1) use animator-oriented alternatives like Toonboom and/or Anime Studio Pro (both of which export to flash movies);
    2) download a bunch of plugins, and extend Flash so that its workflow becomes more animator friendly.
    If you are just starting out, I would probably advise you to have at least a cursory look at the alternatives. However, having said all that, Flash can still be an enjoyable environment to animate in, IF you extend it a bit. Unfortunately some workflow may not be CC friendly anymore at this point due to the missing (almost essential) functionality compared to CS6 - you may prefer to work in CS6, depending.
    These will help you extend Flash to become a bit more animator friendly:
    http://cloudkid.com/tools
    http://flash-powertools.com/
    For example, Keyframe Caddy would solve your problem animating an eye by keyframing it in a symbol.
    The guys at flash-powertools created a character animation workflow you may like, which addresses the deficiences of Flash for professional level character animation. They have some nice templates and example character files for you to examine.
    A word of warning: character animation in Flash can become somewhat technical and daunting - in that case a tool like Anime Studio with excellent and easy to use bone tools and proper real(!) animation curves can be truly helpful. These can then be imported into Flash, and edited. Also, both AS and TB have a "real" virtual 3d camera of the scene that makes it easy to create parallax scrolling backgrounds and zoom in/out panning effects.
    Anyway, this is how you would do it in Flash:
    1) install Keyframe Caddy
    2) draw your fish in a cutout-fashion (seperate eye).
    3) convert all the fish elements to a graphic symbol (F8)
    4) double-click the fish symbol
    5) select the eye, and convert to a graphic symbol again
    6) add different drawings for the eye blinking
    7) return to the main stage
    Now you can start animating the fish:
    1) first animate the entire character moving
    2) then after you finish the overall movement, move to the frame you wish to change the eye
    3) double-click the fish character, and select the eye
    4) in KeyFrame Caddy click "load thumbnails". This should load up all the different frames (drawings/states) for that graphic symbol and display them all in the KeyFrame Caddy window
    5) now simply click on the required eye state, and KeyFrame Caddy will automatically create a keyframe for that state.
    6) move the timeline scrubber to the next frame you wish to keyframe eye movement
    7) click on the required eye state in the KeyFrame Caddy window.
    ...and so on! You may have to switch between the main scene and the fish symbol
    Make certain the lengths of both timelines are identical, otherwise the eye animation will start to repeat if it is shorter than the main timeline. Inversely, if the main timeline is shorter than the eye animation, the eye animation will obviously not be able to run completely through.
    One more thing: keep an eye out on the graphic symbol's looping in the properties - you may want to set it to either play once or looping (or even single frame).
    For more info on graphic symbols, read this:
    http://dev.tutsplus.com/articles/flashs-underrated-graphic-symbol--active-9964
    Also check out those two sites' other tools. And check out the workflow on the electric Dreams website. Hope this helps a bit.

  • How to place a button anywhere in a frame ?

    I'd like to place a button anywhere in a frame for example at the coordonates (10, 10) without specifying the type of th layout. (I work with jdk1.2 and j2sdk1.4)
    I used setLayout(null) and then btn.setLocation(10, 10) with btn the name of the button.
    The problem is that the button is not displayed in the frame so could you give the solution for that ?
    Thanks !

    try this code to add button anywhere on frame
    watch for function setbounds()
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class NoLayout extends Frame{
         static Container c1 = new Container();
         public NoLayout(){
              addWindowListener(new WindowAdapter()
                   public void windowClosing(WindowEvent e){
                        dispose();
              c1.setLayout(null);
              JPanel p1 = new JPanel();
              c1.add(p1);
              JButton b1 = new JButton();
              b1.setBounds(50,50,100,50);
              b1.setText("ABCD");
              c1.add(b1);
         public static void main(String [] args)
              NoLayout f1 = new NoLayout();
              f1.add(c1);
              f1.setTitle("My Program");
              f1.setBounds(0,0,400,400);
              f1.setVisible(true);
    hope it helps
    bye

  • Frame by frame animation not looping

    Hello,
    This seems so simple but it's not working - I have two frames I want to continuously loop, they are of a person walking. I have put sym.play(0); at the end of the symbol timeline, but it is not looping. The sym.play(0); command is definitely working as I tested it with another transition in the same symbol, and this did loop. Can you not loop frame by frame animation?
    Anyone got any ideas?
    Cheers

    Hi Darrell
    Thanks for your reply, sorry can't really post it as it's a commercial project. They are 2 separate images, which become visible / hidden alternately to show each one after the other.
    I've sort of solved my problem by just repeating this manually for now but would still be interested to know if looping is possible - however appreciate this may be tricky without the file.
    Cheers
    Sarah

  • Frame by frame animation, trying again

    or something wrong with the way I am asking it? Mainly I want
    to know if am am even using the right tool for this task. And why
    the helll this is not working?
    I am doing a frame by frame animation of something I brought
    in from Illustrator. I have 20 keyframes, each with one (slightly
    different) symbol. I need this to move accross the screen.
    How does one do it, I must be missing something, this must
    come up all the time in frame by frame animation. I need the
    symbols to be distribited exactly same distance apart.
    I tried using the "align/distribute" feature the same way I
    know it from illustrator, and it is just kind of working. I check
    "edit all frames" make sure all the keyframes are selected and then
    go to the align panel and distribute the centers of all symbols.
    What goes wrong is this: it distributes them, but out of
    order. Instead of putting frame 2 couple pixels to the right from
    frame 1, it puts it right at the end where I would like the frame
    #20. the middle then seems in the right order but beginning and end
    are always mixed up.
    Is the distribute feature the best way of doing this , and
    why am I having this problem?

    thank you so much for talking to me. I didn't realize
    tweening applied to frame by frame animation. So I create a motion
    tween btw each key frame?
    What I don't understand is: I want to be able to take the
    symbol in the last keyframe, drag it away from the rest of the
    symbols that are all aligned, and then get them to distribute
    automaticaly in their own keyframes. This is really done best
    through tweening? I thought this would only worked if all the in
    between steps were not keyframes.
    When I select all the keyframes at once and tween them they
    do not distribute.
    But I am probably not doing this right, I don't have time to
    experiment right now, I just wanted to say thanks.

  • Frame-by-Frame Animations

    hi guys!
    i really need help as soon as possible. i am currently
    constructing a frame-by-frame movie containing different still
    picture sequences with background music. my problem is, i have a
    deadline in a week, and, well, i am half-way done. but that's not
    the problem. it's that whenever i test my movie by publishing it,
    as soon as the pictures come out, the entire picture just turns
    red. then the pictures never come back. no matter how i publish it
    and no matter what format, it turns red. there are a few animations
    before that, like blinking lights and tweened texts, but those
    don't turn red. i don't know ho to fix this and i don't know what's
    going on... do you think it's just my computer?
    help!!!!
    -OriO-

    Hi,
    This miskate happens to me when I break apart an image and I
    delete the
    unused item from the library. Do you do so?
    Otherwise, I agree with Wolf Van Ween it may be a bug in
    Flash or at least
    your file.
    Hope this help..
    Yours,
    Rafiq R. Elmansy
    Multimedia Graphic Designer
    Macromedia Certified Proffessional
    www.beedesignstudio.com
    www.macromedia-review.blogspot.com
    www.mmug-egypt.mxdj.com
    "OriO_CheezecaKe" <[email protected]> wrote
    in message
    news:e1vi1g$2lf$[email protected]..
    > hi guys!
    >
    > i really need help as soon as possible. i am currently
    constructing a
    > frame-by-frame movie containing different still picture
    sequences with
    > background music. my problem is, i have a deadline in a
    week, and, well, i
    am
    > half-way done. but that's not the problem. it's that
    whenever i test my
    movie
    > by publishing it, as soon as the pictures come out, the
    entire picture
    just
    > turns red. then the pictures never come back. no matter
    how i publish it
    and no
    > matter what format, it turns red. there are a few
    animations before that,
    like
    > blinking lights and tweened texts, but those don't turn
    red. i don't know
    ho to
    > fix this and i don't know what's going on... do you
    think it's just my
    computer?
    >
    > help!!!!
    >
    > -OriO-
    >
    >

  • How to disable the maximise button of a awt Frame

    Hi guys..
    Is there any way to disable the maximise button of the awt Frame (Not JFrame). I have tried the
    setResizable(false), but that one is not solving my problem. Any code will highly be Appreciated.
    tks in advance
    Jameel
    My ids r
    [email protected]
    [email protected]

    i used setResizable and it disables theframes max button
    import java.awt.*;
    import java.awt.event.*;
    public class frame extends Frame
    public frame()
    setSize(200,200);
    setVisible(true);
    setResizable(false);
    public static void main(String a[])
    new frame();
    what do u really need

  • Unable to paste frame from one animation into another

    Hi, I'm currently working to make a set of GIFs. I'm using PS CS6 64-bit on a Windows 7 PC. This is my first time encountering this error. I am attempting to select a batch of frames from one animation (in the frame animation mode) then select "Copy Frames" in the drop down window of the workflow menu, then move to the other animation, which is also in frame animation mode. However, when I go to that animation's drop down menu I'm unable to select "Paste Frame" - it's grayed out. I've attempted to rest my tools and preferences, and reopened PS several times, but still can't copy and paste frames from one animation to another. (I'm still able to copy and paste frames within a single animation.) As I said, this is my first time encountering this error after making numerous GIF sets this way -- any troubleshooting tips?

    That copy and paste you describe does not work in ASO -- it does in BSO. AFAIK, it has been that way forever.
    Sorry, because it is a very nice bit of functionality in BSO.
    Regards,
    Cameron Lackpour

  • Gifs saving as frames instead of animations

    When I try to save a gif from anywhere on the internet, it keeps saving as a single frame, and when I open the file, I can then see all the frames in the animation. I have tried dragging the image directly into the folder and by saving as. The file extension is always .gif, so I can't figure out why it's not saving as an animation. Thanks!!

    All the frames are there. You need to play it,  maybe QuickTime or preview QuickLook.  Some mail clients will play animated gifs. Otherwise you have to view it in a browser (GUI.)  Fact is try dragging it into a browser window to view!

  • For character animation is frame by frame, motion or classic tween?

    Hi, i'm very new to adobe flash. I'm using cs5
    Am i right in thinking that for detailed character animation, of cartoons or people, i would still need to do frame by frame animation, and then probably use tweening for big movements like making that same animation move across the screen?
    Your responses would be appreciated.

    I am not an animator (most of the time) but if I were I think I would probably end up using timeline tweening wherever it helped make things easier, especially for what you are calling big movements like having things zoom or move or to have a background moving if the animation involves characters moving.

Maybe you are looking for