Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 11-11-2004, 05:39 PM   #1
CoinOperatedBoy
Registered User
 
Join Date: Nov 2004
Posts: 2
Default preloader if statement button visible trouble

Good day all,

im new, and new to flash and actionscript. i wont pretend i know anything about it, coz to be honest i know next to nothing about actionscript. so heres my problem:

i have a preloader that i want so that when its finished loading it shows a button so the user can continue.
so far i have this code on my preloader movie:

Code:
onClipEvent (enterFrame) {
        loading = _parent.getBytesLoaded();
        total = _parent.getBytesTotal();
        percent -= (percent-((loading/total)*100))*.25;
        per = int(percent);
        percentage = per+"%";
        if (percent>99) {
                _root.continue_btn._visible = "false");
        }
i have it set to make the button invisible but thats just so i can find out when the code is actually working, i need it to make the button visible.

also i need the button to be invisible to start with.

any help would really be appreicated.

thanks.


Coin Operated Boy
CoinOperatedBoy is offline   Reply With Quote
Old 11-11-2004, 08:44 PM   #2
Jahepi
Registered User
 
Join Date: Apr 2004
Location: México
Posts: 35
Default

Maybe this would help:

PHP Code:
onClipEvent (load) {
    
_root.continue_btn._visible false;
}
onClipEvent (enterFrame) {
    
loading _parent.getBytesLoaded();
    
total _parent.getBytesTotal();
    
percent = (loading/total)*100;
    
per int(percent);
    
percentage per+"%";
    if (
percent>99) {
        
_root.continue_btn._visible true;
    }

Jahepi is offline   Reply With Quote
Old 11-12-2004, 03:21 PM   #3
CoinOperatedBoy
Registered User
 
Join Date: Nov 2004
Posts: 2
Default

thanks for you help.

that code was usefull, i also had problems with my instance naming, but its all sorted now, its all great and working.

Thanks.


Coin Operated Boy
CoinOperatedBoy is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:05 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.