Google
 
Webnews.only-4-geeks.com
Interesting places
news.only-4-geeks.com Forum Index » Flash - ActionScriptGoto page 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11  Next

Hide/Show symbols or set alpha to 0%

 
Jump to:  
 
server
PostPosted: Tue May 20, 2008 10:55 am    Post subject: Hide/Show symbols or set alpha to 0%
       
message unavailable
 

 
NedWebs
PostPosted: Tue May 20, 2008 10:55 am    Post subject: Re: Hide/Show symbols or set alpha to 0%
       
You can switch between the two states with the same button using an if/else
conditional:

if(ball._visible){
ball._visible = false;
} else {
ball._visible = true;
}

Now if ball is the thing that'll be getting clicked, then the posting before
this holds true. You can use _alpha = 0 versus _alpha = 100 in place of
changing the _visible property, but if this is for general public use, it's not
too useful to present invisible things to click on.
 

 
Rob Dillon
PostPosted: Tue May 20, 2008 12:55 pm    Post subject: Re: Scroll Bar
       
LINK
 

 
kglad
PostPosted: Tue May 20, 2008 2:12 pm    Post subject: Re: Preloader export to frame scenario
       
you shouldn't be using an enterFrame clipevent. that causes your code to repeatedly execute in a loop. use the load clipevent.
 

 
Whordan
PostPosted: Tue May 20, 2008 2:53 pm    Post subject: Re: Hide/Show symbols or set alpha to 0%
       
Thanks for all the help. I think I got it now.
 

 
trigger2160
PostPosted: Tue May 20, 2008 2:57 pm    Post subject: Re: Importing 2 .as files
       
ok thanks, i have got it to work by removing the import statements completely and just using the classes in my code normally. everything seems to work alright now. thanks for your help
 

 
SteveH59
PostPosted: Tue May 20, 2008 5:20 pm    Post subject: Re: Simple text question
       
Hello again kglad

Is the linkage ID the same as the symbol name? I am looking at your code
(quite amazed you can actually type something like that freehand!) and have the
impression that there would be ONE text field,(with an instance name of t1).

So instead of having three self-contained different vertically aligned text
fields (one on top of the other), the one text field would contain the three
different vertically aligned text 'messages'?

I think that's how I understand your script.

Cheers

Steve
 

 
posterboy
PostPosted: Tue May 20, 2008 7:00 pm    Post subject: Re: Variable question
       
i fixed my problem. i don't know if it's an elegant solution but it works...

// this code is on frame 2

var saturnV;

if (saturnV=="rocketFade") { // fade in from frame 4 or frame 5 to frame 2
attachMovie("apollo_launch_mc", "apollo_launch_mc", 1, {_x:300, _y:83});
apollo_launch_mc.onEnterFrame = function () {
this._alpha -= 12;
if (this._alpha <= 0) {
apollo_launch_mc.removeMovieClip;
delete this.onEnterFrame;
}
}
} else if (saturnV=="noFade") { // stops rocket fade when clicking from frame
3 to frame 2
apollo_launch_mc.removeMovieClip;
}
 

 
jlucchesi
PostPosted: Tue May 20, 2008 7:57 pm    Post subject: Re: Scroll Bar
       
Hi -
I have a similar situation. I've concluded that the scrollbar must be a very
complicated thing because there aren't very many simple ways of imitating the
UI component. I did come across this item:

LINK
but its extremely cool, easy to use and allows a lot of customization of the
assets. It might be worth looking at. It was perfect for one of my projects
and useless on another - but I hope it helps you.

JL
 

 
cfords
PostPosted: Tue May 20, 2008 8:20 pm    Post subject: Re: Preloader export to frame scenario
       
I see that, I tested it online and the SWF locked on the preloader. It's all
good now, thank you. I will try to figure out the preloader itself now. It
seems that no matter what I do the preloader progress bar appears at about 50%.
Otherwise everything is fine. If I uncheck "Export in first frame" on my
embedded font component and load classes into the 3rd frame where my main movie
starts on the 4th frame, my text never loads. I am going back to school Smile
 

Page 1 of 11 .:. Goto page 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11  Next

Google
 
Webnews.only-4-geeks.com

Windows Update | C++ | C | PHP | JavaScript | Photoshop | Programming | Windows 2000 | Python | Windows XP | Object | Flash | Flash - ActionScript | Paint Shop Pro | Excel | PowerPoint | Access | Word | Windows 98 | Internet Explorer 6.0 | CorelDraw12 | Java | XML | asm x86 | Linux Mandrake | Linux RedHat | Outlook |  | news from newsgroups |_ | s

Web Templates

Awesome Website Templates ©

lokata meble biurowe bingo online zabawki edukacyjne Parkiet