[help charger UI:]

IM new to Flash and I have a problem! I need a charger of ui to falter when a new button is clicked, I tried a few things but have not heard yet to do work as I want. Here is my code;

[CODE] buttons_mc.gallery_btn.addEventListener (MouseEvent.CLICK, galleryClick);
function galleryClick(e:MouseEvent):void {}
trace ("galleryClick");
sectionLoader.source = "gallery.swf";

Add pre-loader to Gallery
sectionLoader.addEventListener (ProgressEvent.PROGRESS, largeGalleryPreloader);
function largeGalleryPreloader(event:ProgressEvent):void {}
var p: Number = Math.round((event.bytesLoaded*100)/event.bytesTotal);
percent_txt. Text = percent + "%"; "
}
}
[/ CODE]

in the file "gallery.swf", I have an interpolation of nice who plays when it loads so the passage on stage is great, but im using the charger of the same user interface to load the entire contents of "gallery.swf" off the coast of the scene in another file .swf ("about.swf"), which, once clicked boots and that's where I want a stylish fade-out-alpha effect to happen. Cheers in advance!

You can use an actionscript Tween to fade the UILoader when you click on it and have an event listener for the Tween to make it load the next file after that the fade is finished and then makes the UILoader visible again...

Import fl.transitions.Tween;
Fl.transitions.easing import. *;
Import fl.transitions.TweenEvent;

var fadeDelay:Number = 2.0; seconds

sectionLoader.addEventListener (MouseEvent.CLICK, Yvan);

function fadeIt(evt:MouseEvent):void {}
var uilTween:Tween = new Tween (sectionLoader, "alpha", Regular.easeIn, 0, fadeDelay, sectionLoader.alpha, true);
uilTween.addEventListener (TweenEvent.MOTION_FINISH, addNext);
}

function addNext(evt:TweenEvent):void {}
sectionLoader.source = "about.swf";
sectionLoader.alpha = 1;
}

Tags: Adobe Animate

Similar Questions

Maybe you are looking for

  • read from measure Makefile slow while loop

    Hello I'm using Labview for controlling a lower Member brace. What I did is to save in a spreadsheet, the values of two angles in a random walk. The control template is done well because I tested it by giving two sine waves with different frequencies

  • Excel to Allen - Bradley CompactLogix .cvs file transfer

    I am a new user of LabView and have not had the opportunity to go through training. I have an urgent need to take an Excel spreadsheet (file = DX240_DB.csv) which has a range of 300 rows and 17 columns and send it to an array of Allen-Bradley Compact

  • Error when trying to access the microsoft update web site

    I am using windows XP Pro. SP3 32-bit (build 2600.xpsp_sp3_gdr.100216 - 1514) I have IE v8.0.6001.18702 When I access the microsoft update web site, I get a message saying that I need to update windows update and I want that allows. No matter what I

  • BlackBerry specific Q10 of his behavior in his pocket

    Hi all I am the proud owner of a Q10 (since only a few days) and I'm looking for the function that I have with my 'old' Bold 9900; It is the ability to put a specific 'his behaviour' (within a profile) when the phone is placed in the Pocket (BB Moose

  • Illustrator draw shape Snap

    Nice dayI use the application Illustrator draw for Ipad.I put in place a rectangular grid with the form slam the feature turned on. However, my shapes and lines do not seem to automatically align the grid.Is there something I am doing wrong? Or I und