RSS
 

Archive for the ‘Tutorials’ Category

CSS-DIV Expandable Content Box

24 Aug

Let’s get started!

After you’re done creating and saving your 3 slices..

  1. Header
  2. Content
  3. Footer
<div class="box_container">
<div class="box_header"></div>
<div class="box_content">
<div class="bodytxt">
Your body text here.
</div>
</div>
<div class="box_footer"></div>
</div> <!--End of box_container-->

Here’s the CSS styling

.box_container{  /*Once you give this a defined width, you can also add margin: auto auto; to centre the container*/
width: 608px;
}
.box_header{
background: url(sd_01.gif) no-repeat;
width: 608px;
height: 56px;
}
.box_content{
background: url(sd_02.gif) repeat-y;
width: 608px;
}
.bodytxt{
font-family: century gothic;
font-size: 10px;
color: #339933;
margin: 0 1em 0 2em; /*Set margin values for top=0,
right=1em, bottom="0" left="2"*/
}
.bodytxt p{ /*Remove browser paddings and margins
-THIS IS VERY IMPORTANT*/
margin:0;
padding:0;
}
.bodytxt p{
padding: .5em;  /*Add your desired paragraph paddings. */
}
.box_footer{
background: url(sd_04.gif) no-repeat;
width: 608px;
height: 28px;
}

Please note that you must remove the paragraph margins or else in browsers like Firefox, there will be a space/gap between the header and the content images and the content and the footer images. Once you remove the margins, you can then give padding values to the p tag.
The final result in action here!

Download project files here…

 
No Comments

Posted in CSS

 

Adding Sounds to Objects

20 Aug

Being an awesome multimedia program as it is, Adobe Director allows us to add sounds to various objects. For instance, we can add our own little sounds to buttons and the like. Adding a sound to an element is as easy as counting your fingers. All you need is basic code which you can re-use day in and day out. [The wonderful nature of programming] :-) . So let’s add some sounds, in this tut, we’ll just add the sound to a simple button.

Load Adobe D and then add the following code to your object (text, button, image).

on mouseEnter
sound(2).play(member("button"))
end

This code added to your object named ‘button’, plays the sound in channel 2 whenever the cursor or mouse enters the area of the object. Naturally, you could have had these handlers instead:

on mouseUp --plays sound whenever object is clicked
sound(2).play(member("button"))
end

or

on mouseWithin me  --plays sound as long as cursor remains
sound(2).play(member("button"))
end
 
No Comments

Posted in Director

 

Restoring Backing-Up MSN Custom User Emot-icons

20 Aug

Millions of users around the world utilizes MSN messenger, an application for connecting with others online. One of the most common ways of expressing your feelings online is to make use of emoticons. While the default emoticons for MSN messenger are enough for some users, other users like to personalize their utility by using custom emoticons.

Okay, so you’ve got some really cool custom emoticons and want to save them to an external storage device in the event of a system failure. So what do you do? Well, it’s pretty simple. Just follow this little guide and you’ll be backing-up your emoticons in less than a minute.

You will first need to enable viewing of hidden files and folders. To do this on:

Windows Vista

  1. Click [Start] or Windows Logo orb
  2. Go to Control Panel
  3. Click classic view on the left panel, then click on Folder Options
  4. From the Folder Options pop up window, click on the View tab,
  5. Under ‘Hidden files and folders‘, select ‘show hidden files and folders
  6. Click [Ok]

Now that you can view your hidden files and folders, time to back-up those emoticons.

  1. Click [Start] or Windows Logo orb
  2. Go to: My Computer\Local Disk or C Drive\Users\YourName\AppData\Local\Microsoft\Messenger\you@hotmail/live.com\ObjectStore\CustomEmoticons
  3. Copy and paste all the files in this folder to a back-up location, that’s it!

Windows XP

  1. From the tools menu in Windows Explorer click Folder Options
  2. From the Folder Options pop up window, click on the View tab,
  3. Under ‘Hidden files and folders‘, select ‘show hidden files and folders
  4. Click [Ok]

Now that you can view your hidden files and folders, time to back-up those emoticons.

  1. Click [Start] or Windows Logo
  2. Go to: My Computer\Local Disk or C:\Documents and Settings\Owner\Local Settings\Application Data\Microsoft\Messenger\you@hotmail/live.com\ObjectStore\CustomEmoticons
  3. Copy and paste all the files in this folder to a back-up location, that’s it!

In the event of a system failure where you had to re-install your OS, therefore also having to re-install a fresh copy of MSN messenger, simply copy the files from your back-up device, then return to the CustomEmoticons folder, paste your files, and re-start MSN messenger if it was already initialized.

If your system crashed before you could’ve made a back-up, then according to your re-install method, you’ll find a WindowsOld folder located on your local disk drive. Just open this folder and follow the same steps above.

What if your system is unbootable, or you did a re-install, basically, what if there was no access to a back-up to actually do a restore? Well, there might be some hope, software likeActive @ File Recovery might be able to find these files for you, that’s if the location data sector wasn’t written over by new data. Anyhow, this method goes beyond the scope of this post but in any order, it’s still helpful to know that there’s an alternative for the problem.

 
No Comments

Posted in Windows