Preloader wont work in browser

Hello everyone,
I am having problems with an AS3 preloader I've created in Flash Professional CS6. The preloader.swf is inside a basic html document (created with DW CS3) and it should load The Mundo Maya.swf (created in InDesign CS6). When previewing by pressing Ctr+E the preview appears to work, however when I upload the file online the preloader.swf appears for a second and is then replaced with the default SWF preloader of The Mundo Maya.swf. I have spent hours looking for a way to get this to work, have no idea why it isn'tand any help would be amazing!
I'm not a coder, used a tutorial that i roughly understand that provided this code:
var loader:Loader = new Loader();
var loaderRequest:URLRequest = new URLRequest();
loaderRequest.method = URLRequestMethod.GET;
loaderRequest.url = "The Mundo Maya.swf";
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loadProgress);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);
loader.load(loaderRequest);
this.addChild(loader);
function loadProgress(event:ProgressEvent):void
var percentLoaded:Number = event.bytesLoaded / event.bytesTotal;
percentLoaded = Math.round(percentLoaded * 100);
this.txtPreload.text = String(uint(percentLoaded)) + "%";
function loadComplete(event:Event):void
this.txtPreload.visible = false;
Thanks in advance for any assitance
p.s. here;s the link to the site:
http://www.themundomaya.com/thejourney.html

The file/folder structure is not clear to me the way you show it - I am not sure where folders start/end nor where the html page is that embeds the swf file. 
Here's the short (confusing until you understand it) story... 
When you embed an swf file into an html page, anything that swf loads needs to be targeted as if the swf file is within the html file's folder.  (the end)
Example:  If you swf file is in an "swfs" folder that is a child folder of the folder that holds the html page, then your html code would use "swfs/your.swf" to target the swf.  If your.swf happens to load another.swf file in the swfs folder, then it too will need to target the same path... "swfs/another.swf" because your.swf is as good as being in the same folder as the html file at that point.
So if your other swf file happens to be trying to load another file, you kinda need to modify how it targets it, or you need to change your folder structure to match

Similar Messages

  • Airport Card help - still wont work in browser

    Hi there
    I posted a while ago and have now bought and installed an airport card successfully. I want to use my ibook wirelessly using my bt wireless broadband router. The airport card is picking up the BT voyager router signal strongly and apparantly it is really easy from here on but I cant get anything to work from here on. I assumed I'd just open the browser and it would work but it keeps coming up with a message about the server not working.
    I am so angry with how long it has taken me to get a mac on the internet, I shant be buying another in the future but for now I am using a friends windows laptop with all the wires connected.
    Can ANYONE please please help me!!?? I do not need anymore hardware type objects do I? I'm stumped

    Hi, Jenny. Welcome to Apple Discussions.
    What is the MHz rating of your iBook?
    What version of the Mac OS are you using? (We need to know this because the method for setting up AirPort is a little different in each.) Guessing that you are in a version of OS X, go to System Preferences > Network and make sure that AirPort is selected as your means of getting on your network.
    How are you connecting to the internet? Are you connecting via a DSL modem, a cable modem, or what?
    Which model of wireless router do you have?
    There are some troubleshooting guides here (if you haven't already checked there):
    http://www.voyager.bt.com/selfhelp/shc_wireless.htm
    Click on the topic, "Im unable to access the Voyager Config Manager on my Macintosh..." However, choose the AirPort settings instead of Ethernet.
    I'm no expert on this, because my iBooks (all four of them) have just found our network with no problem.

  • Preloader not working in AS3 when viewing in a browser

    Hi there, It's me again Ysong.
    I have a problem regarding PRELOADING.
    MY TIMELINE:
    • First frame -- dynamic text which is my preloader with AS3 in it. NO MORE OBJECT in the frame only text which is dynamic.
         stop();
         loaderInfo.addEventListener(ProgressEvent.PROGRESS, updatePreloader);
         function updatePreloader(evtObj:ProgressEvent):void
              var percent:Number = Math.floor((evtObj.bytesLoaded*100)/evtObj.bytesTotal);
              myLoadText.text = "Loading..." + percent+"%";
              if (percent==100){
                        nextFrame();
    • Second frame -- the whole site in MOVIE CLIP which will be loaded after the preloading ends.
    ***The whole SWF file is only 600KB when publishing.
    ***When simulating download the preloader is working.
    MY PROBLEM:
    Whenever I uploaded these two files: (1) index.swf and (2) index.html, the preloader doesn't work. When viewed in browser it apprears to be white screen. After a couple of minutes, the index.swf appears and the preloader is not appearing as it should be. With (2), I didn't change anything on Dreamweaver just upload the file published by Flash Professional CS4.
    WHAT IS THE PROBLEM? Can anyone help me with this. I've uploaded (PUT) the files through Dreamweaver with a testing server configured.
    Thank you & Regards,
    YSONG

    hi Ned,
    I currently downloading the tutorial link you posted.
    Do you have any idea what is really happening? Because I really wanted to have a loading text only before the whole site is loaded. The SIMULATED DOWNLOAD in Flash CS4 is working great but whenever copy it in my hosting server and view it in my browser the preloader is not working.
    Thank you for your immediate response.
    Regards,
    YSONG

  • I have a dilema i use a programme called Mackeeper i accidentally moved several files to my trash,i would like to put the files back where they belong but put back option is in grey and wont work??

    I have a dilema i use a programme called Mackeeper i accidentally moved several checked files to my trash BUT i didnt delete them,i would like to put the files back where they belong but the put back option is in grey and wont work?? i have spoken to Apple and to no avail !!!
    Mackeeper moved my files to my trash so i pulled them out of my trash to my desktop it has copied them to my desktop as well as kept them in my trash!!
    im so confused and things are not working properly anymore such as my google chrome for example...all my book marks are gone BUT i can go to the google file which is out of place on my desktop and view all my bookmarks data...ALL of my files still exist but they are just out of place now which is making it hard for certain options on my computer to work...
    the files includeAccounts,address book plug-ins,addressbook,Adobe,AIM,Alfred,Anquet Maps,Apple,Asramsoftware,Audio,Automatically add to itunes,facebook,facebook 15-53-13-329,faxfresh,five details,flipping book photo album, font collections, fonts, forismatic,Garageband,Gimp,Google,Google 15-53-13-344,icloud,icons,idocument lite,ilife media browser,ilifepage layout,internet plug-ins,ip scanner,itext express,itunes,iweb,Keyboard layouts,Keychains,launch agents,Librarian,limit point software,logs,mail,mail 15-53-13-895,messages,metadata,mobile documents,mobiscope,moso,movie effects,mozilla,MPlayerx,mywebcamBroadcaster,Native instruments,Skype and LOADS more......
    HOW do i get this stuff back to where it is supposed to go so that these programmes work properly again???? i also used delete and command but that did not work either,like i said i have not emptied my trash and ALL the info is there its just totally out of place and the put back option will not work sor some reason!!??? im running 10.8.5 imac someone PLEASE help me!!
    i have not set up time machine either but i do back up to a site called backupblaze...

    Step 1
    Remove "MacKeeper" as follows.
    "MacKeeper" has only one useful feature: it deletes itself.
    Note: These instructions apply to the version of the product that I downloaded and tested in early 2012. I can't be sure that they apply to other versions.
    IMPORTANT: "MacKeeper" has what the developer calls an “encryption” feature. In my tests, I didn't try to verify what this feature really does. If you used it to “encrypt” any of your files, “decrypt” them before you uninstall, or (preferably) restore the files from backups made before they were “encrypted.” As the developer is not trustworthy, you should assume that the "decrypted" files are corrupt unless proven otherwise.
    In the Finder, select
    Go ▹ Applications
    from the menu bar, or press the key combination shift-command-A. The "MacKeeper" application is in the folder that opens. Quit it if it's running, then drag it to the Trash. You'll be prompted for your login password. Click the Uninstall MacKeeper button in the dialog that appears. All the functional components of the software will be deleted. Reboot.
    Failure to remove MacKeeper will result from neglecting any one of these points:
    Quit MacKeeper before dragging it to the Trash.
    Don't empty the Trash after dragging the application to it. Let MacKeeper delete itself.
    Don't try to drag the MacKeeper icon in the Dock to the Trash.
    Here are some general suggestions. If you want your computer to be usable, don't install crapware, such as “themes,” "haxies," “add-ons,” “toolbars,” “enhancers," “optimizers,” “accelerators,” "boosters," “extenders,” “cleaners,” "doctors," "tune-ups," “defragmenters,” “firewalls,” "barriers," “guardians,” “defenders,” “protectors,” most “plugins,” commercial "virus scanners,” "disk tools," or "utilities." With very few exceptions, this stuff is useless, or worse than useless.
    The more actively promoted the product, the more likely it is to be garbage. The most extreme example is the “MacKeeper” scam.
    The only software you should install is that which directly enables you to do the things you use a computer for — such as creating, communicating, and playing — and does not modify the way other software works. Never install any third-party software unless you know how to uninstall it.
    Step 2
    Restore from the last backup that predates the unwanted changes.

  • When I open another tab and hit the home button on the tool bar the google page will not load completely. and when I type in a search it wont work. I have to use the yahoo adress bar at the top to search. How do I fix this

    I have tried closing it and reloading and it still wont work.

    I figured out how to correct it. Not sure what exactly was happening. But I started into private browsing and then turned it off. It's been working correctly ever since I did private browsing.

  • Adobe Flash Player wont work after all steps taken, what haven't I done to make it work?

    I tried to play a game I love & I got this message: "To view this page ensure that Adobe Flash Player version 10.0.0 or greater is installed" So I went to your site to update my flash player & hit the "Test Flash Player" button & it came up
    like this^^. I went to the suggestions your site provided & went to Manage add-ons to look for Shockwave Flash Object to enable it:
    You can see that it is enabled by this picture I have provided. So it also asks me to make sure that ActiveX isn't clicked on & so I did:
    As you can see it's turned off & I even tried it the other way where it has the spot checked & it still wont play. So I decided to see if I could reinstall it onto my computer & so in turn I got this message:
    That is the message I got even after trying to delete Flash Player & reinstalling it. Now you can see my frustration with all this. Adobe Flash Player wont work after all steps taken, what haven't I done to make it work? I have a Windows 8.1 Pro, I use Internet Explorer which has the latest version on it, which is Windows Explorer 11 Version: 11.0.9600.17498 & I was also under the understanding that I also had the latest version of Adobe Flash Player on this computer as well. Can someone tell me what to do??

    First, confirm that ActiveX Filtering is configured to allow Flash content:
    https://forums.adobe.com/thread/867968
    Internet Explorer 11 introduces a number of changes both to how the browser identifies itself to remote web servers, and to how it processes JavaScript intended to target behaviors specific to Internet Explorer. Unfortunately, this means that content on some sites will be broken until the content provider changes their site to conform to the new development approach required by modern versions of IE.
    You can try to work around these issues by using Compatibility View:
    http://windows.microsoft.com/en-us/internet-explorer/use-compatibility-view#ie=ie-11
    If that is too inconvenient, using Google Chrome may be a preferable alternative.

  • Siri wont work on my wifi help

    Can someone help me out in this siri wont work on wifi but would work in 3g why is this happening i been breaking my head over this for a long time im able to download apps browse do everything using my wifi but only siri wont work ... unless its 3g .....
    Second issue im not able to  facetime anybody else but my friend from USa is able to  facetime  me how is it possible

    Hi bobroy1323,
    Thanks for visiting Apple Support Communities.
    If Siri is not responding, the troubleshooting tips in this article can help:
    Get help with Siri - Apple Support
    You may also find the test mentioned in this article helpful if your iPhone microphone doesn't seem to be working in other applications:
    If your voice is too faint or sounds unclear using iPhone, or iPod touch - Apple Support
    Best Regards,
    Jeremy

  • Inbuilt isight camera is detected in system profiler but no image is being detected only a black screen shows up. I have tried all of the troubleshooting instructions and it still wont work. The iMac im using is OS X 10.6 and was an ex-floor model

    inbuilt isight camera is detected in system profiler but no image is being detected only a black screen shows up. I have tried all of the troubleshooting instructions and it still wont work. The iMac im using is OS X 10.6 and was an ex-floor model

    Hi,
    I would try a Safe Boot first.  (This will take longer than a normal Boot and you will need to Restart afterwards).
    If it were an older OS I would also suggest going to System Preferences > Displays and making sure the display is set to Millions.  (My MacBook Pro does not have this option in Snow Leopard so I did presume Snow Leopard does not have it).
    With some laptops there have been some issues with the cable up the back of the screen pulling loose with regular and frequent use of the lid, but this will not apply to you based on your specs.  (it does take time to appear and is also somewhat rare). However it seems enough contact with the camera can make it appear in System Profiler and power it on but not give a pic.
    If a Safe Boot does not work I would also try a PRAM reset.
    Shut down the computer.
    Restart it holding down Apple/CMD (or ⌘)+ALT( ⌥)+P+R Keys until you have heard three Start Up Bongs.
    This is actually "less" destructive in that it clears less memory items than Safe Boot but they are different enough to warrant trying.
    Do you have an older version of iGlasses installed ?
    The one for Leopard does not work for Snow Leopard.
    Do you have  Web Browser open ?
    This may point to  Google Video Chat Plug-in and Flash Conflict.  It would be rare to allow another app to access the camera even if not displayiong a Pic. 
    (Chrome Installs the Plug-in as does the standalone download).
    Knowing  what "any application" exactly you are trying might help us pin it down.
    Any additional downloaded  apps that can use the camera ?
    Do you happen to have something balck in front of the camera ?
    8:20 PM      Sunday; October 9, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Drag and drop feature on the project panel doesnt work. Cant adjust scale or any numer properties by sliding mouse. (click drag wont work at all nowhere)

    This issue just happened out of the blue. The last thing I did was create a new comp and import an Illustrator file.  Working on CC2014. Its like the mouse's left click wont be working at all... but that's not the case.  Cant even drag the comps in the composition, or move the layers around....
    Now the issue affects everything I do in After Effects, even on a new comp with just a plain solid
    Deleted cache,
    reseted workspaces,
    open/close after effects
    restarted computer
    newcomp with just a solid and nothing.
    plugged unplugged wireless mouse
    changed to wired mouse
    the issue is still there
    Curiously, after writing this post , publishing, and going back to after effects, the mouse will work, but for a couple of clicks or so then wont work again. This only happens on After Effects
    Mensaje editado por: Oswaldo Montúfar

    You're Right
    Its an Gigabyte GA-Z68XP-UD4   with an i7 k2600 clocked to 4.2ghz   w 16gbRam at 1333mhz
    Dual GPU , gtx 760 and gtx 780ti
    Running Windows 7 ultimate.
    The keyboard is a Genius G110  plus a wireless mouse Genius also.
    Adobe guys tried resetting cache (different than deleting) and user preferences, creating new user, disabling both video cards . The issue was still there.
    BTW!, After I switched windows in Win7 environment ( from after effects to the browser)  the mouse drag worked again. I could move objects in comp window, scale; move sliders on time line and drag projects to folders in project window... everything fine until i pressed ANY key, say, shift key or ctrl key.
    Probably we will never have the answer for this, since i had to format the C drive  (i have work to do). Currently i'm installing CC again. So if problem persists, I'll ditch the computer through the window.

  • Links wont work...

    Hi,
    I'm trying to set up a php site and i havent used Dreamweaver
    for a few years. Im finding that my links wont work. I am using IIS
    on vista with my root folder in
    http://localhost/wwwroot/msite
    but the links from the php page keep pointing to
    http://localhost/mysite (mysite
    is not in this folder).
    Also, when i test the php page in firefox i get a different
    name in the browser for the page than what i originally named it,
    instead of 'index.php' i get 'tmp2px68f19s.php'
    In the site definition dialog box i have put '
    http://localhost/wwwroot/mysite'
    as
    the http address of my site.
    Any ideas what i've done wrong?
    thanks for looking and sorry if this is a bit
    unclear...

    > Also, when i test the php page in firefox i get a
    different name in the
    > browser for the page than what i originally named it,
    instead of
    > 'index.php' i
    > get 'tmp2px68f19s.php'
    That just means that you have temp files enabled in your
    Preview in Browser
    PREFERENCES. That's not a problem.
    > In the site definition dialog box i have put
    > '
    http://localhost/wwwroot/mysite'
    > as
    the http address of my site.
    Remove that.
    What do you have in the Testing server definition?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "lostinscript" <[email protected]> wrote in
    message
    news:gci721$nun$[email protected]..
    > Hi,
    > I'm trying to set up a php site and i havent used
    Dreamweaver for a few
    > years.
    > Im finding that my links wont work. I am using IIS on
    vista with my root
    > folder in
    http://localhost/wwwroot/msite
    but the links from the php page
    > keep
    > pointing to
    http://localhost/mysite (mysite
    is not in this folder).
    >
    > Also, when i test the php page in firefox i get a
    different name in the
    > browser for the page than what i originally named it,
    instead of
    > 'index.php' i
    > get 'tmp2px68f19s.php'
    >
    > In the site definition dialog box i have put
    > '
    http://localhost/wwwroot/mysite'
    > as
    the http address of my site.
    >
    > Any ideas what i've done wrong?
    > thanks for looking and sorry if this is a bit unclear...
    >

  • Shockwave is installed, but wont work on Chrome

    I installed shockwave (latest version) for Chrome (latest stable build 64-bit) on my imac (10.9.5 Maverick) and it wont work
    I reinstalled, troubleshooted,checked plugins, but it wouldn't work, though it worked perfectly on Safari
    I will not change my browser from Chrome, but i will update to unstable version, downgrade, get Chromium or get 32-bit.

    this are all the things i had to disenable for itunes
    to work: aim,aol,aolsp scheduler,aoldial,google
    desktop,aolhostmanager,incd,inkmonitor,backweb-8876480
    ,isstart,logitray,lvcoms,mimboots,mm_tray,msmsgs,
    msnmsgr,mwsoemon,navapw32,cfgwiz,nerocheck,plaxohelper
    ,promon,realplay,jusched,weather,winampa,pyyiia,adobe
    gama loader,epson status mani.....,logitech desktop
    m...., my web search ema...,opph,rddk,my web search
    ema...
    that is all of them
    I am having the same problem, all of a sudden. I have uninstalled and re-installed iTunes several times to no avail. The iTunes set-up goes through the entire process, but when I try to open iTunes, I receive an Error message stating that I need to report it to Microsoft. Again, no problem earlier in the week - problem started yesterday. Any help for me or solution with your issue?

  • Siri wont work on iphone 4 :( so apple updated the new IOS 6 only for iphone 4s n 5 users..... Officially Im Sad

    Siri wont work on iphone 4, so apple updated the new IOS 6 only for iphone 4s n 5 users..... Officially Im Sad

    theres nuffin espacial about iphone 4 and 3gs in IOS 6
    COPY PASTE FROM http://www.apple.com/ios/whats-new/
    Flyover and turn-by-turn navigation are available only on iPhone 4S, iPhone 5, iPad 2 or later, and iPod touch (5th generation). Cellular data charges may apply.
    Siri is available on iPhone 4S, iPhone 5, iPad (3rd generation), and iPod touch (5th generation) and requires Internet access. Cellular data charges may apply.
    FaceTime video calling requires a FaceTime-enabled device for the caller and recipient and a Wi-Fi connection. FaceTime over a cellular network requires iPhone 4S, iPhone 5, or iPad (3rd generation) with cellular data capability. Availability over a cellular network depends on carrier policies; data charges may apply.
    Offline Reading List is available on iPhone 4 or later and iPad 2 or later.
    Made for iPhone hearing aids require iPhone 4S or iPhone 5.
    Panorama is available on iPhone 4S, iPhone 5, and iPod touch (5th generation).
    Find My iPhone and Find My Friends enable you to locate iOS devices only when they are on and connected to a registered Wi-Fi network or have an active data plan.
    iCloud requires iOS 5 or later on iPhone 3GS or later, iPod touch (3rd generation or later), or iPad; a Mac computer with OS X Lion or later; or a PC with Windows Vista or Windows 7 (Outlook 2007 or 2010 or an up-to-date browser is required for accessing email, contacts, and calendars). Some features require iOS 6 and OS X Mountain Lion. Some features require a Wi-Fi connection. Some features are not available in all countries. Access to some services is limited to 10 devices.
    Major League Baseball trademarks and copyrights are used with the permission of MLB Advanced Media, L.P. All rights reserved.
    Starbucks pass is coming soon.
    Some features may not be available for all countries or all areas. Click here to see complete list.
    Siri is available in Beta only on iPhone 4S, iPhone 5, iPad (3rd generation), and iPod touch (5th generation) and requires Internet access. Siri may not be available in all languages or in all areas, and features may vary by area. Cellular data charges may apply.

  • Downloaded app Now phone wont work

    I downloaded I heart radio
    When I tried to run it it would not work...Tough luck...Now I find my browser wont work my phone wont work
     When I try to use my browser I get a message
     THe radio on the device is currently off or the battery is to low for the radio to be used. As a result the browser cannot retrieve any web pages
    The phone is fully  charged I deleted I heart. I tried turning the phone off, I pulled the battery fo 30 sec. Nothing helped any ideas???

    Hi and welcome to the forums jmax1863!
    A couple of places for you to visit: Blackberry 101     Tips & Tricks
    The "radio" on the BB actually refers to the network connections.  Go to Manage Connections and Turn all connections on.  Let us know how it goes.
    Happy to have you here!
    IrwinII
    Please remember to "Accept as Solution" the post which solved your thread. If I or someone else have helped you, please tell us you "Like" what we had to say at the bottom right of the post.

  • Upgraded to Belle from anna now wifi wont work on ...

    tried everything but due to some reason wifi wont work on my e7, it was working al well on symbian anna but after the upgrade to *belle* it says connected but gives no browsing  ,on the same wifi network my other android phone works well
    is there a fix for this ??
    nokia can be suchha torture with their upgrades.phew.
    things i tried
    manually enetered and saved access point of wifi network.

    Hi miller5280
    Can you please explain the steps you took to "activate" your phone again?
    I am having this problem:
    1) after upgrade to the new software, phone was stuck in recovery mode (usb-itunes picture). Not jailbroken either.
    2) have done the "reset" i.e. off button & home button together
    2) I reinstalled itunes many times
    3) switch usb port many times
    4) de-auth / re-auth many times as well as purchased / download free apps (however, unable to sync due to itunes not recognizing the phone)
    5) BUT it still won't restore (error codes such as 13, 14 0r 1604)
    Can you or any here help me?? Can't use the phone at all. Very frustrating.....
    Tks

  • Flash Player 11 wont work

    I have been working on this for several days now.  I finally got the Flash Player 11 to download to my computer and now it wont work.  I cannot watch videos, post pictures to facebook, etc.  I have Windows 7 Professional 32bit, and use IE 11.  I have followed all of the troubleshooting tips and done everything that they have requested me to do and I still cannot get it to work.  Please help! 

    Try using "Compatibility View" in IE. (http://windows.microsoft.com/en-us/internet-explorer/use-compatibility-view#ie=ie-11) It's resolved a number of issues with 11 lately, as the web world catches up to the new browser version.

Maybe you are looking for

  • Switch Question

    I'm new to Java, but not to programming or IDE's. I'm in the early stages of developing a new Java application, so I've been playing with various example code from some of the number of books available on the topic. In particular I was interested in

  • I can no longer see my task bar when I am in another program. How do I get it back?

    Lost the menu bar too, but I fixed that. Still do not know how I did it. I want my task bar back so I can adjust volume and see the time. Only time i see it now is when I am on the desktop and all icons are showing.

  • How do I install the newest Windows 7 software for my printer?

    You may have a printer and want to install it on a Windows 7 sytem, but the CD does not work. The Windows 7 Install Wizard from HP may be able to help.  It will detect the printer and help download the latest drivers and software for your printer and

  • Regarding using context object in Receiver determination.

    Hi All, I want to  implement a scenario where with following requirnment . i have one sender and multiple receivers. i have to retrive some feild value and based on the its value i have to route the message in receiver determination step by writing t

  • Get output of layer after applied effects and transformations?

    I know I can get the pixel data of a layer either by calling Sampling8Suite1()->subpixel_sample() or by directly acessing the layer's data field. Both methods work fine, but give me only the pixels before any effects or transformations (scaling, rota