Re: [Flashcoders] Simple quesiton for createEmptyMovieClip in AS2

2008-01-13 Thread Radley Marx
vibThumb.link = myURLS[i]; vidThumb.onRelease = function() { openURL(this.link); } On Jan 12, 2008, at 10:56 PM, Marc Hoffman wrote: Put the URLs in an array: myURLS = new Array(www.domain1.com, www.anotherDomain.com, www.anotherDomain.com , www.anotherDomain.com,

Re: [Flashcoders] Simple quesiton for createEmptyMovieClip in AS2

2008-01-13 Thread macromedia flash
Hey Bob, as per your suggestion, I have done the code below, it seems has problem on this. Would you please help me to take a look? Have a nice day :) == var thumbHorizontalGap = 110; //var url:String http://mail.google.com/mail/String =

Re: [Flashcoders] Simple quesiton for createEmptyMovieClip in AS2

2008-01-13 Thread Bob Leisle
Hi (don't know your name, but I'm pretty sure it isn't macromedia :) ), There are a couple of issues in the code: 1. This line makes no sense: var url:String http://mail.google.com/mail/String = arrURLs[i]; I can't tell what you're trying to do with the, http://mail.google.com/mail/String. If

RE: [Flashcoders] Simple quesiton for createEmptyMovieClip in AS2

2008-01-13 Thread Keith Reinfeld
Hey mac, Bob Leisle makes a good point: I don't understand what kind of link you are hoping to pass to getURL(). For the sake of my example code (see below) I have simply reused the image urls you have provided. Additionally I would suggest that you avoid using '_root'. Use the 'this' keyword

[Flashcoders] Simple quesiton for createEmptyMovieClip in AS2

2008-01-12 Thread macromedia flash
hi there, I am having problem to create empty Movie clicp by using the code below, I can't create 5 movie clips vertically. Would you please help me take a look this. Thank you so much :) playListHolder is an MC Instance name and placed on Stage. for (var i:Number = 0; i 5; i++) { var

Re: [Flashcoders] Simple quesiton for createEmptyMovieClip in AS2

2008-01-12 Thread Marc Hoffman
At least one problem: _root.playListHolder.createEmptyMovieClip(vThumb+i, i+1000); should be (note quotes): _root.playListHolder.createEmptyMovieClip(vThumb+i, i+1000); Also, you don't need the line: var vidThumb:MovieClip = You can just tell _root.playListHolder to create the clips based on

Re: [Flashcoders] Simple quesiton for createEmptyMovieClip in AS2

2008-01-12 Thread Bob Leisle
Try this instead: for (var i:Number = 0; i 5; i++) { _root.playListHolder.createEmptyMovieClip(vThumb+i, i+1000); var vidThumb = __root.playListHolder[vThumb+i]; //theVideo.width = thumbWidth; //theVideo.height = thumbHeight; vidThumb._y =

Re: [Flashcoders] Simple quesiton for createEmptyMovieClip in AS2

2008-01-12 Thread Helmut Granda
There are various issues with your code.. here you have an updated smaller version: var thumbHorizontalGap = 75; var url: String = http://img0.gmodules.com/ig/images//weather_welcome_image.jpg; for (var i:Number = 0; i 5; i++) { var vidThumb:MovieClip

Re: [Flashcoders] Simple quesiton for createEmptyMovieClip in AS2

2008-01-12 Thread macromedia flash
AWESOME! thanks all :) One more question here... how can I assign URL link to each movieClip? I would like to add URL for each of movieClip which created by looping, the code like this Thank you var thumbHorizontalGap = 75; var url: String =

Re: [Flashcoders] Simple quesiton for createEmptyMovieClip in AS2

2008-01-12 Thread Marc Hoffman
Put the URLs in an array: myURLS = new Array(www.domain1.com, www.anotherDomain.com, www.anotherDomain.com, www.anotherDomain.com, www.anotherDomain.com); then for the URL specified as the target of each clip you create, just reference the URL this way: vidThumb.onRelease = function(){