A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Scrolling Images LINK-Problem!!!

  1. #1
    Senior Member
    Join Date
    Mar 2006
    Posts
    191

    Scrolling Images LINK-Problem!!!

    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!
    Last edited by Uwe S.; 04-06-2006 at 06:02 AM. Reason: See not all Pictures...

  2. #2
    Senior Member
    Join Date
    Dec 2002
    Location
    Netherlands
    Posts
    1,632
    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.

  3. #3
    Senior Member
    Join Date
    Mar 2006
    Posts
    191

    Linking Problem...?

    Hi Wilbert

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

    Thanks
    Attached Files Attached Files

  4. #4
    Senior Member
    Join Date
    Dec 2002
    Location
    Netherlands
    Posts
    1,632
    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.

  5. #5
    Senior Member
    Join Date
    Mar 2006
    Posts
    191
    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....
    Attached Images Attached Images
    Attached Files Attached Files

  6. #6
    Senior Member
    Join Date
    Dec 2002
    Location
    Netherlands
    Posts
    1,632
    Try
    _root.gotoAndStop('Page 1');

  7. #7
    Senior Member
    Join Date
    Mar 2006
    Posts
    191
    Champagne for you....
    I am so happy...
    Wilbert, you should write Books, I would buy all of them...

    Thank you soooo much for help!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center