Function to change proportions of canvas

hello,
I hope someone can help me with this.
I have an canvas that is representing a piece of paper.
By chosing an option in the radiobuttongroup i wanna change
the proportions and position of my canvas.
chosing landscape or normal to rotate the canvas (paper).
i have no idea to let the canvas change live, Please some
help here.

solution:
------------------------------- one canvas
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:states>
<mx:State name="landscapeState">
<mx:SetProperty target="{paperCanvas}" name="width"
value="250"/>
<mx:SetProperty target="{paperCanvas}" name="height"
value="193"/>
</mx:State>
</mx:states>
<mx:transitions>
<mx:Transition fromState="*" toState="*">
<mx:Resize targets="{paperCanvas}" />
</mx:Transition>
</mx:transitions>
<mx:Canvas width="193" height="250"
horizontalCenter="0.5" top="55" backgroundColor="#ffff80"
id="paperCanvas">
<mx:filters>
<f:DropShadowFilter alpha=".7" distance="8"
xmlns:f="flash.filters.*" />
</mx:filters>
<mx:Text text="Click the RadioButtons below to change the
shape of this &quot;paper&quot; canvas." left="10"
right="10" top="101" bottom="10"/>
<mx:Label text="Paper" fontWeight="bold" fontSize="16"
left="10" top="10"/>
</mx:Canvas>
<mx:RadioButton selected="true" y="330" label="Portrait"
click="currentState=''" horizontalCenter="-61"/>
<mx:RadioButton y="330" label="Landscape"
click="currentState='landscapeState'" horizontalCenter="58.5"/>
</mx:Application>
------------------ two canvases ontop of eachother (rotate at
the same time) ------------------
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:states>
<mx:State name="landscapeState">
<mx:SetProperty target="{paperCanvas}" name="width"
value="250"/>
<mx:SetProperty target="{paperCanvas}" name="height"
value="193"/>
<mx:SetProperty target="{paperCanvas2}" name="width"
value="250"/>
<mx:SetProperty target="{paperCanvas2}" name="height"
value="193"/>
</mx:State>
</mx:states>
<mx:transitions>
<mx:Transition fromState="*" toState="*">
<mx:Resize targets="{[paperCanvas,paperCanvas2]}" />
</mx:Transition>
</mx:transitions>
<mx:Canvas width="193" height="250"
horizontalCenter="0.5" top="55" backgroundColor="#ffff80"
id="paperCanvas">
<mx:filters>
<f:DropShadowFilter alpha=".7" distance="8"
xmlns:f="flash.filters.*" />
</mx:filters>
<mx:Text text="Click the RadioButtons below to change the
shape of this &quot;paper&quot; canvas." left="10"
right="10" top="101" bottom="10"/>
<mx:Label text="Paper" fontWeight="bold" fontSize="16"
left="10" top="10"/>
</mx:Canvas>
<mx:Canvas width="193" height="250"
horizontalCenter="0.5" top="55" backgroundColor="#ffffff"
id="paperCanvas2">
</mx:Canvas>
<mx:RadioButton selected="true" y="330" label="Portrait"
click="currentState=''" horizontalCenter="-61"/>
<mx:RadioButton y="330" label="Landscape"
click="currentState='landscapeState'" horizontalCenter="58.5"/>
</mx:Application>

Similar Messages

  • ColdFusion 11: allowedextforinclude functionality has changed. But the docs haven't been

    G'day:
    I am reposting this from my blog ("ColdFusion 11: allowedextforinclude functionality has changed. But the docs haven't been") at the suggestion of Adobe support:
    @dacCfml@ColdFusionCan you post your queries athttp://t.co/8UF4uCajTCfor all cfclient and mobile queries.— Anit Kumar Panda (@anitkumar85)April 29, 2014
    This particular question is not regarding <cfclient>, hence posting it on the regular forum, not on the mobile-specific one as Anit suggested. I have edited this in places to remove language that will be deemed inappropriate by the censors here. Changes I have made are in [square brackets]. The forums software here has broken some of the styling, but so be it.
    G'day:
    Remember this one: "ColdFusion 11: preventing files from being included? [WTH], Adobe?". I can confirm this verymoderatelyslightly contentious feature has been changed in ColdFusion 11, but the docs have not been updated to reflect the change.
    The issue is summarised thus (from the article linked-to above):
    [...]out of the box ColdFusion 11 will only allow the inclusion of CFML and HTML files. Why? They cite "for security reasons". Here's a quote (posted in the bugtracker, originally from the pre-release forums):
    "Vamseekrishna Manneboina: Yes, this was done as part of a security measure. You can now only include CFM/CFML files by default. You can specify additional extensions via a property called allowedextforinclude in neo-runtime.xml. By default, HTM and HTML file extensions are already added to this list/property, thereby allowing for inclusion of HTM and HTML files too by default."
    OK, I disagree there's merit in this, some others agree, others disagree. But... so be it. I actually thought - if I was in a charitable mood - that the people that were "for" this change made a reasonable case for its inclusion, so - whilst not agreeing with them - I was content to just shrug and go "yeah, oh well".
    Now this feature is still in the docs: "New in ColdFusion 11 - Restrictions", but this is not the way it now works. Initially I thought it had been removed completely (and I am now in the midst of retooling this article from saying that... as I only worked out what was going on 2/3rds of the way through writing it).
    I did a secure install the other day, and one of the first things I tested was this:
    <!---test.cfm---> <cfset message = "before"> <cfoutput> #message#<br> <cfinclude template="code.inc"> <cfset message = "after"> #message#<br> </cfoutput>
    <!--- code.inc ---> <cfset message="within"> <cfoutput> #message#<br> </cfoutput>
    And this all runs fine, as one would expect:
    before
    within
    after
    Next I checked neo-runtime.xml to see if the settings had been augmented to switch this off by default: but I'm buggered if I can see any reference to it anywhere.
    So I then checked ColdFusion Administrator to see if there was any hint of it there, as this was one of the things Adobe said they were going to do in their solution to this. And there it is:
    So by default now, anything is allowed. I figured I must have missed the setting in neo-runtime.xml, so changed the setting to "FOOBAR" so I could easily spot it, and there it is down @ /wddxPacket/data/array/*[16]/var[@name="compileextforinclude"] in neo-runtime.xml:
    <var name="compileextforinclude">    <string>FOOBAR</string> </var>
    And - having changed it back to something sensible: CFM, then the feature now "works":
    before
    #message#
    after
    However this is probably a worse security hole than the one they were trying to fix! It looks OK when looking at the render in the browser, but look at the actual raw mark-up:
    before<br> <cfset message="within"> <cfoutput> #message#<br> </cfoutput> after<br>
    We have unparsed CFML source code sent to the browser. This is awful. What if someone switches this on, and doesn't spot one of their old includes which has less-than-trivial CFML in it? It's now publicly accessible. Adobe have created a feature which has the possibility to leak source code to the outside world. How is that a security feature?
    Also interesting is that with the super-secure profile installed, this is still off by default? I would have thought it'd be on in this case?
    I still don't think this feature has been implemented properly, and it all still points even more to the fact the Adobe ColdFusion bods don't really know what they're doing.
    Anyway, I'll nudge Adobe to at least get the docs sorted out.
    Time for work (3min ago)...
    Adam

    Hi Adam,
    Regarding "What if someone switches this on, and doesn't spot one of their old includes which has less-than-trivial CFML in it?", yeah I agree that'd be a problem.  Hmm, maybe both this.allowedextforinclude *and* this.compileextforinclude should've been supported (instead of replacing the former w/ the latter as was done)?  Example:
    this.compileextforinclude="cfm,cfml,inc";
    this.allowedextforinclude="cfm,cfml,inc,txt";
    That way an exception could be thrown if cf|included file's extension wasn't in the this.allowedextforinclude list.
    Perhaps the above could be shortened to:
    this.compileextforinclude="cfm,cfml,inc";
    this.allowedextforinclude="txt";//implicitly includes * from this.compileextforinclude (since -compile- implies -allowed-)
    Dunno if that'd be confusing.
    Anyhow, just some thoughts..
    Thanks!,
    -Aaron

  • Planning function to change date field value in layout

    Hello experts,
                          I have 1 BPS layout with 2 date fields ( Start date, End date ). With a filter conditions, set of data comes in BPS layout on execution and 2 date fields also contain some value...I want to change values of these 2 dates...both the date fields are char infoobjects..in BPS layout, in planning function I got only 1 function ( Repost function ) to change the value of char infoobject based on some condition. but date field value is not the status field...i want to enter new date instead of old date..if i right exit function in that also i can change only keyfigs values..so please help me to solve this problem..
    Thanks & Regards,
    Priyanka Joshi

    Hi Priyanka,
    As of now master data planning is not so flexibly supported.
    Still u can refer the below link which is enhancement of standard Repost function,and can be used to change master data.
    [http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/10d2b273-0e12-2c10-fab3-a34bde559f92]
    As far as my knowledge goes u cannot directly input date in rows.
    regards,
    Rajendra

  • Using Javascript function to change the value of a request variable

    Have a javascript function that activates onchange within a form variable. Would like the javascript function to change the value of a request variable.
    The javascript function is able to obtain the current value of the request variable ( which is 0 ) however I am unsuccessful in changing the value to 1.
    I have been trying to use the following:
         var vchange = 'request.changes_made = 1 ;' ;
         eval(vchange);
    Any ideas?

    If the user makes a change to the content of the form, and then attempts to leave the form, a javascript alert pops up giving the user the option of cancelling the submit, returning to the form and saving it.
    If there have been no changes, then the user is free to migrate to another page.
    This process is to protect users from losing valuable information but not to annoy them with "R U Sure" messages.
    Knowing the status of the form content is important to the functionality of the application.
    G

  • Cr XIR1 to create a custom function to change the timestamp of a field

    Post Author: palm
    CA Forum: Crystal Reports
    Hi,
    I am trying to create a custom function to change the timezone of a field in the report depending on the timezone selected by the user in the prompt
    I wrote a SQL Expression to do this , but i ended up creating a bunch of expressions for each time zone ,
    So i am thinking of custom fuction some thing like
    TimeZoneConvertor:
    Fuction(TimeStampField ,  Timezone)
    Returns: Timestamp field with newtimezone as selected by user
    Hope you get this and please give me some kind of ideas to acheive this
    Thanks in Advance!!!!!!!!

    Hi
    goto se37...here u need to create a function group... then u need to create a function module. inside assign import/export parameters. assign tables/exceptions. activate the same. now write ur code within the function module
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm
    Look at the below SAP HELP links, These links will show you the way to create a Function Module
    http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm

  • In the new iOS-7 Safari, has the "reader" function been changed to eliminate the option to modify font size (and hence to modify the number of words per line), or is it just that I can't find how to do that?

    In the new iOS-7 Safari, has the "reader" function been changed to eliminate the option to modify font size (and hence to modify the number of words per line), or is it just that I can't find how to do that?

    iOS 7
    Seperate text size modification is no longer available in Safari Reafer.
    Use Settings.
    Settings >General > Text Size

  • Is it possible to restart a new PO release when partner function is changed

    Dear all,
    I have encountered an issue from one of our MM users. In the existing setting, system allows user to change the vendor code for the partner function PI (invoice presenter) after the PO has been partially/completely released. From my understanding, purchase order will be restarted to a new release if another release strategy is re-determined by changing the classification value(s). But for my case, the same release strategy need to be restarted.
    I would appreciate to anyone who gives valuable advise is helpful.
    Best and regards,
    Eddy Au

    I almost had this requirement too in my current project, but before I could find a solution for this, the client scrapped the idea. However, now that you have raised this issue, I'd like to figure this out too.
    There is one thing we could try, although I am not sure if this is correct. If we could generate a new print message if the PI Partner function is changed, and for the release indicator in your current strategy which has the 'Released' box checked, we could set the Changeable field to '6'. This way should the partner function PI change, it would generate a new message and restart the same release strategy.
    You could try this, I will also try and figure this out. This would only work assuming the first message generated when the document was saved is already processed, and now a new change message is generated.
    Regards,
    G. Coelho
    Edited by: Godwin Coelho on May 9, 2011 10:44 AM

  • Is there api function to change access mode and set a passcode to recording in meeting?

    Is there api function to change access mode and set a passcode to recording in meeting?
    When I'm trying to use "action=acl-field-update&acl-id=SCO_ID_RECORDING&field-id=meeting-passcode&value=MY_PASSC ODE" it just clean the password and do not set it or change.
    And "action=permissions-update&acl-id=SCO_ID_RECORDING&principal-id=public-access&permission- id=view-hidden" do not work too.

    There is not a specific API for doing this. This was discussed in the other Connect forum here, Adobe Connect User Community.
    For you call I would make the second part differently. Instead of 'field-id=meeting-passcode&value=MY_PASSCODE' I would call 'meeting-passcode=MY_PASSCODE' and see if that worked better.

  • The order of execution (of PL/SQL function calls) changes...why??

    select e.EMPID empid,
    e.name name,
    aatest.SETVALUES(2) z,
    aatest.TEST1() b,
    aatest.TEST2() x,
    aatest.TEST3() y
    from emp e
    where e.empid = 101
    order by e.name;
    when I execute this select statement...the order of function calls is as follows:
    setvalues 1st (call no:1)
    test1 (call no:2)
    test2 (call no:3)
    test3 (call no:4)
    Now...I introduce a join between the two tacles as mentioned in the query
    select e.EMPID empid,
    e.name name,
    e2.deptno deptid,
    aatest.SETVALUES(2) z,
    aatest.TEST1() b,
    aatest.TEST2() x,
    aatest.TEST3() y
    from emp e, emp2 e2
    where e.empid = e2.empid
    order by e.name;
    The order of execution of function calls changes to
    (I observed this using DBMS_OUTPUT.PUT_LINE)
    test3 (call no:1)
    setvalues 1st (call no:2)
    test1 (call no:3)
    test2 (call no:4) (the first and last calls swap!)
    i.e: it calls the last function in the select statement at the beginning
    instead of calling it at the last. Is it the normal behaviour? or whats going on
    here?
    Can somebody explain me, please....
    Details:
    the following four functions are defined in a package called 'aatest' and compiled.
    aatest.SETVALUES(2)
    aatest.TEST1()
    aatest.TEST2()
    aatest.TEST3()
    the Tables EMP and EMP2 are two tables defined in the same schema.

    Your "thinking" is wrong here. You can not use the column order to model your program flow. As SQL is set/tupel based, there is no given sequence of the execution order. Otoh you want to have a specific order in wich your functions must be executed otherwise the result will be wrong (or undefined). Thus here you need a procedural approach. This can be done by using PL/SQL for example.
    You would code your functions in that way, that they are working correctly independent from the place where they are called ie if function1 needs the setvalues function, this function must be called inside the function1 then.
    Are you sure you need all these functions in this procedural approach inside the sql-statement? This is mostly not needed and can be accomplished by using pure SQL. If not, may be your design is broken.

  • I do not manage to find the function to change a letter into exposing. I have MUSE DC 2014.2 and the menu does not display this possibility. I tried to import it IN design but that does not function either?

    I do not manage to find the function to change a letter into exposing. I have MUSE DC 2014.2 and the menu does not display this possibility. I tried to import it IN design but that does not function either?

    I'm not clear on exactly what it is you're asking, but if you're referring to changing opacity, you can change the opacity setting for the States of a menu item via the States panel and Control Strip.

  • Is there any function to change the width of forms'graphic ?

    Hi All,
    Is there any function to change the width of forms'graphic ?
    May be like set***property.
    Thanks,
    ke xiong

    No. Graphics cannot be handled at runtime.
    Francois

  • Is there any function to change the width of froms'graphic ?

    Hi All,
    Is there any function to change the width of froms'graphic ?
    May be like set***property.
    Thanks,
    ke xiong

    Hi;
    For your issue i suggest close your thread here as changing thread status to answered and move it to Forum Home » Application Development in PL/SQL » Forms which you can get more quick response
    Regard
    Helios

  • Fast Change function to change plants in sales order

    Hi All,
    Once the plant is determined in sales order, thru the option "edit fast change-->plants", one can change the plants at line item level.
    my issue is Iam using a BOM material in sales order. In the line item, the main material has plant 3019 and the component material has plant 3019..... now when  i use the fast change function to change plant 3019 to plant 4500 for main material and component material, the system changes the plant  to 4500 for component material but does not change the plant to 4500 for main material in sales order.
    why it is so. The bom material and its components are defined for both plants 3019 and 4500.
    Do the fast change of plant  function does not work for BOM main material
    regards
    sachin

    Hi
    As far as my understanding goes, the fast change of plants is there only for sales order line item. So it will not change at the BOM level.
    Regards
    Yatin Thakkar

  • Function to change status of the STS (Status and Tracking System)

    Hi experts,
    do you know a way to execute a function that changes status in the STS hierarchy?
    We have a web interface with a BPS layout in it, and want to change the status of the STS according to the legal entity that has been changed as soon as a user clicks on a button.
    Do you know a way (function or sth else) to do that?
    Any hint will be greatly appreciated!
    Thanks in advance,
    Thomas

    Have a look to these badis: CRM_ORDER_AUTH_CHECK (for authorization purposes), and CRM_ORDER_SAVE (To check the changes at save).

  • Function to change cost center of sales order

    hi guys.
      I would like to know if there is a standard function that change the cost center of a sales order. Could you help me?.
    Thanks in advance.

    Use this FM
    <b>BAPI_SALESORDER_CHANGE</b>
    In the Importing structure <b>ORDER_HEADER_IN</b> you have  the field <b>COSTCENTER</b>.
    Regards
    Kathirvel

Maybe you are looking for

  • How to find .pld files version in Oracle apps

    Hi, How to find .pld file version in Oracle apps using unix command or any other way. Regards

  • Problem Creating a HTTP Service in SOAMANAGER

    Hi all, I am having difficulty in setting up a HTTP Service in SOAMANAGER. I have generated the Enterprise Service - Service Definition Succesfully in SAP from a RFC Enabled Function Group( this is working fine). I then go into SOAMANAGER -> Single S

  • Negative sign disappears in Update Rule assignemnt

    Hello, I have a strange problem with an update rule. I try to copy a number with comma and sign into an attribute FI_TAXRT of an InfoObject. The number get ther ecorrectly but the sign deiappears. FI_TAXRT = Key Figure of type Number  (Dec =counter o

  • BT Infinity resync

    We have used BT Infinity for a while and performance is good when it works. The problem we have is that the router seems to disconnect all wireless connections for a short period and I can only assume that this is because the system is resynching wit

  • Secured dimensions - member access profile

    Hi, I have following question concerning secured dimensions As you all know, you can secure dimenions using "modify applications". There you have the options for "secure" of "R/W" If you choose to secure a dimension, you have the option read only and