A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: can't seem to beable to use string in swf

  1. #1
    Senior Member
    Join Date
    Nov 2001
    Posts
    137

    can't seem to beable to use string in swf

    What am i doing wrong?
    I'm sending 1 value pair (bb=9) to preferencea.html

    swf.html:
    <PARAM NAME=movie VALUE="preferencea.swf?bb=9">
    ......
    <EMBED src="preferencea.swf?bb=9"

    in the swf i'm trying to use the value of bb in level 1... but it isn't working, i've been playing around with it and still noluck... any ideas? This are the frame actions


    var bb = _level0.bb;

    if (bb=9) {
    ....
    }

  2. #2
    Developer
    Join Date
    Sep 2001
    Location
    The Bluegrass State Will Flash For Food ™
    Posts
    3,789
    use the double equals sign... "=="

    what happens when you trace bb?

    if (bb != 9) trace(bb);

  3. #3
    Senior Member
    Join Date
    Nov 2001
    Posts
    137
    the double == does not work either,

    When i posted my question i tried to keep things simple, this is my actual situation, maybe if i tell it as it is my problem may be easier to solve:
    I have a button in swf1 that sets a variable like so:
    if(.....){
    var bb = 1;
    } Else If {
    ......
    Play();

    //Then on the next frame i have:
    stop();
    if(bb==1){
    getURL("preferencea.asp?bb="+bb, "_self");
    }

    //then in the html of preferencea.asp i have:
    <PARAM NAME=movie VALUE="preferencea.swf?<%=Request.QueryString()%>" >
    <PARAM NAME=loop VALUE=false>
    <PARAM NAME=quality VALUE=high>
    <PARAM NAME=scale VALUE=exactfit>
    <PARAM NAME=bgcolor VALUE=#FFFFFF>
    <EMBED src="preferencea.swf?<%=Request.QueryString()%>"

    // when i response.write the Request.QueryString() i get bb=1

    //then i have a preload in preference which plays when Bytes loaded = 100% then the frame after the preloader i have:

    if (bb == 1) {
    loadVariablesNum("http://www.comapny.com/1a.asp", 1);
    } else if (bb == 2) {
    loadVariablesNum("http://www.comapny.com/1b.asp", 1);
    }

    I'm displaying the loadedvariables in text box called "display"

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