Coder Profile - Show off your skills, get a coder profile.
 
 
 
Reading And Programming In Binary
Other
Binary is the basis of all systems. The only language that computers know is binary, a two-base numerical system; consisting of only 1s and 0s. For example, here's the number 105 in binary: Wait, what? I'm sure you were thinking that, so let me explain. A great way to interprete binary is using the "bowl" method. Say you have an infinite line of bowls. Starting with the first one on the left. The first bowl has a value of 1, and each bowl to the left has a value of double of the previous bowl. Next, you have some stones. You can only hold a single stone in each bowl. Your total value is added by the stones in the bowls. Here's an example: [512] [256] [128] [64] [32] [16] [8] [4] [2] [1] The bowls in BOLD contain stones. You'll see that the first bowl that contains a stone is bowl "64". Your total number is 64. The next bowl to contain a stone is bowl "32". Your total is now 86. Next is bowl "8" (104), and finally bowl "1" (105). Simple, right? But what a... View In Full
3 Comments 7.00 out of 10
[PHP] Create A Unique Page Hits Counter
Programming
After coding through this for about 4 hours, I felt like I should share this A hits counter is a counter that will display how many times your website (or a specified page) has been viewed. To start, open up a fresh text document and place the following code in: Now save it as a .PHP. I called mine "page_hits.php", but you can call it whatever you want. Be sure to ed View In Full
2 Comments 6.00 out of 10
Actionscript Events
Programming
Events are the heart of Actionscript. Without them, you are pretty much completly rendered helpless when creating, pretty much anything, in Flash. Events are basically different actions that if performed, follow through with a block of code. For example: What this code does is it places the mouseDown() event into a function and traces (outputs) the text "Mouse Pressed" when the user clicks the mouse. There are three different ways to use events... On movieclips, on buttons (now depreciated since Actionscript 3.0 and Adobe Flash CS3) and on frames. When placing events on buttons, the syntax is quite simple: Example: The same method goes for the same with movieclips. Placing events on frames is a little bit different... You can access them in a few ways: [code]onMouseDown = myFunction; function myFunction() { View In Full
1 Comments 8.00 out of 10
Actionscript API
Programming
What Is API? API is one very useful technique in Flash. It is basically using code to draw objects using vector animation. For example, you could make a box, circle, or whatever! What Is The Point Of API? You can make whole games out of it, make the screen fade in and out, or general tasks that are either extremely difficult, large and/or time consuming. For example, say you want to make a draggable peice of string http://www.coderprofile.com/pinned-code/163/as-string in Flash. If you weren't using API, you would have to make in exess of 50 movieclips and program them all to follow one another in succession. If you made it in API, you could make a simple array and a for() loop to create every movieclip dynamically and attach each using the API lineTo() function (more will be explained on that later). How Do I Use API? Very good question! Well, there are a variety of functions that you can use to make API, but we will cover the basics here, nothing fancy-pantsy. Here'... View In Full
1 Comments 9.00 out of 10
if/else, switch/case and ?/: Statements In Actionscript 2.0
Programming
In Macromedia Flash, using if/else statements (and the substitutes) are quite similar to other programming languages. Using an if statement is easy: if (statement) { //actions } If the actions between the brackets is true [variable equals 100], then do the following actions. You can also use if/else statements; in two ways: as an else if statement: if (statement) { //actions } else if (statement) { //actions } If the actions between the brackets is true [variable equals 100], then do the following actions, or if the actions between the second brackets is true [variable equals 200], then do the following actions. ..Or as an if/else statement: if (statement) { //actions } else { //actions } If the actions between the brackets is true [variable equals 100], then do the following actions, otherwise do the following actions. Pretty simple, eh? Switch/case statements are pretty much like if statements, except the syntax is a little differen... View In Full
2 Comments 6.00 out of 10
Page 1 of 1
Mike Marek (19)
Canada, Ontario
mikeMarek has 1 fans
become a fan
» Applications
Articles Articles (5)
Source Codes Source Codes (21)
Code Pin Board Code Pin Board (2)
» About Me
About Me About Me
User Groups User Groups (8)
Friends Friends (15)
» Misc
Overview Overview
Send A Friend Invite
Send Message Send A Message
RSS Whole Profile Feed
 
 
Latest News About Coder Profile
Coder Profile Poll
If you made money from keeping your profile up to date, say $30 and up, per month. What extra time would you spend on your profile?

No extra time
A few hours at weekends
A whole day each week
Every minute i can get free


please login to cast your vote
and see the results of this poll
Latest Coder Profile Changes
Coder Profile was last updated
3.48 Years Ago
Official Blog :: Make A Donation :: Credits :: Contact Me
Terms & Conditions :: Privacy Policy :: Documents :: Wallpapers
Version 1.46.00
Copyright © 2007 - 2012, Scott Thompson, All Rights Reserved