Go Back   Winamp Forums > Skinning and Design > Modern Skins

Reply
Thread Tools Search this Thread Display Modes
Old 11th December 2002, 06:27   #1
skincrazzy
Junior Member
 
Join Date: Nov 2000
Location: Nova Scotia
Posts: 16
Angry Timers on the fly and wierd shade problem

Well, here I am again asking some more stupid questions I guess.
Question 1:-

Would it speed up my scripts any if I created timers and stated them when they are needed? and then delete them out when they are no longer reqiured? ex:

Button.onEnterArea(){
Timer = newTimer;
Timer.setDelay(5000);
Timer.start();
}

Button.onLeaveArea(){
delete Timer;
}
Question 2:-
I have my skin with two modes....normal and remote (shade) modes. Part of my "normal" mode background is an alpha channel and is invisible. When I switch to "remote" mode, the "remote" background snaps to the left and top of the now unseen "normal" background. My problem is, when you move the "remote" background close to the right edge of the scrren to far, when you switch back to "normal" mode, the normal background is off the darn edge of the screen and can't be moved. I tried changing the x, y and default x, y values for both the skins.--NO GO. I tried useing script to realign, or remember the two different layout positions, but I got GURU errors....WHAT DO I DO TO FIX THIS ANNOYING DELIMEA??????????
Quote:
GURU MEDIATION -- for guys who think they got it all.
skincrazzy is offline   Reply With Quote
Old 11th December 2002, 06:45   #2
xenosomething
Major Dude
 
xenosomething's Avatar
 
Join Date: Sep 2002
Location: ?
Posts: 1,473
Re: Timers on the fly and wierd shade problem

Quote:
Originally posted by skincrazzy

Would it speed up my scripts any if I created timers and stated them when they are needed? and then delete them out when they are no longer reqiured?
only if the timer is set to an incredibly fast delay...

if delay is 0 then timer.stop(); would speed up the skin a bit...

but if the delay is 5000 then its no big deal.
xenosomething is offline   Reply With Quote
Old 12th December 2002, 02:12   #3
Da_Pipe
Senior Member
 
Join Date: Sep 2002
Location: Home
Posts: 317
Send a message via ICQ to Da_Pipe Send a message via Yahoo to Da_Pipe
i have run into the same problem, if you rename your main window like this it solves the problem: <container id="main" name="whatever" default_visible="1">

i don't know exactly what the problem is but here is a fix.

Blah!
Da_Pipe is offline   Reply With Quote
Old 12th December 2002, 02:59   #4
Hollow
Major Dude
 
Hollow's Avatar
 
Join Date: Oct 2001
Location: Baker Lab, Ithaca NY
Posts: 1,128
Send a message via AIM to Hollow
Just stop the timer. An 'ideal' timer would take 0 cpu when stopped. Winamps are ideal but they're close. Just stopping them should be enough.

I wouldn't delete them like that. I would be concerned about the timer not matching up with the proper ontimer.

The moon is made of cheese.
Oh for some tasty moon cheese.
www.redtetrahedron.org
Hollow is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Skinning and Design > Modern Skins

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump