Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > Adobe Web Programming > Flash (all versions)
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Flash (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 22nd, 2005, 05:54 AM
Authorized User
 
Join Date: May 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default problems with determnining when a file has loaded

load movie problem
HI,

Can anyone tell me please, why the below isnt working correctly. WHat should happen is that when the movie clip has loaded, the progress bar i have will go to the frame 'hide_loader' and make the progress bar disapear, but by default when i run the movie, the scene is automatically jumping to that frame without actually showing the progress bar.



loader.autoLoad = true;
loader.contentPath = "ar_ad.swf";
pBar.setStyle("themeColor", "red");
pBar.setStyle("color", "blue");
pBar.label = "%1 out of %2 loaded (%3%%)"
pBar.conversion = 1024;
pBar.source = loader;


if(loader.getBytesLoaded() == loader.getBytesTotal())
{
// movie is loaded
gotoAndPlay("hide_loader");
}


but.. that is not working, and immediatally it is jumping to 'hide_loader'. First before this happens, the movie must be loaded. All that 'hide_loader' does is remove the progress bar from the screen

Anyone help

Steve






Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with web.config file !!!!!!!! _fluffy_ BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 October 14th, 2006 10:02 AM
Exe file problems tinoco Beginning VB 6 4 February 9th, 2006 03:46 AM
Chapter 7 file upload problems GranDad BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 August 27th, 2005 02:29 PM
do xsl file have to be loaded on server? lynchnco XSLT 2 March 17th, 2004 12:20 PM
SOS:.dll file couldn't be loaded! LuckyChanceMore BOOK: ASP.NET Website Programming Problem-Design-Solution 0 January 3rd, 2004 02:37 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.