Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
ChrisFlynn #1
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
-
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... -
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... -
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... -
pb Actionscript
Hi all, I usually use this Actionscript code in my first image to get variables from a text file : txt = new LoadVars();... -
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... -
James Fee #2
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...should> Am I wrong in thinking the following code on a button in Flash MX 2004> 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
-
abeall #3
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
-
ChrisFlynn #4
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
-
David Stiller #5
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
-
jerreye04 #6
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
-
ChrisFlynn #7
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
-
James Fee #8
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...is> 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 MCinstance> named as it should be, "greekTxt".
>
> When I debug, the MC might be there, but its not recognised by itswork?> name, I don't know why this is.
>
> Is there some new setting I'm missing in MX 2004 in order to make this>
> Thanks
> Chris
>
James Fee Guest
-
ChrisFlynn #9
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
-
jerreye04 #10
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
-
ChrisFlynn #11
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
-
jerreye04 #12
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
-
James Fee #13
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...the> 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,could> 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,> they??!!!
>
> What am I doing wrong here? Anybody?
>
> I am very frustrated by this!!!
>
James Fee Guest
-
ChrisFlynn #14
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



Reply With Quote

