I've been using Gaia but I keep running into problems. I'm trying to create a photo gallery following this tutorial
http://active.tutsplus.com/tutorials/effects/create-a-responsive-xml-image-scroller-in-actionscript-3-0/ and I when I copy the first line of actionscript and change it to redirect to my XML file I get tons of errors.
C:\Users\windoze\Desktop\New Site\src\com\sun\pages\GalleryPage.as, Line 35 1120: Access of undefined property xmlLoader.
C:\Users\windoze\Desktop\New Site\src\com\sun\pages\GalleryPage.as, Line 35 1120: Access of undefined property xmlPath.
C:\Users\windoze\Desktop\New Site\src\com\sun\pages\GalleryPage.as, Line 36 1120: Access of undefined property xmlPath.
C:\Users\windoze\Desktop\New Site\src\com\sun\pages\GalleryPage.as, Line 37 1120: Access of undefined property xmlLoader.
C:\Users\windoze\Desktop\New Site\src\com\sun\pages\GalleryPage.as, Line 37 1120: Access of undefined property LoadXML.
package com.sun.pages
{
import com.gaiaframework.templates.AbstractPage;
import com.gaiaframework.events.*;
import com.gaiaframework.debug.*;
import com.gaiaframework.api.*;
import flash.display.*;
import flash.events.*;
import com.greensock.TweenMax;
import flash.net.URLLoader
import flash.net.URLRequest
public class GalleryPage extends AbstractPage
{
public function GalleryPage()
{
super();
alpha = 0;
}
override public function transitionIn():void
{
super.transitionIn();
TweenMax.to(this, 0.3, {alpha:1, onComplete:transitionInComplete});
}
override public function transitionOut():void
{
super.transitionOut();
TweenMax.to(this, 0.3, {alpha:0, onComplete:transitionOutComplete});
}
private var xmlLoader:URLLoader = new URLLoader();
private var xmlData:XML = new XML();
private var xmlPath:String = "photo.xml";
xmlLoader.load(new URLRequest(xmlPath));
trace("loading xml from: " + xmlPath);
xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
function LoadXML(e:Event):void
{
trace("xml loading complete");
xmlData = new XML(e.target.data);
trace(xmlData.image);//we'll see each image xml element listed in the output panel with this xmlList
}
}
}
This is just the begining I haven't even put anything on the stage yet
