A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Loading Variables from HTML

  1. #1
    Junior Member
    Join Date
    Oct 2000
    Posts
    9
    I'm trying to have my movie tell the user what page they're on by means of an arrow appearing above the button they've just clicked using this actionscript:


    stop ();
    loadVariablesNum ("arrow", 0);
    if (arrow eq "home") {
    gotoAndStop ("home");
    } else if (arrow eq "page2") {
    gotoAndStop ("page2");
    } else if (arrow eq "page3") {
    gotoAndStop ("page3");
    } else if (arrow eq "page4") {
    gotoAndStop ("page4");
    } else {
    gotoAndStop ("broken");
    }

  2. #2
    Junior Member
    Join Date
    Oct 2000
    Posts
    9

    ***HERE'S THE MISSING PART OF MY POST!!!!***


    ...and the HTML page it sits in calls the movie like this:

    <OBJECT SRC="movie.swf?arrow=home">
    <EMBED SRC="movie.swf?arrow=home">

    This has two problems: Firstly the movie always stops at the "broken" frame label, & secondly when tested on a Mac it tells me I need a plugin to view the movie. If the ?arrow=home part is taken out, the movie plays on both platforms but obviously doesn't
    collect the variable.

    Help much appreciated!!!

    cheers

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