Professional Web Applications Themes

Pics - Macromedia Flash Ad Development

Hey I've only just recently started using flash so im not that aware of what it can do!! I want to have the front page of my site to have a few pictures and i want one to fade into the other kinda thing. So it is in a loop where the pictures keep changing after a a few seconds. does anyone know how to do this ? and to make them fade / dissolve into the next photo Someone please help me Thanks...

  1. #1

    Default Pics

    Hey I've only just recently started using flash so im not that aware of what it
    can do!! I want to have the front page of my site to have a few pictures and i
    want one to fade into the other kinda thing. So it is in a loop where the
    pictures keep changing after a a few seconds. does anyone know how to do this ?
    and to make them fade / dissolve into the next photo
    Someone please help me
    Thanks

    __Sheep__ Guest

  2. #2

    Default Re: Pics

    :camera;

    i hope u can understand what u asked from the flash sample file
    "load_images.fla"
    the path-- when u have flash mx with u in window machine "C:\Program
    Files\Macromedia\Flash MX\Samples\FLA\load_images.fla"


    so this will clear u with ease
    and foget all the coding,
    the vital thing there is the fuction is executed
    only when u clicked the button so if u want this
    happen continuesly plz add the function in enterframe event.

    Regards,
    Amuthan meganathan.

    //initialize variables and properties
    square._alpha = 0;
    whichPic = 1;
    //initiate change to new image when buttons are clicked
    next.onPress = function() {
    if (whichPic<5 && !fadeIn && !fadeOut) {
    fadeOut = true;
    whichpic++;
    input = whichPic;
    }
    };
    back.onPress = function() {
    if (whichPic>1 && !fadeIn && !fadeOut) {
    fadeOut = true;
    whichpic--;
    input = whichPic;
    }
    };
    _root.onEnterFrame = function() {
    // when a new Photo is selected, fade out, load new image, and fade in
    if (square._alpha>10 && fadeOut) {
    square._alpha -= 10;
    }
    if (square._alpha<10) {
    loadMovie("../images/image"+whichPic+".jpg", "square");
    fadeOut = false;
    fadeIn = true;
    }
    if (square._alpha<100 && fadeIn && !fadeOut) {
    square._alpha += 10;
    } else {
    fadeIn = false;
    }
    // limit input field
    if (input>5) {
    input = 5;
    }
    // initiate change to new image when Enter key is pressed
    if (Key.isDown(Key.ENTER)) {
    fadeOut = true;
    whichpic = input;
    }
    };
    // if a number is entered in the input field but Enter is not pressed, change
    // back to current Photo number when clicking anywhere else
    inputField.onKillFocus = function() {
    input = whichPic;
    };

    megnathamuthan Guest

Similar Threads

  1. animated pics..??
    By Jaded Girl webforumsuser@macromedia.com in forum Macromedia Fireworks
    Replies: 2
    Last Post: August 12th, 03:09 PM
  2. nice pics
    By puan in forum Photography
    Replies: 3
    Last Post: August 2nd, 06:07 AM
  3. Sharing pics via CD
    By john tate27 in forum Adobe Photoshop Elements
    Replies: 4
    Last Post: July 28th, 11:52 PM
  4. checkout my new pics
    By Jeffrey Stetz in forum Photography
    Replies: 3
    Last Post: July 16th, 06:54 PM

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139