I'm looking to find a tutorial and some information about setting up a small flash piece for a website that, when loaded, will be able to display x-number of logos that are slowly moving from top to bottom in a loop. When the cursor goes over that area it will either move up or down, depending on the location. And obviously, the logos can be clicked for entrance into a different page within the site. I'm a basic flash person (mainly XHTML/CSS developer) with limited scripting knowledge which is why (a) I came here and (b) already searched the web for similar tutorials, but am only finding "text scrolling" applications. Please advise!
Hi If you know any Programming language(C/C++/JAVA/...) Handling flash will be little bit easy. any how. to attach the logos you have to use attach movie. Simple we can use that functionality as follows. First Import or create three logos into flash. convert it into movieclip. now delete that movieClip from stage. open library. select a movieclip and rightclick on it, now give linckage name to the logo(repeat this steps untill the end of logo). This linckage name will be stored into an array. var logoArray:Array = new Array("easports_mc","macromedia_mc","adobe_mc"); //above array is having linckage names of movieclip. for(var i=0; i<logoArray.length;i++){ var attachedMc = this.attachMovie(logoArray[i],"logo"+i,this.getNextHighestDepth()); attachedMc._x = 10; if(i==0){ attachedMc._y = 10; }else{ attachedMc._y = eval("logo"+(i-1))._y + eval("logo"+(i-1))._height; } } If you would like to load the logo from external source you have to use loadclip instead of attachmovie
I've found a tutorial online that gets me to where I need to be with the vertical looping logo state, but each image is a movie clip for this. What's the best way to link these logos to a particular page? Making them buttons takes out the looping functionality. Pleae advise.
Also, a secondary issue is the spacing between the logos. Since I took it from a tutorial I'm not sure how to comment on spacing. Right now they all seem auto-spaced too far apart. Code: mw = getProperty("/a1",_width); for(i=6; i>=1; i--) { mx = getProperty("/a"add i,_y); //right side if(mx > 400) { if(i==6){mv=1}; if(i==5){mv=6}; if(i==4){mv=5}; if(i==3){mv=4}; if(i==2){mv=3}; if(i==1){mv=2}; mx = getProperty("/a"add mv,_y); setProperty("/a" add i,_y,mx - (mw + 2)); } //left side if(mx < 0) { if(i==1){mv=6}; if(i==2){mv=1}; if(i==3){mv=2}; if(i==4){mv=3}; if(i==5){mv=4}; if(i==6){mv=5}; mw = getProperty("/a"add mv,_width); mx = getProperty("/a"add mv,_y); setProperty("/a" add i,_y,mx + (mw + 2)); } }
How exactly is this done? I tried an onClick command and it threw an error back saying that it's for Buttons only. If you wouldnt mind writing out a few lines of code so I may better understand, that would be great!
Don't see what you're looking for? Try a search.
|