Onerutter.com has been hacked.

Yea, my site has been hacked. Someone got in and deleted all my pages, all of my tutorials that I spent hours creating to help others on the web. Some Jerks overwrote that so they could earn a buck with their stupid spam ads. Im so mad right now, I was doing something good for the internet and look what happened.

Google Maps API for Flash

Just as Yahoo! created an API for Flash a few months ago, Google has followed and created one too. Im looking forward to playing around with this one, I have already messed around with the Yahoo! api. Yahoo! has done a great job of including well defined documentation.

http://code.google.com/apis/maps/documentation/flash/

Mac OSX Leopard MySQL Issue Fixed

After installing the newest mySQL package, then trying to startup mySQL from my preference pane, it would simply not start. I did a quick search on Google and instantly found an article which helped. The advice given by the blog author did not work, but after reading through some comments I found the answer:

(Macbook Pro, Leopard, MySQL 5.1.23 pkg )

Start - sudo /usr/local/mysql/support-files/mysql.server start
Stop - sudo /usr/local/mysql/support-files/mysql.server stop

Important that you run that as root (sudo) otherwise mysql.sock doesn’t appear in /tmp/

Earth Day - 4/22/08

Happy Earth Day! Over the past few months, I have been getting more concerned with the state of the earth and therefore have been putting in a little more effort to do my part. I have been recycling whatever I can at home, and I have started bringing my own shopping bags to the grocery store. Plastic bags take 500+ years to bio-degrade and apparently the average 4 person family uses 1000 bags a year. Its important that if you use plastic bags, to recycle them when you are finished with them.

Another alternative is to bring your own bags, I have been using Baggu reusable bags. I love them, they are nylon, washable and are much more durable and hold more than plastic bags. Many stores now give you money back for using your own bags. If you havent already, I urge you to do your part and pick up some Baggu bags.

Flash ActionScript 3.0 XML Basic Slideshow with Transitions

In this tutorial, Im building up what I started in the Text Array Loader. Basically, I have added the ability to pull in images and also setup the whole slideshow on a Timer event. So every 5 seconds (the time limit can be changed), the next image is loaded from the XML, and when it loads it uses an Alpha Tween from the TweenLite library to fade in. In the next version, I will be adding some sort of dynamic navigation.

Here is a screenshot of the XML File:
AS3 Part 1 Tutorial - XML File

This slideshow is based off my prior tutorial: Flash ActionScript 3.0 XML Text Array Loader.

Step 1: Declare Your Variables and Import Classes
This is where I first Import the gs.TweenLite class so that I can use it to tween my images. I also setup my variables here for my timer, my slide number, and my image loader.

Actionscript:
  1. import gs.TweenLite;
  2.  
  3. // variables
  4. var xmlList:XMLList;
  5. var slideNum:Number = 0;
  6. var imgLoader:Loader = new Loader();
  7. var slideTimer:Timer = new Timer(5000); //runs every 5 seconds

Step 2: Load the XML
Now I setup the loader request for XML and once its finished loading using the EventListener, then I tell flash to pull the name attribute out of the first node in my xml file and I use the another instance of the loader class to to load the image out of the xml file. I then place the text in the dynamic text field called imageText and also add the first instance of imgLoader to the stage and tell it to tween in.

Actionscript:
  1. // load xml
  2. var xml:XML = new XML();
  3. var loader:URLLoader = new URLLoader();
  4. loader.load(new URLRequest("images.xml"));
  5. loader.addEventListener(Event.COMPLETE,
  6.     function(evt:Event):void {
  7.         xml = XML(evt.target.data);
  8.         xmlList = xml.children();
  9.         imageText.text = xml.image[slideNum].@name.toString();
  10.         imgLoader.load(new URLRequest(xml.image[slideNum].@src));
  11.         TweenLite.from(imgLoader, 1, {alpha:0});
  12.         imgLoader.x = 0 ;
  13.         imgLoader.y = 0;
  14.     }
  15.    
  16. );

Step 3: Add Event Listeners
Now I setup the imgLoader event listener, that once that event is complete it will run onLoadComplete. I also setup the slideTimer here and start it. The slideTimer is set to call the function onSlideTimer every 5 seconds.

Actionscript:
  1. // stage event listeners
  2. imgLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoadComplete);
  3. slideTimer.addEventListener(TimerEvent.TIMER, onSlideTimer);
  4. slideTimer.start();

Step 4: Change Text Function
I carried over the Change Text Function from my XML Text Array Tutorial and added a few lines to pull the next image from the XML file along with the next text description.

Actionscript:
  1. // this function will change the text depending upon which number is fed to the var slideNum in the onClickNextSlide function
  2. function changeText(slideNum:Number):void {
  3.     imageText.text = xml.image[slideNum].@name.toString();
  4.         imgLoader.load(new URLRequest(xml.image[slideNum].@src));
  5.          addChild(imgLoader);
  6.          TweenLite.from(imgLoader, 1, {alpha:0});
  7.          imgLoader.x = 0;
  8.          imgLoader.y = 0;
  9.         
  10. }
  11. changeText(0);

Step 5: Timer Function
This is the most crucial part of the slideshow is what makes the slideshow run on its own. This is the timer function which the timer calls every 5 seconds. It will change the slide, so every five seconds its counts up a number and that is the image that is shown. Once it reaches the 5th image(4), it starts over at 0, which is really 1.

Actionscript:
  1. function onSlideTimer(evt:TimerEvent):void {
  2.         if (slideNum == 4) {
  3.             slideNum = 0;
  4.         }
  5.         else {
  6.             slideNum  ;
  7.         }
  8.     changeText(slideNum);
  9.     trace(slideNum);
  10. }

Step 6: onLoadComplete Function
This function adds the imgLoader to the stage, without this you will not see anything in your movie. This is crucial!

Actionscript:
  1. function onLoadComplete(event:Event):void {
  2.         addChild(imgLoader);
  3. }

Im currently working on making this a tad more dynamic with buttons, and a slideLength variables which automatically changes the amount of slides so that you dont have to change the .fla file when adding more nodes to your slideshow. Im also going to be working on getting slicker transitions working such as images that slide in/slide out off the screen.

Here is an example of the working file:
View Demo

Download all the source files here: AS3 Basic Slideshow with Transitions (1815)

ve ringtones motorola for alltelwireless ringtones alltel alltell 41 1 417 free top ringtonefree ringtones 1260ringtone 190 motorola download1st ringtoneringtones 2285mp3 ringtone 6230 Mapfree sex movie slavemovies preteenmovies musclemen samplealien movies ant farmadult movies free samplesex movies freelesbo movieshome wifes movies Mapmovies porn free bigfree lactating moviesmovies free milfhunter downloadedgallery movie shemale freewindows maker free moviethe holes movie soundtrackhorror movie figures actionnude jennifer movie connelly Mapalaska loan supplementalloans alliedstudent american loanprivate student aarp loansloan abn mortgage resolutionloan unsecured $500,000personal ameriquest loansfederal stafford a-subsidized loans Mapbabysitters pornsporn party bachelor nightporn breakin backfacial room back pornporn for access backdoorbackdoor porn sitesbackroom pornporn bangers site backyard Maptottaly spies pornfree view clips pornxxx free rated pornringtone walsh joe wavhop ringtones hip midi 10kb3 ringtonesnokia 3520 ringtone 3560 freenokia 5125 ringtone free download MapAsian TGP speculumMujeres eroticasLatina Mollig TGPpusy - ATK BehaarteBiw interrassischGranny Interrassischpissing LollitaErotik Sapphic Sandy Map

Next entries �� Previous entries