Filled colour as a variable? and setting layer to not block the content underneath?

I wonder if it's possible to take the filled colour (filled with  myColor.setRGB(0x993366); like a colouring style) and set the colour filled to be a value of a variable in an if statement? if yes, anyone know how to do it?
and is it possible to set a layer's content so that it does not block any button underneath it? I'm trying use that movie as a mask but I do not want it to block any activity underneath it. or is it better to use the myMovieClip .setMask ( maskMovieClip )(I don't really know how to use this) I only need the masking to appear when a specific button is pressed. Hope my english isn't too confusing. Thanks.

Yes. If you check the documentation for the Color class you will see there is a getRGB() method which returns the value set by the setRGB() method. However it doesn't tell you what color something is, it tells you what color transform has been assigned to that object. So if you make a movie of a red square and you do this:
var myColor:Color=new Color(myClip);
trace(myColor.getRGB()); // traces "0"
Which could either mean it has been tranformed to black or that it has no transform (which is the case here.)
What you are seems more complicated than it probably needs to be. What are you actually trying to do? How are these clips having their transforms assigned? What does it mean that they are a certain color.
As for the layer thing. I have no idea what you are talking about.
BTW, here is something you didn't ask for. Using the on(event) type handler coding went out of style with the introduction of Flash 6 in 2002. It is a very inefficient way to code and is very difficult to maintian because you have to look through all your items to find the code. Most folks these days put the code on the timeline where it is all in one place and easier to maintain. Here is a great article about it:
http://www.quip.net/blog/2006/flash/museum-pieces-on-and-onclipevent

Similar Messages

  • PI Control Error Between Process Variable and Set Point

    I've developed a PI program that uses measurements from a pressure transducer as the process variable to control air pressure released from a motorized valve. The program works great at lower pressures, but as the set point pressure increases the error between the process variable and set point increases. I've tried several things....adjusting the P seems to initially increase the overshoot but the process variable always settles down below the set point....tried adjusting the EGU min and max values but no real pattern develops with this. It appears as the process variable get closer to the max EGU value of 70000 pascals the error increases.
    I've attached three screen shots showing the process variable curve and setpoint value. The graph of interest is the one in the upper right hand corner.
    Any recommendation or advice would be appreciated.
    tks, Terry
    Attachments:
    Low Pressure.JPG ‏267 KB
    High Pressure.JPG ‏398 KB
    Mid Pressure.JPG ‏266 KB

    Kyle,
    First off....I appreciate your comments. No...there is no value is system represented as U16.
    Actually errors start to develop quite a bit before the maximum. If you look at the mid pressure.jpg file you'll notice that the set point (~28125 Pascals) and process variable (~25625 Pascals) are roughly off by about 2500 Pascals. Then if you look at the high pressure.jpg file you'll notice that the set point (~53000 Pascals) and process variable (~45500 Pascals) are roughly off by about 7500 Pascals. Therefore it appears as the setpoint pressure increases towards maximum the error tends to increase.
    I was curious about something....the set point value I'm inputting into the PID.VI , shown in the high pressure.jpg file, is from EGU to percent.VI. It would look exactly like the EGU to percent VI feeding the process variable input of the PID.VI with the set point value feeding the EGU to percent.VI input. Would I be better off feeding the actual set point value to the PID.VI input instead of percentage?
    Thanks, Terry

  • So my Ipod touch hasn't been connecting to computer, or charging for a week or two until i turn it off completely and now i try to reset all content and setting, the circle goes round and round for like hrs(24) and it still does not complete the reset

    so my Ipod touch hasn't been connecting to computer, nor charging for a week or two until i turn it off completely and now i try to reset all content and setting,(thinking it may connect to the computer and itunes and also charge) but the circle goes round and round for like hrs(24) and it still does not complete the reset.
    pls pls pls pls help .
    i have tried alot of solutions, but non of them have worked.

    Have you tried walking it into the nearest Apple Store and asking for assistance there...?
    I'm guessing you don't have Apple Care on it.

  • Opening a new file in photoshopcc and the file name is displayed but no white working canvas. you can see it as a layer in the layers panel and if i draw on the grey area i can see int on the layer but not on the main screen.

    opening a new file in photoshop cc and the file name is displayed but no white working canvas. you can see it as a layer in the layers panel and if i draw on the grey area i can see int on the layer but not on the main screen.

    Graphics card is the problem.
    Trying to update drivers now.
    Thanks for your help
    john

  • Mac computers - FF 29.0 and 30.0 does not display the video layer in the Revolution Slider section of WordPress site. Why?

    Mac computers - FF 29.0 and 30.0 does not display the video layer in the Revolution Slider section of WordPress site. Why?
    We prepared simple Word Press web site. We used a Revolution slider plugin with HTML5 video layer. It works properly on Chrome, Safari, older Mozilla FF.
    But we had a problem on PC computers with FF 29.0 30.0 – after reinstall of browser everthing seems to be OK. The slider works. Unfortunately even the reinstallation on Mac computers does not help. There is no visible video on Mac FF 30.0.
    We are looking for some information what we can do to solve this problem. Could you help?

    Can you play the video on YouTube?
    *http://www.youtube.com/watch?v=Ugh2YvHU7D0#t=58
    Note that Mac lacks support to play MP4 files natively without using a Flash player.

  • HT1414 Hello, I have had to restore my iphone 4 to its factory setting as I had missed a number of updates and my computer was not recognising the device. I have now lost my contacts icon on the iphone and cannot find it even after syncing to my computer.

    Hello, I have had to restore my iphone 4 to its factory setting as I had missed a number of updates and my computer was not recognising the device. I have now lost my contacts icon on the iphone and cannot find it even after syncing to my computer.
    Would you know how to resolve this issue?
    Many thanks.
    Nilou

    I have now lost my contacts icon on the iphone and cannot find it even after syncing to my computer.
    Would you know how to resolve this issue?
    It's a pre-installed app and therefore cannot be deleted so you may have inadvertently moved it onto a screen or into a folder, check the utilities folder as this is a common one for it to disappear into.  Check all screens and folders and do a search in Spotlight, it will tell you if the app it still on your iPhone but unfortunately not where it is. If you find it on one or your screens or in a folder, press the icon until it wiggles and then drag it back to where you want it.  Alternatively you can reset your home screen in Settings>General>Reset>Reset Home Screen Layout.

  • TS2972 hi I have window 8.  My iTunes will not see my iPhone, iPad or Apple TV.  Firewall and setting all look fine.  The little box that is on the lower right that allows you to pick a device is missing, thanks

    hi I have window 8.  My iTunes will not see my iPhone, iPad or Apple TV.  Firewall and setting all look fine.  The little box that is on the lower right that allows you to pick a device is missing, thanks

    Windows 8 has not been officially released nor is it supported by iTunes.

  • I just upgraded my iMac to OS 10.8.5 from 10.6.8 and now I can not get the calendars on my Mac and my iPhone 4s (running iOS 8.3) to sync

    I just upgraded my iMac to OS 10.8.5 from 10.6.8 and now I can not get the calendars on my Mac and my iPhone 4s (running iOS 8.3) to sync.  I already tried replacing the calendars on the phone with those on my computer but nothing happened.

    Set up iCloud
    Set up iCloud (2)

  • Set Reader to NOT be the default pdf viewer

    During an msi install how do I set Reader to NOT be the default pdf viewer?

    Just to add to this question:
    On Mac OS 10.5, using Acrobat 8 Professional, every time Acrobat Pro starts up, I get the question "Adobe Acrobat 8 Professional.app is not currently configured to be the default application for PDF files.  Would you like to make PDF files open with Adobe Acrobat Professional.app instead of Preview.app?"
    My answer is "No," but my preference in this matter is not retained.  I get the question every single time I launch Acrobat Pro.  Where is the button labeled "And don't ask me again!"  ?
    I have combed through the Preference dialog and not been able to find any setting that seems related to this.  To be clear, I am not talking about what happens when I double-click a PDF file in the Finder.  I'm talking about what happens when Acrobat 8 Professional is opened directly.
    Thanks.

  • I was able to print from adobe digital editions up to two days ago and now I do not have the option to print.  The "Print" option is greyed out.  Please help.

    I was able to print from adobe digital editions up to two days ago and now I do not have the option to print.  The "Print" option is greyed out.  Please help.

    Printing Expiry option might be set by the Publisher at server level. Right click on the book and select Item Info to know about the book permission.

  • Duringsoft reset has not worked and i tunes is not catching the iphone

    Help my iphone has stopped working during the software update (IOS5) and the soft reset has not worked and i tunes is not catching the iphone!!!!

    Check here:
    http://www.ztemt.com/down.aspx?on=4
    V.2.0.6 for Mac universal driver       (I suggest you set your Safari prefences, General atb, "Save downloaded file to:" desktop, click the save to drop down, id desktop is not ther, click "other" and select Desktop from the left column. This will download to the desktop as a stand alone installer. After yhe download id complete, quit all applications, run the installer following the prompts, after is says done or complete, log out and reboot.
    Best

  • I forget the lock code and now I can not access the iphone. What I can do?

    I forget the lock code and now I can not access the iphone. I try to restore it, but ask me to go to iphone settings to which I have no access and I can not download the latest version of iOS to do it.
    Thanks!

    If you have a passcode to the screen lock that you've forgotten, restore the device from the computer to which the device is synced. For information and instructions, see:
    http://support.apple.com/kb/ht1212
    If that will not work, you'll need to put the device into Recovery Mode and then try the Restore again:
    http://support.apple.com/kb/ht1808
    If that still doesn't work, as a last resort try DFU mode:
    http://www.iclarified.com/entry/index.php?enid=1034
    If your device is running iOS 7 and you set up Find My iPhone (iPad/iPod),  however, then it has the Activation Lock on it and you'll need to enter in your Apple ID and password to activate the device after restoring:
    http://support.apple.com/kb/HT5818
    Regards.
    Forum Tip: Since you're new here, you've probably not discovered the Search feature available on every Communities page, but next time, it might save you time (and everyone else from having to answer the same question multiple times) if you search a couple of ways for a topic, both in the relevant forums and in the Apple Knowledge Base, before you post a question.

  • I have a 16GB iPhone 3GS. Tried synching my phone through iTunes (11.0.1 I think... on a 2009 Macbook Pro). Now when I connect to iTunes, it says it does not recognise the content on my phone. Is this because my phone (and laptop) are too old?

    I have a 16GB iPhone 3GS. Tried synching my phone through iTunes (11.0.1 I think... on a 2009 Macbook Pro). Now when I connect to iTunes, it says it does not recognise the content on my phone. Is this because my phone (and laptop) are too old?
    Also, when I tried to Restore the settings, an Error Message pops up that says " The iPhone software update server could not be contacted. The requested resource was not found.
    I'm trying to free up space on my phone by removing [literally] thousands of old photos which were originally synched to the phone, because I had forgotten to uncheck the photos button when I synched it ages ago.
    I have also tried synching it on my 24" iMac (running OSX Snow Leopard). But again, when I try restoring the phone through itunes, it says the file is corrupted. It sggests unplugging the device, and then plugging it in again. I have done this numerous times with no success.
    I'm guessing it must be because my phone (and versions of iTunes, and OSX) are all too old.
    Please can anybody help.
    Cheers,
    Dan_nz.

    There are multiple reasons that lead to issue. You should read the troubleshooting guide to get the right solution to solve the issue: iPhone, iPad, or iPod touch not recognized in iTunes for Windows - Apple Support

  • HT4623 I have followed the directions and my iphone is not installing the iOS 7.0.2.  My iphone is plugged into my lap top that has the most recent version of itunes.  It is a dsl connection.  Is that my problem?

    I have followed the directions and my iphone is not installing the iOS 7.0.2.  I have the most recent version of itunes on my laptop commuter.  my iphone is attached to my laptop via usb port.  The laptop uses dsl not wifi.  Is that my problem?

    Exactly what version of iTunes are you running? And DON'T say 'the latest version'... CHECK the version number. You need to be running 11.1 or higher.

  • I am thinking of buying a MacBook Air and am wondering how to get the content of my iPad into iTunes.

    I have iTunes on an old pc and am thinking of buying a MacBook Air. I am wondering how to get the content of my iPad on to the Mac as I know that sync only happens in one direction, from pc to device. I assume therefore that when I attach my pad to the new Mac it will sync to an empty iTunes and I will have lost all the content of my pad. I know I can restore purchases, but what about contacts, calendar, photos and music not purchased from apple. I have a fairly recent backup on a pen drive but it is a usb2 device and is formatted for a pc. Any advice would be appreciated.

    Do I copy my media library or from a backup.  I have a backup on my pc and on an external drive. This drive is usb2 and formatted for windows so I can't connect it to a MacBook Air to make the transfer.  Equally I don't think there is a way to connect the 2 computers via a cable ie usb2 one end and usb3 the other.  Will the computers talk to each other via wifi if I enable home share although I think this is only for music which still leaves contacts, mail etc.
    I am sorry to be such an ignoramus but any further help would be appreciated.

Maybe you are looking for

  • How to "flatten" a pdf in Adobe Acrobat X Pro

    Is there a feature in Adobe Acrobat X Pro similar to that in Bluebeam that allows the user to "flatten" the pdf? What this means is that images, text boxes and other additions to the pdf become seamlessly integrated into the pdf, guaranteeing they wi

  • Run Photoshop script from Bridge

    Hi I have a modified version of Image Processor script in photoshop scripting folder (it saves RAW files as smart objects) and would like to run it from Bridge (apply to selected images). Right now I can run script from File > Scripts Photoshop menu

  • Asking for sign in before starting the program.

    Photoshop cc started to ask me to sign in before starting the program, but, when i'm sure my email and password is correct and my internet connection is on, it can't seem to sign in, no matter how much i clicked 'sign in' it won't sign in. it's says

  • After a series of computer problems and rebuilds, CS6 will not accept my serial number? How do I

    I have had a series of computer rebuilds and finally replaced the computer, but CS6 will now not accept my serial number.  How do I contact Adobe to correct this?

  • Does Photoshop CS5, 6, or CC allow slicing with layer comps?

    I love the layer comps feature. It's a huge time saver and allows me to keep my files sizes smaller. One thing I just noticed since I normal hand off my PSDs to a developer is that the slices don't save with each layer comp. Is there any way to make