Preloader pls help
Hi all I have a burning question that I really need an answer
Basically, I have a preloader and I want it to load each section when it is called with this code:
callback function///////////////////////////////////////////////////////////////////////////////// ///////////
caps_mc.btn_continue_mc.addEventListener (MouseEvent.CLICK, nextpls);
function nextpls(e:MouseEvent):void {}
MovieClip (parent.parent) .nextSWF ("home page", parent);
}
the code above shows the preloader is finished with the home page and in the preloader, it should then load faq,
but I get an error saying that nextSWF is not a function when it is clearly,
It is even possible to use a preloader to load SWFs in this way?
preloader///////////////////////////////////////////////////////////////////////////////// //////////////////////
import flash.display. *;
import flash.events. *;
import flash.net.URLRequest;
var loadedSWF:Loader
var progressPercent:Number;
function startLoad(SWFName:String):void {}
loadedSWF = new Loader();
loadedSWF.contentLoaderInfo.addEventListener (Event.COMPLETE, gameLoaded);
loadedSWF.contentLoaderInfo.addEventListener (ProgressEvent.PROGRESS, onProgressHandler);
loadedSWF.load (new URLRequest (SWFName + ".swf"));
}
follow the progress
function onProgressHandler(loadingProgress:ProgressEvent) {}
var p: Number = loadingProgress.bytesLoaded/loadingProgress.bytesTotal;
progressPercent = Math.round ((percent*100));
preload_mc.gotoAndStop (progressPercent);
preload_mc.myloadtext_txt. Text = (progressPercent + '%')
preload_mc.myloadbar_mc. ScaleX = %;
preload_mc.mc_mask. Height =(progressPercent * 3).
preload_mc.ofBytes_txt. Text = loadingProgress.bytesLoaded + "bytes."
preload_mc.totalbytes_txt. Text = loadingProgress.bytesTotal + "bytes."
}
function gameLoaded(e:Event):void {}
removeChild (preload_mc);
this.addChild (loadedSWF);
loadedSWF.contentLoaderInfo.removeEventListener (Event.COMPLETE, gameLoaded);
loadedSWF.contentLoaderInfo.removeEventListener (ProgressEvent.PROGRESS, onProgressHandler);
}
function nextSWF (whichSWFName, removeSWF) {}
this.removeChild (removeSWF.parent);
If (whichSWFName == "startPages") {}
startLoad ("faq");
}
}
startLoad ("startPages");
////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////
Here is the error
TypeError: Error #1006: nextSWF is not a function.
at startPages_fla::MainTimeline/nextpls() [startPages_fla. MainTimeline::frame1:7]
If anyone can help I would be very grateful, I'm hoping to be able to have a reusable preloader
Thanks in advance
fonzio
is startPage() in frame 1 of the main timeline of your main swf?
If so, what show the following trace():
caps_mc.btn_continue_mc.addEventListener (MouseEvent.CLICK, nextpls);
function nextpls(e:MouseEvent):void {}
trace (MovieClip (parent.parent);
MovieClip (parent.parent) .nextSWF ("home page", parent);
}
Tags: Adobe Animate
Similar Questions
-
Aspire R7 572G touch screen stopped working after a windows update 10, pls help
I made an update of windows 10, but to my dismay, I lost my duties for the touchscreen. I checked the properties of MY COMPUTER and he now says pen and press enter not taken in charge. Pls help
Hmmm... I upgraded my R7 572 G but my touch screen is ok. I don't know what you were doing. However, my problem was that the screen is not rotates in Windows 10. So I went to this folder to run as administrator to solve the problem of automatic rotation and it works. C:\OEM\Preload\FIXAUTOROTATE\EnableRotate.cmd
-
PLS, help me to reset safari on mac Ox: 10.11.5
PLS, help me to reset safari on mac Ox: 10.11.5
What do you mean by reset.
-
I earsed my hd and now im trying to reinstall, but an error has occurred during installation, which means that I can't reinstall osx again. PLS HELP!
Please tell us how wipe you the drive and how you tried to reinstall OS X. And what was the error, and how he help you trying to reinstall OSX again? You can look at writing an effective communities of Apple support question before you answer because we are not spirit or psychic readers.
-
I get this message when I turn my macbook pro on "there is no set of application to open the document"stream_000b.strings ". "How can I get rid of him. pls help
Check preferences system/users and groups to see if this item is in your login items. If so, select it and use the sign less to remove.
If she is not there, see if you can find the file by using one of these programs. If you go Finder/display/show bar path, it will show you where it is located. You can then remove it.
-
My Fire Fox download video in support not detected on you tube. It is always shows only the first video that i was downloaded.pls help
I don't think there is much you can do about it outside the use of workaround to reload the page until this problem is corrected.
There is this bug on this problem:
I don't know if other extensions download suffer from this issue, as well, so you can try a little more try the website of the add-on and if possible use a different format like WebM, if they are available.
Also note that not all videos are downloaded and registered correctly. Some may have a size of 0 bytes and fail to download, so, best is to check in downloads of the toolbar Manager in the drop-down list to make sure that the file size is correct (i.e. neither 0 bytes, but a more likely size).
YouTube streaming makes changes to the code and the way its web pages work, so extensions can fail at any time.
-
My Ethernet port is not running iMac mid 2011. Pls help me.
Hi, I have an iMac 21.5 "mid-2011. My Ethernet port is not working. Is this a software problem? Pls help me.
Try resetting the SMC reset management system (SCM) controller on your Mac - Apple Support
Try another ethernet cable.
He still does not? A report with the information more wrote an effective communities of Apple Support question
-
PProblem with my iPhone 6s, while charging or using internet, it rejects higher amoun of heat! Pls help me...
Certain amount of heat is normal using a particularly intense use as a streaming video
Can I restart a Force
Restart your iPhone, iPad or iPod touch - Apple Support
If the problem persists
An appointment of 'Genius' to an Apple Store, or select another authorized service provider.
-
minimize, maximize the task .bar and close icons are missing.pls help.
my homepage is google.but when I open firefox, I don't see it.i can't see maximize minimize andclose icons too. pls help.
You can be in full screen - hit F11. It is re - appear?
-
I don't understand why I can't login my account using mozilla but with googlechrome fb, I am able to do... Mozilla can load the fb site but cannot access my fb account... I'm uncomfortable with the use of mozilla as my browser... pls help thanks
- "Clear the Cache": Tools > Options > advanced > network > storage (Cache) offline: 'clear now '.
- 'Delete Cookies' of sites that cause problems: Tools > Options > privacy > Cookies: "show the Cookies".
Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the Add-ons is the cause of the problem (switch to the DEFAULT theme: Tools > Modules > themes).
- Makes no changes on the start safe mode window.
See:
-
Pls help me with my computer hp mini laptop
Pls help me with my computer hp mini laptop
system disabled
[69005685]
Hello
Try to enter: 76963201
Kind regards
DP - K
-
Pls help me how to fix my iphone 5 wifi is gray
I do even the bits of Apple that reset freezer/hair dryer tips and network settings, but nothing happens pls help me...
The iPhone has water damage?
Has been jailbroken iPhone?
What were you doing before that happened?
-
serious problem. pls help!
some "khar khar sound is coming from at the bottom of the keyboard from my hp g6 pavillion 2231 all the time when the Lalonde is running.» What to do. I'm tired of this noise. pls help!
Hello
Sorry khar khar? Mainly under the keyboard sounds would be Fan or HARD drive that could mean either the fan (if fan) is struggling to move due to dust build up OR the hard drive is a failure, it is difficult to give you a firm answer without more information. Can you tell the difference between the noise of the fan and hard drive noise? When you start up from cold noise not start immediately or is he only heard talk after Let's say 5-10 minutes? Checkurtech
-
Confused why my drivers do not work pls help!
Recently, I did a reinstall of my windows 7 I have a model CQ5310UK.
I tried to get the main drivers for my model and went to this page here which I believe is the right one to get: http://h10025.www1.hp.com/ewfrf/wc/softwareCategory?os=4062&lc=en&cc=us&dlc=en&sw_lang=&product=4104...
I chose the first one on the list: Original NVIDIA Unified Graphics Driver
I downloaded fine and opened it and it came with this: your system does not meet the requirements of the operating system. Update has been canceled. (9997)
I don't understand why he did what I did all well I chose the version that is windows 7 which is what I use! can someone help pls!
Hi Big bluestem
I answered you in your previous post
More information on your error
http://h10010.www1.HP.com/ewfrf/wc/document?LC=en&DLC=en&cc=in&DocName=c01728720
Your erros is because the 64-bit and 32 bit OS, you must choose the good update, as intsturcted in my previous answer, go to the nvidea Web site and download from there.
Concerning
-
How to free download of iMovie because MacBook Pro is supposed to be free, but I'm not. pls help
You can download the latest version of iMovie for free only if you already have iMovie 9 joined to your Apple ID. It comes free with new Macs to the first owner.
Geoff.
Maybe you are looking for
-
I have a Sony camera and want to play my movies on my Mac AVCHD without having to download the 3rd party software - is it possible?
-
I can not open HP Deskjet 3050 a scanning software
I have a HP Deskjet 3050 has. It has a software build-in for analysis. It is very useful, but I can't open it now. I don't know why. I also have an error message shows "cannot find module HPstatusBL.dll, RunDllEntry"(something like that) when I start
-
After a heated discussion online and behind the messages on facebook with an aggressive person, my computer said "your computer is potentially unprotected" and "firewall disabled. Then a window opened and directed a "scan" telling me I had 29 infecti
-
I started with an installation problem. I had this problem before and help sought and found solutions. They worked temporary but did not last. This time, I followed a different method and has crossed the sfc/scannow and finished with a newspaper of 1
-
Win 10 update placed on the updates page, and does not update us '.
We have a HP while a win 7 64-bit home premium. We do not want to win 10 and hid all the updates that relate to what we know. Now, to win 10 placed itself on the update page and wants to be installed. It will not install to us of new updates of wi