Thursday, March 17, 2011

Wednesday, March 16, 2011

/*********  DECLARE AND INITIALIZE VARIABLES  **************************/
// names of folder and pictures, in the order to put them into the slider
var picnames:Array = [
 "flower_orange", 
 "flower_yellow", 
 "flower_pink", 
 "flower_red", 
 "flower_purple"
 ];

// constants
var PICPATH:String = "flowers/"; // folder with jpgs
var NPICS:Number = picnames.length; // number of pictures to load
var PICX:Number = 10;               // x loc of big picture
var PICY:Number = 10;               // y loc
var THUMBHOLDERX:Number = 0;        // x location of thumbnail holder movieclip
var THUMBHOLDERY:Number = 240;      // y location
var THUMBW:Number = 72;             // width of each thumbnail
var THUMBH:Number = 40;             // height
var MARGIN:Number = 10;             // margin between thumbnails
var TOTALBYTES:Number = 212000;     // approx sum of bytes in all jpgs (x 2)
var MAXPIXELS:Number = 12;          // max number of pixels to move slider per frame

// mask definition; mask is assumed to cover some part of the thumbnail slider (here the numbers
// were chosen so that there are margins between the mask and the right and left edges of the movie
// (which is 420 x 290), and enough space above and below the thumbs to show them when they 'grow'
// on mouseover
var MASKX:Number = 10;    // start x location of mask
var MASKW:Number = 400;    // mask width
var MASKY:Number = 230;    // start y location of mask
var MASKH:Number = 60;    // mask height

var totalloaded:Number = 0;         // running tally of bytes loaded from all pics

// index into pictures array, used for loading
var ipic:Number;

// set up loader, an instance of MovieClipLoader
var loader:MovieClipLoader = new MovieClipLoader();

// use the main timeline to listen to and respond to loader's broadcast events
loader.addListener(this);

/*********  DEFINE FUNCTIONS, INCLUDING INIT FOR MOVIE SETUP  **********/
// thumbnail rollover handler

function grow() {
   this.onEnterFrame = function() {
      if (this._width < THUMBW * 1.2) {
         this._x -= this._width * .025;
         this._y -= this._height * .025;
         this._width *= 1.05;
         this._height *= 1.05;
      } else delete this.onEnterFrame;
   };
}

// thumbnail rollout handler

function shrink() {
   this.onEnterFrame = function() {
      if (this._width > THUMBW) {
         this._width /= 1.05;
         this._height /= 1.05;
         this._x += this._width * .025;
         this._y += this._height * .025;
      } else delete this.onEnterFrame;
   };
}

// function to move thumbnail slider ("this" = thumbs_mc)

function sliderControl() {
   var w:Number = this._width/2;
   var hw:Number = mask_mc._width/2;
   var npixels:Number;
   // only do when mouse over slider mask
   if (_ymouse > mask_mc._y && _ymouse < mask_mc._y + mask_mc._height) {
      // mouse over left half of slider:
      if (_xmouse > mask_mc._x && _xmouse < mask_mc._x + hw) {
         npixels = (hw - _xmouse) / hw * MAXPIXELS;
         this._x += npixels;
         if (this._x >= 0) this._x = this._x - w;
      // mouse over right half of slider:
      } else if (_xmouse > mask_mc._x + hw && _xmouse < mask_mc._x + mask_mc._width) {
         npixels = (_xmouse - hw) / hw * MAXPIXELS;
         this._x -= npixels;
         if (this._x <= -w) this._x = this._x + w;
      }
   }
}

// thumbnail click (onrelease) handler

function openPic() {
   pic_mc.loadMovie(PICPATH + picnames[this.i] + ".jpg");
}

// assign event handlers (called when all jpgs are loaded)

function setupHandlers() {
   pct_txt.removeTextField();  // don't need loading indicator any more
   thumbs_mc.onEnterFrame = sliderControl;
   for (var i:Number = 0; i < NPICS*2; i++) {
      thumbs_mc["mc"+i].onRollOver = grow;
      thumbs_mc["mc"+i].onRollOut = shrink;    
      thumbs_mc["mc"+i].onRelease = openPic;
   }
}

// listener function for broadcast 'done' message (for each pic)
// onLoadInit gets executed when the movieclip has been loaded into _mc AND 
//   its width and height data are available.
//   (_mc = the movieclip being loaded into)
// this routine sets the size and position of each thumbnail clip as its jpg
//   is loaded and starts the next one loading.  When all have been loaded, 
//   a random picture is loaded into pic_mc and setupHandlers is called to 
//   assign handlers to each thumbnail movieclip

function onLoadInit(_mc:MovieClip) {
   // this gets done when the jpg is completely loaded:
   _mc._width = THUMBW;
   _mc._height = THUMBH;
   _mc._alpha = 99;  // for image clarity
   // give the movieclip a property to remind it who it is
   // (used by openPic to know which big picture to open)
   _mc.i = (ipic >= NPICS ? ipic-NPICS : ipic);
 
   // add picture size to totalloaded variable
   totalloaded += loader.getProgress(_mc).bytesTotal;

   // now load the next one (if there are more) or set up handlers if done
   ipic++;
   if (ipic == NPICS * 2) {
      // start with a random photo displayed when all thumbs loaded
      pic_mc.loadMovie(PICPATH + picnames[Math.floor(Math.random()*NPICS)] + ".jpg");
      setupHandlers();
   } else if (ipic >= NPICS) {
      // load jpg into duplicate thumbnail (will already be cached)
      loader.loadClip(PICPATH + picnames[ipic-NPICS] + ".jpg",  thumbs_mc["mc"+ipic]);
   } else {
      // load jpg into thumbnail
      loader.loadClip(PICPATH + picnames[ipic] + ".jpg",  thumbs_mc["mc"+ipic]);
   }
}

// listener function to handle broadcast progress messages
// make pct_txt show cumulative loading progress

function onLoadProgress(_mc:MovieClip, loaded:Number) {
   var loadedsofar:Number = totalloaded + loaded; 
   pct_txt.text = Math.floor(loadedsofar / TOTALBYTES * 100) + "%";
}

function init() {
   // create holder for pictures
   createEmptyMovieClip("pic_mc", 1);
   pic_mc._x = PICX;
   pic_mc._y = PICY;

   // create (and draw) holder for thumbnails 
   createEmptyMovieClip("thumbs_mc", 2);
   thumbs_mc.beginFill(0, 100); // black
   thumbs_mc.moveTo(0, 0);
      thumbs_mc.lineTo(2 * (MARGIN + THUMBW) * NPICS, 0);
   thumbs_mc.lineTo(2 * (MARGIN + THUMBW) * NPICS, THUMBH);
   thumbs_mc.lineTo(0, THUMBH);
   thumbs_mc.endFill();
   // drawing the thumb holder at 0, 0 and then moving it makes its reg point = upper left
   thumbs_mc._x = THUMBHOLDERX;
   thumbs_mc._y = THUMBHOLDERY;

   // create, draw and enable mask over thumbs (could use different variables to define mask
   // if desired)
   createEmptyMovieClip("mask_mc", 3);
   mask_mc.beginFill(0x0000cc, 100);
   mask_mc.moveTo(0, 0);
   mask_mc.lineTo(MASKW, 0);
   mask_mc.lineTo(MASKW, MASKH);
   mask_mc.lineTo(0, MASKH);
   mask_mc.endFill();
   mask_mc._x = MASKX;
   mask_mc._y = MASKY;
   thumbs_mc.setMask(mask_mc);

   // create loading textfield indicator
   createTextField("pct_txt", 4, 200, 100, 40, 100);
   var tf:TextFormat = new TextFormat();
   tf.align = "center";
   tf.size = 12;
   tf.font = "Verdana";
   tf.color = 0xFFFF00;
   pct_txt.setNewTextFormat(tf);

   // make empty movieclips in thumbs_mc for each pic to go into
   // make double the number so the slider can move continuously and show content
   for (var i:Number = 0; i < NPICS * 2; i++) {
      var mc:MovieClip = thumbs_mc.createEmptyMovieClip("mc"+i, i+1);
      mc._x = i*(MARGIN + THUMBW);
      mc._y = 0;
   }
 
   // set the pointer to the first jpg in the array picnames
   ipic = 0;
   // start loading jpgs (ipic is initialized to 0)
   loader.loadClip(PICPATH + picnames[ipic] + ".jpg", thumbs_mc["mc"+ipic]);
}

/*********  CALL THE INIT FUNCTION TO START THE MOVIE  *****************/
init();

Tuesday, March 15, 2011

Sunday, March 6, 2011

Ayr 14s, Comeback Kings

This was a game that promised to be a good test for the Ayr players on a lovely wide playing surface which would allow them to play to their normal strengths against a well organised Alloa side. 

The first period started with Alloa on the front foot, playing the ball around in the midfield area as Ayr struggled to get out of the blocks in the early minutes. This was causing Ayr's midfield to be forced back deep into their own half and were literally on top of their own defenders which allowed the Alloa midfield to see lot of the ball and spray the ball about.

Alloa's strikers were also pressing the defence, not allowing Ayr to get their passing going meanwhile Ayr strikers Ryan Wilson and Roy Barr were working hard for the team but thus far weren’t getting any joy up front.

Alloa kept on the attack and got their reward as a cross from the left was not cleared away safely, and with a pinpoint volley from the talented Alloa number six, the ball nestled into the top right hand corner of the goal to give his side a well deserved lead.

After the goal, Alloa kept going strong and were controlling the game, requiring some good saves from Ayr keeper Sean Robinson to keep the scoreline as it was. The first period ended with just the one goal for the home side whilst Ayr still looked to get themselves started.

Ayr started the second period slightly better although the midfield were still sitting deep and not pressuring their opponents but with the introduction of Sean McKenzie gave the Alloa defence something different to think about and McKenzie nearly got on the score sheet after a long ball caused an error from the Alloa defence which saw him run clear to knock the ball through an Alloa defenders legs but his shot was stopped by a great save by the goalkeeper.

Ayr started to express themselves a bit more and this was evident as Aiden Connor picked up the ball on the halfway line, driving at the defence stepping by the right back but unfortunately the cross got blocked but showed a better attacking prowess from the Ayr side as the second period ended.

The third period saw Ayr increase the tempo and start to get the better of their hosts by not allowing them any time or space to play.

The ball was getting played into some good areas and with the players positive attitudes, they were starting to impose their will on the match. This was apparent none more so than Michael Stewart who was causing havoc down the right side with long dribbling runs giving a man of the match performance.

Ayr eventually got there equaliser through another positive move by Stewart who beat a man before producing a wonderful through ball to McKenzie who showed good composure to slot it past the out rushing Alloa keeper. Ayr looked a lot brighter and had a hunger about them, quickly getting back on the attack with Reece Lapham who struck a magnificent 20 yard effort of the crossbar and unfortunately Ryan Wilson couldn’t convert the rebound due to some good defending by Alloa's rearguard.

Ayr then added another with a wonderful solo effort from Michael Stewart who picked the ball up in midfield and showed the confidence to drive past five Alloa players before striking the ball past the goalkeeper.

Ayr now had the bit between their teeth, testing the keeper again and again. Alloa's keeper needed to be in inspired form as he stopped a brilliant shot from McKenzie down to the left and with McKenzie and Ryan Wilson working their socks of upfront it was just a matter of time before this pressure paid off.

A direct ball from Blaine Swift was misjudged by the Alloa defenders mainly due to the pressure put on them by McKenzie which allowed Wilson to run onto the free ball to finish superbly with a volley into the left corner leaving the goalkeeper rooted to the spot.

Ayr coach Michael Stewart commented afterwards,"It took us a while to get into the match against a well organised Alloa team but when the players eventually started their engines, they got motoring. There was a lot of hard work involved today but the boys never dropped their heads, always believing they could drag themselves back into the match and once we scored, there was no looking back."
Ayr & Alloa 16's Stalemate

Ayr's under 16's made the journey to Alloa knowing that they were in for a difficult game after previous encounters between these two sides had always been closely contested but with Alloa
coming out narrowly on top in the last three meetings.

The home team started at a furious pace and inside the first minute Andy Clark made an outstanding save pushing a ferocious shot on to the bar and over for a corner.

Ayr were taking a long time to make any impression on the game as Alloa took full advantage of the
wide open spaces of Recreation Park pushing Ayr back for long spells. However, the Ayr boys worked
hard and gradually began to show more as an attacking force towards the end of the first half and indeed stole
the lead in the 35th minute when Adam Fraser finished clinically from just outside the box after a flowing Ayr move.

The second half started like the first with Alloa seeing most of the ball and in the 55th minute they scored from
close in after an excellent cross from the right.

From that point the game developed into an end to end contest with both teams serving up highly entertaining spells of play with further opportunities to score being manufactured by both sets of players, but with good goalkeeping and stout defending in evidence the scoreline remained the same.

Coach John Given spoke after the 90 minutes saying, " Overall this was a good hard fought match which left both team's respective coaches happy with their player's performances and commitment."
Ayr 15s, Pride Over Clyde

On a cold and damp afternoon at Prestwick Academy, Ayr started the quicker of the two sides on show with Mick Ahern having the ball in the net after only four minutes but the referee deemed it to be off-side. 

This was a sign of things to come in the first period as Ayr continued to press the ball in the Clyde half and the first goal came after just eight minutes when a nice passage of play involving Keegan and Willock sent Nisbet through on goal to slot past the Clyde keeper.

Ayr's next goal came within a minute of the restart with Nisbet picking the ball up in his own half then playing an excellent through ball to send Anderson clear on goal and he placed it past the keeper into the far post.

Ayr had further chances to increase their lead with the best of them coming from Nisbet, Ahern and McCarrison but none could find the net. However, Ayr did get another when Nisbet intercepted a pass between the Clyde defenders to go through on the keeper to finish well for his second of the afternoon.

The second period saw Clyde pressing Ayr hard, not giving them a moment on the ball and with only two minutes of this second period played, they finished with a good strike past Hart into the Ayr goal. Clyde continued in this vein and were the stronger team throughout this period of play adding their second goal of the day with a 20 yard strike that flew high past Hart and into the back of the net.

Ayr though, continued to create chances and Nisbet completed his hat-trick
with seconds remaining of the period when he slotted the ball past the stranded Clyde keeper.

As the third period started, the Ayr players were stunned as straight from the restart, Clyde went up the pitch and scored their third of the afternoon but the third period was to prove more of an even affair than the two previous with firstly Nisbet getting another Ayr goal after a good break involving McCarrison and Ahern but only after Fillipi's shot at goal had hit the bar.

Clyde, to their credit kept fighting and never let there heads drop and added another goal of their own with a good finish. However Ayr were not finished scoring with McCarrison getting on the score sheet with an excellent 25 yard strike that left the keeper with no chance.

Coach Jamie McCrae said afterwards,"It was a really good open game played in the correct manner with both teams trying to play football. Ayr started really well but we need to learn not to allow teams back into games by giving away sloppy goals. There were some excellent performances today especially by Nisbet and Ahern."

Thursday, March 3, 2011

Dear Sir,

My name is Royston chatterton from India is writing cv to you to let you know about my details.
Sir I am writing this letter to the club to let you’ll know that I wana be a football player for you club. Football is my life. Staying in India wont let me fulfill my dreams. I wanna come to uk to play for the be...st club such as yours. If u give me a chance I wont let you down. I wanna play for your young squad and then for the main team
I am a very hard working person. I have a lot of experience in football I have been playing since I was 8-9 years old. I have played for many clubs in Mumbai . I have gone for many football trips in india like thee IIFA I played for nationals and I had a chance to play for international also but as my dad passed away I couldn’t . I was gona play for gothia cup in Sweden .
This is my CV
See More
Yesterday at 7:23am

    • Regals FC Regals FC tries to utilize Houston area players...contact the Galveston Pirate, he loves little 16 yr olds from India and may even allow you to share his home.
      Yesterday at 7:28am
    • Royston Chatterton sir i am ready to pay any fee lyk sum hostel rent etc.
      Yesterday at 7:30am
    • Regals FC Sorry, but we do not have any interest in underage players from outside the Houston area, once again, contact the Galveston Pirate
      Yesterday at 7:43am
    • Royston Chatterton okay any ways thank you
       
      We are still seaching for special talent players to join our SPSL professional team.
      Players of ages 15 and up are welcome.
      December 16, 2010 at 6:32am · ·
       
       
       

      Brendan Keyes suspended and fined by SPSL

      Galveston Pirate SC owner Brendan Keyes has been fined $10,000 and suspended indefinably by the Southern Premier Soccer League for violation of the league's policy of good sportsmanship.

      The team is expected to complete the remaining matches on the SPSL schedule without Keyes at the helm.

      Keyes provided derogatory information to the media in regards to the match played February 12th between Keyes' Pirate SC and Regals FC.

      This information for this http://myscottishfootball.blogspot.com/2011/03/trouble-in-texas-soccer-league.html story and is in direct conflict with our league’s policy of good sportsmanship.

      Keyes' suspension is effective immediately, and will be in effect until the completion of the season and the payment of all fines assessed.

      The suspension does not allow Keyes to act in the capacity as a recognized representative of the SPSL at any event. Keyes is not permitted to attend team practices or matches.

      The assessed fine for this behavior is $10,000 and will be used as a donation to US Club Soccer.
       
       

      About

      The Southern Premier Soccer League (SPSL) is a United States soccer league recognized by the United States Soccer Federation and the United States Club Soccer (USCS). The Southern Premier Soccer League is a regional league based out of The Woodlands, TX.

      The Southern Premier Soccer League began in 2010 as three teams of the National Premier Soccer League (NPSL) (Galveston Pirate SC, Regals FC, and Corpus Christi Fuel), Texas Lonestrikers, Tulsa Lobos FC, and Houston-based Club América Academy formed to join the league. Since most league schedules currently run from April until July, the SPSL fills the marketplace by providing players and teams with the chance to compete together and gain national exposure on a year-round basis by having games from October to March. The league will play a spring-summer schedule in 2011 before the first full 40 match, natural season, schedule begins in October 2011.

      The Rio Grande Bravos accepted an invitation to move from the USL-PDL to the SPSL on October 13th, 2010.
      The league is looking into expanding into other states in the Southern United States in the coming future.

      There are currently six teams spanning Texas and Oklahoma.
Searching....