A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Combobox loads variable in URL?

  1. #1
    Junior Member
    Join Date
    Nov 2004
    Posts
    5

    Combobox loads variable in URL?

    I need to load a variable from a Combobox into the tail end of a URL...ie:

    (script is on same layer as combobox)

    on (change) {
    loadMovie("http://somewebsite.com/flash/636050/" + myComboBox.selectedItem.data, "1");
    }

    The data set loaded into the combobox is the filename....ie:

    black.swf

    I load external swf's into the various levels of this app.

    Can't get it to work. Am I connecting the variable to the URL in the wrong way?

    I've also tryed putting the entire path/movie name url in the dataset but it doesn't work either.......

    Any thoughts?
    Last edited by baument; 11-15-2004 at 03:33 PM.

  2. #2
    Member
    Join Date
    Aug 2004
    Posts
    35
    The three best flash forums www.actionscript.org, www.flash-db.com and www.kirupa.com. If you can’t get an answer here try one of them forums!
    Last edited by wilfolaram; 11-16-2004 at 08:12 PM.

  3. #3
    Junior Member
    Join Date
    Nov 2004
    Posts
    5
    I put this on the first frame, top layer and it works like a dream. Hope the answer helps someone else......

    I also added another function just after this one called listener2 for another combobox on the same stage. It works also.........

    Thanks!

    <snip>

    listener = new Object()
    listener.change = function(evt){
    loadMovieNum("http://somewebsite.com/flash/outer/" + evt.target.selectedItem.data + ".swf",2);

    _root.dms1=(evt.target.selectedItem.data);
    _root.sku = "636020" + _root.dms1 + _root.dms2;
    }

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