Some Flash 8 help needed please.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • glone
    FFR Player
    • Mar 2005
    • 64

    #1

    Some Flash 8 help needed please.

    Ok, well I'm making a scrolling nav banner that is using this style. I can't seem to get it to scroll though, and when I launch it in a browser, it resizes itself to the window. I've uploaded the source file so you can see what I've done so far. I've only started using F8 since last night (7/22/06) and I don't know enough code or about the program to understand what's really going wrong. I do know that I get this error message:

    **Error** Symbol=sliding_window, layer=pages, frame=1:Line 1: Clip events are permitted only for movie clip instances
    onClipEvent (load) {

    **Error** Symbol=sliding_window, layer=pages, frame=1:Line 6: Clip events are permitted only for movie clip instances
    onClipEvent (enterFrame) {

    I understand what this means, but if I move the code to anywhere but where it currently resides, then it won't work anyway. I got this far because of this tutorial. I've searched around on the flashkit.com forums and other sites and looked at dozens of similar posts, but haven't found any definite answers. I realize (now) that my code is not recommended for this type of thing. I need to know all the code to put in and where it goes. I'm not used to the code and what part is a variable and what's not. Help would be greatly appreciated.
    Last edited by glone; 07-24-2006, 12:03 AM.
    Post on Net Neutrality:
    Originally posted by sertman
    All I know is I saw a ****load of commercials about it
    and they really made no sense... they were just like "If this passes your TV will fly into space"
    My Sister:
    Omg, if you go to Tokyo, you'll go insane. There's like a thousand people every three feet.
  • Krilnon
    FFR Player
    • Oct 2003
    • 11

    #2
    Re: Some Flash 8 help needed please.

    You need to place that AS on the instance of sliding_pages named "easing". So, find sliding_window in your library, unlock the 'pages' layer, and click on the MovieClip in the center of the Stage.

    Also, you need to give your buttons instance names or else the onRelease handlers will never fire. Naming them 'page1', 'page2' etc. would be the easiest option, as the AS already has those instances targeted.

    Comment

    • glone
      FFR Player
      • Mar 2005
      • 64

      #3
      Re: Some Flash 8 help needed please.

      Thanks a whole lot. You have no idea how happy I am right now. It's working now (finally), but I'm still getting these 2 errors:

      **Error** Symbol=sliding_window, layer=pages, frame=1:Line 1: Clip events are permitted only for movie clip instances
      onClipEvent (load) {

      **Error** Symbol=sliding_window, layer=pages, frame=1:Line 6: Clip events are permitted only for movie clip instances
      onClipEvent (enterFrame) {

      Now all I need to do is fix 'em make the buttons act as links.
      Post on Net Neutrality:
      Originally posted by sertman
      All I know is I saw a ****load of commercials about it
      and they really made no sense... they were just like "If this passes your TV will fly into space"
      My Sister:
      Omg, if you go to Tokyo, you'll go insane. There's like a thousand people every three feet.

      Comment

      • Krilnon
        FFR Player
        • Oct 2003
        • 11

        #4
        Re: Some Flash 8 help needed please.

        You need to delete the AS that is on the timeline of the sliding_window MC. You only need to have AS on the instance of sliding_pages. (Click the frame with the 'a' on it and delete that AS)

        Comment

        • glone
          FFR Player
          • Mar 2005
          • 64

          #5
          Re: Some Flash 8 help needed please.

          Ok, well I did get it to work with this code:
          onClipEvent (load) {
          _x = 0;
          _y = 0;
          spd = 8;
          }
          onClipEvent (enterFrame) {
          _x += (endX-_x)/spd;
          _y += (endY-_y)/spd;
          };
          _root.page1.onRelease = function() {
          endX = 0;
          endY = 0;
          };
          _root.page2.onRelease = function() {
          endX = -750;
          endY = 0;
          };
          _root.page3.onRelease = function() {
          endX = -1500;
          endY = 0;
          };
          _root.page4.onRelease = function() {
          endX = -2250;
          endY = 0;
          };
          _root.page5.onRelease = function() {
          endX = -3000;
          endY = 0;
          };
          _root.page6.onRelease = function() {
          endX = -3750;
          endY = 0;
          };
          But I keep getting this error:
          **Error** Symbol=sliding_window, layer=Mask, frame=1:Line 1: Clip events are permitted only for movie clip instances
          onClipEvent (load) {

          **Error** Symbol=sliding_window, layer=Mask, frame=1:Line 6: Clip events are permitted only for movie clip instances
          onClipEvent (enterFrame) {
          The code is only in the sliding window instance as it should be, but I'm still getting the problem.

          So can anyone suggest some code to use instead of what I have there? I need to know all the code as I'm new to this (as stated in the earlier post) and where to put it.

          I've uploaded the newest version to the page so you can see what I've done.
          Post on Net Neutrality:
          Originally posted by sertman
          All I know is I saw a ****load of commercials about it
          and they really made no sense... they were just like "If this passes your TV will fly into space"
          My Sister:
          Omg, if you go to Tokyo, you'll go insane. There's like a thousand people every three feet.

          Comment

          • Krilnon
            FFR Player
            • Oct 2003
            • 11

            #6
            Re: Some Flash 8 help needed please.

            Actually, you still had some AS where it shouldn't have been. I removed it in this .fla. It looks much nicer if you bump the framerate, though the easing AS could probably be improved.

            Comment

            • glone
              FFR Player
              • Mar 2005
              • 64

              #7
              Re: Some Flash 8 help needed please.

              Sweet. Thanks a whole lot. Now I can really get going on my site. I can improve on it later. I just wanted to get it at this stage. Yessss.
              Post on Net Neutrality:
              Originally posted by sertman
              All I know is I saw a ****load of commercials about it
              and they really made no sense... they were just like "If this passes your TV will fly into space"
              My Sister:
              Omg, if you go to Tokyo, you'll go insane. There's like a thousand people every three feet.

              Comment

              • glone
                FFR Player
                • Mar 2005
                • 64

                #8
                Re: Some Flash 8 help needed please.

                Now I'm having another issue. I can't seem to get the page to open in an iframe. It just opens in a new window. This is the code I'm using on the buttons:
                on(release){
                getURL("home.html", target="main");
                }
                What should I add or replace to get it to load in the iframe? Help...meep!
                Post on Net Neutrality:
                Originally posted by sertman
                All I know is I saw a ****load of commercials about it
                and they really made no sense... they were just like "If this passes your TV will fly into space"
                My Sister:
                Omg, if you go to Tokyo, you'll go insane. There's like a thousand people every three feet.

                Comment

                • Krilnon
                  FFR Player
                  • Oct 2003
                  • 11

                  #9
                  Re: Some Flash 8 help needed please.

                  Assuming that your iframe is named correctly, removing the 'target=' part from your existing code should make the function work correctly. The second parameter only needs the String name of the iframe, so the 'target=' is probably just 'confusing' it.

                  Comment

                  • glone
                    FFR Player
                    • Mar 2005
                    • 64

                    #10
                    Re: Some Flash 8 help needed please.

                    I've tried that ad I still get the same result.
                    Post on Net Neutrality:
                    Originally posted by sertman
                    All I know is I saw a ****load of commercials about it
                    and they really made no sense... they were just like "If this passes your TV will fly into space"
                    My Sister:
                    Omg, if you go to Tokyo, you'll go insane. There's like a thousand people every three feet.

                    Comment

                    • Krilnon
                      FFR Player
                      • Oct 2003
                      • 11

                      #11
                      Re: Some Flash 8 help needed please.

                      Interesting problem. Sorry about my post before, I haven't used getURL along with iframes for a few years, so I was referencing some code published for either Flash Player 6 or 7.

                      With the security changes in Flash Player 8, you now need to allow network file access for local testing. It's an option near the bottom of the Publish Settings menu, the attached image shows the menu.

                      The error you were having shouldn't happen if you test the files online, no matter what you select in the box.
                      Attached Files

                      Comment

                      • glone
                        FFR Player
                        • Mar 2005
                        • 64

                        #12
                        Re: Some Flash 8 help needed please.

                        YOU ARE THE MAN. Thank you so much . It works perfectly now.
                        Post on Net Neutrality:
                        Originally posted by sertman
                        All I know is I saw a ****load of commercials about it
                        and they really made no sense... they were just like "If this passes your TV will fly into space"
                        My Sister:
                        Omg, if you go to Tokyo, you'll go insane. There's like a thousand people every three feet.

                        Comment

                        Working...