DO NOT Scale child sprites.

Hi every one, first time posting here..
I am trying to do some GUI stuff in AS3 but having issues with sprites.
I have two classes BOX_OUTTER and BOX_INNER both Sprite
box_outer has a draw function that sets up the
        private function draw_box()
            this.graphics.clear();
            this.graphics.beginFill(bgColor);
            this.graphics.lineStyle(borderSize, borderColor);
            this.graphics.drawRect(0, 0, 80, 80);
            this.graphics.endFill();

You haven't presented a question.

Similar Messages

  • How to get the name and value of an attribute on a node/element that is not a child

    Hello,
    Can someone shed some wisdom on how I can compare 2 xml nodes for differences.
    My main challenge is I need to use the attributes/values of 'ProductDescription' and 'Features' as 'key' to identify the same node in
    another doc with the same layout, but different content.
    I am having trouble getting the name of the attribute on the node, 'ProductDescription' and 'Features'.  I can only seem to get the node names, but not the attributes on the node.  I need the name, because it can be different from doc to doc, so
    I can't hardcode this.
    Can someone please help with how to retrieve an attribute name/value on a node that is not a child.  Here's an example of what
    my xml looks like:
    DECLARE
    @myDoc1 xml
    ,@mydoc2 xml
    DECLARE
    @ProdID int
    SET @myDoc1 ='<ProductDescription ProductID="1" ProductName="Road Bike">
    <Features  featureID  = "1" featureName = "body">
      <Warranty>1 year parts and labor</Warranty>
      <Maintenance>3 year parts and labor extended maintenance is available</Maintenance>
    </Features>
    <features featureID = "2" featureName = "seat">
      <Warranty>1 year parts and labor</Warranty>
      <Maintenance>2 year parts and labor extended maintenance is available</Maintenance>
    </Features>
    </ProductDescription>
    SET @myDoc2 ='<ProductDescription ProductID="1" ProductName="Road Bike">
    <Features  featureID  = "1" featureName = "body">
      <Warranty>2 year parts and labor</Warranty>
      <Maintenance>3 year parts and labor extended maintenance is available</Maintenance>
    </Features>
    <features featureID = "2" featureName = "wheel">
      <Warranty>1 year parts and labor</Warranty>
      <Maintenance>2 year parts and labor extended maintenance is available</Maintenance>
    </Features>
    </ProductDescription>
    I need to compare the attributes of 'ProductDescription' and 'Features' from @mydoc1 against @mydoc2 to see if they are the same based on those 2 nodes first.  If they are, then i want to show the difference in the child elements. 
    This will eventually be an outer join to give me the differences betw the 2 docs based on those key values (node attributes).
    I used node('//*') for the path, and value('local-name(../.)', 'varchar(50)') as element
    ,value('.[not(@xsi:nil = "true")]','VARCHAR(255)') AS new_value
    ...etc...
    but that only gives me the node names, and the child elements.  It does not give me back the attribute names and values from the node itself.
    Thanks in advance for your help.
    cee

    Are you looking for something like this:
    DECLARE @myDoc1 xml
    SET @myDoc1 ='<ProductDescription ProductID="1" ProductName="Road Bike">
    <Features  featureID  = "1" featureName = "body">
      <Warranty>1 year parts and labor</Warranty>
      <Maintenance>3 year parts and labor extended maintenance is available</Maintenance>
    </Features>
    <Features featureID = "2" featureName = "seat">
      <Warranty>1 year parts and labor</Warranty>
      <Maintenance>2 year parts and labor extended maintenance is available</Maintenance>
    </Features>
    </ProductDescription>'
    SELECT T.c.value('local-name(.)', 'nvarchar(50)') AS name,
           T.c.value('.', 'nvarchar(50)')  AS value
    FROM   @myDoc1.nodes('ProductDescription/@*') AS T(c)
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Sql server partition parent table and reference not partition child table

     
    Hi,
    I have two tables in SQL Server 2008 R2, Parent and Child Table.  
    Parent has date time, and it is partitioned monthly,  there is a Child table which just refer the Parent table using Foreign key relation.   
    is there any problem the non-partitioned child table referring to a partitioned parent table?
    Thanks,
    Areef

    The tables will need to be offline for the operation. "Offline" here, means that you wrap the entire operation in a transaction. Ideally, this transaction would:
    1) Drop the foreign key.
    2) Use ALTER TABLE SWITCH to drop the old data.
    3) Use ALTER PARTITION FUNCTION to drop the old empty partition.
    4) Use ALTER PARTITION FUNCTION to add a new empty partition.
    5) Reapply the foreign keys WITH CHECK.
    All but the last operation are metadata-only operation (provided that you do them right). To perform the last operation, SQL Server must scan the child tbale and verify that all keys are present in the parent table. This can take some time for larger tables.
    During the transaction, SQL Server holds Sch-M locks on the table, which means that are entirely inaccessible, even for queries running with NOLOCK.
    You avoid this the scan by applying the fkey constraint WITH NOCHECK, but this can have impact on query plans, as SQL Server will not consider the constraint as trusted.
    An alternative which should not be entirely dismissed is to use partitioned
    views instead. With partitioned views, the foreign keys are not an issue, because each partition is a pair of tables, with its own local fkey.
    As for the second question: it appears to be completely pointless to partition the parent, but not the child table. Or does the child table only have rows for a smaller set of the rows in the parent?
    Erland Sommarskog, SQL Server MVP, [email protected]

  • When scaling in page setup, 1st page prints correctly, but subsequent pages do not scale correctly/too large for the paper, parts of the text missing

    When trying to print in Firefox, and when scaling the page size in page setup, the first page prints correctly, but subsequent pages do not scale correctly and are too large for the paper, with parts of the text are being cut off at the top and right. This is not fixed by checking or un-checking the "ignore scaling/shrink to fit page width" in the print window, or by changing the scaling%.
    I am running Firefox 15.0.1, on Mac OS 10.5.8.
    The same problem happens in the print preview and if I save the print as a .pdf
    I have tried all the fixes in the how to's and others in various forums with no improvement.
    This happens every time I try to print a document scaled up or down only in Firefox.

    The 2nd page print scaling error has been an issue with Firefox on the Mac since 2011. People at Mozilla have not considered this a major problem. Try printing anything at less than 100% and you'll quickly see how every page after the first page being scaled wrong gets old real fast. The lack of a solution to this issue forced me long ago into using Safari as my primary browser. Good luck waiting until version 21 for a solution. Current release is 18.0.2.

  • Main content text does not scale down on iPhone

    Hello my Dreamweaver friends,
    I'm working on a site for a friend -- a simple fixed width layout (header, footer, sidebar and main content). It looks good on Safari and Firefox. But on the iPhone and iTouch the text in the mainContent area does not scale down to size with the <h> tags and the links on the Spry navigation bar. Is there a reason for that? Is there something I could do so that it all scales down?
    Another problem is that the right border I put on the Spry Navigation menu doesn't appear on my version of Internet Explorer.
    The link to the page, for what its worth, is http://www.daveharrison.info/tzs/index.html
    Thanks for any help!

    12 tips for iPhone Web Design
    http://articles.sitepoint.com/article/iphone-development-12-tips
    Also see this working Demo with media queries.  Resize your non-IE browser viewport and see what happens.
    http://alt-web.com/TEMPLATES/CSS-centered-round-boxes.shtml
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • "System is not a child system in central user maintenance network" problem

    Hi ppl,
    I have added one new role for a user id. After that, I log on using that user id. However the message "System is not a child system in central user maintenance network" appeared. What has happened and how to solve the problem? Thank you.

    This error message occurs when a user tries to logon to the CUA master system <u>and</u> when his account is <u>not</u> assigned to this logical system (see SU01: tab "systems", displayed only in the CUA master system).
    You need to define the CUA master system also as CUA client system and assign that system to the user master record; otherwise the user cannot logon to the CUA master system.
    Regards, Wolfgang

  • Com.bea.xml.XmlException error for "could not create child element"

    In Workshop 9.2, after I created a project with XMLBeans Builder Builder against the xsd's and created a web service control against a wsdl, I inserted the control in a client project for consumption. However, when calling into a method of the control, I got a com.bea.xml.XmlException, saying "could not create child element" for an object parameter passed in the call to the method. The relevant info in the server console looks like this:
    Caused by: com.bea.xml.XmlException: could not create child element 'wirelessPhoneNumber' for Wrapped XMLBean operation on '<?xml version="1.0" encoding="UTF-8
    "?><m:sendSMSMessage xmlns:m="http://service.xyz.com/provider/mobile/abc/sendSMSMessage/200701/"><ns:behaviorVersion xmlns:ns="http://service.xyz.com/entity/message/2003/">0</ns:behaviorVersion><ns:custNbr xmlns:ns="http
    ://service.xyz.com/entity/party/2003/">Hello</ns:custNbr></m:sendSMSMessage>'
    Does any have an idea what this is trying to tell me?
    Thanks in advance for any help,
    Jason

    Looking into it further, I think it's the parameter wirelessPhoneNumber, which is a complex type from xsd and a java object passed to the call sendSMSMessage, that is having a namespace problem, or other problem.
    This parameter object was from XMLBeans java binding. I created and set it up like this before passing it to the call:
    PhoneNumberType phoneNumberType = phoneNumberType.Factory.newInstance();
    phoneNumberType.setFormat(PhoneNumberFormatEnum.FREEFORM);
    phoneNumberType.setFullNumber(phoneNumber);
    Obviously, com.bea.xbeanmarshal.buildtime.internal.util.XmlBeanUtil.createWrappedXBeanTopElement of XmlBeanUtil.java had a problem creating a wrapper element for it.
    Any clue from anyone?
    Jason

  • Embedded objects do not scale on high-dpi displays

    I am using a new Lenovo Yoga 2 Pro laptop with a 3200 x 1800 display. Though in general the high-DPI scaling works to keep text sharp for most webpages (something that cannot be said for Chrome or Opera), Flash does not scale with the rest of the website. For example, when I watch a Youtube video, the text, objects, etc. scale appropriately, but the buttons for the flash player are very small.
    https://dl.dropboxusercontent.com/u/30375975/youtube_screenshot_problem.png

    Does this occur with all flash content?
    Please consider contacting the Adobe support team about this issue.<br>
    I think that maybe Flash Player is not compatible with this high screen resolution.

  • Autoscale in waveform view does not scale down

    Since, again, this follow-up question in another thread has not been answered, I will post it as a new thread here.
    The autoscaling in the waveform viewer does not seem to be working as one expects.
    When I switch to analog view the first time, it scales fine to the actual range of the signal.
    Once the signal exceeds the scale, it will rescale. But if the signal is within a smaller interval again after retriggering, it will not scale back.
    Hence, the autoscale seems to work only in one direction.
    I tried
    1) switching back to digital and then analog again - no rescaling
    2) Analog setting, toggle between auto and fixed - no rescaling
    3) trigger the signal again - no rescaling
    The only thing that helps is to restart the software, or to remove and add the probes again (which is very annoying, if one considers my other question here...   Probes in Waveform View added twice
    How can this be solved?
    Best regards
    Johannes

    I had been chasing this for months, along side another issue with the Mixed Signal Graph.
    Here's a side by side comparison of the problem. I also believe that in 8.6, if you send the Mixed Signal Graph a null array, it will break horribly, to the point that you have to delete it and read from the pallet again. (Waveform attributes become corrupt among other things) I am unable to replicate in 2009 so I think it's fixed.
    Attached is an example of the 'loose fit drift' issue.
    Reece 
    Attachments:
    Mixed Signal Errors.vi ‏40 KB

  • Direct Selection Tool Will Not Scale

    For some reason my direct selection tool will not scale or stretch any vector or raster imgaes - CS5.  I can only grab a corner and simply move the art.  Does anyone have a fix for this?  Maybe I hit some quick command keys and did not know it?

    The Direct Selection Tool (the white arrow, shortcut "a") has never had that capability. All it's ever done is select and move points. You need to use the Selection Tool (the black arrow, shortcut "v") to do those things.  If you want to scale, stretch, etc...  a sub-selection of an object, you can make your selection with the white arrow and then use the transform tool (shortcut "e") to modify what you selected.

  • XSD does not generate child vo

    Hie
    I am using latest adf 11g jdev and doing following:
    1. Created two EOs based on emp and dept tables and created association between these.
    2. Created Emp and Dept VOs and created view link based on the association
    3. Exposed accessor of dept as well as emp vos in vl
    4. Added this into AM data model.
    5. Went to service interface and generated it and selected Dept instance
    After doing all this I am expecting in DeptVO.xsd the child empVO as well but it is not generated.
    Am I missing any step?

    yes thanks i could find it and then posted at: http://adfjsf.blogspot.com/2010/12/adf-11g-my-xsd-does-not-include-child.html
    By the way a question regarding your comment on: Re: Passing complex object to adfbc based ws
    Here you said nested objects are not supported. Here, I can now generate parent VOSDO to contain child reference and so pass the nested object as well from client proxy.
    So, is that comment still holds good or some gap in my understanding? Please advise

  • Can not Scale Objects

    Hi folks. I have an odd issue I can't find a solution for (obviously), even searching the forums and google. I can select all objects in my drawing, I can see that the bounding has selected all objects - but I can not scale them.
    I'm using Adobe CS3, Mac G5 platform

    Don't forget the Scale tool (S). You can use it whether you use bounding boxes or not.
    Double-click on the tool or option-click on the scaling origin to get the dialogue window.

  • Wallpaper will not scale

    I am trying to set my lock screen photo and the bottom says move and scale.  It will not scale though.  I try to pinch the picture smaller but it bounces back to the zoomed in view.  How can I scale the picture down so I am not looking at only the headlight but the whole car?
    iPhone5 v7.0

    No one would know when or if an update is coming, unless Apple announces, which is rare.

  • WSDL 'portType' can not have child 'wsp:Policy' of

    hi experts,
    I get this error message. What is wrong can you give me pls. an advice
    to solve this problem.
    Cannot download WSDL from http://treman:8000/sap/bc/srt/
    wsdl/bndg_DDBAF5E4EC01D5F193F7000C29210034/wsdl11/allinone/ws_policy/document?sap-client=100:
    WSDL 'portType' can not have child 'wsp:Policy' of namespace 'http://schemas.xmlsoap.org/ws/2004/09/policy' !

    Dear SAP User and Developer,
    are you saying there is no other possibility to change the the port type besides
    the way with using "standard" instead of "ws_policy" in the URL.
    I think there must be existing another solution.

  • WSDL portType not have child Policy

    Hi,
    I am getting the following error when trying to test the webservice through wsnavigator.
    "Cannot download WSDL from http://SOLAR-DEV:8001/sap/bc/srt/wsdl/sdef_ZWEBTEST/wsdl11/ws_policy/document?sap-client=001: WSDL 'portType' can not have child 'wsp:Policy' of namespace 'http://schemas.xmlsoap.org/ws/2004/09/policy' ! "
    What is the wsp:Policy? Let me know how to solve it.
    Thanks & Regards,
    Dhanunjaya Reddy

    Follow these steps-
    (I) Checking Domain name of WSDL
    a) Open SOAMANAGER and navigate to "Business Administration" tab.
    b) Click on "Web Service Administration" link
    c) In "Search Pattern" search for your Webservice and click on "GO".
    d) Select the line and click "Apply Selection" button
    e) The details of your service definition is displayed. Click on "Open WSDL document for selected binding" link.
    f) Copy the URL. Make a special note of your domain Name. Eg: "http://xxxxx.com:"
    (II) Checking J2EE setting in SOAMANAGER
    a) Go back to your SOAMANAGER home page by clicking "Back" link.
    b) Select "Technical Configuration" Tab and click on "System Global Settings".
    c ) Select "Access Information J2EE server" Tab and note down your J2EE host settings.
    Note: If there are no J2EE host settings, then you probably get them from your BASIS team. Once you get the details, save the host settings.
    (III) Clearing the WSDL Port Type error
    a) Follow steps (a) thru (d) in Part I and click on 3rd link- "Open Web Service navigator for selected binding".
    b) Now your WS Navigator is open. Your work starts here. Provide the WSDL URL from Part (I).f step when asked for "Enter the WSDL URL of the Web service:". Click "Next" button.
    Possible outcomes-
    i) Overview page of your Webservice is seen. In this case you can click on "Test" link on top and continue ... OR
    ii) You get a error page namely-
    Cannot download WSDL from http://xxxx.com:Port#.
    If this is the case, then you need to provide the domain name noted down in PART I- step (f). and hit <Enter> This will open up the Overview page of your Webservice!
    Happy Troubleshooting!

Maybe you are looking for