Loader component plays wrong scene after loading

hello, i've created a montage in flash that displays photos
consecutively on the timeline. i have the montage.swf called into
the main.swf using the AS 3.0 Loader class (see code attached). the
problem is, when i call the Event.COMPLETE function that add's the
child montage to the stage, the montage starts on the 3rd photo on
the third or fourth pic in the timeline. Anybody know why it would
be starting late based on my code? you can see the file online at
http://kurtcom.com/dante_photography/dante_main.html
... the first photo is supposed to be the two shots of girl, one
where she is wearing a motorcycle shirt, not the girl in her
underwear :)
Thanks!

stop();
import flash.display.Loader;
import flash.display.LoaderInfo;
import flash.net.URLRequest;
import flash.text.TextField;
import flash.events.Event;
import flash.events.ProgressEvent;
var myLoader:Loader = new Loader();
var myRequest:URLRequest = new
URLRequest("dante_montage.swf");
var loadProgress_txt:TextField = new TextField();
myLoader.load(myRequest);
myLoader.contentLoaderInfo.addEventListener(Event.OPEN,showPreloader);
myLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,showProgress);
myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,showLoadResult);
myLoader.x = 50;
myLoader.y = 50;
loadProgress_txt.x = 505;
loadProgress_txt.y = 350;
function showPreloader(evt:Event):void {
addChild(loadProgress_txt);
function showProgress(evt:ProgressEvent):void {
var percentTotal:Number = Number(evt.bytesLoaded) /
Number(evt.bytesTotal) * 100;
loadProgress_txt.text = String(Math.round(percentTotal)) +
//"loaded: " + evt.bytesLoaded + " from " + evt.bytesTotal +
"\n";
function showLoadResult(evt:Event):void {
removeChild(loadProgress_txt);
addChild(myLoader);
}

Similar Messages

  • Flash player plays wrong movie after opening with Rosetta

    Hi,
    I just had the most peculiar experience. Tried to open a [flashmovie].flv (which in hindsight could be done with Quicktime), Flash START popped up, followed by a pop-up requiring a Rosetta installation. This is the first time I came across Rosetta. Installed it, tried to open the flv again, this started the flashplayer alright but it started a completely different movie.
    Opened the same file in Quicktime and that works fine.
    Can anyone recommend what to do? Do I have to deinstall rosetta and the flashplayer to prevent this kind of behaviour?

    Rosetta could come in handy for other apps you have hanging around, so I suggest you leave it where it is.
    To make movies open in QuickTime, select one and press Command-I to open the Information window. In the Open With pane, select QuickTime Player from the pop-up menu. Then click on the Change All button below, and click on the Continue button in the "Are you sure" dialogue box that appears.
    You can then throw away the Flash player, unless you prefer it and the developer comes up with a Cocoa/Intel version.
    HTH
    Archie

  • Loading multiple swf's in runtime and playing them one after other

    Hi,
    I am looking for help in loading multiple swf's as a playlist and playing them one after other on top of the other, so here even we have to play with display list for the visiblity.
    Tried to load single files but not getting for multiple files, what will be the event with which the dynamically loaded swf switch to other.These file names will be mentioned in XML file.
    Please let me know your thoughts and will be greatfull if anybody can help with the script or any kind of tutorials.

    Hi,
    First of all am thanking you for showing your kind intrest towards this thread, and appreciate for spending time to work out this issue.
    I will explain you in deatil the issue what am facing,I am working on a project where basically dealing with flv player and videos, am trying to play multiple flv videos of a 3d human character who is speaking out a number like 3550.
    Here we are using multiple video files and joining them like videos where character says 3 then 1000 then  5 then 50.
    The issue here is after every video there is a fraction of second where the character is disappearing from the stage which we can't afford because all the numbers have to be played at once to show it as one single digit.
    So thought of trying swf's instead of flv so that we can omit the gap between the numbers, but even in this swf's also having same issue for a fraction of second the character is missing from the stage.
    I am looking for a solution to this, either the way can work out as flv or swf.For flv am trying to edit some player where we can remove the delay between the clips.
    I am attaching new swf where the character is speaking 3 numbers like 3,1000,40.You can notice there is a flicker between the swf's.
    Can we use Display list with which we can omit that gap.
    Looking for your thoughts and help.
    Thank you

  • New scene after login success AS3

    Hi guys,
    I'm really new to actionscript so i have trouble in understanding the code. I tried many ways to go to a new scene after login successful but sadly failed. I followed one of the tutorials on the login part..It works and i'm happy wif it..but currently, it displays only the success message. Instead, i wanna go to a new scene but don't know how. I'll post the code below. Hope u can help ..I have a dateline for this project. Thanks!
    [actionscript]
    package actions {
        import flash.display.MovieClip;
        import flash.events.*;
        import flash.net.*;
        import flash.text.*;
        public class main extends MovieClip {
            public function main ():void {
                submit_button.buttonMode = true;
                submit_button.addEventListener(MouseEvent.MOUSE_DOWN, checkLogin);
                username.text = "";
                password.text = "";
            public function checkLogin (e:MouseEvent):void {
                if (username.text == "" || password.text == "") {
                    if (username.text == "") {
                    username.text = "Enter your username";
                    if (password.text == "") {
                    password.text = "Enter your password";
                } else {
                    processLogin();
            public function processLogin ():void {
                var phpVars:URLVariables = new URLVariables();
                var phpFileRequest:URLRequest = new URLRequest("login.php");
                phpFileRequest.method = URLRequestMethod.POST;
                phpFileRequest.data = phpVars;
                var phpLoader:URLLoader = new URLLoader();
                phpLoader.dataFormat = URLLoaderDataFormat.VARIABLES;           
                phpLoader.addEventListener(Event.COMPLETE, showResult);
                phpVars.systemCall = "checkLogin";
                phpVars.username = username.text;
                phpVars.password = password.text;
                phpLoader.load(phpFileRequest);
            public function showResult (event:Event):void {
                result_text.autoSize = TextFieldAutoSize.LEFT;
                result_text.text = "" + event.target.data.systemResult;
    [php]
    <?php
    include_once "dbconnect.php";
    $username = $_POST['username']; //variables from flash
    $password = $_POST['password'];
    if ($_POST['systemCall'] == "checkLogin") {
    $sql = "SELECT * FROM users WHERE username='$username' AND password='$password'";
    $query = mysql_query($sql);
    $login_counter = mysql_num_rows($query);
    if ($login_counter > 0) {
    print "systemResult=Welcome $username!";
    } else {
    print "systemResult=Invalid User!";
    ?>

    You probably want to check the value that it returns and use it to decide whether to go to the next scene or not.
            public function showResult (event:Event):void {
                result_text.autoSize = TextFieldAutoSize.LEFT;
                result_text.text = "" + event.target.data.systemResult;
                if(String(result_text.text).indexOf("Welcome") == 0) {
                       gotoAndPlay(1, "Scenename");
    What the first line does is checks to see if the word Welcome is at the start of whatever is in the textfield (starts at index 0).  If it does, then it issues the command to move to another frame/scene

  • Embed question - play one movie after another

    I am trying to figure out how to play a short 10 second clip before each movie on my website. The clip may be a short ad or a promo and will depend upon the content of the main video. What is the code that enables you to play one move after another in a web page. I don't want to edit the two clips to become one cos over time the ads and promos will change. In Realplayer I remember using SMIL but how is it done in QT. I will eventually write code to write out the Embed tag but now i am just experimenting. Here is what my drupal site puts out
    <!-- start main content -->
    <!-- begin content -->
    <!--[if !IE]> <-->
    <object type="video/quicktime" width="483" height="381"
    data="http://www.1234567.com/files/videos/Mpeg4TestSnapX-480x360.mp4">
    <!--> <![endif]-->
    <!--[if IE]>
    <object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="483" height="381" scale="tofit" >
    <![endif]-->
    <param name="src" value="http://www.1234567.com/files/videos/Mpeg4TestSnapX-480x360.mp4" />
    <param name="AUTOPLAY" value="true" />
    <param name="KIOSKMODE" value="false" />
    Your browser is not able to display this multimedia content.
    </object>
    Problems viewing videos?
    Download latest Quicktime Player

    Embed the initial movie clip as normal, but give it an HREF property.
    Set the source for the HREF to be the next movie, set autohref=true, and set target="myself". It's the same technique you use to build a poster movie but (a) instead of having the poster movie open QT Player, you have its target open in its own frame and (b) instead of waiting for a user to click the poster, you have the poster movie "click itself".
    Code that I used a very long time ago to display a "Loading..." graphic as a movie loaded (waste of effort, actually, as the movie is fast start and loads very fast):
    <embed
    src="loading.mov"
    height="208"
    width="256"
    autohref="true"
    href="Worm.mov"
    target="Myself">
    </embed>
    (of course this was before I learned about OBJECT and the need to use OBJECT to activate the ActiveX control in IE. Also, it's worth noting that the javascript hack isn't strictly necessary for IE users, but without it, IE users will get a security dialog before they get the movie.)
    The code above can be found on:
    http://capital2.capital.edu/admin-staff/dalthoff/adventures/worm.html
    --Dave Althoff, Jr.

  • How to pause external vdos to play it again after played another vdo

    Hey! I have a question.
    I have many external vdos which I have loaded and randomly play them once at a time by press some keyboard buttons.
    Let's give vdos named a,b,c,... and picture this....
    When people press a button a vdo A is playing then someone press another button or the same button the vdo B will be played immediately.
    The same thing happen to vdo B if someone press any button on keyboard to play vdo C. After every vdo has been played, the program will set all the vdos back so people can play it again now but, I do want it to play in exact same point where it left.
    Right now, my code can ramdomly play all the vdo without repeat them untill it plays them all. But I know because I REMOVE the vdo out so that's why the program don't play it again like this: var NewStore:Array = VdoStore.splice(i,1);
    I think this way can't make a program to remember the vdo's timeline. But I don't know whatelse can I do to do what I want.
    Anyway,
    Someone tell me to try out some index to the array and add ++ after playing. Then after index is more than Array's length, just reset index to 0 again.
    So...Any suggestion on how to pause many external vdos??

    use the shuffle function to randomize your videos and then play from index = 0 to index=videoA.length-1:
    function shuffle(a:Array) {
        var p:int;
        var t:*;
        var ivar:int;
        for (ivar = a.length-1; ivar>=0; ivar--) {
            p=Math.floor((ivar+1)*Math.random());
            t = a[ivar];
            a[ivar] = a[p];
            a[p] = t;

  • ITunes won't play one song after another automatically.

    I have an iMac . iTunes has always played one selection after another automatically, and I am not talking about shuffle. I downloaded an audio book (Mp3 files) which loaded into music, but I have to choose each segment manually, it won't play one segment sequentially automatically.

    Are the selections un-checked?  Items that are not checked will not automatically play.  If they are checked, go into Get Info and see if you have the "Skip when shuffling" option set -- if it is, and if you happen to have Shuffle turned on, they won't play.

  • My iPod nano will go into the sleep mode while a song is playing a second after the screen goes blank; the song will stop and I will then have to press the sleep/awake button to pick up where the song left off.  How do I fix this?

    My iPod nano will go into the sleep mode while a song is playing a second after the screen goes blank; the song will stop and I will then have to press the sleep/awake button to pick up where the song left off.  How do I fix this?

    Your problem is that your iPod is not sensing that your headset is inserted. There is a pin inside the headphone port on the Nano that senses if it is inserted fully. If it does not sense anything, it will pause playback to save battery power when the screen dims. Here are the solutions:
    Insert it fully. This will fix it for most of you. Press that thing in there all the way. You should feel and hear a full click when it is fully seated. If you can see ANY silver of the headset jack, it is not fully inserted.
    Debris inside the headset port. If you are totally unable to push the headset jack all the way, the most likely problem is that you have crud inside your headphone jack. Try blowing it out or slapping it against your palm with the headset port facing your palm to try and get the stuff out. If you look into he jack with a light, you should be able to see to the bottom. The entire inside of the headset port is white, so if it looks dark at the bottom, that is the crud that is keeping your nano from working.
    Headset jack or plug issue. If you cannot solve the problem with 1 or 2, then there is likely something physically wrong with either the headset jack on your headphones or the headset port on the nano.
    If none of the above works, you need to take it to the Apple store or wherever you purchased it. I think they are still under warranty.
    i

  • TS3789 I have similar problem, my apple tv which has always worked properly with my Samsung tv will no longer play any audio after the latest 5.1 upgrade. Very frustrating as it was working perfectly before. I am starting to not trust apple upgrades until

    I have similar problem, my apple tv which has always worked properly with my Samsung tv will no longer play any audio after the latest 5.1 upgrade. Very frustrating as it was working perfectly before. I am starting to not trust apple upgrades until proven for example ios6 on iPhone with that stupid map app instead of google maps.
    I just want to buy and hear my iTunes music and videos on my apple tv, could before cant now. Thank you apple. Time to pack up the apple tv and start torrenting without the ios-bs.
    Disheartened apple fan.

    Welcome to the  discussion forums.
    Try going to synching in the sources menu on your tv and selecting 'change itunes library', when it gives you the passcode check itunes to see if the tv is showing up as a new device, if so try entering the pass code. It may be that your tv is seeing itunes as a different library because of a recent upgrade.

  • I bought a Sandisk Connect Media Drive, downloaded the app from iTunes.  Before iOS 8, movies played fine.  After iOS upgrade I can no longer play movies downloaded from iTunes to the media drive.  Anyone else have a similar issue?

    I bought a Sandisk Connect Media Drive, downloaded the app from iTunes.  Before iOS 8, movies played fine.  After iOS upgrade I can no longer play movies downloaded from iTunes to the media drive.  Anyone else have a similar issue?

    I checked with SanDisk's own online support and they indicate that they have notified Apple of the issue.
    According to SanDisk, the problem lies with Apple not having the iOS 8 version of the Safari browser having DRM decoding enabled that the Media Drive relies upon to decode and play iTunes DRM titles. Non DRM encoded videos will play in the browser.
    DRM audio is not effected as this is handled by the native iOS music app.
    As of the date of this post SanDisk have not been given a timeframe by Apple for this issue to be resolved.
    I hope that Apple resolves this issue quickly as I have a large collection of DRM video titles on a 128Mb memory card installed in the Media Drive that I am unable to view.

  • Can't play mov files after update for MAC OS 10.6.8. Can't edit in Final cut anymore!

    can't play mov files after update for MAC OS 10.6.8. Can't edit in Final cut anymore!. SHould i by a registration code for QT 7 Pro? I can't play mov files at all.. they were okay in my final cut time line. Now i can't see them!!! I can't import movies from my camera!!!
    Help from Brazil!!!
    Tks

    David,
    tks for your help !!!
    Hi people, first, tks for Birdman308 for his link
    https://www.hightail.com/dl?phi_action=app/orchestrateDownload&rurl=https%3A%2F% 2Fwww.hightail.com%2Ftransfer.php%3Faction%3Dbatch_download%26batch_id%3DOGhkZ28 xeWFiV3dYRHRVag
    and makbookpro as well for his link
    http://blog.lib.umn.edu/mcfa0086/discretecosine/164630.html
    Now i can back to work!!!

  • Program monitor constantly freezing/stalling when playing dynamically linked After Effects comps

    I'm having program monitor issues when I try to play dynamically linked After Effects comps from my Premiere timeline. I realize it's expected to have jerky playback since After Effects comps are memory and CPU intense, but it doesn't seem normal for these things to happen:
    Sometimes during playback, the program monitor completely freezes while audio continues to play and the CTI continues to move along timeline. When this happens, there's no way to stop the playback at all using mouse or keyboard... so I'm forced to just quit Premiere and re-open project.
    Program monitor can also freeze when I place the CTI on top of the After Effects comp. Sometimes if I wait a minute, the screen could update and eventually display the After Effects comp.
    I'm unable to render effects on the Premiere timeline because it just hangs at "Rendering frame 0" and never advances forward.
    There's nothing special about the After Effects comp I'm linked to... it could just be regular text that I animated using ease keyframes and motion blur.
    I originally thought it was related to GPU settings but it doesn't make a difference if I set After Effects to use CPU instead of GPU or set Premiere's Mercury Playback engine to software, CUDA, or openGL. I even have the latest CUDA drivers installed on my Mac. But I must mention that this issue got significanly worst after updating to OSX 10.9 Mavericks.
    Here's my system details:
    OSX 10.9 Mavericks
    Premiere 7.0.1 (105)
    After Effects 12.0.1.7 (I installed the OS X Mavericks crash update fix)
    The most prevalent error messages displayed in the OSX console is:
    Adobe Premiere Pro CC[402]: dynamic_cast error 1: Both of the following type_info's should have public visibility.  At least one of them is hidden. N5dvaui2ui8MessageTIKNS0_7UI_NodeEEE, N5dvaui8controls23UI_PictureSupplyMessageE.
    Here's a few that are less common:
    Adobe Premiere Pro CC[402]: [PremiereCocoaMacApplication handleMenuCommand:1633841013 from <DVAMacMenuItem: 0x6100002f8300 About Premiere Pro>]
    After Effects[377]: -[NSMenu menuID]: unrecognized selector sent to instance 0x600000077080
    If anybody has any ideas or suggestions, I would really appreciate it.
    Thanks,
    -Pete

    I think I found the problem... OSX Mavericks introduced a power saving feature called App Nap that basically slows down an app that appears to be doing nothing or is minimized in the background.
    So essentually when I try to display an After Effects dynamically linked comp via my Premiere timeline, it freezes because OSX put After Effects to sleep.
    To fix this, I had to disable the App Nap feature on After Effects. Now everything is performing back at pre-Mavericks levels (which is about 10% stalling playback issues vs 90% stalling). I also noticed that all of the console errors went away.
    To disable App Nap in OSX...
    Go to your Applications folder
    Expand the After Effects CC folder
    Right-click on "Adobe After Effects CC.app" and select Get Info
    Add a checkmark beside "Prevent App Nap"
    Restart the application
    I also did this with all my Adobe apps just to be safe.
    Hope this helps
    -Pete

  • How do I play one podcast after another?

    Hello,
    I have iTunes 7.0.2 and I can't figure out how to play podcasts one after another ... like, when one podcast is done, to go on to play the next one. Any ideas?

    I think you can create a podcast playlist then drag episodes to it, and arrange them in the order you want to listen.
    Hope that helps.

  • Animation play wrong in Safari on Win and Mac (with link to project)

    Hello all, I really need you solution, and maybe Edge team take a look for my problem
    Here: http://eliteart.pro/RFGC/presentation.html project (WIP) play well in Mozilla (FF) on Win 7 and Chrome on Win 7, but play wrong on Chrome on Linux, and play wrong on Safari in PC and Mac.
    Please, give me suggestion and help.
    Thanks!
    ps. I can give .edge or .html file (source), if need.

    Ok, sorry for bad English
    Here screens one on Mozilla (PC) and other on Safari (PC too)
    Certificates don't animate in Safari, unlike Mozilla (Firefox). Red arrow show truble place.
    Any suggestions? What picture you have? Can you drop it here?
    Thanks!

  • Apple Tv is playing wrong movie.

    Apple tv is playing wrong movie. Very strange. I select the movie or tv program I want to watch but it plays a completely different one. I have airplay on, if I take it off the problem stops but every time I pause then hit play a different movie or even music plays on my computer at the same time. It;s driving me crazy. Whats going on?

    When it stopped playing, what happened. Did the screen go blank, the video just freeze or did it go back to the menus, could you otherwise use the Apple tv or not.

Maybe you are looking for

  • Can't Export Movie - Unknown Compile Error - Help!

    I edited a 32 minute movie in Premiere Elements 10, and now I'm trying to export it.  At some point during the export, and it seems to vary, I get an unknown compile error.  I've been trying to export the movie for the past week and all I get is fail

  • HOW to include a reference currency fields in a view ?

    Hello Experts, <b>I am having Currency fields error in generic extraction</b> I have table where I am trying to extract data to BW via generic extraction. When I tried to extract with the TABLE its giving me an error <b>Invalid extract structure temp

  • Cant view all emails on setting up TB

    I have just set up TB for by BT & 3 other accounts. The 3 other accounts all seem fine. BT messages are all now showing in TB apart from 1 subfolder of my inbox. The folder is showing but it is empty. Have checked where my profile is stored & the mes

  • Where is the update for E66 to 410.21.010

    Hi, for severel days I saw the Update for my E66 from 300.21.012 to 410.21.010 on "can I Update". Today I will update, but now the Updater says there where no update. Then I checked on "can I update" again I look very supriesed, It show me a very ver

  • Dreamweaver MX  keeps crashing

    Hello, I used to use DW MX on my "old" G4 Mac and it worked great. I know it's old. I recently upgraded to a Macbook Pro using Leopard and tried to install the DW and it keeps crashing. I'm really not into designing websites any longer and really hat