Jump to content
Search Community

junky

Members
  • Posts

    41
  • Joined

  • Last visited

Everything posted by junky

  1. How does one use the timescale function in timelinemax or timelinelite? I've tried doing timeline.timeScale(2) but that doesn't work. HELP!
  2. What am I doing wrong. I have a LoaderMax.prioritize("que2") and when called it just starts loading that file without pausing the queue and moving it to the top. Is there something I'm missing? I have it tied to a couple buttons (each with a corresponding image). If I click on each button rather than prioritizing it's just loading them all at the same time. Slowing the whole load down. HELP!
  3. Basically I need to do this: for (var i:Number=0; i<10 , i++){ var pageQueue:LoaderMax = new LoaderMax({name:"name"+i}); for(var j:Number = 0; j<10, j++){ var loader:LoaderCore = LoaderMax.parse( ... ); pageQueue.append( loader ); } parentQueue.append(pageQueue) } But when doing so I get all assets from each loop added to multiple queues. And so the more files I have looping the more duplicates I get.
  4. So in my example above moving the queue declaration outside of the for loop works... Bubt in my real file I can't move the queue out of the for loop. I have a function that is called from a for loop and creates each individual page, and inside that function there's a "for" loop that adds all the assets to that page's loadermax instance. What seems to be the problem is rather than creating a new loadermax instance and adding it to the parent queue it's duplicating it and adding all items to each queue. I guess I'm expecting to be able to create queues like you can movieclips or sprites in a loop and by giving them a unique name you can call them by name. Is there anyway to have a queue created dynamically in a for statement and adding it to a parent queue?
  5. Ok that makes sense. Thank you for the response. My model is pretty complex with XML file and figuring out everything. I appreciate you walking me through it. I think I see where I went wrong. I'll make a few edits and see if it sticks. Thanks.
  6. here's a link to a simple version of what I'm working on: http://marcgarner.com/weblog/wp-content ... _queue.zip The basic idea is for a website. There's a home page and multiple subpages. On first load the home page's assets are added to the the QUEUE, followed by the subsequent pages assets. What I'm looking for is all the assets for each page to be grouped together. So if the user clicks to a page that the assets haven't even started loading, I can tell the site to switch and prioritize the page being requested assets to load. Does that make sense? The example illustrates the duplicate image loading. Please let me know what you think. Thanks for your help. marcfolio
  7. So here's a weird thing: When I do as describe above I get duplicate images loading (instead of one). Here's my code: var parentQueue:LoaderMax = new LoaderMax(); var QUEUE_NAME:String = "MY UNIQUE NAME HERE" var queue:LoaderMax = new LoaderMax({name:QUEUE_NAME}); var loader:LoaderCore = LoaderMax.parse(xml.section[xml1].page[xml2].item[item1].@src.toString(), {bgColor:bk_color,container:page_mc, name:QUEUE_NAME, noCache:false,width:swfWidth, height:swfHeight, scaleMode:"proportionalInside", hAlign:"center", vAlign:"center", crop:false}); queue.append(loader) parentQueue.append(queue) if I just add the loader to the parent I get only one image loaded (not the duplicate)
  8. That's genius Jack! Thank you. I am loving loadermax more each day.
  9. Yeah I'm looking for more like an array of loads I can push to the back burner and load an array of items that belong to the a page to be viewed.
  10. Is it possible to prioritize a list of files? For example I have a page with a dozen assets loading on it in the main queue, but say I want to pause on and load the other dozen for another page? any suggestions.
  11. Figured it out. Oops. Just check the doc right?! hAlign:"left", vAlign:"top",
  12. {container:this, name:"img" + i, x:10, y:10, alpha:0, visible:false, noCache:true,width:512, height:350, scaleMode:"proportionalInside"}); So when I set the width and height and then the scaleMode my loaded asset always centers in the prescribed width and height. Is there a way to tell it to align left or right and top or bottom?
  13. Thanks Jack and Bassta. I like jack's solution, but Bassta question for you is can you tween a scale9grid? Everything I've seen says no. Please let me know. Again I appreciate the advice.
  14. Is there a way to have a rectangle shape with rounded corners and have the rounded corners not get distorted when tweened? var child:Shape = new Shape(); child.graphics.beginFill(0xcccccc); //child.graphics.lineStyle(1, 0x000000, 1, true, LineScaleMode.NONE); child.graphics.drawRoundRect(0, 0, 100, 100, 12); child.graphics.endFill(); addChild(child); TweenMax.to(child, .5, {width: 200}) But the corners get stretched rather than staying the proper shape? I've come across a scale9Grid, but don't know if that's the right direction or can be applied to this. PLEASE. HELP.
  15. I'm using the latest AS2 TimelineMax and want to remove one of the tweens from the timeline when a button is rolled over, but I can't seem to get timeline.remove(myTween) to work. Here's the basics of my code. var timeline:TimelineMax timeline = new TimelineMax({repeat:23,yoyo:false}); for(var i=0; i<2; i++) { sections[num]["word"+i+"_mc"].gotoAndStop(1); var targ:MovieClip=sectionHolder_mc[sections[currentSection]]["word"+i+"_mc"]; targ.num = i targ.stop(); targ.onRollOver=function() { wordOver(this); } timeline.insert( TweenMax.to(targ, .5, {glowFilter:{color:0xFFFFFF, alpha:glowAlphas[currentSection], blurX:10, blurY:10}}) ); timeline.insert( TweenMax.to(targ, .5, {glowFilter:{color:0xFFFFFF, alpha:0, blurX:10, blurY:10, remove:true}, delay:.5}) ); } //BUTTON ACTION HERE function wordOver(targ:MovieClip):Void { if(targ._currentframe==1) { targ.play(); //CAN'T Figure out what needs to go here to remove a tween in the timeline. } }
  16. Any ever use the loaderMax with a for loop?
×
×
  • Create New...