Okay, so this is my first post on here. If I’m doing something incorrectly (asking in the wrong area, asking too much, etc), please inform me.
So, my issue is this. I’m coding a slideshow, and I’ve commented out everything except importing the pictures so I can focus on it. Now, I have this code work in the timeline of a .fla file, but it’s not working when I code it for a class.
package
{
import fl.transitions.Tween;
import fl.transitions.easing.*;
import flash.display.MovieClip;
import fl.transitions.TweenEvent;
import flash.net.URLRequest;
import flash.display.*;
import flash.events.*;
public class Slideshow
{
private var loading:Loader = new Loader();
loading.load(new URLRequest("images/1.jpg"));
addChild(loading);
}
}
I’m getting three errors.
1120: Access of undefined property loading.
1180: Call to a possibly undefined method addChild.
1120: Access of undefined property loading.
Any help, tips, guidance, or reference location would be very much appreciated. Also, I’m kind of newbie to this, so be nice. Thank you.