Ok so...
I put the code in and run it
Gave me this error
1024: Overriding a function that is not marked for override.
I googled it
And it told me this:
If a method in a class overrides a method in a base class, you must explicitly declare it by using the override attribute, as this example...
Ok so our next project is to make a slide show
We need to have a button for each of the following things:
Next
Previous
Auto Play [plays through the show by itself based on a time delay]
Stop [stops the Auto Play]
Each slide is just supposed to be an image and I made my code a bit more basic...
Oh yea! lol I still have 2-4 in the buttons lol
And guess what
It works!!!!!
Thank you thank you thank you thank you thank you thank you thank you
THANK YOU!!!!
Finally after two weeks...
This really shouldn't have taken so long
Thank you Kenneth for sticking through this with me
*fiddles...
Sorry for double posting... there's no edit thingy I guess
Ok so I did that and I ran it
er... Test Movie'd it
And it gave me an error whenever I released a button:
TypeError: Error #1010: A term is undefined and has no properties.
at Buttons_fla::MainTimeline/Buttons_fla::frame1()
Ok I'll try that...
I just want to know how that works.
I know the for loop lol
But... for this part
this["button" + i]
this["movieClip" + i] // I know it's the same type of thing
How does that work as a call?
I've never seen something like that done before
and this
(e:Event)
what is the...
Hm... So my teacher is making us code in AS3
He also told us recently that he wants one button to turn off all the other movie clips other than the one that's playing
So...
button1
stops movieClip1, movieClip2, movieClip3
plays movieClip4
Thing is we don't know how to make the play/stop...
I switched the drop down menu in the Actions screen from Action Script 3.0 to Flash Lite 2.0 Action Script
Which didn't work
So I tried Action Script 1.0 & 2.0
But again it didn't work...
I've reinstancenamed my starPower button to starPower_btn
Because apparently that helps.
Also is it...
I did that and it gave me this error
1046: type was not found or was not a compile-time constant
I looked it up on google
And it said that this error meant that the stuff in the library was the same as the instance names
So I renamed the stuff in the library
And I still got the same error...
o.O
Didn't think it worked like that
Um... ok
So I made a fireworkss layer
put the fireworks in it and gave it an instance name of fireworkss
modified my code to say:
Star Power.onRelease = function():Void
{
fireworkss.play();
}
But now I has more problems
fireworkss plays on start, and...
Sorry I was just thinking...
I have my animation on the Down state of the button
Does that have anything to do with it?
Maybe it should be somewhere else...
Ok so I put it on the main time line under it's own layer labeled, actions.
It says this:
Star Power.onRelease = function():Void
{
Fireworks.play();
}
and then I put the: stop();
on the first frame of each animation
but it didn't work
It didn't stop on the first frame and it didn't play...
Thank you very much
I put that in and changed my instance names in the code to match mine [stupidly named at the time... well just not good programming lol]
Anyway so I put that in the 'actions' layer, frame 1
and it still doesn't work.
Did I apply it to the wrong place?
Should I have applied...
First off... I'm new here so sorry if I do something wrong
And I know you're going to tell me that I need to not be lazy and do it myself and generally that would be the case but for once I have tried and thus have come here after failing to come up with a solution [That wasn't a run on >_>]...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.