Flash not reading colour correctfrom an external PNG? Bug? Or am I missing something?

Hi guys and gals.
I have a very interesting bug I think.. Wondering if there is
a way around the problem I'm having.
ok.. Very Very simply script here..
Make new flash movie..
On frame one.. put this code.
r=this.createEmptyMovieClip('currentImageMask',this.getNextHighestDepth());
r.loadMovie('test.png');
(because I'm lazy and didnt put in loading detection... on frame
20 put this code.
import flash.display.BitmapData;
image_bitmap = new flash.display.BitmapData(r._width,
r._height,false);
image_bitmap.draw(r);
curr_colour = this.image_bitmap.getPixel(5, 5); //0
trace(curr_colour.toString(16));
stop();
Now... make a simple image with the rgb colour 100,100,100
filled in it. (Mine is a simple 50x50 pixel image filled with that
colour. save the png as "test.png" and put next to the fla with
code above. You will see that the colour returned in the trace is
not the hex value that matches color 100,100,100... it matches
99,99,99. Flash isnt reading the colour correctly...
Now this same test returns the correct color and works fine
if using a .gif or a .jpg. but I cannot do what I want with these
formats. it must be a png.. .it must read the rgb value 100%
correct every time and the image MUST be loaded from an external
file.
It seems that regardless the rgb is off by one. so if colour
was 25,25,25 it would be returned as 24,24,24
Is there any other way to do what I need to do.. or is there
a bug in my code.. please anyone help.. I'm pulling my hair out
with what should be a simple damn thing to do.

There are two reasons why I cant/wont to do that ....
1... If it is a bug.. Adobe will fix it and my program will
break... (Ina lot of places)
2... the colour 0,0,0 comes back 0. teh coloru 1,1,1 also
comes back 0... So regardless I cnat tell teh difference between
0,0,0 and 1,1,1... (This is very important for the program to
accuratly determine these colours)

Similar Messages

  • When you set airdrop to ÓFF',  blutooth is not switched off?. Can anyone help me.Am I missing something in the setup?

    when you set airdrop to ÓFF',  blutooth is not switched off?. Can anyone help me.Am I missing something in the setup?

    What exactly are you trying to do?
    Turn off Bluetooth?
    Swipe up from the bottom of your screen and tap the bluetooth icon (White is on, Back is off)
    or
    Settings > Bluetooth > Bluetooth - Off

  • MacBook Pro will not read files on Lacie External HD

    Yesterday I had a heck of a time getting my macbook to even see my Lacie HD.  I downloaded a new driver installed in and it worked well.  Everything was running perfectly.  I ejected the HD and finished my day.
    Today my Macbook sees my HD but when I click on it to access the files none are inside.  It just gives me the option to autorun.  Which also doesn't work.
    Can anyone give me some help with this?
    Thank you in advance.

    Are you using a retail 10.6 disk that looks like this?
    and not the gray install disks that look like this? The Gray Disks are machine specific and only have the drivers for the Mac that they shipped with.

  • Can not publish to MMe-bug or am I missing something?

    I am unable to publish to MMe from whitin Aperture. I have the album icon showing in the library pane, it sinchronizes for some time, but the album doesn't show on Mobile Me.
    When I go to Preferences, Web, the program freezes and I have to force-quit.
    I didn't have this problem before; I suspect that I picked it up with the last upgrade or with the previous one.
    What I am doing to circumvent the problem is to export the abum to the desktop and from there let MMe upload it. No problem here.
    Appreciate any suggestions.

    BOOM! You have hit the nail on the head, sir!
    I disabled my Vuze Remote Community Toolbar and the problem was fixed.
    Thank you, the-edmeister!!!!

  • Final cut is not reading events or projects from my external hard drive, what can I do?

    Final Cut X is not reading events of projects from my external hard drive, what can i do?

    Like this
    Cmd-Shift-4. Drag a box around the area to capture. Screen shot appears on the desktop. Click the camera button in the message reply window.

  • I converted from a PC to a Mac Mini.  I have my PC documents backed up on a DVD disk.  I have an external DVD drive connected to the Mac Mini.  I want to open them up and save them to the Mac, BUT....when I put the DVD disk in the Mac is NOT reading it!

    I converted from a PC to a Mac Mini.  I have my PC documents backed up on a DVD disk.  I have an external DVD drive connected to the Mac Mini.  I want to open these documents up from the DVD storage and save them to the Mac, BUT....when I put the DVD disk in the Mac is NOT reading it!

    Hi Joe,
    Thanks for your quick response.  I should add....it worked before.  When I previously inserted the two DVDs into this remote drive, and I went into finder, I could click on the "remote device" line and see all my saved documents (excel, word, etc) on the DVD and open them on the Mac.  Now I cannot see them, when I try to open them on the Mac, nothing happens, nothing is displayed.  I just re-tested the remote DVD drive with a CD and, no problem, it opened up the CD via iTunes and I cold play the CD.  SO......I know the remote DVD drive (it's an LG by the way) is fine, it's something to do with some settings on my mini mac,especially where I could open it previously.  I do not remember changing any settings since then. 
    When I go into system preferences and click on CD/DVD it gives me options of how to open up a music CD (default is iTunes), a DVD (default is iMovie), etc.  The problem is my DVD is all miscellaneious files/documents.  I just want to be able to see them in the finder.  I also tried to open them via microsoft word, from the remote disk and again, it could not open the drive, even though some of the documents were microsoft word documents.  Again, I was able to open them previously and the DVD is not corrupted in any way.  
    Any additional advice? 
    Thank you!

  • My external Iomega DVD drive does not read DVDs. Why?

    My external Iomega DVD drive does not read DVDs. Why?

    what does this question have to do with a mac?  post in the Iomega fourms.

  • New external hard drive froze while transferring info to new computer. Laptop does not read external hard drive. Went to Apple store and didn't work. Any suggestions?

    Day 1. Went to Apple store because iMovie was not working. It kept shutting down. Prior to going to the store, I called Apple Support and deleted and reinstalled iMovie. Still did not work. Then I went to the Apple Store. After an hour it finally worked but when I got home, it didn't work AND my iPhoto application was missing. Tried to back up on external hard drive but it didnt work.
    Day 2. Explained the situation again to Apple employee at Apple Store. I bought an external hard drive that employee recommended and picked out. I went home and backed up my computer on the external HD.
    Day 3 (morning). Went back to Apple. Employee verified that my hard drive was backed up successfully. All my photos, music, and documents were successfully backed up. He was going to reinstall the operating system. He did that successfully. He showed me how to install the external HD info to the laptop. I went home and followed the directions. It was going to take about 2 hours. I kept monitoring the progress and everything looked good until....30 minutes remained. 30 minutes remained for a good 20 minutes. The ext hard drive stopped responding. I tried to canel but there were no buttons to push. I exited the program. I called apple support and they tried to walk me through it. My computer still was not recognizing that the exteranl HD was plugged in. I mad another trip to the Apple store and the emplyee confirmed that the extranal HD was not reading. He tried plugging it in to his computer and it still wasnt reading.
    He did give me a data recovery number to call. I asked if Apple would cover the cost and he said no. I called then and was quoted $700-$2000 to recover the data.
    Does anyone have any suggestions? When frustrates me more is that I followed every instruction and I did exactly what Apple told me to do. Now, ALL of my data is lost and Apple does not want to help.
    Does anyone have any suggestions on what to do next? I need help. =*(

    Hi rkaufmann--
    Thanks for the response.  I can say with confidence that that is not the issue.  I have at least 8 of these same WD external portable drives that are powered through their USB 3.0 cables, and I have never had problems with any of them.  Sometimes I connect them directly to my computer, and sometimes I use a powered hub.  Either way they work fine.  The drives with their own power source do not suit my needs.
    My question is specifically whether anyone has seen an issue where sometimes they plug a drive in and it is not recognized but then it continues to work.  In other words, the question I'm posing to other users is whether it sometimes happens that they connect a drive and it simply doesn't show up, but then they disconnect and reconnect and it goes on working fine as it should.

  • Mac OS X 10.9.1 will not read or write my WD external hard drive. How can I permanently make it so that it can without losing files on drive?

    I have a Macbook pro 10.9.1 that will not communicate with my WD external hard drive. Whenever I connect the drive, this pops up:
    NTFS-3G could not mount /dev/disk1s1
    at /Volumes/Elements because the following problem occurred:
    dyld: Library not loaded: /usr/local/lib/libfuse.2.dylib
      Referenced from: /usr/local/bin/ntfs-3g
      Reason: image not found
    I have important photos and videos on here of my family and can't lose them. I tried downloading multiple third party applications like Tuxera and NFTS 3G but they're only trials. How can I permanently set up my mac to read and write without risking to lose all my stuff on the external hard drive. Thanks in advance for any support.

    babowa, it seems like it is using Fuse & NTFS, so I don't think it's the classic WD + 10.9 mess, but extra WD tools & drivers can still break things MtTran.
    MrTran, if you must use unsupported disk formats on your Mac you must also consider actually paying the developers that made the trial software.
    It's probably a good idea to follow the developers removal instructions, reboot & then install one tool at a time.
    MacFuse, FuseOSX, NTFS-3G are all likley to confict if you run older versions so you need to be sure you are using the latest version. I can't remeber which one depends on the other, so you will need to read the manuals.
    When the disk is readable copy the data to another disk. You could probably do this from a Linux distro or Windows if OS X won't do it.
    If you insist on only using the trial versions you will need to reinstall Mac OS, copy data off this disk & reformat it.
    Is there any good reason for not using the Mac HFS extended format?

  • Final cut pro X not reading events in external hard drive

    I know this has been talked about in one way or another but I still am just not understanding. Any help I can recieve will be much appriciated.  Just purchased Final cut pro x and I have an external hard drive that I have some events on. FCPX will recognize the external hard drive but says there are no events in the external hard drive.  I checked 2 other external hard drives as well and all three FCPX will not read the events that are in the hard drive.
    Thanks
    Brian

    Brian, I notice that I have to have whatever drives connected before openeing FCPX; so sometimes when you plug in a USB3 drive or a Thunderbolt drive on the fly, even if though it mounts, it won't be recognized until you re-launch FCPX.
    Beyond that, it's important to make certain that you name the two folders in the attached drive exactly: Final Cut Events, and Final Cut Projects, and they should be on the root directory of the connected drive(s).  On all of my systems, if you have multiple drives connected with identical projects, FCPX actually picks one and warns you that there are two different identical projects and tells you which one it opened.
    If you take the time to provide Tom with what he's asked, he is extremely helpful and will likely identify the issue.

  • Right USB Port not reading External HD

    I'm using Mid 2014, Retina, 13-inch, Macbook Pro. I noticed that my right USB Port is not reading my 1 TB WD External HD but able to use mouse. How to fix it?

    According to the fount of knowledge that is Wikipedia…
    https://en.wikipedia.org/wiki/USB
    As with previous USB versions, USB 3.0 ports come in low-power and high-power variants, providing 150 mA and 900 mA respectively, while simultaneously transmitting data at SuperSpeed rates.[25] Additionally, there is a Battery Charging Specification (Version 1.2 – December 2010), which increases the power handling capability to 1.5 A but does not allow concurrent data transmission.
    It doesn't make sense to me that a 'low power' USB port would output 500ma unless it was working in USB2 mode.
    A unit load is defined as 100 mA in USB 1.x and 2.0, and 150 mA in USB 3.0. A device may draw a maximum of five unit loads (500 mA) from a port in USB 1.x and 2.0, or six unit loads (900 mA) in USB 3.0.
    You may want to get the genius to confirm the spec for both ports if you go along to a store, I guess they may have limitations.
    I would also boot into recovery mode just to see if the disk pops up in Disk Utility via both ports - that could indicate the port is being rendered useless by the OS.
    Apologies, you appear to have tried that already.

  • Flash will not read some installation cd

    I am using non IE version 17. Flash is set to AUTO RUN in my dvd rom. SOME installation CDs are read some or not. The error "FLASH NOT RESPONDING" is shown in the CDs screen. Drive "E" can be opened from a number of locations. The inserted cd is named. The results are the same. Currently I am trying to install a laser printer from BROTHER. The cd has a number of files on it including user manual, set up guide and of course the driver. ONLY the driver gives the error. The other files can be read and installed. I only need the driver to use/install the printer. I needed to go to the publisher to install the printer. This is an official copy from the publisher. It was replced twice with all 3 giving me the same results. Apparently it has something to do with FLASH. The player works well in all other respects. I tried opening the cd in my other players that allow it and all gave the same results, "CANNOT OPEN". Solutions please.

    To custom install iPhoto, you should be using DVD #1. 

  • I have an imac 2009 the disk drive is damaged and I have lost the passwords I need to reset passwords I tried booting with a macosx disk from an external hard drive but did not read the drive how else can I reset password ?

    I have an imac 2009 the disk drive is damaged and I have lost the passwords I need to reset passwords I tried booting with a macosx disk from an external hard drive but did not read the drive how else can I reset password ?
    I have a 2012 mac book pro can I use that to connect with firewire and load osx that way? and how woudl I do that?
    Thanks so much!

    To what password are you referring? Do you mean your user account's admin password? Or do you mean the master password for File Vault or do you mean a Firmware Password?
    For an admin password:
    Forgot Your Account Password
    For Snow Leopard and earlier
         Mac OS X 10.6- If you forget your administrator password
    For Lion/Mountain Lion
        Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
         When the menubar appears select Terminal from the Utilities menu.
         Enter resetpassword at the prompt and press RETURN. Follow
         instructions in the dialog window that will appear.
         Or see Reset a Mac OS X 10.7 Lion Password and
         OS X Lion- Apple ID can be used to reset your user account password.
    If you cannot do the above then try this:
      1. Boot to Safe Mode by restarting and after the chime press and hold down the COMMAND-S keys until a black screen with white type appears.
      2. At the prompt, type the following commands pressing return after each command line:
         /sbin/fsck -yf
         If you do not receive a "Filesystem OK" message then repeat this command until
         you do.  If after seven tries you still do not receive a "Filesystem OK" message,
         then the system is corrupted and needs to be reinstalled.
         mount -uw /
         cd /private/var/db/netinfo
         mv local.nidb local.old
         rm ../.AppleSetupDone
         shutdown -r now
    The second-to-last command above will cause OS X to think that the operating system is newly installed, and when the new owner starts up the computer it will send him/her to the startup wizard where he/she can start a new user without reinstalling.
    This last method does not actually change a password. It simply removes the user accounts and lets you create an initial admin account as if the computer were new out of the box.
    How to reset the OS X password without a startup CD:
    Reboot into Single-user Mode. Enter the following and press RETURN after each command line
       1. Type fsck -fy
       2. Type mount -uw /
       3. Type passwd <username>
    I have never tried this method myself.

  • MBP Not Reading HSF+ External HDD/Bootcamp Win7 Is ?!?!

    Hi - this is a strange one to me. After creating separate partitions (NTFS/FAT32/HFS) for my LaCie Ext-HDD, I been able to shuffle data between my Mac and PC computers (teach in a lab). However, one day - for no specific reason - all drives except FAT32 would not read. But what's more odd is that the HFS is readable only in Win7. What's more strange is that the NTFS drive is not, and is only readable in OS X (via some 3rd party software).
    Has anyone experienced an HFS HDD that's not readable in OS X (Snow Leopard)?
    Any advice on how to retrieve my data in OS X (the BC-Win7 is not large enough to support the data transfer) ?
    Thanks so much in advance!
    ACV

    I have a similar problem... tried to install winXP on an external HDD (read in FAQ after there you are not suppose to ><)
    anyway after I installed XP my mac cant find any bootable partitions (had OSX 10.6.3 and Win7 working perfectly)
    the wierd thing is when I boot off the intallation CD I can only see the Win7 partition and it says its empty.. even after I removed the HDD from my mac and hooked it up as an external HDD to my mac desktop the Win7 partition came up empty aswell but the mac partition was nowhere to be found...
    I really need my data back from my Mac partition I dont really care about what was on the Win7... please someone tell me there is a way!!

  • Mac not reading downloaded flash update

    my mac is not reading my latest version of adobe flash.  when i go to a program that needs flash to run, it asks me to download again.  why??
    i have uninstalled and reinstalled the program. 
    any suggestions

    Could you please let us know the browser that you use.
    Also, what you see in the Find Flash Player page.
    Thanks,
    Sunil

Maybe you are looking for

  • Read image direct from file server

    hello, need to help me somebody. A like to create form , what read image direct from file server, without store in database. Please help me.

  • How can we assign a JavaScript function on an TextInput action .

    Hello All , I have a requirement that on ON_BLUR event of a MessageStyledText , I have to call a JavaScript function . This however should not refresh the page ( No submit action to the controller) . So how can we tie the JavaScript function to the T

  • Use of special version

    Hello guys! I am currently working on the following business scenario: My client wants to use SEM BCS to prepare consolidation following 2 different accounting principles (let’s say P1 and P2). These 2 principles have common treatments: conversions,

  • OS file type for the 10g R2 installation

    I have a new AIX 5.3L system, and ready to install the 10g R2. When I check the file type of file system, I noticed that the contractor formated the hard drive (hdisk0) in jfs2 for OS itself and other three hds in jfs type and create the basic filesy

  • Mappigs my first warehouse

    Hello, Gurus! I use Oracle Warehouse Builder 10.1.0.4. I have done data source module and storage. Source - Database. When do deploy, I get 3 errors (except for deploy dimension time the script which I took from \OWB_ORACLE_HOME\owb\misc\time) ORA-00