Mouse not working with MovieClip

Clicking not working in AS3? 

If you change your mouse to a movieclip by say using: Mouse.hide(); and then simply make the movieclip’s x and y equal to the mouse x and y (stage.mouseX & stage.MouseY) you will run into trouble if the point mouseX and mouseY are not clear. You will always be clicking on your new “mouse cursor” movieclip.

Make sure the exact x and y are clear, so a new arrow for example would be placed just to the left and just down from the mouseX and mouseY point.

This is in actionscript 3.0. I can’t remember how this works in 2.0.

free adult stream video
stop smoking hypnosis
hardcore lesbians using strapon
college dorm checklist
boat orgy
trans anal
naughty nurses nude nurses
hot redhead galleries free
gymnast cameltoe
indian woman swallows after blowjob
gay hentai sex
black pornstars big boobs
camel toe indian
teacher and student porn
schoolgirl mother spanking
high school musical star nude
nude male clothed female
Making Of An Anal Ring Toss Girl CD-1
cfnm new messages
incest dvd
naked midget girls
Blowjob Ninjas-2
miami zoo
deep throat oral
beaver shave
simpsons family sex
my friends hot mom porn site
avi file format advantages
young babes
free tongue fetish movies
girl teacher
teenage mutant ninja turtles toys
gay barebacking
outdoor wall art
latin teens
oral sex picture galleries
paris hilton porn video free
dirty hentai
sexy secretaries tied up
wet black ass
gay men personals
girls next door stockings
wife strips
redhead puss
middle age hunks
banned paparazzi photos
hand job clips
naked indian men
lesbian teen hunter
hentai teacher and student
All Amateur Video-16
sexy blonde slut
gay mature porn
boys gay kiss
grandma spanking
shemale rimjob
pantyhose secretary
little boys feet
corset nylons sex
girl wear a thong
orgy outdoor
hot wives forum
soft pussy
thai shemale
micheal vick chew toy
shaved twat
fisting mpegs
outdoor cum
bbw in latex
twinks fetish
free anal pics
naked muscle men
asian sucking cock
getting your nose pierced
petite boob
mature orgys
dating advice for older adults
shower hidden cam
Butt Puppies CD-1
paris hilton peeing
angelina jolie lesbian
pantyhose legs
xxx picture mary kay & ashley olsen
amateur couple in college fuck
avril paparazzi
bound bondage
blonde in thigh boots
girlfriends wives naked
lesbos in latex with strap-ons
slut movies
penis enlargement stretchers
skinny brunette girls
spank stories
shemale stars
shit fetish porn
milk nipple
pornstars sucking dick
chubby twinks
wet nylons pissing fully clothed
silvia martinez reyes
throat popping swallow
standard poodle stud
huntington teacher walter lundahl pedophile boys
gang bang sluts
milf quest
babysitter fucked hard
paris hilton mpegs
amateur teen orgasm
oriental lick virgin video
give a female an orgasm
yo slut
stop smoking shot
free sexcam florida
boobs ahoy hustler
anal gang bang
glory hole uk
caught girls pissing outdoor
stretched clit
old porn upskirt
tongue fuck pussy
shower xxx
free clit pumping pics
Plan Reel-7
femdom kink
naked women outdoors
skinny white pussy
teenie upskirt
reality porn sites tgp porn stars meet tv shows links video
mexican stop smoking no prescription needed
naked in a shower
hot mature fuck
sexcam mature
latex mummification duct tape bondage
free adult funny downloads
hard spanked
Asscore-4 CD-1
hustler magazine 1976 southern belle issue
bukkake anal
mature lesbian women with younger women
slut of the day
indian sex gallery
shaved snatch how to
full body shower
helen hunt sex video
skinny lolitas
nice anal
milf cum
toy hungry teen threesome orgy
asian clits
healing a navel piercing
grandmother incest
black moms id like to fuck
usa reality porn
cute teen virgin
hentai episodes
illinois zoo
smash mouth waste
nude family portrait
femdom golden shower
pregnant mom sex
taylor rain swap
girlfriends wives naked
black girl nude
redhead teen fuck
live porn
teen tongues
stripping blonde
russian virgins
stick your tongue in slave
anal creampie video
midget blowjobs
virgin photos
water bdsm
bondage rubber
fist fucked squirt
cute lady bug tattoos
sexy kids
beautiful girls in thongs
teen fat
hip replacement surgery compression stockings
slut galleries
DP Milfs CD-2
play sex games
cop that shit
herbs to stop smoking
teen girl upskirts
wolf head tattoo
faded glory footwear
sex with fat older women
nude movie
f/m spanking stories
camel toe jpg
white wife fucking black cocks
hypnotic domination big tits tease and denial
little red riding hood
speech for student council secretary
sweet college girls
asian anal creampie
lesbians oral
shaved and close up
first time teacher sex
bang bros office
the glory hole
sex education for teens
drool all over my hairless cunt suck my fat clit
quarter horse studs
pregnant 9 year old girl
nylon net bags
bdsm illustrated
jessica simpson paparazzi
myfriends hot mom
voyeur pics
gay black boy studs
shemale scat
lesbian goth
cfnm humiliation pics
male genital piercing gallery
singing penis
performing oral sex
plastic surgery slumber party

Smooth MovieClip Key Control in AS3

In Flash Actionscript 3.0 it is not as simple as AS2 to create a smooth control of a movieclip’s movement. You may find the key engages, then pauses for half a second, then continues. This is no good for gaming. Also the basic KeyboardEvent.KEY_DOWN event listener will only handle one key at a time, so you can not for example hold down the up, and right arrow keys to move diagonally.

The following is a class called Smooth.as. To use it you need an fla 300×300 pixels and with a spaceship MovieClip called Spaceship (in the linkage call the class Spaceship). You also need to save Smooth.as to the same folder and make Smooth the the stage’s document class under properties.

Or just download the source file: smooth

Use the arrow keys to move the ship.

package {  import flash.events.*;
 import flash.display.*;
 public class Smooth extends MovieClip {
  
  // Set vars for key codes. Arrow up is 38 for example
  static const upKey = 38;
  static const downKey = 40;
  static const rightKey = 37;
  static const leftKey = 39;
  
  // Set vars for current ship speed and maximum speed
  private var speed:Number = 0;
  private var maxspeed:Number = 4;
  
  // Set vars to keep track of which keys are pressed. This is a Boolean true or false. True if key is pressed.
  private var keyPressedRight:Boolean;
  private var keyPressedLeft:Boolean;
  private var keyPressedUp:Boolean;
  private var keyPressedDown:Boolean;
  
  // Create the spaceship MovieClip from a pre-made Spaceship() MovieClip in flash
  var spaceship:MovieClip = new Spaceship();
 
  
  public function Smooth() {
   
   // Set the game/animation loop
   stage.addEventListener(Event.ENTER_FRAME, StageController);
   
   // Set event listeners to track key presses for both up and down
   stage.addEventListener(KeyboardEvent.KEY_DOWN,keyDownListener);
   stage.addEventListener(KeyboardEvent.KEY_UP,keyUpListener);
   
   // Add the spaceship to the stage and give it starter settings
   addChild(spaceship);
   spaceship.x = 150;
   spaceship.y = 150;
   spaceship.rotation = -90;
  }
  
  // This function sets the Boolean vars based on whether the relevant key has been pressed
  public function keyDownListener(e:KeyboardEvent):void {
   switch (e.keyCode) {
    case leftKey:
     keyPressedRight=true;
     break;
    case rightKey:
     keyPressedLeft=true;
     break;
    case upKey:
     keyPressedUp=true;
     break;
    case downKey:
     keyPressedDown=true;
     break;
   }
  }
  
  // This function sets the Boolean vars based on whether the relevant key has not been pressed
  public function keyUpListener(e:KeyboardEvent):void {
   switch (e.keyCode) {
    case leftKey:
     keyPressedRight=false;
     break;
    case rightKey:
     keyPressedLeft=false;
     break;
    case upKey:
     keyPressedUp=false;
     break;
    case downKey:
     keyPressedDown=false;
     break;
   }
  }
  
  // This is the main game/animation loop
  public function StageController(e:Event):void {
   
   // This rotates the ship if key is pressed
   if(keyPressedLeft && speed != 0){
    spaceship.rotation -=4;
   }
   if(keyPressedRight && speed != 0){
    spaceship.rotation +=4;
   }
   
   // This increases the ship's speed if the up key is pressed
   if(keyPressedUp && speed < maxspeed){
    speed +=0.1;
    if(speed > maxspeed){speed = maxspeed;}
   }
   
   // This decreases the ship's speed if the down key is pressed
   if(keyPressedDown && speed > -maxspeed/2){
    speed -=0.1;
   }
   
   // This decreases the ship's speed if neither up nor down key are pressed.
   if(!keyPressedDown && !keyPressedUp){
    if(speed < 0){
     speed +=0.1;
    }
    if(speed > 0){
     speed -=0.1;
    }
   }
   
   // This moves the ship forward based on ship's angle
   var scangle:Number = spaceship.rotation * Math.PI / 180; // Ship's angle in radians
   spaceship.x += speed*Math.cos(scangle); // Move the ship on the X axis
   spaceship.y += speed*Math.sin(scangle); // Move the ship on the y axis
   
   // This makes sure the ship never leaves the viewable stage
   if(spaceship.x < 0){spaceship.x = 300;}
   if(spaceship.x > 300){spaceship.x = 0;}
   if(spaceship.y < 0){spaceship.y = 300;}
   if(spaceship.y > 300){spaceship.y = 0;}
  }
 }
}

AS3 Tips
AS3 Tutorial

Move ship based on angle AS3

Imagine you are writing a game and you have a space ship that needs to move towards a target in a smooth fasion. It needs to turn towards the target, all the while moving forwards. The following is a function/method in a class used to control the movement of the ships in the game. The ships all have home worlds that the ships will head for.

public function ShipControler(e:Event):void {  

   var ss = e.target; // Set ss to the event target. ss is nicer to use than e.target
   
   // Get target x,y of target
   var tx:Number = world[ss.targ].x; // ss.targ is a number. It is the ID of the world the ship is heading for
   var ty:Number = world[ss.targ].y; // ss.targ needs to be defined in the ship's own object
   
   var dist_x:Number = tx - ss.x; // Distance to target on X axis
   var dist_y:Number = ty - ss.y; // Distance to target on Y axis
   var angle:Number = Math.atan2(dist_y, dist_x); // The angle of target relative to ship in radians
   var ta:Number = angle/Math.PI*180; // The angle of target relative to ship in degrees
   var range:Number = Math.sqrt(Math.pow(dist_x,2) + Math.pow(dist_y,2)); // Distance to target
   
   // Calculate closest angle to turn ship
   // There might well be a cleverer way to do this, but my brain started melting so I did this.
   // It works out if the ship needs to turn left or right depending on which every way has the
   // smallest angle. Imagine moving the ship to face angle 0 (facing right) then moving
   // the target so that it still has the same relative position. If the target's angle is
   // less that 0 the ship needs to turn left. If the target's angle is more than 0 the
   // ship needs to turn right.
   
   if (ss.rotation < 0){
    ta = ta + ss.rotation * -1;
    if(ta > 180){ta = ta - 360;}
   }else{
    ta = ta - ss.rotation;
    if(ta < -180){ta = ta + 360;}
   }
   var rot:Number = new Number; // How fast and which direction the ship turns
   if(ta > 0 ){
    rot = 5;
   }else{
    rot = -5;
   }
   if(range < 30){rot = rot * -1;} // Turn ship away if too close to target
   ss.rotation += rot; // Turn the ship
   
   // Move ship forward based on ship's angle
   var ssangle:Number = ss.rotation * Math.PI / 180; // Ship's angle in radians
   var speed:Number = 2; // Set the speed of the ship
   ss.x = ss.x + speed*Math.cos(ssangle); // Move the ship on the X axis
   ss.y = ss.y + speed*Math.sin(ssangle); // Move the ship on the y axis
  }

Learning AS3

Actionscript 3.0 has been around for a while now and it is time I got my head around it. I purchased a book for this very purpose. Why purchase a book you might wonder when anything can be googled, from tutorials to samples?

I have found in recent years, that I can tackle just about any programming language by simply googling any problem and finding the solution. This is great, but I never learnt any of it. I got the job done, but I never remembered the code so I could use it from memory again in future. This is because there is little or no interaction with the code. When learning code from a book, however, you are forced to copy the code samples by hand onto the computer. Doing this helps you remember the details of the code. It forces you to learn the code as typing it is a pain, but it makes you remember.

So I bought Learning Actionscript 3.0 A Beginner’s Guide by Rich Shupe with Zevan Rosser. I went at this from the beginning as though I had never written any code before in my life. It is amazing the things you learn even when you read about things you thought you already knew.

AS3 is not AS2+. It is new. It is like AS2 but so is Javascript or even PHP. This is why I am pleased I went back to the start and chose a beginner’s guide. This is not a book review but I will say that the book is very good for a beginner.

So what is the point if this post? I wanted to tell you the importance of books and learning and not just copying and pasting. I also wanted to point out that AS3 is a cousin of AS2 and not an upgraded version. I also wanted to lay the way for more AS3 posts as I learn it.

Free Online Role Playing Game

I have to push this some more. It is the biggest project I have ever worked on.

Free Online Role Playing Game

indian bitch
brie olsen
i shit trains
female caught masturbation
plastic surgery slumber party
nude celeb pic
skinny free porn
gay orgy penis dick cock
petite milfs
reality king porn
adult beastiality
free teen dating sites
earth worm closeup photos
big dicks and tight pussies
teens double dildo
interracial deep throat
mature bbw clips
twink fuck
hot straight men
tranny fucks guy
tit fuck cum
celebrity blowjob
sex noises
huge cocks in tight pussies
girlfriends licking pussy ffm
fake nude pictures of the olsen twins
mens cocks
free gay male sites
dirty cock suckers
boy spanking
lesbian sex movies
alabama beach condo rentals
play sex games
illinois zoo
fuck my husband
gay group
long and pointy nipples
masturbation gay
mom sucks sons cock
cum in panties
horny united
free adult passwords
staci ffm
girl wear a thong
butt rub
butt rub
secretary under desk
black teen fuck
jucy coed vedio
14 year old average penis size
crossdressing chat
bestiality snakes
college coed babes
orgy of lesbain sex
live cams in florida
british pussy
erotic bdsm
nude blog
women’s erotic stories
women celebrities exposed
drunk sexorgy
biodegradable adult diapers
spokane nurse aide training
creaming my fertile cunt
nice tight butt
teen lesbian schoolgirl strapon sex
motorized fuck machine
dirty pair hentai
gay blow jobs
extreme programming
nasty animal lovers
filipina nudity
shirtless celebs
bbw club
femdom movies
kim possible blowjob
hustler lena
extreme toys
open mouth sex
petite teens sex
girlfriends licking pussy ffm
the bondage paper
lesbian fisting orgasm
biggest shemale cocks
female micro lingerie exotic
lesbians bikini
mom horny
teacher upskirt
best free porn
erotic penpals
bbw do handjobs
asian teen deepthroat gag
brown ass
first head job
dirty cheerleader
nude beach party
latino marketing for cosmetic dentistry
private party mp3
bondage rubber
milf in panties
small butt
bang booty brazil
breast enlargement staten island
suck off black men
global wifes
girls hairy with legs
guys using stroker sex toy
gag on this
colorado breast enlargement doctor
petites annonces
free streaming erotic video
fart in your mouth
foot fetish mistress
natural nude
gay black man
pissing extreme free
naughty nurses nude nurses
hardcore outdoor bisexual fucking
dirty lesbian maids mature
pornstar video clips
sexy brunette blowjob
normal adult penis size
peeing closeup
cartoons fucking
bukkake extreme
patrick after shave
brunette blow
sister caught masterbating
big tits blowjobs
horny bbw
amatuer mom
led zeppelin trampled under foot
nude male art
dog and horse mating
flexible loan mortgage
fighting cocks
lesbian dildoes
free european interracial sex
free gay military men
soulja boy tell ‘em
redhead milfs getting loads of cum
nude swedish women
elsa olsen desnuda
best sex
naked gothic chick
westside housing bubble real estate blog
double dildo with mom
korean korean nude
girl coed
young bikini babes
nude vanessa anne hudgens
milf quest
big ass teen
extreme toying
double up poker
students fuck teachers
uk amatuer porn blogs
upskirt boots
sex machine jodi
korean average penis size
young couple sex
men sex with animals
dog humping leg
drunk blowjob
free galleries nude males men
horny old man
ass to mouth girls
cheerleader crotch
broadacres swap meet vendors
britney pussy
flower ffm
white girl black cock
adult toys toy discount store
gay latin men
latex mummification
walking the dog
erotic stories lovers & cheaters scene
shit near eat
tongue pussie lesbians
horny spanish ladies
first time sex stories
orgy outdoor
hot gay military men
young masterbation
oriental virgin cunt video free
dirty talk cum
hardcore throat jobs
close ups of cyclist dicks
wet pussy fuck
persian kitty adult
hawaiian porn
strapon + fuck
grandmas shaved
elementary school teachers requirements
brides maid sex video
horny xxx
korean tits sex
women jacking men off
gay gag cum
extreme anal insertions
accutane centre military and veterans law legal education
free shemale sites
oriental anal sex
hot chubby indian
sylvia darlington teesside
female nude bodybuilder
spank naughty student fuck
coed suck
young orchids
best orgy
horny hentai
lesbian gang bangs
pine log furniture
jucie coeds pussy
plumper ffm
nude male clothed female
anal whore
bikini taken off
petite blonde anal teens
female bodybuilder sex

Browser RPG in Facebook

fantasy browser rpgIf you like online role playing games and you like facebook then you should check this out!

 The game is called DicingDangers and is a browser based MMORPG. It is simple with fun graphics. The best thing about it though is that you can play on the website, or if you have a facebook account, you can add it to your facebook apps here:

http://apps.facebook.com/dicingdangers/

or

http://www.facebook.com/apps/application.php?id=8117938702

 have fun!

Loop video in Flash AS2

If you want to loop a movie on your flash project, select the movie / video and in the action script box put:

/////////////////////////////

on(complete){
 this.autoRewind = true;
 this.play();
}

/////////////////////////////

This should just keep it running for ever.

Flash Actionscript Set Focus

If you want to set focus to a text input field / text area in Flash then use the following code:

stage.focus = myTextField;

Selection.setFocus(instanceName);

How much is free broadband?

I signed up to Talk Talk broadband the other day. I was already with them as a phone customer, and I must say I am pretty happy with the service considering the very low price we pay.

As for broadband though I have been dragging my heels for a long time over this. It is “free” but the word free always worries me. Nothing and I mean nothing comes without a cost of some kind or another. Free is always a lie.

But… I did it. I was sold. I would save around £15 or $30 a month and I went for it. Firstly the free became £20 for a wireless modem. OK I could have done it with my old modem but I needed to get wireless as the wires in question have been driving my wife mad. £20 is not too bad either for a modem. I was told the modem would take 7 days to reach me.

The next day my old modem broke. It was a kind of zen/karma/yingyang thing. It had gone though years of dropping, bashing and tea, and only when it realised it was going to be retired did it give up the ghost, may it rest in peace. This left me in rather a pickle however. I had at least another 6 days to go before my new modem would arrive.

Should I spend £50 on a new modem just for 6 days or wait? Most of my design work is web based but it was so very very hard to pay £50 for something that was going to last 6 days. It was a false economy of course and I knew it. I probably would lose a lot more than £50 by not having one, but it was still hard.

I lasted 5 days! I bought one knowing that a new one was meant to arrive the next day. I know it is insane but I got an important phone call offering me work that had to be done urgently.

Back to Talk Talk though. Did the modem arrive on time? Nope. No surprise either.

Let me define “free” for you. This is the definition large companies use, not us normal people who can read a dictionary. To them it means, no money up front but make it back in other ways and at the same time deliver an awful service justified by the fact that it is “Free”. In the case of Talk Talk, I am now bound to an 18 month contract. I can not go to another company for my phone service. This is not free the way I think of free. I was assured that the price would not go up during the 18 month contract but the guy who told me is a salesman and he gets a commission for every sale. We shall just have to see about price rises.

I phoned them up about the missing modem and this is where things got interesting. Of course I was put on hold. I held, and held and held. When I get through, I am told to phone another number. Been there done that a million times. “Free” is starting to cost me in lost work time. I call the other number and guess what? I am put on hold.

Eventually I talk to a women. She is Indian and obviously in India and although she speaks very good English it is just hard for her to understand me and visa versa.

Anyway… She tells mes the modem was sent and should not take more than a couple of days to reach me. Great thinks I, but then she starts to tell me how they have run out of stock of the modem and are waiting for a new batch. I raise an eyebrow and ask her what that has to do with mine as it has already been sent. She confirms that it has been sent, but they are now out of stock. This goes round and round a few times, and in the end I just smile. I know it has not been sent and I know she is very confused. I thank her and hang up. Oh well. At least the new modem I bought was coming in handy. It arrived about another week later, and looks nice. I ain’t using it though. It was provided by a company that does “Free”. It is more trouble than it is worth. I am sticking with the modem I had to buy. It just works.

Oh by the way. This information is free. (unless you take into account the time spent reading it, your connection fees, software and computer costs. The cost of downloading those adverts on this page, etc. etc. etc.)

PC versus Women

 My PC has a temper. It gets upset and you can tell when the hard drive drones on and on like some grumbling old man. It just stops and grumbles about all the work I make it do. Grumble grumble stop… grumble stop… Just when I think I can carry on it grumbles a little more.

You get to know your PC. You know when to wait and when to keep going. Women on the other hand have no idea. I hate it when a woman uses my PC. I feel for the poor old man. If things start to slow down a woman begins clicking, and every click is adding to the tasks that the poor PC has to deal with. It’s grumbling away and she is clicking and getting upset, and I am gritting my teeth because every click is hurting me. I know the PC just wants a break. A little chance to catch up but oh no. The woman clicks some more as though that will speed it up. She tries clicking harder. That gets me the most; clicking harder. No! What gets me the most is double clicking web links. They only need one click. The hyper link takes one, not two, but the woman double clicks anyway.

After a while the woman turns to me and tells me that the PC is not working. By the sounds of it it is working. Working very hard to try and catch up with all the clicking that has gone one. Twenty windows open up. There is a nasty sound like the hard drive is having a heart attack and then grind, grind, grind and that fucking message telling me there has been an error pops up and do I want to tell Microsoft about it?

Yes I do. A woman used my computer!

There must be some bug fix for this. Perhaps some service pack. When logging in to Windows, you should state your sex. If woman, only allow 1 click per 10 seconds. I know, it’s a hack, but it should get around 90% of the problem.