waiting for php script to load problem
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: waiting for php script to load problem

  1. #1
    Ximensions.com Sul's Avatar
    Join Date
    Oct 2000
    Location
    UK
    Posts
    423

    waiting for php script to load problem

    Hi

    I have php script running and the thing is I want some actionscript there to make the movie wait for the script to load first then proceed. So what I did was something like what is suggested in the tutorial here: http://www.flashkit.com/tutorials/Ba...-702/more3.php

    However it doesn't seem to work. Are there alternative ways of doing this?

  2. #2
    Moderator
    Join Date
    Feb 2001
    Posts
    13,044
    Hi,

    this script was written for F5. Why not use loadvars.onLoad method instead?

    Musicman

  3. #3
    Ximensions.com Sul's Avatar
    Join Date
    Oct 2000
    Location
    UK
    Posts
    423
    okay thanks - fixed it!

    Using script detailed below

    code:

    stop();
    thumbfilename = new Array(); //declare array which holds thumbnail filenames
    //var loaded = "no"; //determines if php script loaded or not
    //loadVariables("photogallery.php",this); //load vars from php script

    thumbfilelist = new LoadVars();
    thumbfilelist.load("photogallery.php");

    thumbfilelist.onLoad = function(success)
    {
    if (success)
    {
    thumbfilename = thumbfilelist.thumbs.split(",");
    gotoAndPlay(2)
    }
    }




    Am I using it properly? I got some of it by searching actionscripts.org.

    To be honest I'm not so sure about the syntax here - talking about blah.onload = function(success) part. Is success a reserved boolean variable?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width


HTML5 Development Center

Poll by Flashkit.com