Flash Question

Discussion in 'Web Design and Development' started by tektonnic, Jul 31, 2006.

  1. tektonnic macrumors 6502

    tektonnic

    Joined:
    Mar 6, 2006
    Location:
    Bucks, UK
    #1
    Hey all,

    Wondered if anyone could answer my probably easy question, its a "how do i" (sorry).

    Currently my flash site is made up of 6 different files which link to one another to display different content, they are all exactly the same layout and design except for a white box which containt the text, this box is a different size on each page. Is there a way of using just one file and the program swapping the boxes, infact it would be great if upon selecting anoth menu item the text faded and the box resized and the new text appeared.

    Is this at all possible or am I asking too much of flash?

    Cheers, Tom
     
  2. tektonnic thread starter macrumors 6502

    tektonnic

    Joined:
    Mar 6, 2006
    Location:
    Bucks, UK
    #2
    Ok, I kinda worked out what I'm doing,
    except,

    in the following script:

    on (release) {
    img4_mc.onEnterFrame = function() {
    img4_mc._alpha -= 5;
    if (img4_mc._alpha <= 0) {
    img4_mc._visible = false;
    delete img4_mc.onEnterFrame;
    }
    };
    }

    on (release) {

    img3_mc.onEnterFrame = function() {
    img3_mc._alpha += 5;
    if (img3_mc._alpha <= 100) {
    img3_mc._visible = true;

    }
    };
    }


    img3_mc fades in before img4_mc fades out, can anyone tell me how I modify the code to make it work?
     
  3. khaos34 macrumors newbie

    Joined:
    Jul 28, 2006
    #3
    Make it so that img3 doesn't even start to fade in until img4 is all gone. Create a variable that can be switched on or off and have an incoming image check to see if that variable has been switched by the previous image already.
     
  4. tektonnic thread starter macrumors 6502

    tektonnic

    Joined:
    Mar 6, 2006
    Location:
    Bucks, UK

Share This Page