Creating complex canvasProxy

Hello
I have a simple game based on examples of help sheet and drop. A main cloth forming the majority of the scene. In which I have a small canvas that contains an image and a label:

< mx:Canvas id = "myCanvas" width = "100" height = "100".
x = "100".
y = "200".
mouseDown = "doIconClick (event); ">
< mx:Image id = "img" height = "60"} width = '80' source = "assets/thumb.jpg" scaleContent = "true" horizontalCenter = "0" / > "
< mx:Label id = "thumb_label" text = "The Label" fontWeight = "bold" width = "100%" textAlign = "center" fontSize = "10" y = horizontalCenter '70' = '0' / >
< / mx:Canvas >

in the doIconClick() function, I have the standard code canvasProxy since the help file (twisted for color):

var canvasProxy:Canvas = new Canvas();
canvasProxy.width = getScaleSize (100);
canvasProxy.height = getScaleSize (100);
canvasProxy.setStyle ("backgroundColor", "#ff0000");
DragManager.doDrag (dragInitiator, ds, event, canvasProxy);

That creates just a square red semi transparent that you see when you start to drag the canvas autour. What I want of course is to fix things so it looks that you drag the image and name, as you can see, if you drag the same thing from a horizontal list, for example. I feel I should add a child somehow canvasProxy for the image and label element object, but I'm quite confused on how to go on this issue, if this is even the right approach, or even if it's possible!

Thanks for any help,
Rob.

addChild, it is then!

var canvasProxy:Canvas = new Canvas();
canvasProxy.width = 100;
canvasProxy.height = 100;
canvasProxy.horizontalScrollPolicy = 'off';
canvasProxy.verticalScrollPolicy = 'off';

var imageProxy:Image = new Image();
imageProxy.source = "thumbnail.jpg;
imageProxy.height = 60;
imageProxy.width = 80;
imageProxy.scaleContent = true;
imageProxy.setStyle('horizontalCenter','0');
canvasProxy.addChild (imageProxy);

var labelProxy:Label = new Sun;
labelProxy.text = "label";
labelProxy.y = 70;
labelProxy.setStyle ("fontWeight', 'fat'");
labelProxy.setStyle('horizontalCenter','0');
labelProxy.setStyle ('textAlign', 'center');
labelProxy.setStyle ("fontSize', '10'");
canvasProxy.addChild (labelProxy);

Tags: Flex

Similar Questions

  • Creating complex filters in OBIEE

    Hi gurus,

    Can you pls explain me how to create complex filters in OBIEE.
    I know simply by pressing Ctrl + column to get filters added to the list of filters.
    I want a filter with great affection as

    (one is not eaual to 'a value'
    or
    b is in the range of "certain scope")
    and
    c is less than or equal to a value

    Basically, I want to learn how to join filters with or condition and how to create nested filters

    Thank you
    RC

    After adding the second filter click on the AND it will change to OR, when you add the third filter (or filter more) you have the ability to group filter
    You can change the grouping based on your needs.

    In your case, add first three filters, now click on the first, AND he's going to do.

    Thank you
    Vino

  • How can I create "complex" data segments

    I'm new to Eloqua and I find little by little my way around the system, but I have a question that relates to the creation of data segments that target the roles of work in my database.

    Let me explain what I'm trying to achieve:

    I market a software solution that is relevant to industry and job roles in this industry, so I'm working on creating a data segment that will be:

    British companies to target only in the banking sector and the contacts with the 'risk', 'audit', 'respect' or "CISO" in their job title.


    If I had to create it in other email tools I used I would use something like:

    (British industry AND contains banking AND (job title 'risk' OR 'check' OR 'compliance' OR 'BRS'))

    But do not see a way to do nested instructions.

    Any help would be greatly appreciated.

    Thank you


    Mark

    Hi Mark,

    Welcome to the Eloqua community!  To execute nested statements / brackets, you'll want multiple selection (Ctrl + click on a Windows PC) the criteria you wish to combine and click the 'Groups' button at the bottom of the editor of segment.

    To nest statements in brackets, do the same thing, but bracket and additional criteria, select "group".

    See you soon,.

    Scott

  • Display for a query objects creating complex

    Hi all

    I am trying to create a VO of inner query, but I can't understand what kind of binding variable to select.

    PFB the scenario:
    I have 2 tables, say orders, products
    I'm supposed to run the following query:
    Select * from orders o, p where o.order_id = 123 and p.product_id in (111,222,333...)

    In the original Version when I'm trying to create, I need to create 2 bind variable
    1 for the command id and one for the product id
    the problem I am facing with is to select the type of the variable binding
    I select "Integer" type for the variable binding command id, but I am able to understand what must be the type of liaison for the product id variable.
    I tried to use the 'Picture' type, but in the query, it is "=: bindvariable ' operator instead of ' in (: bindvariable).

    In addition, please note that the number of product_id is not fixed and is dynamic.

    So my question is:
    What should be the type of binding variable that should be used (by product_id case)?
    In addition, please advice if it's how even to apply the criteria in the AMImpl class.

    Thanks in advance.

    Thank you
    Varun

    Varun,
    It won't work because you cannot use bind variables in the queries IN sql.
    Jobinesh has bloged a solution
    http://jobinesh.blogspot.com/2010/12/using-oraclejbodomainarray-with.html and http://jobinesh.blogspot.com/2011/07/tips-on-using-oraclejbodomainarray-as.html
    or my 'trick' explained here http://tompeez.wordpress.com/2011/08/21/extending-viewcriteria-to-use-sql-contains-4/ could help solve this problem.

    Timo

  • Newbie: Discoverer Desktop - is there a way to create complex conditions

    Hello

    Using Discoverer Desktop, is it possible to do the following:

    A = 1 or (A = 2 and B = 4)

    Pls advise, thx, Sandra

    Hi Sandra,.

    Try this:

    Create new condition. Create A = 1, then click on "GOLD". In the 2nd line that has been generated all the A = 2. Click 'Add' or 'GOLD' to add another condition '' OR ''. Set B = 4.

    You should now have a condition 'OR' with 3 rows. Hold the Ctrl key and click on the A = 2 and B = 4 rows (generally you must click on the left side of the bit corresponding to the A or B).

    You release Ctrl and click on "AND". This should be the condition that you are after.

    You can also click on the "GOLD" in the condition box (grey bar on the left of it) and then click on the button "AND". This will generate a condition 'AND' level higher, like this:

    B = 2 and (A = 1 or (A = 2 and B = 4))

    I hope this helps.

    Kind regards
    Lloyd

  • Creating new themes

    Hi all!

    I'm looking to create complex models that my clients can not spoil.

    For example, I would like to create multiple text boxes that remain locked in position so that my user can only fill in the blank, do not move the box without going and the masters edition.

    Any advice or resources on the mastery of Keynote would be appreciated! Thanks to you all!

    When the text Place holders are placed on a master, the text box resulting on a slide can still be moved.

    Strangely, put on a mask, shapes are locked automatically on the slides.

  • Waveform complex of FPGA (PXI-7852R) Lock-in Amp.

    My main goal is to create a lock-in that compares complex signals (not only sine, square, etc.) point by point.

    I have demonstrated that I can use DDS to create complex waveforms of reference.

    Now I want to read an analog input and compare (i.e. multiply and integrate) the acquis of signal with the reference signal.

    Attached below is my attempt. I changed the DDS to produce a sinusoidal signal for testing purposes. I proved to myself that the sinusoid of reference is correct (I wired it to an AO and checked) and sine wave sampled is correct (I also have it wired to an AO and checked).

    Unfortunately, the output of the average does not take into account the phase of the two signals. If I change the Ref wave phase or the acquired signal or freq, the output of the average remains the same... random osccilations from + 2 to-2 V. The average averaged for the number appropriate to points, as long as the number of points is less than 70 ks (convert to 'wave form cycles' host vi).

    I suspect that there is a mistake in my 'mean.vi '. I created it by changing the average VI found on the FPGA palette. I replaced the 'high through put' multiply by the digital multiplication (from the top through put does not work on the objectives of the CR). Everything else is the same.

    Any suggestions?

    Thanks in advance

    Proj1.PNG a screenshot of my FPGA code and host mean.vi

    Found the problem!

    The product of two signals is nonsense. Reduce the amplitude of the two signals cleaned straight up. Apparently something was saturate...

  • RE: Join complex

    Hi Experts,

    I have a few questions about the complex joins

    1 > first when import us the tables in the physical layer, we joins from FK for the tables according to our requirement so layered MDB, we create new business model then again why to do complex layer of MDB already join there are joins between the tables in the physical layer , the scenarios that we do the complex join if we do not the complex join what will happens.

    2 > if we FK join instead of complex layer MDB join what will be the result.

    Thanks in advance,

    Hello

    We have two joins in OBIEE a foreign key join and join another complex. Above all 99% of the cases we use foreign key join physical layer.we use a complex join in a phycical layer mainly in the three scenarios.

    (1) when it is extended to the join conditions.
    (2) when we join a key of a table column with a column not key in the other table.
    (3) where the operator is other than the equal to operator.

    In these 3 situations, we use a complex join in the physical layer.

    Then we're we have already joined in the physical layer then what is the need to create complex joins in right MDB layer.
    The answer to this question is each user runs a report that will generate the logical sql query our OBIEE includes only logic sql query this logical query generated sql logic-based attend the MDB layer.
    Based on this logic joins only it will create more sql query optimization. And one of the reasons for creating logical joins

    If we want to specify table conduct is possible only Suiloidi complex join layer MDB.
    and if we want to specify the type of join is possible only Suiloidi complex join layer MDB
    and if we want to specify cordinality is possible only Suiloidi complex join layer MDB

    and another is my tool is not able to identify the facts and dimensions because it has no intelligence, we need to incorporate the intelligence giving logical joins only identifies the facts and dimensions.
    We must therefore create logical joins layer MDB...

    Give me like, if you aresatisified with my post.

    Thank you

    Menama SAI

  • Conversion of files in complex cases - Ramifications?

    Hi all

    With the help of the experts here, we have implemented complex cases in the new business district with the massive performance in discoverer gain.

    I would like to assess the impact to existing custom files in complex cases, we create complex files and handle file and element ID to match that of the custom folder (and its components) so that records current users do not see the difference.

    I know that this is a bad approach, but would like to know if anyone has tried this approach and what are the ramifications involved?

    Thank you.
    VK

    Hello

    Certainly a good idea to move folders custom to complex files even if you just put your queries in a view. As long as you keep all the keys for folders, and the items the same developer and rewrite all joins, LOVs hierarchies, etc., while there should be no ramifications. Rather than delete the folders custom, you can change folder developer keys and move them to a business district where users can not access then if there is no problem, that the process could be reversed.

    Rod West

  • Need help with the lettering complex

    BMW Cert logo1.jpg

    Well, I try not to ask questions on this forum without trying things myself. I understand the time of other people very important. In any case, I took a class at a technical college and have a home classroom course that I'm doing right now. Unfortunately, at this time I need assistance. This logo needs to be recreated for vector art because it will be printed on a very large substrate. The customer has no access to vector art.

    I need help... I'm very proficient with the basic tools, the pen tool including. However, create complex lettering like that, I don't have a lot of experience with.

    The lettering is so my * right now. Also, I can imitate the gradient for bars decently, but get with the little rounded in angle gradient effect.

    I do not beg for help, but I might help! ?? I'm not looking for someone to do the work, rather to provide advice, so I can go my way through this. The customer contacted my boss today and he needs Monday for a meeting, so I'll have a project to do over the weekend.

    To print the black spot. Any advice/suggestions will be greatly appreciated. After work tonight, I'll go in my classroom in a book to pick up useful tips.

    Thank you all,

    Andrew

    There are many stylistic variations of this sort of thing. Your screenshot is too low to discern the exact treatment used for sure. Who says:

    This takes about 5 minutes and translates into a clean and economic construction with a minimum of access roads.

    That color is black spot.

    Two shades: Spot black and 20% tint of black spot.

    All paths shift (the inner paths of all the characters) are a single compound path and receive a fill of three-stop linear grad at 0 degrees.

    All original paths (paths outside of all the characters) remain separated and a three-stop linear grad to 120 degrees fill is applied (so each external character has its own grad which can be set individually).

    Small individual adjustment of the grads on each external character can match very closely the layout of tones of bevel of the original that you are trying to imitate. Keep things simple. Consider shading Emboss edges carefully and try to see them as linear graduates extending on the entire character and not as a pile small tedious individual details of packaging around the character. Then do shading with grad stops as little as possible. Understand how to "shake" or "refine" travel between the grad stops moving the gamma pointers that lie between each pair of grad adjacent stop biased towards a stop or another. More transitions - particularly on bevel veneers - the most 'sparkle '.

    JET

  • Complex is associated with the physical layer

    Hello Experts

    Anyone know if we can create complex joins in the physical layer if so why we do and on what scenario we create complex joins in the physical layer?

    Published by: Newby 13 Sep, 2010 14:10

    Hello
    >(Interview question)?

    Do not post here the interview questions, take a scenario and build get to us, we will help you

    http://forums.Oracle.com/forums/search.jspa?objid=F378&q=complex+joins+physical+layer

  • Complex type for AQ adapter

    Dear friends!

    I would like to create Anaqa for my custom objects. Because we are aware that the measures are
    1. set up the user grants
    2 create the object
    3 Create Tables of the queue (in_queue and out_queue)
    4. start the queues.

    The process is simple, when the object to create is simple, for example, a student. If the object can be created using-

    Create type STUDENT_TYPE as OBJECT)
    ROLL_NUM VARCHAR2 (10),
    NAME VARCHAR2 (20).
    AGE number
    );

    But in my case, I have a complex object, for example-

    Vend.
    ID
    Name
    Equipment (occurs several times)
    Your comments (occurs several times)

    Equipment-
    ID
    Description
    Rate

    Your comments
    ID
    Description

    Here I am fix, how, I should create the objects... If someone of you could give me some advice, it should be a great help.

    Kind regards

    SwapSawe.

    Hello

    You can create complex objects types as below:

    Create the type_equipement type is OBJECT
    (
    ID NUMBER,
    Description VARCHAR (100),
    rate NUMBER (10.2)
    );

    Create the type Equipment_Arr is VARRAY (50) of type_equipement;

    Create the type Feedback_type is OBJECT
    (
    ID NUMBER,
    Description VARCHAR (100)
    );

    Create the type Feedback_Arr is VARRAY (50) of Feedback_type;

    create the provider type is OBJECT
    (
    ID NUMBER,
    name VARCHAR (100),
    Equipment Equipment_Arr,
    Comments Feedback_Arr
    );

    Size of the varray will not depend on the presence of equipment and your comments.

    Kind regards
    Sachin

  • With the help of MAX vs Teststand for switching

    Can someone explain what is happening here?

    I went to MAX and gave all my or alias switches (MUX).  This is the tab of channels/exclusions.  According to the diagrams tab is a road named column groups. I can give my Relay connection (as close to relay 2) alias here... like 'Close Relay 2 '.  If I click on relay 2 on the diagram, it shows a link between ch2 and com.  Fine.   Now when I go in Teststand > tab properties > switch > activate the change... I have the 'operation' 'Connect'  Is - this redundant?  I already connected when I called him.  If its Teststand because does not know what I want, when I call this particular alias he "cut" when I select disconnect from the drop down?

    You would say I leave ALL my relay open in MAX and just 'Connect' 'disconnect' in Teststand?

    Can you suggest what should be the other options though:

    I want to connect 1 or several relay for this sequence, do tests, then disconect the relays?  -What connection Liftetime?  So 'Step '?

    What is multimode and when and how to use it?

    Included some screenshots

    Thank you!

    Clint

    Hey Clint,.

    NEITHER Switch Executive exists in MAX and TestStand (and LabVIEW, etc.).  You can program individual routes to TestStand, or you can beforehand create complex route groups to the MAX, and then call the road/route groups TestStand.  Suppose for example that you want to connect A to B, C, D, E and F, you can create a great course called 'channels' band in MAX, then add explicit connections to this group of ranges (from A to B, C, D, E and F).  You simply connect 'great channels' now in TestStand and NI Switch Executive will do the rest.

    While you can connect channels in MAX, the intention is that you create route groups in MAX and then use these groups of road to the test (if for no other reason than TestStand is automated so that MAX is not).  At the end of the day, you can use the SW but you wish to, but we intend to the run-time execution to automate in teststand.  Think that MAX is the debug/configuration environment.

    Connection Lifetime is how long the relays must stay in touch.  For example, inflicting on life 'Step' means that, after this step TestStand is completed, the relay will be disconnected.

    Desktop mode is the concept that a relay can be connected more than once in the software.  Until the connection number is 0, the relay is open.  If the number of relays is greater than 0, then the relay is closed.  For example, suppose that you have two different tests that can run simultaneously, and they share the same relay.  Specifically, 1 tuberculin relay A and B, while the tuberculin 2 relay B and C.  If you are able to run both events at the same time (function of your DUT), then when you connect test 1 and 2 at the same time, relay A and C will be all both have a connection of 1 account (they were connected once), but the relay B will be 2 connections.  Thus, when testing 2 finishes and disconnects its associated relay, test 1 could still be running; Since the relay B will have a connection of 1 account after test 2 'disconnects' relay B, relay B will always be closed and 1 test will not be interrupted.  The concept takes a minute to wrap your head around, but finally it is quite powerful.

    OR Switch Executive is a very powerful program.  Once you've played a little with it for a bit, it is intuitively easy, but there is a curve of rampup higher compared to our other software program switch (OR-DAQmx, OR-Switch, etc.).  OR Switch Executive is particularly well suited for TestStand.

    Let us know if you have any other questions or if my answers are not clear.  Have a great day!

  • How to connect 3 end points to 1 row reserved

    Is it possible to set up a group of MAX lines linking 3 end points to a single line of a matrix card 4 x 128, which was reserved for routing?

    I need to have all four rows defined as reserved for routing so I can set up all my other road groups by specifying endpoints.

    Thank you
    Jason

    Hi Jason,

    I guess you don't use OR-Switch 2.3.  To my knowledge, NI Switch Executive came out only with the following versions: 2.0, 2.0.1, 2.1, 2.1.1 3.0.

    The option you listed is not your only option, but this is the option I recommend for older versions of NI Switch Executive.  Don't forget that you can use groups of road to store the line separate to the Poles, while only a call connection is required.

    One extra option that you have is to use two NI Switch Executive devices virtual.  A virtual device a module the PXI-2532 lines reserved for routing and the other virtual device is not.  Whenever you want to connect more than one column on the same line, you may close the session to the 'reserved for routing' virtual device and log on to the other virtual device (where you connect several end of column points to the same line).  Note that you can not sessions open to two virtual devices at the same time because they try to share the same hardware.

    Upgrades to NI Switch Executive 3.0 a possibility?  There are two additional functions, you enjoy:

    • Intuitive graphical Configuration utility
    1. Point-and-click graphical configuration environment - allows rapid development of switching systems
    2. Change channel aliases in place
    3. Create complex routing groups by clicking matrix points one at a time
    • Import/export of Microsoft Excel
    1. Easily export the NI Switch Executive configuration in Microsoft Excel environment
    2. Increase the number of channels by simple text manipulation
    3. Easily import files newly edited in NI Switch Executive

    It would be great if the upgrade have been an option.  Let me know if you have any other questions!

    Chad Erickson

    Switch Product Support Engineer

    NOR - USA

  • programming LabVIEW for nor 5122

    Hello, I just started working on a pxi system. I was wondering if anyone has useful resources for writing code for NOR-5122 (high speed scanning) and NOR-5421 (AWG). I've never programmed for pxi and while I looked at the examples in the examples to find section, I still can't understand things. Does anyone know of the tutorials or books or a reference to help me get a better understanding of how to program and eventually being able to create complex programs. Thank you. I really need to learn to program and your help would be very appreciated.

    Hi Boss,

    NI Signal generators help and digitizers AND high-speed main resources are available to work with these devices.  Under the subdivision of the programming of each help file, you will find a road section which includes a tutorial for the installation step by step of a pilot session.  In addition, you will find a reference section that describes each VI driver in detail.

    If you are not able to get a specific part of your application to function properly after reviewing these sources, you can certainly ask for help on the specific issue forums.

    Brian G

Maybe you are looking for

  • iPod Touch questions since 9.3.2

    Since the last update, my iPod Touch, 5th generation, has not acted the way it probably should be. Although there is nothing really wrong with my iPod, the main problem I have experienced is when I try to put my music on shuffle, or play any album, a

  • Satellite Pro 4600: Wireless lan driver for Win XP

    Hello I have a Toshiba Satellite Pro 4600 with a built-in wireless lan mini pci card. My problem is that I only have Windows XP! But in the toshiba Download Center, there is only the driver for Windows 2 k. What can I do to use the complete wireless

  • When you try to update the latest version of the software my ipad is locked with Update verification

    I tried to download the latest version of the software and received a message on the screen that says 'verifying update' and now I can't do anything. Screen is locked with the message "check update" and I can't even turn off the machine

  • Quick fix - Satellite A2XX Windows XP drivers (AMD based)

    Hey there, works for me, owning a Satellite A210 I m in need to get Windows XP on it for commercial purposes. So, I worked 2 days on the collection of all of the drivers needed to run the laptop with Windows XP SP2 operating system. As I read that ma

  • Upgrade Windows 10 Win7

    Two attempts to upgrade have produced an undocumented error code;  C1900101 - 4000D.  Has anyone else seen this and found a work around please. MB