Since when does ActionScript 1.0 not work right?

Ask a Question related to Macromedia Flash Actionscript, Design and Development.

  1. #1

    Default Since when does ActionScript 1.0 not work right?

    Am I wrong in thinking the following code on a button in Flash MX 2004 should
    control a MovieClip called "greekTxt"?

    on(rollOver){
    _root.greekTxt.gotoAndPlay(10);
    }

    on(rollOut){
    _root.greekTxt.gotoAndPlay(25);
    }

    Because, right now, it doesn't. Even when I set the publish settings for
    actionscript 1.0, it still doesn't work. This is very frustrating.

    Everything is spelled correctly and in theory this should work correctly.

    But am I doing something wrong?

    Any help would be appreciated.

    Thanks
    Chris

    ChrisFlynn Guest

  2. Similar Questions and Discussions

    1. HTTPService Proxy in ActionScript doesn't work but doesin MXML
      I have an http service defined in MXML to use the proxy services and it works fine. However if I create the http service in an action script it...
    2. Links don't work in Shockwave movie but work in p
      Hi, everyone: I encountered a strange problem. I downloaded a sample movie from Macromedia site and noticed that the same problem occurs what I had...
    3. Old Actionscript Doesn't Work! Please help
      I have to update a Flash file created in V4. The actionscript won't work after I save it in v6. When I publish the file I get the following message...
    4. pb Actionscript
      Hi all, I usually use this Actionscript code in my first image to get variables from a text file : txt = new LoadVars();...
    5. Actionscript doesn't work in SWF if saved in Flash 5 format
      I created a file in Flash MX on a PC and my client (another designer) only has Flash 5 in her Mac. The movie is completely dynamic and uses AS for...
  3. #2

    Default Re: Since when does ActionScript 1.0 not work right?

    Is the movie Forms/Screens based or Timeline Based?
    Also, are you sure that the movie "greekTxt" is attached to _root?
    I would run in debug and take a look at the tree structure of your movie and
    see what "greekTxt" is actually attached too.

    Jim

    "ChrisFlynn" <webforumsuser@macromedia.com> wrote in message
    news:c22c62$o7v$1@forums.macromedia.com...
    > Am I wrong in thinking the following code on a button in Flash MX 2004
    should
    > control a MovieClip called "greekTxt"?
    >
    > on(rollOver){
    > _root.greekTxt.gotoAndPlay(10);
    > }
    >
    > on(rollOut){
    > _root.greekTxt.gotoAndPlay(25);
    > }
    >
    > Because, right now, it doesn't. Even when I set the publish settings for
    > actionscript 1.0, it still doesn't work. This is very frustrating.
    >
    > Everything is spelled correctly and in theory this should work correctly.
    >
    > But am I doing something wrong?
    >
    > Any help would be appreciated.
    >
    > Thanks
    > Chris
    >

    James Fee Guest

  4. #3

    Default Re: Since when does ActionScript 1.0 not work rig

    Where is 'greekTxt' located? Where are the buttons located? What exactly does
    "it doesn't work" mean? It won't play at all? It won't paly the rollOut all the
    time?

    From what you posted, as long as you haven't forgotten to give your MC an
    instance name of 'greekTxt' (I do that from time to time :) and 'greekTxt' is
    on the _root timeline, then it should work. If your buttons are also on the
    _root timeline, I would go ahead and take out the _root references from the
    gotoAndPlay()s.

    abeall Guest

  5. #4

    Default Re: Since when does ActionScript 1.0 not work rig

    To answer the questions, the MC "greekTxt" is named as such and appears on the
    stage of the movie. I ran a debug on this file and greekTxt doesn't seem to
    appear under _root for some reason. This may be the problem, but I don't know
    why it wouldn't show up there, its right on the stage.

    This is a timeline based Flash.

    I tried removing the _root references in the code, but that didn't work either.

    And what I mean by not working is that when I rollover or out of this button,
    'greekTxt' doesn't do anything. Its supposed to animate when I roll in and out
    of it.

    Any more help would be appreciated.

    Thanks
    Chris

    ChrisFlynn Guest

  6. #5

    Default Re: Since when does ActionScript 1.0 not work rig

    Chris,

    Is it possible you're confusing "instance name" with "symbol name"? The
    movie clip itself in your Library may be called greekTxt, but that's not
    what makes this kind of thing work.

    The Library item is a symbol (button, graphic, movie clip -- in this
    case, a movie clip), and you must grab an instance of this symbol and drag
    it to the stage. You've done that.

    Now, select that instance and give it an instance name (see your
    Properties panel). Make the instance name greekTxt.


    David
    stiller( at ) quip ( dot ) net


    David Stiller Guest

  7. #6

    Default Re: Since when does ActionScript 1.0 not work rig

    The only time I have ever had such a problem, is when I accidentally set my
    "MC" to a "Graphic" symbol.

    Maybe your "greekTxt" MC was set to a Graphic symbol. In this case, it
    obviously wouldn't work.

    Just a hunch.

    jerreye04 Guest

  8. #7

    Default Re: Since when does ActionScript 1.0 not work rig

    As far as I know, everything is correct on my end (that I can tell).

    I'm not confusing symbol names with instance names. My instance of my MC is
    named as it should be, "greekTxt".

    When I debug, the MC might be there, but its not recognised by its instance
    name, I don't know why this is.

    Is there some new setting I'm missing in MX 2004 in order to make this work?

    Thanks
    Chris

    ChrisFlynn Guest

  9. #8

    Default Re: Since when does ActionScript 1.0 not work rig

    When you looked in the debugger, what was it attached to?

    Jim

    "ChrisFlynn" <webforumsuser@macromedia.com> wrote in message
    news:c22lld$9cu$1@forums.macromedia.com...
    > As far as I know, everything is correct on my end (that I can tell).
    >
    > I'm not confusing symbol names with instance names. My instance of my MC
    is
    > named as it should be, "greekTxt".
    >
    > When I debug, the MC might be there, but its not recognised by its
    instance
    > name, I don't know why this is.
    >
    > Is there some new setting I'm missing in MX 2004 in order to make this
    work?
    >
    > Thanks
    > Chris
    >

    James Fee Guest

  10. #9

    Default Re: Since when does ActionScript 1.0 not work rig

    Now I'm finding if I select the instance of greekTxt, on my stage, NAMED
    greekTxt in the Properties dialog box and attach this code to it:

    onClipEvent(load){
    trace(this._name);
    }

    I'm expecting when I test this movie within Flash, when this frmae loads, the
    Output box should pop with the word greekTxt in it. Instead "undefined" is
    written there.

    This is very basic scripting. They couldn't of changed it this much, could
    they??!!!

    What am I doing wrong here? Anybody?

    I am very frustrated by this!!!

    ChrisFlynn Guest

  11. #10

    Default Re: Since when does ActionScript 1.0 not work rig

    If the following is in order, then there is no reason why it should not work:

    - Is your button events actually on a BUTTON and not on a FRAME?
    - Is "greekTXT" a MOVIE CLIP symbol?
    - Is the "greekTXT" MC animated? If so, maybe you didn't set the instance name
    on EVERY KEYFRAME where "greekTXT" exists. This can happen if you don't set the
    instance name of the clip before you start animating it on the timeline. If you
    did not, then this will definately cause problems.
    - Have you tried: _level0.greekTXT.gotoAndPlay(10); ? "_root " targets the
    main timeline of the LEVEL in question. If you are loading levels, then your
    _root may be the wrong timeline to target.

    If the above is all in order, then maybe your software is corrupted. Try
    reinstalling Flash.





    jerreye04 Guest

  12. #11

    Default Re: Since when does ActionScript 1.0 not work rig

    This doesn't work:

    on(rollOver){
    _root.greekTxt.gotoAndPlay(10);
    }

    However this does:

    on(rollOver){
    this.greekTxt.gotoAndPlay(10);
    }

    Why???
    ChrisFlynn Guest

  13. #12

    Default Re: Since when does ActionScript 1.0 not work rig

    If that is the case, then that would tell me that your BUTTON rests on the same
    timeline as greekTXT, and that greekTXT is NOT on the _root timeline, otherwise
    _root.greekTxt.gotoAndPlay(10); should work.

    Maybe there is some other issues that you aren't aware of...Send me the fla
    (zipped and under 1 MB) if you want to at: [email]jerreye@yahoo.com[/email]

    If it is larger than 1 MB, then zip it and put it on your web server and email
    me the link.

    I'll see if I can find the problem.

    jerreye04 Guest

  14. #13

    Default Re: Since when does ActionScript 1.0 not work rig

    Try just the following:

    onClipEvent(load){
    trace(this);
    }

    that should give you the full path to your object.

    Jim

    "ChrisFlynn" <webforumsuser@macromedia.com> wrote in message
    news:c22muv$b99$1@forums.macromedia.com...
    > Now I'm finding if I select the instance of greekTxt, on my stage, NAMED
    > greekTxt in the Properties dialog box and attach this code to it:
    >
    > onClipEvent(load){
    > trace(this._name);
    > }
    >
    > I'm expecting when I test this movie within Flash, when this frmae loads,
    the
    > Output box should pop with the word greekTxt in it. Instead "undefined" is
    > written there.
    >
    > This is very basic scripting. They couldn't of changed it this much,
    could
    > they??!!!
    >
    > What am I doing wrong here? Anybody?
    >
    > I am very frustrated by this!!!
    >

    James Fee Guest

  15. #14

    Default Re: Since when does ActionScript 1.0 not work rig

    Well, as it turns out, the problem I was having was because I had a bad install
    of Flash on my machine.

    I uninstalled it, then reinstalled, and everything seems to be working fine
    now.

    I apologize for all the frustartion.

    Thanks
    Chris

    ChrisFlynn Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139