Preloader Problem in Flash MX

Ok, welcome back again...
I must first say... this site is perfect... Solving my
day-2-day Flash mess ups! Ahh, but let us begin!
I've just created a site (more of an Intro to the site),
using Flash and I also created a preloader because of the long wait
before any Flash is actually shown. Unfortunately, I'm getting a
error message when I preview the movie about the preloader... Let
me show you the message:
**Error** Scene=Scene 1, layer=preloader, frame=1:Line 1: Clip
events are permitted only for movie clip instances
onClipEvent (enterFrame) {
Total ActionScript Errors: 1 Reported Errors: 1
I think it may be important to point out that I have about...
Twenty-three layers (That span to about 400+ frames) for that movie
and the preloader layer as the twenty-fourth... Not sure if it's
positioning with the layers affects the script... Ahh! Speaking of
script, let me post the ActionScript that's in the preloader's
first frame:
onClipEvent (enterFrame) {
_root.stop();
mctotal = _root.getBytesTotal();
mcloaded = _root.getBytesLoaded();
percent = Math.round((mcloaded/mctotal)*100);
load = percent+"%";
progress_mc1._xscale = percent;
if (percent == 100) {
_root.play();
I hope that's all the information that is needed for this
question to be answered...
Thanks in Advance!
-Keno2500

quote:
Originally posted by:
keno2500
**Error** Scene=Scene 1, layer=preloader, frame=1:Line 1: Clip
events are permitted only for movie clip instances
onClipEvent (enterFrame) {
Total ActionScript Errors: 1 Reported Errors: 1
-Keno2500
Well, I am total amateur in actionScript, but if it tells you
"Clip events are permitted only for movie clip instances", it would
mean to me, your preloader is not a movie clip. You need to change
instance propertys for preloader... My head is spinning now, need
to lay down
Good luck!

Similar Messages

  • Preloader problems - disappears at 60%

    Hi,
    I have two Preloader problems for a project I'm working on right now.
    1. The Main Site preloader disappears when 60% is loaded...with a blank screen lag until moving to the main screen
    2. My external .swf Preloader is still on screen after an external .swf has loaded. I can hear the external .swf playing while watching my loader bar at about 20-40%.
    I'm going to show the code I have for each...hopefully someone can help. Thanks!
    Main Site Preloader:
    var yChange = 109.2;
    var yStart = 330.2;
    myInterval = setInterval(preload,100);
    function preload() {
    var current = _root.getBytesLoaded();
    var total = _root.getBytesTotal();
    var pctLoaded = Math.round(current/total*100);
    mask_mc._y = yStart - yChange/100*pctLoaded;
    if (current >= total) {
      clearInterval(myInterval);
      gotoAndStop("Main",1);
    External SWF Preloader:
    var mcLoader:MovieClipLoader = new MovieClipLoader();
    var myListener:Object = new Object();
    mcLoader.addListener(myListener);
    myListener.onLoadProgress = function(target_mc,bytesLoaded,bytesTotal) {
    extLoader_mc._visible = true;
    var pctLoaded = Math.round(bytesLoaded/bytesTotal*100);
    extLoader_mc.extLoaderBar_mc._xscale = pctLoaded;
    if (bytesLoaded >= bytesTotal) {
      extLoader_mc._visible = false;

    change soundHandler in the fla to:
    // this code below is on the main timeline?
    var soundHandler:AdobeCaptivate.rdSoundHandler = new AdobeCaptivate.rdSoundHandler(this);
    and change rdSoundHandler:
    import AdobeCaptivate.rdSound;
    import flash.display.MovieClip;  // if this is as3
    class AdobeCaptivate.rdSoundHandler extends Object
    var m_sounds:Object;
    var m_movieSound:rdSound;
    var mainMC:MovieClip;
    function rdSoundHandler(mc:MovieClip)
      m_sounds = new Object();
      m_movieSound = null;
      mainMC=mc;
    function attachSound(key:Number, id:String):rdSound
      var sound:rdSound;
      if(m_sounds[key] == undefined || m_sounds[key] == null)
      { //attach new sound to the handler
       var newSound:rdSound = new rdSound(mainMC);
    // and now you have to find rdSound() class and post that
       newSound.attachSound(id);
       sound = m_sounds[key] = newSound;
      else
       sound = m_sounds[key];
       sound.stopSound();
      return sound;
    function detachSound(key:Number)
    { //remove the sound object from the handler
      if(m_sounds[key] != undefined && m_sounds[key] != null)
       var sound:rdSound = m_sounds[key];
       sound.stopSound();
       m_sounds[key] = undefined;
    function playAllSounds(bPause:Boolean)
      if(bPause == true)
      { //pause all sounds
       if(m_movieSound != null)
        m_movieSound.pause();
       for(var key in m_sounds)
        m_sounds[key].pause();
      else
      { //resume all sounds
       if(m_movieSound != null)
        m_movieSound.play();
       for(var key in m_sounds)
        m_sounds[key].play();

  • Problem with flash on IE11 after using adobe cleaner

    Problem with flash on IE11 after using adobe cleaner to remove a trial version of photoshop because there was not any entry on add/remove applications in windows 8.1
    Its to frustrating to reinstall everything. I tried everything from your support page with no luck…

    Link for Download & Install & Setup & Activation problems may help
    -Online Chat http://www.adobe.com/support/download-install/supportinfo/

  • Problem with Flash Player in IE7 / IE8

    I'm stumped.
    I've got a problem running Flash content in IE7 / IE8. I had
    Adobe Master Suite CS3 installed on my laptop, and had no issues
    running Flash content in any browser including IE7 when this was
    installed. I've recently un-installed it and can no longer run
    Flash content in IE7. I've tried re-installing Adobe Flash Player
    from the Adobe website and, whilst the browser window is open, I
    can run Flash contect with no issues. However, when IE7 is closed
    and then re-opened, it stops running Flash content again. No errors
    are experienced, just a black space or a "you must have flash
    installed to view this content" message where the Flash content
    should be. If I re-install again, I can view the content until I
    close IE7. I've tried upgrading to IE8 but I'm getting the same
    problem.
    I have FireFox 3, Opera and Google Chrome installed also, and
    have no issues playing Flash content in these browsers.
    Please help!

    All sorted now...
    Removed Flash Player and its ActiveX control. Completely
    reset IE8. Re-installed Flash Player 9. Now working.
    Should have done this hours ago!

  • Problem with flash player in firefox 12

    Problem with flash 11.3 (beta 1,2) in firefox 12. Works in all other browser.
    Screenshots
    http://i.imgur.com/OZXvQ.png
    http://i.imgur.com/VwUzk.png
    http://i.imgur.com/XbXgV.png
    http://i.imgur.com/dOT3w.png
    http://i.imgur.com/aGgg8.png
    Win 7 Ultimate SP1
    Please fix

    Hello
    it is all working for me.
    http://support.mozilla.org/en-US/kb/Basic%20Troubleshooting
    Please try point 4,6 and 8
    Win 7 Ultimate x64 SP1
    Firefox 12.0b6
    Flash Player 11.3 beta 1 & 2

  • I have problem with Flash Player. Full screen doesn't work correctly. Turning off hardware acelleration helps but I want this option to work.

    Problem exist only on YouTube. When i want get full screen, I have black screen with audio. If I click few times full screen button it helps, but I want to go to full screen by one click.
    If i turn off hardware acceleration everything is ok but vids looks terrible.
    I have this problem with Flash Player 10. No 9 works good, but some websites wants no. 10

    Generaly FP works, but problem is that i must press few times full screen button. Now i have turn off hardware accelleration, but movies are quite bad.
    I have already installed newest graphic drivers but it didn't help.
    Everything was good unless Flash Player and Mozilla notificated that update is necessary :<

  • Cannot open grooveshark due to a supposed problem loading flash. (I have the latest version of both (Mozilla and Flash)

    Everything with firefox works ok except Grooveshark. An error message appears saying: We had problems loading flash, you might have any blocker etc etc.
    I don´t have any blocker and as a matter of fact i have the latest versions for both mozilla and flash. Neither version of flash test nor reinstallation process nor checking add ons or firewall settings solved my problem.
    Thanks for the attention. Regards

    To double-check your Flash permissions for the site, you can click the globe or padlock icon to the left of the address, click More Information, then click the Permissions tab. The "Activate Plugins" section would be the one to check.
    I understand you have checked your add-ons, but in case there is an unexpected interaction, could you test the page in Firefox's Safe Mode just to confirm that extensions are not the problem? That's a standard diagnostic tool to deactivate extensions and some advanced features of Firefox. More info: [[Troubleshoot Firefox issues using Safe Mode]].
    You can restart Firefox in Safe Mode using either:
    * "3-bar" menu button > "?" button > Restart with Add-ons Disabled
    * Help menu > Restart with Add-ons Disabled
    ''Not all add-ons are disabled: Flash and other plugins still run''
    After Firefox shuts down, a small dialog should appear. Click "Start in Safe Mode" (''not'' Reset).
    Any difference?

  • Problems running Flash Builder 4.6 profiler

    Hello,
    I have a problem running Flash Builder profiler. When I click "Profile" it starts my web application, but nothing else happens inside Flash Builder itself - no new data appears in Profiler perspective, Flash Builder itself doesn't show any sign of doing something.
    My mm.cfg contains the next line: "PreloadSwf=C:/flash builder workspace/.metadata/.plugins/com.adobe.flash.profiler/11/ProfilerAgent.swf?host=localhost &port=9999"
    Additional details:
    OS: Windows 7
    Flash Builder version: 4.6
    Tested web browsers: Firefox, IE 8 - the same problem in both of them
    Flash player versions: ActiveX/Plug-in Version:11.7.700.169
    I made sure that ProfilerAgent.swf indeed exists in the location defined in mm.cfg. In addition, I tried to change port 9999 to other ports (both in mm.cfg and in Flash Builder). I also verified that the location of ProfilerAgent.swf appears in trusted locations of Flash Player.
    I would be very grateful if someone could help me to solve this problem.
    Thanks,
    Valeria

    R Grieve wrote:
    This sounds like something has gone wrong during installation. CSAR and CSLIBS references should be set up automatically during installation.
    There should also be no need to import the Flex SDKs as CS Extension Builder 2.0 ships with them included. It won't do any harm though having the CS Flex SDKs imported.
    Can you detail how you installed CS Extension Builder 2.0, please and where you obtained it from?
    Here are the installation instructions I would recommend starting from a clean FlashBuilder 4.6 instance:
    To install Adobe Creative Suite Extension Builder, download the ZIP file and unzip it into a root location (SDKRoot).
    Install Extension Builder in Eclipse with Flash Builder or Flash Builder Standalone:
    In Eclipse, choose Help > Install New Software.
    In the Install dialog, click Add.
    In the Add Site dialog, click Local... to browse to the SDK root folder or enter the URL of the update site.
    Name the site CS SDK and click OK to confirm the changes.
    Select the new CS SDK site in the "Work with" field.
    -- Select all the Adobe Creative Suite Extension Builder components.
    -- Click Next to confirm the selection.
    In the Install Details review dialog, click Next to confirm that you want to install all the components listed.
    Accept the terms of license agreements and click Finish.
    Re-start  Eclipse as recommended.
    I obtained it from Adobe and installed it using the Help > Install software option, but without unzipping it. Maybe that was it.
    Now I've done a clean installation and it works perfect. I did it with administrator permissions, don't know if it has anything to do with it, but I read it somewhere and did so just in case!
    Thanks a lot!

  • Problems with flash Player

    So I'm having a problem with flash player, and was wondering if anyone has experienced the same thing, or might be able to help.
    - Upgraded 2 computers to snow leopard, macbook pro laptop, and mac Pro tower (intel proc).
    - Laptop has no problems, everything renders fine, and without any difficulty.
    - Mac Pro doesn't display any dynamic data, text fields show up blank, some flash player controls don't work, brightcove player won't load completely... things are just not working right.
    - Main browser is Safari, but same problem exists in Camino, Firefox, etc...
    - I've had Safari Stand installed, but have since removed it.
    - I've removed GROWL notifications completely
    - I've got debug and developer menus turned on (but have that with the laptop also.)
    Please see the screenshot attached. This graph should have text data on it showing the x/y axis, the key, as well as data when you mouse over each block, but doesn't show anything.
    The second screen shot shows a brightcove player from our website... There should have full controls at the bottom, and nothing shows up. If I right-click, and go to 'view full screen', I can't then get out of full screen by clicking escape key on the keyboard, I have to use any player controls, or right-click again, and hit 'exit full screen'.
    Anyone have any suggestions? It's something to do with my computer, rather than snow leopard, because flash works fine on my laptop, but not on the desktop. Any help is really appreciated !

    Hi!
    I reached your post because I was having the exact same issues as you and I found a fix that worked for me! The problem is a font issue: I logged in with the guest account that had no users font installed and flash was working fine, so I logged back into my account and moved all the fonts in my 'User>Library>Fonts' folder in a folder in the desktop. Then I closed and reopened Safari and Flash was working!
    In the end the problem was with a version of Arial that I had in my users' font folder: I deleted just that, put my users' font back in the folder and the problem disappeared.
    I hope it hepls!
    best
    nicola

  • Problems with Flash Video

    OK - I have had intermittent problems with Flash video, basically it gets choppy, usually after about 20 minutes - half an hour of watching - recently this problem has gotten worse - coinciding with a recent system update perhaps? - it's more or less anytime I stream something, and it happens on all browsers, even when the movie has clearly downloaded and is buffered way in advance of the playhead.
    On 2 occasions recently leaving the movie to play just to see what happens has led to a kernel panic.
    I've heard alot about Flash video generally being a resource hog and not playing ball sometimes - is there a way to solve this issue? Things I have tried - reset sound to 16 bit 44.1 khz in audio/midi manager; fixed permissions; run Tech Tool - everything seems to be fine hardware wise - I think there are some incompatible driver issues that are meesing up RAM usage but have no idea what or how to solve this... Any ideas anybody?
    Thanks.

    If, as you show, you are running 10.5.2, that is out of date. You need to install the 10.5.8 combo updater.
    It is also possible that your FlashPlayer is out of date.
    The latest version of Adobe FlashPlayer can be obtained from here:
    http://www.adobe.com/shockwave/download/download.cgi?P1ProdVersion=ShockwaveFlash
    (You can check here: http://www.adobe.com/products/flash/about/ to see which version you should install for your Mac and OS.
    You should first uninstall any previous version of Flash Player, using the uninstaller from here (make sure you use the correct one!):
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14157
    and also that you follow the instructions closely, such as closing ALL applications first before installing. You must also carry out a permission repair after installing anything from Adobe.

  • Ongoing problems with Flash in Firefox 8

    I am still having problems with Flash player since upgrading to Firfox 8 - see previous posts.
    Symptoms:
    When I try to access any flash containing page, the flash content does not load or play - the area it should be is blank or shrunk out - not even a token jpeg.
    What I have tried:
    Checked Flash is installed and enabled and up to date - all OK.
    Tried re-installing Flash anyway - no effect.
    Tried uninstalling flash and re-installing - this fixes the problem temporarily, but as soon as I shut down and restart, the problem returns.
    Tried disabling other add ons - makes no difference. Only addon in this area is Freecorder toolbar.
    Tried updating settings in Windows Firewall to ensure Firefox is allowed - no change.
    Ensured my anti-virus/spyware program (PC Tools Anti-virus) is not blocking any of the websites - nothing there.
    Checked situation in IE (Yuck!) - works fine there.

    No response to this, and problem has not gone away. Looks like I am going to have to change browser....

  • Problems with flash photos on iPhone 4s

    I have a black iPhone and my friend has a white iPhone, both 4s. I have no problem taking flash photos with mine, but on hers, when the light from the flash LED comes on and then fires at the moment of taking the picture, it is like the light is almost "bleeding" into the white back cover. When you look at it when this happens, the light source is no longer just the small LED, but is now an area of the back cover the size of your fingernail. This seems to be having the affect of causing all the flash photos to look like you have taken the photo in fog. There is a white "cloud" across the entire photo, making it totally unusable as a photo, you cannot see ANYTHING at all. I have made sure there is nothing in front of the lens or flash (fingerprints or scratches) and the camera takes perfectlly fine non-flash photos. My black iPhone 4s does NOT do this. Also tried with and without a case on the iPhone, to make sure it wasn't light catching the edge of the hole on the case and reflecting back to the lens. Does the same thing when the case is completely removed from the iPhone. Any suggestions ?

    I have a Black 4S and it has the exact same problem - using flash means pictures in fog - totally unusable. Like you, I removed the case, checked the lens, everything. I have no idea why this happens but it makes flash photograph totally useless. I think I will see if Apple would care to make good a guarantee on it's apparently defective phone camera.

  • Problems with flash photos

    I have a problem with my iphone 5s flash. Everytime I shoot a photo without flash, it works properly. However, when I use flash photos appear with a white mist( no case on). What's the problem?

    I have a Black 4S and it has the exact same problem - using flash means pictures in fog - totally unusable. Like you, I removed the case, checked the lens, everything. I have no idea why this happens but it makes flash photograph totally useless. I think I will see if Apple would care to make good a guarantee on it's apparently defective phone camera.

  • Strange problem with Flash

    Ok so after spending the past week trawling through this forum I have yet to see anyone with a similar problem and al the ways to fix I've tried have been a lesson in fustration.
    So the problem is flash just isn't there on websites, on any browser. Where flash videos and such would be is a big blank space the same size as the player and this is the same for ALL video media off any site including youtube.
    When I run the installer it says completed and then nothing changes on any of the browsers, same for offline installer, and same after doing a full uninstall. Anyone got anymore ideas.
    Also did a system restore to back when it DID work, also didnt solve the problem, so I'm really at my wits end now?!
    This is running on a windows 7 32bit system.

    First thing to try is a clean install as described in http://forums.adobe.com/thread/928315
    Download the offline installer from http://helpx.adobe.com/flash-player/kb/installation-problems-flash-player-windows.html#Ins tall_in_a_firewall_proxy_server_environment
    What browser(s) do you use?
    What is your display adapter, device driver version & date?

  • Problem installing Flash on to Mac Serious!

    Hi all,
    It's been a really bad few days now. I'm running Firefox 5.0.1 on an Mac OS X 10.5.8 and have recently don't my software update etc... had a small problem with a disapearing dock but nothing major and now like everyone else have been asked to download the new Flash.
    So I download it from the offical site it does its thing. when I get the install icon I click it, it asks me to accept all the rules etc... so I do nd then it asks me to close browser do that then it installs.....but it doesnt really install as when i go back on the internet I'm asked to install flash.
    I have already:
    uninstalled and install a gizzillion times shutting down and all, have searched my activity monitor have checked in with my disk utility have emptied trash and deleted unwanted plists and now I am well and truelly bemused.
    Please please help I need a genius I think.
    cheers

    Hello Ffrrogy,
    I may not be the person to give you any useful suggestions since I have a different serious problem with Flash and Safari 5.1 that I can't solve.  However, since no one else has replied to your problem, I'll offer one suggestion:
    You can begin by checking to see if the Flash Player got downloaded into the correct location on your hard drive.  Via the Finder, look in:
    HardDrive (typically called Macintosh HD - but not your personal user area that probably has your name) --> Library ---> Internet Plug-Ins
    In the Internet Plug-Ins folder should be a file named "Flash Player.plugin"       
    (Note, there is another Library in your personal area that is different from the one in the HD area.  I don't know if Safari would find the plug-in if it were in your personal library.)
    If the file is in the Internet Plug-Ins folder then double check your preferences in Safari.  Under Security, be sure that plug-ins are enabled.  If plug-ins are't enabled the Flash Player you downloaded won't be loaded into Safari when you open that application and thus when you visit a site with Flash content, you'll get the message to download the Flash Player.
    By the way, I'm assuming that Flash was working in your Safari browser at some earlier point in time.  Also, if you have Firefox, you might see if Flash is working there.
    But if your problem isn't with plug-ins not loading then...

Maybe you are looking for

  • ITunes.exe - Entry Point Not Found (Problem)

    Hey. So I uninstalled iTunes and QuickTime and then reinstalled both. Itunes will not open and this message pops up. "The procedure entry point OpenVxDHandle could not be located in the dynamic link library KERNEL32.dll." Any ideas that could help?

  • How to delete a child row

    hi, i want to delete a table (QUESTIONBNKMASTER ) i've used delete QUESTIONBNKMASTER ; query for deleting but i got an exception saying that integrity constraint (VTSQBADMIN.FK_CHM_QNO) violated - child record. i tried for this command delete VTSQBAD

  • Could any one tell me that How can i create the service User ie j2ee SID

    hi all, In the implementation of SPNego Authentication schem in my portal system. i want to create the service user ie .j2ee-<SID>. <b>could any one tell me that How can i create the service User ie j2ee-<SID> in my visual administrator??</b>. any he

  • XI to Batch Command Scenario

    Hi All, My scenario is SAP to XI to Batch Command. The receiver system is a listening port system where it receives data at the port. Currently XI is not the middleware. So the communication happens through EXE. It happens as follows: 1. exe sends a

  • How to filter mail to delete email where incoming email address is not a valid address from my address book

    how to create a mail filter which checks the incoming email address with valid address from my address book?