;

PDA

Click to See Complete Forum and Search --> : Scrolling Images LINK-Problem!!!


Uwe S.
04-06-2006, 06:29 AM
again Uwe....
I tried this example...

http://necromanthus.com/KoolMoves/SiteMenu.html

1. I made a Clip Frame with 30 Pictues... OK, It is working fine..Scrolling great
2. I convert a Picture to a button
3. I made a Action Script for each Picture

But If I click on a Picture, I cannot Link to a page???

My Action Script for Pictures...in the movie clip bar

on(press){_root.page.gotoAndPlay(2);} // Is (2) my Frame? I tried instead Infos...
on(press){_root.page.gotoAndPlay(3);}
on(press){_root.page.gotoAndPlay(4);}

When I run the file It is working fine, but I can not Link to a Page!
I tried 2 houres no chance...to rename List of Keyframes and Scenes and Scripts...

How can I Link to a page if I click on a picture?
I can not scroll to all Pictures! Is there a Limitation a the action script?

Here is the srolling code:

onClipEvent(enterframe){
if(this.hitTest(_root._xmouse,_root._ymouse,true)) {z = 1;}
else{z = 0;}
if(_root._xmouse < 320){sx = -1- ((320 - _root._xmouse)/100);}
else{sx = 1+ ((_root._xmouse - 320)/100);}
sy = 1+ _root._ymouse / 180;
if((z == 1)||(_root._ymouse > 180)){_root.bar._x += Math.floor(sx * sy);}//>Klickbereich
if(_root.bar._x < -200){_root.bar._x += 560;}
if(_root.bar._x > 920){_root.bar._x -= 560;}
}
}



Thank you so much...
You are a great team!

w.brants
04-06-2006, 08:05 AM
It could be a problem with tween frames.

Did you also post your question in Remus' forum
http://forum.necromanthus.com/
He created the example and may be able to tell you exactly what you need.
I think he monitors his own forum more often then the Flashkit one.

Uwe S.
04-06-2006, 08:45 AM
Hi Wilbert

I will send you my example,
perhaps you can help me?
I worked the whole day on it...

Thanks

w.brants
04-06-2006, 09:16 AM
It's hard to see anything without the images included (all images are just white blocks now). As far as I can tell the images from your bar don't have an onPress action only the little block on the top left. That one uses _root.page.gotoAndPlay(1) but _root doesn't have a child movieclip named page. If you want to jump to another frame of _root you just use _root.gotoAndPlay without page.

Uwe S.
04-06-2006, 09:49 AM
Sorry,

my fault.. I send the wrong file without the Script!
This code was in the original on images

on(press){_root.page.gotoAndPlay(1);}
on(press){_root.page.gotoAndPlay(2);}

I hope you will see the pictures....

w.brants
04-06-2006, 11:01 AM
Try
_root.gotoAndStop('Page 1');

Uwe S.
04-06-2006, 11:41 AM
Champagne for you....
I am so happy...
Wilbert, you should write Books, I would buy all of them...

Thank you soooo much for help!