I think maybe it is a dumb problem , but anyway
i set the button ,BOTÃO , to :
on(release){
day += 25
}
and put this on the frame :
var day = 0
if (day >= 25)
{
BOTÃO._visible = "false"
}
but it just don't disappear
what i should do ?
Printable View
I think maybe it is a dumb problem , but anyway
i set the button ,BOTÃO , to :
on(release){
day += 25
}
and put this on the frame :
var day = 0
if (day >= 25)
{
BOTÃO._visible = "false"
}
but it just don't disappear
what i should do ?
Hi,
on the button use,on the frame use,PHP Code:
on (release) {
day += 25;
if (day >= 25)
{
this._visible = false;
}
}
------------------------------------------------------PHP Code:
var day = 0
or use, on the buttonand on the framePHP Code:
on (release) {
_root.day += 25;
}
------------------------------------------PHP Code:
var day = 0;
onEnterFrame = function ()
{
if (day >= 25)
{
BOTÃO._visible = false;
delete onEnterFrame;
}
};
or even this, considering the logic of the button,PHP Code:
on (release) {
_root.day += 25;
this._visible = false;
}
I tried that one but when i click the button everything in the frame disappear even if a give a command leading to other frame it don't work ... I would use the last one , the button disappear , fine , but when i go out and then come back to the frame it is there again .
Hi,
If you can attach you fla file or create a downloadable link to it.
http://www.mediafire.com/?3jtnyn7zmjef2sa
Here is the file i used as example , the ideia were like you have some options , after choosing that one you receive a thing and the button disappear so you only couldn't receive two things from the same button .
(sorry if i made some english mistakes, it isn't my first language )
Hi,
It's CS5, I can not save any lower version
No problem, it worked anyway :D
Thanks very much for your help c:
oh sorry to bother you again... It worked on the example but it don't on the original work
http://www.mediafire.com/?d9dc4at1g6orcns
would you see what went wrong ? it is on frame 10
Hi,
It was hard to work with being so small and I don't know the language.
There were a few duplicate frame names and the "preloader" is somewhat odd and it makes reference to scenes when there are none?
I have taken the music out so as to make it small enough to post, lets hope this is better??
CS5:
Sorry for that...
So thank you for helping me , it is working normally now , i'll apply it to the others parts of the game