Flash Advisor logo
:: Desktop Shortcut
:: Flash Help
Advice from Experts

Closed Thread
Results 1 to 6 of 6

Thread: Flash site news slideshow with links

  1. #1

    Default Flash site news slideshow with links

    Hello,

    I am developing a site news slide show. Each slide is a movie clip with links within it. The slide show should loop automatically and each movie clip will come up on the screen waits for 10 seconds and loops again. In addition my movie clip has bulletted links at the bottom to other movie clips, so if user wants to go to particular mc then they will click on list and movie clip should slide to clicked one and wait for 10 seconds and loop again.

    I am using the tranistion effect by downloading the Mctween plugin from following website:
    http://hosted.zeh.com.br/mctween/using.html

    My button clicks are not working and I am not sure if the loop I used in the code is right one. I am attaching the file I have. Any help in this regard will be much appreciated,

    The flash file I have so far can be downloaded from:

    http://www.geocities.com/tamilgirl77/transition.fla

    thank you

  2. #2
    Join Date
    May 2004
    Location
    U.S.A.
    Posts
    2,890

    Default

    Hi,

    I only have FlashMX so I can't view the demo file. Maybe post a sample of the code your using or post a demo in MX format.
    A mind once stretched by a new idea never regains its original dimensions.
    - Oliver Wendell Holmes

  3. #3

    Default

    My file doesn't seem to work in flash mx version. Here is the code from flash mx 2004 version

    #include "mc_tween2.as"
    // for (i=1;i<=3 ; i++) {
    // square_mc.xScaleTo(0, 3, "linear", 5);
    // box_mc.xScaleTo(100, 3, "linear", 5);
    // box_mc.xScaleTo(0, 3, "linear", 10);
    // mod_mc.xScaleTo(100, 3, "linear", 10);
    // mod_mc.xScaleTo(0, 3, "linear", 15);
    // square_mc.xScaleTo(100, 3, "linear", 15);
    //
    rotate_array = new Array("the1_mc", "the2_mc", "the3_mc");
    // var origin:Number = 1;
    // var temp:Number = 2;
    // var end:Number = 3;
    // var sec:Number = 5;
    for (i=1; i<=rotate_array.length; i++) {
    _level0["the"+i+"_btn"].n = i;
    // Store button position
    _level0["the"+i+"_btn"].rotate_array = i;
    _level0["the"+i+"_btn"].onRelease = function() {
    // _level0["the"+this.rotate_array+"_mc"].xScaleTo(0,3,"linear",sec);
    _level0["the"+i+"_mc"].xScaleTo(0, 3, "linear", sec);
    trace("I am");
    _level0.theTgt = _level0.rotate_array[this.n-1]*-1;
    // array position
    (this.rotate_array == rotate_array.length) ? arrrotate_array=1 : arrrotate_array=this.rotate_array+1;
    // clear interval to reset
    clearInterval(clearInt);
    // reset interval
    setInt();
    };
    _level0["the"+i+"_btn"].onEnterFrame = function() {
    // _level0.thePix_mc.rotation_mc._x += (_level0.theTgt-_level0.thePix_mc.rotation_mc._x)/_level0.speed1;
    if (origin>end) {
    origin = 1;
    temp = 2;
    } else {
    trace("hit me");
    // var name:String = "the"+origin+"_mc";
    _root[name].xScaleTo(0, 3, "linear", sec);
    // var temp:Number = origin + 1;
    // var name:String = "the"+temp+"_mc";
    _root[name].xScaleTo(100, 3, "linear", sec);
    trace(temp);
    origin++;
    if (origin == end) {
    temp = 1;
    } else {
    temp = origin+1;
    }
    sec += 5;
    }
    };
    }
    // var arrrotate_array:Number = 2;
    function setInt() {
    clearInt = setInterval(slideshow, 10000);
    }
    function slideshow() {
    _level0["the"+arrrotate_array+"_btn"].onRelease();
    trace("I was hit here");
    }
    // var clearInt:Number = setInterval(slideshow, 10000);

    thank you

  4. #4
    Join Date
    May 2004
    Location
    U.S.A.
    Posts
    2,890

    Default

    Hi,

    I dont see any glareing errors in your code sample, but it is difficult to tell just by reading code on a page. I assumed you have formated the code in flash to check for errors. The one thing I do notice is that it appears your trying to use the variable "i" for your buttons but the button code is outside of the for loop that initiates var "i". Other than that, your using arrays, for loops, and setInterval correctly. I would need a hands on demo to fully understand what your trying to achieve. Is this project to create a banner rotate component? I made something like this some time back, but I didn't incorporate the dynamic tween class into it...

    http://ntdesigns.net/adCreator/bannerRotate.html

    Sorry, not much help on this one.
    NTD
    A mind once stretched by a new idea never regains its original dimensions.
    - Oliver Wendell Holmes

  5. #5

    Default

    Yes I am trying to create something similar to your banner rotater. Except that in each slide I have bulleted links to other slides so user can goto any slide they want and transition effect is more like cube effect. Can you upload your banner rotater file, so i can take a look at it,

    thank you

  6. #6
    Join Date
    May 2004
    Location
    U.S.A.
    Posts
    2,890

    Default

    Hi,

    The banner rotater I made uses textfiles to set the variables in the flash movie and a seperate movie to modify the text file with a bit of PHP. It is a bit different than what your trying to achieve. The goal of mine was to allow for external editing without ever having to open the.fla file again. It is not complete and I dont have it all packaged for download. However, here is a demo that employs the same technique. It was the old FlashMX slideshow template that came as a demo with FlashMX. It used old coding techniques, so I ripped the guts out of it and upgraded it to MX standards. It just loads .jpg images, but the same technique can be used to load anything on a timed interval...

    http://www.flashkit.com/board/showthread.php?t=636289
    A mind once stretched by a new idea never regains its original dimensions.
    - Oliver Wendell Holmes

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Newbie Flash slideshow help
    By traveller20 in forum Newbies
    Replies: 2
    Last Post: 12-23-2009, 07:18 AM
  2. Flash Slideshow and Photo galleries
    By slimclub in forum Cool Sites
    Replies: 0
    Last Post: 06-08-2005, 11:43 AM
  3. Links in FLASH????
    By Lolipop in forum Newbies
    Replies: 3
    Last Post: 03-30-2005, 05:00 PM
  4. Please look at this flash slideshow and advise!
    By kbvt in forum General Flash
    Replies: 1
    Last Post: 03-15-2005, 05:08 PM
  5. Flashing news pictures with links ? How is this done ?
    By datoupee in forum General Flash
    Replies: 3
    Last Post: 02-25-2005, 11:26 AM

Bookmarks

Posting Permissions

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