Results 1 to 2 of 2

Thread: A little help gettn flash 2 refresh

  1. #1
    Newbie
    Join Date
    Aug 2007
    Posts
    4

    A little help gettn flash 2 refresh

    hi every1
    well my proplem is that i got my flash playlist working.
    ive split the title an artis into seperate lines i got that work but how do i keep it refreashing all the time. if i change the song in the playlist it doest refreash for me...any help would be nice

    thanks

    here is my code

    Code:
    on frame 5
    
    {
        playlist = _root.CUSTOMPL.split(chr(13));
        CUSTOMPL = _root.CUSTOMPL;
    }
    
    on frame 10
    
    {
        if (oldtr <> _root.TRACKNUMBER) {
            gototrack = "SETLIST;" + _root.TRACKNUMBER;
            if (_root.cl == 1) {track.gotoAndPlay(1);}
            tr = _root.TRACKNUMBER - 1;
            oldtr = _root.TRACKNUMBER;
        }
        myColor = new Color (tr4);
        myColor.setRGB(parseint(_root.col));
        tt1 = substring(playlist[-3 + tr],4,40);
        tn1 = -2 + tr;
    	ts1 = tt1.split("/");
        tt2 = substring(playlist[-2 + tr],4,40);
        tn2 = -1 + tr;
    	ts2 = tt2.split("/");
        tt3 = substring(playlist[-1 + tr],4,40);
        tn3 = 0 + tr;
    	ts3 = tt3.split("/");
        tt4 = substring(playlist[0 + tr],4,40);
        tn4 = 1 + tr;
    	ts4 = tt4.split("/");
        tt5 = substring(playlist[1 + tr],4,40);
        tn5 = 2 + tr;
    	ts5 = tt5.split("/");
        tt6 = substring(playlist[2 + tr],4,40);
        tn6 = 3 + tr;
    	ts6 = tt6.split("/");
        tt7 = substring(playlist[3 + tr],4,40);
        tn7 = 4 + tr;
    	ts7 = tt7.split("/");
    }
    
    on frame 13
    
    {
        t1 = substring(ts1[0],0,40);
        a1 = substring(ts1[1],0,40);
    	tn1 = -2 + tr;
        t2 = substring(ts2[0],0,40);
        a2 = substring(ts2[1],0,40);
    	tn2 = -1 + tr;
        t3 = substring(ts3[0],0,40);
        a3 = substring(ts3[1],0,40);
    	tn3 = 0 + tr;
        t4 = substring(ts4[0],0,40);
        a4 = substring(ts4[1],0,40);
    	tn4 = 1 + tr;
        t5 = substring(ts5[0],0,40);
        a5 = substring(ts5[1],0,40);
    	tn5 = 2 + tr;
        t6 = substring(ts6[0],0,40);
        a6 = substring(ts6[1],0,40);
    	tn6 = 3 + tr;
        t7 = substring(ts7[0],0,40);
        a7 = substring(ts7[1],0,40);
    	tn3 = 4 + tr;
    	
    }
    
    on frame 16
    
    {
        if (_root.cl == "0") { gotoandplay(25)} else {
        if (oldtr <> _root.TRACKNUMBER) {
            gotoAndPlay(1);
        }
        if (cl <> _root.LISTPOS - 1) {
            tr = _root.LISTPOS - 1;
            cl = tr;
            gotoAndPlay(10);
        }}
    	
    }
    
    on frame 20
    
    {
        if (_root.cl == "0") { gotoandplay(25)} else {
        if (_root.CUSTOMPL <> CUSTOMPL) {
            gotoAndPlay(3);
        } else {
            gotoAndPlay(10);
        }}
    }
    
    on frame 30
    
    {
        gotoanplay(20);
    }

  2. #2
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    I'm sorry I can't be of much help with the flash portion itself -- but basically, you can do one of two things:

    1-Clear _root.CUSTOMPL immediately after parsing it, then monitor it. When it's set again, you should again parse it, then clear it. This will make sure you always keep the list up to date.

    2-Request the updated list everytime you issue a command that you know will change the playlist (ADD1, CLEARLIST, SELECT/+, MINUS1, etc), this is probably more efficient but requires organization so you don't miss any times you were supposed to reload the list after a command (that affects it) is issued. The command: fscommand("getpl") will set _root.CUSTOMPL with the most up-to-date info, so you can parse the variable immediately after issuing the getpl command.
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

Similar Threads

  1. Replies: 4
    Last Post: 12-04-2008, 01:29 PM
  2. Replies: 33
    Last Post: 03-28-2008, 02:18 PM
  3. compact flash raid
    By B3AND1P in forum General Hardware Discussion
    Replies: 37
    Last Post: 03-13-2008, 07:23 PM
  4. sending keystrokes to flash?
    By Nitrov8 in forum Road Runner
    Replies: 7
    Last Post: 04-07-2006, 12:51 AM
  5. Replies: 24
    Last Post: 03-03-2006, 12:36 PM

Bookmarks

Posting Permissions

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