Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / General Flash Topics / July 2008



Tip: Looking for answers? Try searching our database.

I need help!! Please help me! Thanks!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
happinessclover - 02 Jul 2008 06:40 GMT
This is a external.as for loading images
Do anyone of you knows where gone wrong?? the images can't be loaded....
thanks!

class PictureSelector
{
    static var imageArray;
    function PictureSelector()
    {
    } // End of the function
    static function init()
    {
        imageArray = new Array();
        activeImage = new Array();
        imageArray = news_lv.thumbs.split("<|>");
        activeImage = news_lv.pic.split("<|>");
        for (var i = 0; i < PictureSelector.imageArray.length; ++i)
        {
            var tempMC =
RightTriangles.clip.createEmptyMovieClip(PictureSelector.imageArray[i],
RightTriangles.clip.getNextHighestDepth());
            tempMC.loadMovie("thumb_" + PictureSelector.imageArray[i]);
            tempMC._alpha = 30;
            tempMC._y = 100;
            tempMC._x = i * 150 + 10;
           tempMC.thumbFile = "data/pics" + imageArray[i];
            tempMC.bigFile = "data/pics" + activeImage[i];
        } // end of for
        RightTriangles.clip.onEnterFrame = function ()
        {
            for (var i = PictureSelector.imageArray.length - 1; i >= 0; --i)
            {
                if (_root._xmouse <
RightTriangles.clip[PictureSelector.imageArray[i]]._x || _root._xmouse >
RightTriangles.clip[PictureSelector.imageArray[i]]._x +
RightTriangles.clip[PictureSelector.imageArray[i]]._width || _root._ymouse <
RightTriangles.clip[PictureSelector.imageArray[i]]._y || _root._ymouse >
RightTriangles.clip[PictureSelector.imageArray[i]]._y +
RightTriangles.clip[PictureSelector.imageArray[i]]._height)
                {
                    RightTriangles.clip[PictureSelector.imageArray[i]]._alpha
= 30;
                    continue;
                    continue;
                } // end if

                RightTriangles.clip[PictureSelector.imageArray[i]]._alpha =
100;
                return;
            } // end of for
        };
        RightTriangles.clip.onMouseDown = function ()
        {
            for (var i = PictureSelector.imageArray.length - 1; i >= 0; --i)
            {
                if (_root._xmouse <
RightTriangles.clip[PictureSelector.imageArray[i]]._x || _root._xmouse >
RightTriangles.clip[PictureSelector.imageArray[i]]._x +
RightTriangles.clip[PictureSelector.imageArray[i]]._width || _root._ymouse <
RightTriangles.clip[PictureSelector.imageArray[i]]._y || _root._ymouse >
RightTriangles.clip[PictureSelector.imageArray[i]]._y +
RightTriangles.clip[PictureSelector.imageArray[i]]._height)
                {
                    continue;
                } // end if
                RightTriangles.clip = _root.createEmptyMovieClip("gameLayer",
1);
                activeImage = PictureSelector.imageArray[i];
                RightTriangles.activeBool = true;
                RightTriangles.init();
                return;
            } // end of for
        };
    } // End of the function
    static var activeImage = "";
    static var news_lv;
   
static function Loadtxt(){
news_lv = new LoadVars();
news_lv.onLoad = function (success)
{
    if (success)
    {
        init();
    }
    else
    {
        trace ("error loading");
    } // end else if
};
news_lv.load("data/pics.txt");
init();
stop();
}
} // End of Class
happinessclover - 03 Jul 2008 15:21 GMT
It's alright le! haha.. i successful edited it:)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.