Results 1 to 7 of 7

Thread: 506 and Flash help for Album Art

  1. #1
    Low Bitrate docbreezy's Avatar
    Join Date
    Feb 2008
    Location
    Maryland
    Posts
    100

    506 and Flash help for Album Art

    I've been experimenting some with Swishmax and flash and trying to make something new. However i think i've bitten out way more than i can chew. This work in progress has been a pain and i finally admit defeat and hope someone can help me out. Its a simple case of getting the Album art to load in a container in the flash movie. i've tried the following codes,

    onFrame (1) {
    ArtUrl = _root.ALBUMART;
    this.loadMovie("ArtUrl");
    }
    and
    onFrame (1) {
    this.loadMovie(_root.ALBUMART);
    }
    and various other combinations with no luck. It worked once but that seemed to be a fluke while i was changing the ID3 prefence in RRConfigure. I do have this in my skin file , L,0,0,0,0,,,,,,"ALBUMART", but still no luck. any help would be greatly appreciated.

    Name:  Untitled-1.jpg
Views: 342
Size:  93.4 KB
    506 Skin
    506 Flash!
    NEVER BLEND IN!!!

  2. #2
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    The AlbumArt label code will just be the path to the art image file, so the first thing I'd recommend is trying to just display that in flash to verify you're getting it correctly. Next, I'm unsure if "loadmovie()" will work with JPG/PNG/GIF files so you may want to try it with a direct path to see (like this.loadmovie("C:\test.jpg") -- just to see if it actually is working as expected). This should put you in the right direction..
    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."

  3. #3
    Low Bitrate docbreezy's Avatar
    Join Date
    Feb 2008
    Location
    Maryland
    Posts
    100
    Quote Originally Posted by guino View Post
    The AlbumArt label code will just be the path to the art image file, so the first thing I'd recommend is trying to just display that in flash to verify you're getting it correctly. Next, I'm unsure if "loadmovie()" will work with JPG/PNG/GIF files so you may want to try it with a direct path to see (like this.loadmovie("C:\test.jpg") -- just to see if it actually is working as expected). This should put you in the right direction..
    that certainly was in the right direction, thanks guino. Now i can get it to load a pic from the skin folder. Having trouble parsing the AlbumArt label though.
    506 Skin
    506 Flash!
    NEVER BLEND IN!!!

  4. #4
    FLAC Nomader's Avatar
    Join Date
    Apr 2006
    Location
    Greece
    Posts
    1,293
    album art is quite tricky to do in flash...here is how i do it..

    i create 3 different sprites

    the first is called "cover"
    and is empty (no script, no items) and is used to load the albumart inside it

    the second is called "imagetimer" and this one is responsible for noticing whether the ALBUMART has changed so it can triger an update... this is the code for "imagetimer"
    Code:
    onFrame (10) {
        ALBUMTEST = _root.ALBUMART;}
      
    onFrame (13) {
        gotoAndStop(12);}
    notice how i give it some time and start it from frame 13 so RR has time to send the ALBUMART at startup
    the third is the main script and it is called "albumimage"

    Code:
    onFrame (18) {
        
        _root.cover.loadMovie(_root.ALBUMART);}
    onFrame (19) {
        
        oldwidth = _root.cover._width;
        oldheight =_root.cover._height;
        _root.cover._xscale = (550 / oldwidth) * 100;
        _root.cover._yscale = (400 / oldheight) * 100;}
          
    onFrame (40) {
      if (_root.ALBUMART != _root.imagetimer.ALBUMTEST) {
          gotoSceneAndPlay("MAIN",2);
           _root.imagetimer.gotoAndPlay(1);
    
          gotoAndPlay(8)}
          
           
           else {
               
             gotoAndPlay(32)} 
          
    }
    again i give it time to load ALBUMART
    i also do a resize so it can fit inside the SWF... if it is small it will get enlarged and the opposite.. in this case it is fited inside a 550X400 area

    you will need to right click in the at the sprite's "cover" timeline and select "place" in the menu on frame "3"...

    and this code goes to the main scene (which is called MAIN)
    Code:
    onFrame (10) {
        gotoSceneAndStop("<current scene>",10);
    }

    that's it...

    i really miss CdrSkull!!!!! he was very good with flash

  5. #5
    Low Bitrate docbreezy's Avatar
    Join Date
    Feb 2008
    Location
    Maryland
    Posts
    100
    Nomader, that worked like a charm. Thank you.
    506 Skin
    506 Flash!
    NEVER BLEND IN!!!

  6. #6
    FLAC Nomader's Avatar
    Join Date
    Apr 2006
    Location
    Greece
    Posts
    1,293
    Quote Originally Posted by docbreezy View Post
    Nomader, that worked like a charm. Thank you.
    glad to help you.. i really learned flash due to RR!!

  7. #7
    Low Bitrate docbreezy's Avatar
    Join Date
    Feb 2008
    Location
    Maryland
    Posts
    100
    likewise here, only i'm still learning and have quite a bit to learn. Everything i've done on this so far has been a result of Sonixtacy's flash tutorial, but he hasn't finished it as yet, hence, i am left with alot to figure out.
    506 Skin
    506 Flash!
    NEVER BLEND IN!!!

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
  •