FORUMS: list search recent posts

Image Postitioning

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
David Howe
Image Postitioning
on Sep 29, 2008 at 5:45:11 pm

I have created a vertical scroll of images from the following tutorial:

However in order to work the rest of my work I have had to put it into a movie clip instead of the actionscript being directly in the scene timeline.

As a result of this the larger images that appear one the scolling ones are clicked are appearing in the top right of the screen and I cannot change this for some reason. Would someone be able to have a look at my actionscript and see if they can help?

Thank alot for your time. It is very much appreiciatted.

My actionscript is:


var imagesNumber:Number = 9;
for (i=1; i<=imagesNumber; i++) {
myThumb_mc = container["thumb"+i+"_mc"];
myThumb_mc._y = (i-1)*myThumb_mc._height;
myThumb_mc._x = (Stage.height-myThumb_mc._height-350)/2
myThumb_mc.largerImage = i;
myThumb_mc.onRelease = function(){
large_mc._x = (Stage.width - large_mc._width+220)/2;
large_mc._y = (Stage.height - large_mc._height+50)/2;
large_mc.onRelease = function(){
container.onEnterFrame = function() {
this._y += Math.cos((-_root._ymouse/Stage.width)*Math.PI)*15;
if (this._y>50) {
this._y = 50;
if (-this._y>(this._height-Stage.height+50)) {
this._y = -(this._height-Stage.height+50);

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved