Question/Baffled about how binding works

In an attempt to position my canvas in the center of the
user's browser (no matter what the size). I ended up using the
following code. The Application is set to a width and height of
100%.
<mx:Canvas id="primaryCanvas" horizontalScrollPolicy="off"
verticalScrollPolicy="off" x="{(parentDocument.width >
backgroundImage.width)? parentDocument.width /2 -
primaryCanvas.width / 2 : 0}" y="{(parentDocument.height >
backgroundImage.height)? parentDocument.height /2 -
primaryCanvas.height / 2 : 0}">
In particular, focus on the x and y attributes. This works as
I expect, as in, I get the result I want. However, I'm a bit
baffeld about the under pinnings about how/why it works :)
How does the canvas know to re-position itself each time the
browser is re-sized?
How would I make these bindings into a function so I don't
have to have my "code" intermingled with the actual mxml parts? Or
is this even possible?
I have read various things on binding but still have the
above outstanding questions.
Shiv.

This is how it appears to work to me...
The binding mechanism recognizes bindable variables in the
expression you give it. If any of those variables change, the
entire expression is re-evaluated. In this case,
parentDocument.width is a bindable variable.
One thing you can do is bind to a method call. The trick is
to pass the method a bindable variable so that the binding
mechanism calls your method whenever the variable changes.
Something like:
x="{getx(parentDocument.width)}"
And getx() does the calculations and returns an int.

Similar Messages

  • A few questions about how ZPM works.

    We have patch management (in ZCM 11.2.2), but honestly don't use it much. I have a few questions about how it works that might make me use it more, if I understand it more.
    If I deploy a patch (or a set of patches), it creates a bundle for that deployment. That bundle seems to include actions that deploy the actual patch bundles (correct?). Do I have to recreate a new deployment bundle every time I want to push a new patch? i.e. If I push a Java update, and a month later, a new one comes out, do I build out a new bundle with the new patch in it, or do I modify the old one?
    Once the patch is deployed, can I safely delete that deployment bundle, or should they just pile up?
    Is there a way to "auto-approve" patches? Lets say I always want a group of machines to have the latest Adobe Flash Player patches. Can I set up ZPM to automatically cache and push the latest patches for a specific product, or do I have to manually remediate each patch? (I'm thinking of how MS's WSUS does "auto-approval")
    I see most packages aren't cached in list, but occasionally, a patch is cached without me touching it. Why? Can I change what gets automatically cached?
    Thanks for any help/answers you can provide.
    -Adam

    Originally Posted by adrockk
    We have patch management (in ZCM 11.2.2), but honestly don't use it much. I have a few questions about how it works that might make me use it more, if I understand it more.
    If I deploy a patch (or a set of patches), it creates a bundle for that deployment. That bundle seems to include actions that deploy the actual patch bundles (correct?). Do I have to recreate a new deployment bundle every time I want to push a new patch? i.e. If I push a Java update, and a month later, a new one comes out, do I build out a new bundle with the new patch in it, or do I modify the old one?
    Once the patch is deployed, can I safely delete that deployment bundle, or should they just pile up?
    Is there a way to "auto-approve" patches? Lets say I always want a group of machines to have the latest Adobe Flash Player patches. Can I set up ZPM to automatically cache and push the latest patches for a specific product, or do I have to manually remediate each patch? (I'm thinking of how MS's WSUS does "auto-approval")
    I see most packages aren't cached in list, but occasionally, a patch is cached without me touching it. Why? Can I change what gets automatically cached?
    Thanks for any help/answers you can provide.
    -Adam
    For #1, (assuming you're not using baselines), you would check the new version of the patch (vulnerability) and do a new deployment.
    #2 - once you're satisified that the machines are deployed (or the best to your ability) you can delete the DEPLOYMENT package. It doesn't delete the actual vulnerability bundles to my knowledge. That's why it's a good idea to name your bundle deployments with something meaningful, IMO (and maybe include a nice desription).
    #3 - currently I don't believe this is possible. I know you can probably configure it to auto-download the patches, but not auto-deploy everything. Given the propensity for software to wreck other things (hello MS .NET patches), this is probably not a good idea. At least I'd never auto-download and auto-deploy any patches without testing them first, and certainly take my servers a little more cautiously than my workstations.
    #4 - I think you can configure what's cached, but I could be wrong.
    I know there's a lot of improvements coming in the pipeline, and it doesn't hurt to "vote" for your enhancements via the enhancement system (more work for Shaun--haha)
    --Kevin

  • Where can I get information about how apps work ?

    I have downloaded several applications to my iPhone. I don't know how to make some of them work. There must be a forum someplace to discuss the features and how they work. Someone know where it is ?

    If you downloaded them from iTunes then there are direct links to the makers websites, there will be instructions and tips on there.

  • Re Photoshop Elements 10 - who can recommend reference manuals about how to work between my existing Aperture 2.1.4 and my just purchased Photoshop Elements?

    I shoot in Raw with a Canon G9 Compact - after rapidly ditching iPhoto in favour of Aperture, I now want to learn to use Photoshop Elements together with Aperture - I can obviously buy something like the "Dummies" or the "Missing Manual" books about Elements 10, but what can you recommend that will help me learn about the best ways to move images between the two, and how to combine the best features of Aperture and Elements? Thanks for any advice.

    I will defer to Sierra Dragon, one of the strongest advocates of Referenced Masters on this forum, but I suspect that your upgrade would only engage about 32 GB of HD space.
    I have always used a Managed Library because I like the import-and-forget security.
    AP2 arranges each master, thumb, and preview into a single folder. AP3 rearranges things so that all of the masters are in one folder, thumbs another, and previews in another. This has the advantage of making it easier to find your masters, should you ever have to open the Package and look for them.
    AP3 is very nice and, with at least 4 GB of RAM, tends to be very speedy. Were I thee, I would force a TM back up and then turn it off while you run the upgrade. Turn it back on only when you are sure that all is well.
    If you search this forum for posts around the time that AP3 first came out, you will find that there was a list of cache and pref files that sometimes had to be deleted. I believe that subsequent versions of the AP3 incorporated this into the program as I have not heard of that trick being necessary for years.
    In my case, I had a 150 GB Managed Master Library, so I copied it out on an external drive and ran the upgrade there. Once I was sure that it had worked (and it did, first time), I copied it back. As you might imagine, 150 GB over FW800 took some time, but I had three copies of my Library at all times.
    A final note, if you are committed to using Referenced Masters (as I now am, having sprung for a SSD) remember that they are write once/read many. That is, they are NEVER rewritten once they are out on disk. I have mine on a dedicated 250 GB and it never fragments. Your Library, on the other hand, reads and writes all the time, keep it on your largest, fastest disk.
    Best wishes.

  • A bit confused about how -Suy works... Any help?

    I'm new to Arch, I've been using it for the past one or two months.
    I have been doing "pacman -Suy" every day now and everything went fine.
    Yesterday, Gnome 2.24 came through. So, I installed it. I noticed today that many parts of GNOME 2.24 have not been installed correctly. For example:
    -> The deskbar applet was not there
    -> The hamster-applet was not there
    -> The Dwell-click applet was not there
    Mostly, stuff belonging to gnome-extra meta.
    When i decided to "pacman -Sy gnome-extra", it told me that it was going to "reinstall" and NOT upgrade all the corresponding packages because they were all up-to-date (some of them were not present on my system), but then again told me to download some 27MB of packages. So I decided to proceed with the install and, lo and behold, eveything checks out OK.
    I'm baffled. Shouldn't "pacman -Suy" had upgraded everything the first time? I mean, check that gnome-extra was new and so re-install it with the new packages? What is going on here? Are there any more metas like gnome-extra that I should be upgrading by hand?
    P.S. Note: I'm using Pacman-color v3.2.1.b instead of pacman. Could this be responsible?
    Thanks!

    iphitus wrote:pacman -Syuyuyuyuyuyuyu works equally well
    Not equally... that will force a database refresh.
    Here's a script (Python for a change ) that can check if a locally installed group is complete or not. If not, it will list the packages that are missing. If you pass it group names as arguments, only those groups will be checked. If you don't pass it any arguments, all groups found locally will be checked. Be careful in how you interpret this because you might have installed a package that belongs to a group and it might tell you that xx packages belonging to that group were not found on your computer. Obviously, if you haven't installed the group, that's what you'd expect.
    The script does not install or update anything. It only displays some info. Save it as "group_checker.py" and make it executable. To check "gnome" and "gnome-extra", invoke as follows:
    group_checker.py gnome gnome-extra
    group_checker.py
    #!/usr/bin/python
    import sys
    import os
    import re
    from sets import Set
    from string import join
    local_group_cmd = 'pacman -Qg'
    for arg in sys.argv[1:]:
    local_group_cmd += " %s" % arg
    local_group_list = os.popen(local_group_cmd).read().rstrip()
    if len(local_group_list) == 0:
    exit()
    regex = re.compile('(\S+)\s+(\S+)')
    local_group_dictionary = {}
    for line in local_group_list.split("\n"):
    (group,pkg) = regex.search(line).group(1,2)
    if local_group_dictionary.has_key(group):
    local_group_dictionary[group].add(pkg)
    else:
    local_group_dictionary[group] = Set([pkg])
    sync_group_cmd = 'pacman -Sg ' + join(local_group_dictionary.keys())
    sync_group_list = os.popen(sync_group_cmd).read().rstrip()
    sync_group_dictionary = {}
    for line in sync_group_list.split("\n"):
    (group,pkg) = regex.search(line).group(1,2)
    if sync_group_dictionary.has_key(group):
    sync_group_dictionary[group].add(pkg)
    else:
    sync_group_dictionary[group] = Set([pkg])
    for group in local_group_dictionary.keys():
    missing_pkgs = sync_group_dictionary[group].difference(local_group_dictionary[group])
    if len(missing_pkgs) == 0:
    print "%s is complete" % group
    else:
    print "%s contains the following %d package(s) not found on your system" % (group, len(missing_pkgs))
    for pkg in missing_pkgs:
    print "\t%s" % pkg

  • I need details about how bindings work

    Hi All,
    I am having trouble figuring out when a binding ends. What I am doing is putting a reference to an object in the the request such as following.
        TheObject theObjectInstance= new TheObject();
        request.setAttribute("theObjectInstanceName", theObjectInstance);
        <h:outputText value="#{theObjectInstanceName.someProperty}"/>This works fine, however, when I try to use this method for an input, it doesn't work.
        <h:inputText value="theObjectInstanceName.someProperty}"/>The problem seems to be the value is never put into the instance, when the user hit submit. Is there some sort of work-a-round?
    Thanks,
    Grae
    Edited by: caalip2 on Jul 8, 2010 12:52 PM

    caalip2 wrote:
    Hi All,
    This works fine, however, when I try to use this method for an input, it doesn't work.
    <h:inputText value="theObjectInstanceName.someProperty}"/>
    Not surprising. "theObjectInstanceName" is not a JSF backing bean name and thus cannot be bound to JSF form fields. It might work to fill information into the form field, but JSF cannot recreate the object upon posting back because it is not a managed bean.
    The first case (displaying information) just happens to work because the expression language can read plain old java objects and their properties from the different scopes (request, session, etc.).

  • Where can I download usbsecure.pl and learn about how it works?

    Via Google I was able to locate a dead link on http://www.oracle.com/technetwork/server-storage/solaris10/training/index-jsp-139370.html# which references the usbsecure.pl. (Solaris is spelled Solars on that page btw).
    Is there somewhere I can download this from and also any documentation on how it can be used?
    Thanks

    The official information regarding this script is available under this MOS document ID : 1517229.1

  • My question is about how to use adobe photoshop.

    Yesterday I thought I downloaded phoshop. It is Adobe assist CS5. I need to use it for my pics. How do I get the side bar beside a picture to do improvements?

    Wesneli57 wrote:
    Yesterday I thought I downloaded phoshop. It is Adobe assist CS5.
    First off, Adobe doesn't provide downloads for Photoshop CS5 any more.
    Secondly, the phrase "Adobe assist CS5" doesn't ring any bells with me.
    Can you slow down and be a bit more thorough in your explanation of what you're trying to do, on what kind of computer, and where you're looking for downloads?
    Thanks.
    -Noel

  • Confused about how updates work

    Hello all,
    I just submitted my first update to an app and what I see in iTunesConnect confuses me.
    Firstly it looks like two apps now; the same one twice (though one says 1.0 and the other says 1.1). This wouldn't be confusing except for the fact that when i update information for the update it also alters information for the original app. For example I changed the release date for the update to some date in the near future; but I noticed this also changed the release date for the original 1.0 description as well; will that pull my app of the app store? Basically I am just curious how to ensure that when the update hits I go back to the top of my categories list again. Can someone shed some light on this for me? Thank you!

    The release date in iTunes Connect tells Apple the date before which you do not want your application to appear in the App Store.
    It has nothing to do with the "Release Date" as shown to users in the App Store. That can never be changed.
    If you want your 1.1 to have a newer release date, you need to create it as a completely new application. It will have to have a different name from your 1.0, since they won't let you have two applications with the same name; existing users of 1.0 won't be able to upgrade to it; and it will have no history, no reviews, and no reputation.

  • Round trip workflow with proxies between Premiere and AE / a more general question about how these programs work?

    Hi all,
    I'm new to editing with proxies in Premiere and have some questions about how to handle the relationship with After Effects. Say I have a rough cut (with proxies) and I want to send it to AE to do some effects. The simplest thing to do seems to be to replace the proxies with the originals in Premiere, send the project to AE and do my thing. But if I then want to send the project back to Premiere, it will involve the original files, which are too machine-intensive for me to edit. In theory, it seems like there should be a way to send the project with original footage to AE, do effects, send it back to Premiere, and then replace it with proxies to do further editing while retaining the effects.
    This leads to a confusion about how AE works. When I do an effect, am I correct in assuming that it does nothing to the original file? If that's the case, it seems like it shouldn't matter (in the editing stage) what file AE "applies" an effect to (proxy or original). But I feel like there's a hitch in this workflow. The same question could also be asked about going back and forth in Speed Grade.
    Perhaps there is no real answer to this and the best option is to save effects and grading for after I have picture lock, but sometimes that's not entirely possible or convenient, etc.
    Hopefully this makes some sense—It's a little hard to explain.
    Thanks.

    Hi Mark,
    Here are the specific sections of the manual that should give you the best explanation regarding the Check out/in workflow for FCP projects in Final Cut Server:
    Check out:
    http://documentation.apple.com/en/finalcutserver/usermanual/#chapter=7%26section =5
    Editing:
    http://documentation.apple.com/en/finalcutserver/usermanual/#chapter=7%26section =6
    Check in:
    http://documentation.apple.com/en/finalcutserver/usermanual/#chapter=7%26section =7
    -Daniel

  • Question on how networking works with new Macbook Pro

    Hi,
    I have a question about how networking works with my new Macbook Pro. This is my first laptop so am new to mobile computing. I am about to configure it to replace my desktop which uses a wired DSL connection. Once I have my Macbook Pro configured to run off the DSL modem, what happens when I take this computer to a location that has ethernet? Will just plugging in the ethernet cable be enough to get on line? Or is there further configuration work that needs to be done?
    I used a Windows laptop from work and all I had to do was plug it in to a hotel ethernet cable to get on line. However, this laptop was never configured to run on my DSL network so I am not certain if that makes things more complicated.
    Thanks for your help!

    Hi
    Your MacBook Pro should just work when plugged into an ethernet connection.
    Just check something, Open Network Preferences, you can select it from the Airport icon in the menu bar.
    In the left-hand pane click on Ethernet and just check that it is set to configure using DHCP in the right-hand pane, that's it.
    So when you plug in the ethernet cable it will ask the router for an IP address and off you go.
    I assume that any system you plug into will use DHCP rather than static IP addresses. If it is a static IP address, you will need to manually configure the ethernet settings by inputting the IP address and subnet mask info plus DNS servers.
    Usually it is done with DHCP and you don't have to do a thing and likewise your home DSL is DHCP?
    If not then you will have to change your settings, make a 'Hotel' setting which you can use when in hotels and keep your 'Home' set-up for when you are at home. In the pull down menu select Edit Locations to add new ones.
    Phil
    Message was edited by: Philip Tyler

  • How SCCM works internally, about design concepts and working principal of ConfigMgr?

    Hi Guys,
    Could you please recommend me any sort of data or link which explians
    how SCCM works internally, about design concepts and working principal of ConfigMgr.
    I have gone through many sites and videos but they only talk about how to work on SCCM with features however they do not talk about
    how SCCM works\inner working of ConfigMgr.
    Thanks very much in Advance!
    Regards,
    Chandan

    Not really sure what you're looking for here. Not much is explicitly published on the internals and most of what is "known" is anecdotal or based on reverse engineering by the community.There are specific things that have been documented fairly
    well, but those are scattered among various blogs. We can potentially address direct questions here in the forums or point you to that info, but there's not much to really direct you to as a single source because it doesn't really exist in general.
    Jason | http://blog.configmgrftw.com | @jasonsandys

  • Better process for introducing new features and explaining how they work

    There are all kinds of new features being added to the Creative Cloud app but knowing what they are and learning about how they work isn't the most user friendly process. The current process is read the release notes after updating to a new version. The release notes should hyperlink to the related features in the product help. It would be great if there was a "What's New" section for the Creative Cloud app itself with new releases which included an introduction to new features just like there is for the desktop products.

    This is a poorly explained reason about why is so important having a loupe in Photoshop. I've not also, used the best example, but I will. This belongs to the ADDITIONAL FEATURES: Loupe/Magnificator View:. Also, I will try to make my english clrearer, but here it goes:

  • Need advice about how to set up a NBA finals spreadsheet.

    Hi everyone,
    Some friends and I are playing a version of the Over/Under game during the NBA finals. My wife, being the geek she is, set up our score sheet in Numbers. Here's a screen shot of it:
    What we're looking for is a more elegant way to set this up. M D and V are the first names of the folks participating in the game. The colored cells indicated that those predictions were correct. What we'd like is a way to automate the counting to determine the winner (and perhaps report first, second, third place, etc.)... and a way to make the whole thing easier to understand at first glance.
    Any suggestions?
    My question really isn't a trouble-shooting issue. If it's not appropriate for this forum, I'm happy to delete it.

    Macademic1 wrote:
    My question really isn't a trouble-shooting issue. If it's not appropriate for this forum, I'm happy to delete it.
    Hi Macademic,
    Your question is about how to do something using Numbers. As a 'technique' question, it's appropriate to the forum. Good thing, as you'd have some difficulty deleting your post.
    The main difficulty I see is that with the positioning of the data, there doesn't seem to be an easy way to determine which bits Numbers should count as 'wins'.
    Here's a possible solution. Details under the graphic.
    Data table (on left)
    Column A: Descriptions. This is a sampling of your list, some repeated to show different entries for "Yes" and "Results".
    B: "Yes": This contains the numerical criteria to be met or exceeded to make a "Yes" answer correct.
    C, D, E: Columns for each player (identified in Row 1) to enter their guesses. Checked means "Yes", unchecked means "No"
    Formula in the Footer row: =Evaluation::B Returns the value in the footer row of column B of the Evaluation table.
    F: "Results": Results should be entered as numbers. See below
    Evaluation Table
    A: Formula: =IF(ISBLANK(Data::B),"",Data::F>=Data::B)
    checks if an entry has been made in the "Yes" column.
    If not, the formula returns the empty string ( "" ), if so, the formula returns the result of a comparison of the values in "Yes" and "Results"; TRUE if "Result" is equal to or greater than "Yes", FALSE if it's not.
    This column shows the choice (TRUE=checked, FALSE=unchecked) that will be evaluated as 'Correct' in the three checkbox columns.
    Note the warning triangle in A2 due to comparing the number (1) in "Yes" to the text string ("!!!!") in "Results". Any text is greater than any number, but comparing 'apples to oranges' this way will display a warning. Avoid the warning by using only numbers in "Results" (and "Yes").
    Also note the error triangles in Row 7. These result from 24:00 entered into the "Yes" column being interpreted as a duration, and the smaller 15:53 entered in "Results" being interpreted as a time (of day). (Originally 3:53 PM—I must have re-entered it as 3:53 at some point.) The error triangle in B7 is due to the formula there (and in C7 and D7) referencing A7 in its calculations. I removed the formula from C7 and D7 to allow the formulas in the Footer Row to show a result,
    The next two lines show workarounds to avoid the error messages.
    In Row 8, "Yes" and "Results" have only the number of full minutes entered, and that value entered as a plain number.
    n Row 9 the two cells have been formatted to contain Durations, and to show them as minutes and seconds, separated by a colon.
    B, C, D: Formula =IF(Data::C=$A,1,0)
    In English, If the guess is correct, 1 point, if not, 0 points.
    Footer row formula: =SUM(B)
    Conditional formatting is used to change the Fill colour for correct guesses.
    The rule shown is for the selected cell, E10. The same rule is used for C10 and D10. For other rows, the cell reference A10 must be changed to match the row being formatted (ie. in C8, the reference would be to A8).
    Regards,
    Barry

  • Coupon Apps and How they work...

    I would like a coupon app, but am confused about how they work?  Do you scan the barcoad of an item at the store and see if it finds a coupon for you?  And if a coupon is found, does it display a coupon for you to use at the register when you pay?
    For those of you that are using a coupon app, could you explain how it works?  I would appreciate it.

    I have used the old MyCoups app. The bar code was not available then. To get coupons, what I did was I sent them to my email address. After they were on my email acccount I printed them out. I know the new app includes the bar code thing. You can scan a barcode and after you do that, it'll show you where you can buy it

Maybe you are looking for

  • How do I cancel a charge that I didn't buy!

    when I updated my ipad mini to ios 7.0.3 an message appeared saying that I could download the iLife apps and the iWork apps, I downloaded them, and then, on the end of the month they charged me the cost of the apps! Help me! how do I cancel this!!!

  • Weblogic admin server

    How can I configure weblogic's admin server ? We're wanting to monitor statuses and processes using weblogic or maybe use a third party software such as BMC or QUEST.

  • Imported AIFF voice file sounds like MInnie Mouse on Helium

    Hi there, I imported an aiff file originally recorded on a Olympus DM20 voice recorder into GB2. Now it's all speeded up--playing so fast that it sounds like MInnie Mouse on Helium. I also imported it into itunes where it sounds fine. Can anyone assi

  • Deploy Forms 10g applications using Java Web Start (JNLP)

    I wonder if anybody can help me out to use WebStart for my Oracle Application . Currently our application is running using Jinitiator.recently i got to know that webstart is another method to run webforms as just as Client/Server ,am not able create

  • [SOLVED] Question About Downgrading to a Spinning Drive from SSD

    I currently have a laptop with an SSD and Arch Linux, and it's aligned specifically for SSD and configured as such. I ordered a brand new laptop, and decided that I will move the SSD from my current laptop to my new one, and put a spinning drive in m