Announcement

User registrations are currently disabled due to high spam traffic.

#1 01/02/09 3:08pm

danomann
Addict
Registered: 12/08/08
Posts: 210
Website

help

can you make a sprite apear when you click a button?


_root.gotoAndDie( [url]www.dako300.co.nr[/url] );

Offline

 

#2 01/02/09 3:20pm

Jake
Administrator
Registered: 29/04/06
Posts: 307

Re: help

Yes, the code would be something like:

Code:

if (Key.isDown(Key.SPACE)) {
_root.sprite._visible=true;
}

I do suggest that you find yourself a good tutorial site and perhaps look at the documentation that comes with flash. Threads like these will soon annoy other forum members as this sort of information is all over the internet.

A good site for tutorials can is Kirupa.


moose

Offline

 

#3 02/02/09 1:44am

GreenSpiral
Member
Registered: 22/12/08
Posts: 18

Re: help

Thats the code is wrong it think... shouldn't it be

Code:

if (Key.isDown(Key.SPACE)) {
_root.sprite._visible=true;
}

with an underscore before visible?

Offline

 

#4 02/02/09 1:10pm

Jake
Administrator
Registered: 29/04/06
Posts: 307

Re: help

GreenSpiral wrote:

Thats the code is wrong it think... shouldn't it be

Code:

if (Key.isDown(Key.SPACE)) {
_root.sprite._visible=true;
}

with an underscore before visible?

True I got mixed up with my syntax, its been a while since I did any code in flash. I will edit my original post.


moose

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson