Canvas children and mouseOver

Simply put, I have a repeating canvas that contains buttons,
an image, and a text field. When the user rolls their mouseOver the
canvas, a child canvas becomes visible with buttons inside of it.
Works great when you make sure that the mouse stays only over true
canvas area and not over a child inside of the canvas. If it falls
over a child, it fires the mouseOut and the buttons become
invisible. Essentially, you can't click on the buttons because they
are a child and the mouseOut goes off, making them invisible! How
can I keep the mouseOver alive, even over a child?
Thanks!

check the parent of the event "target", not the parent of the
event.
In Flex, events can possibly participate in three phases:
1) cascading phase as the event goes from the top of the
display list through all parents of the control that dispatched the
event.
2) targeting phase, as the event goes through the target, the
control that dispatched the event.
3) bubbling phase as the event goes back up the display list
through parents of the control that dispatched the event.
- not all events bubble
- you may need to add an event listener twice, and have the
arg to addEventListener for bubbling to true and then false if you
want to listen during cascading and bubbling phases.
Now you are probably confused, so ignore some of what I said,
and concentrate on listening to mouseOver events in the Cnavas, and
then when the event handler is called, examine the target and
possibly currentTarget properties of the event object to see if it
is the child of the Canvas, and then act as appropriate.

Similar Messages

  • How do I set up mutiple icloud accounts using my Apple ID but giving my children (and their ipod touches) their own icloud e-mail, so we do not share contacts photos etc

    How do I set up mutiple icloud accounts using my Apple ID but giving my children (and their ipod touches) their own icloud e-mail, so we do not share contacts photos etc

    Welcome to the Apple Community.
    Create an iCloud account for each of them.

  • How can I export an image from Illustrator same canvas size and custom resolution?

    Hey all.  i am using Adobe Illustrator CS5 for creating images for iPhone app icons the size of image 374 px 374 px and 264 ppi. i created an image same size and ppi .the problem after export the image file size changing to  1371px x 1371px and 264 ppi pixel dimension.How can I export same canvas size and same resolution file from illustrator

    10111980,
    If you just forget about PPI and use Save for Web, you will get the 374 x 374 pixel size.
    The 1371 x 1371 pixels is because you somehow increase the resolution by 264/72.
    You should never mix pixel by pixel sizes and PPI.
    The 374 x 374 pixels is the actual image size. At 264 PPI that will be about 1.417 inches. At 72 PPI that will be about 5.194 inches.

  • Increasing canvas size and re-clipping (intentionally)

    Hi,
    So I bolluxed up a little bit while creating my first full-bleed print piece. I used Ps to edit the image, Ai to add some stuff, and ignored Id completely for the printer. Now I have a perfect 8.5 x 11 image that I want to print all the way to the edges without scaling; I left white bleeds 1.8" but apparently that won't suffice.
    I'm trying to go back into photoshop and increase the canvas size (8.75 x 11.25 to include bleeds), and with it, extend the image that was originally clipped when I trimmed the document from a vertical picture (12 x 16 or whatever) to fit the standard letter paper size. When I do that, I get only white areas around the canvas.
    Can anyone provide a solution to create full-color bleeds the way they should have been done originally? I have tried changing the canvas size and re-placing another layer of the image behind the existing one (with the hopes that it would clip automatically), but it didn't work. At this point, should I worry about bringing anything into InDesign?
    Thanks,
    - boda

    The Nish Adeel,
    > i wants to increase my fla canvas size from all sides...
    when we
    > increase the size of a file it increases from right and
    bottom , i
    > want to make it from all four sides like photoshop ...
    is there any
    > way to do this.
    There is a way to do this; unfortunately, it's not an
    automatic feature
    like in Photoshop. The approach you'll need to take is to
    update the
    document dimensions (basically, the canvas size) as desired,
    then use the
    Edit Multiple Frames button on the lower left of the Timeline
    panel to
    manually move all assets on the main timeline. To do this,
    you'll have to
    make sure all layers are unlocked. To do this quickly, click
    the
    Lock/Unlock All Layers button at the top, between the eye and
    the square
    buttons, until you see that all locks have been removed (one
    or two clicks
    will do it). In the Modify Onion Markers button next to the
    Edit Multiple
    Frames button, choose Onion All. Select Edit > Select All,
    then use the
    arrow buttons to move your assets.
    David Stiller
    Co-author, Foundation Flash CS3 for Designers
    http://tinyurl.com/2k29mj
    "Luck is the residue of good design."

  • Canvas, Timeline and Browser missing.

    Hey,
    My canvas timeline and browser are all missing.
    In window their greyed out too.
    I cant even import any files?..
    What do i need to do?.
    Thanks.
    the only windows i have is the Viewer: Slug and Tool Palette

    Sorry! I have just noticed you have cured it!
    Ian.

  • Inclue children and exclue children in a single hierarchy in parent child dimension in mdx

    hi,
    include children and exclude children in a single  hierarchy in parent child dimension in mdx
    *12-parent
     **20-parent
     - 9-parent
           --250-child1
           --210-child2
            --240-child3
    aggregation of 12-parent only
    aggregation of 20-parent only
    aggregation of  9 with children
    regards,
    Manish

    Hi manishcal16PPS,
    According to your description, you have a parent child dimension in your cube. Now you want to use one measure use show aggregation value including/excluding child member based on different parent level member. Right?
    In this scenario, we could use IIF() in the calculated measure to apply different calculation depends on the current dimension member. Please refer to query below:
    with member [x] as
    IIF([Dim].[Hierarchy].CurrentMember is [Dim].[Hierarchy].[Parent].&[9]
    sum(Descendants([Dim].[Hierarchy].CurrentMember,
    [Date].[Calendar].[Parent]),
    [Measures].[Amount])
    sum([Dim].[Hierarchy].CurrentMember,[Measures].[Amount])
    select [x] on 0,
    [Date].[Calendar].[Parent].members on 1
    from
    [Cube]
    Best Regards,
    Simon Hou
    TechNet Community Support

  • How to batch or individual import Canvas .CVX and .CNV files into AI CS6(mac)?

    Is anyone aware how to batch or individually import Canvas .CVX and .CNV files into AI CS6(mac)? I have a large old graphics library representing 10 years of work which would be very nice to convert into Illustrator CS6...
    Thanks a lot for any hint -
    stefan

    JETalmage wrote:
    ...export them as an EPS or another file type that windows will recognize...
    It's not a matter of exporting a file that Windows will recognize; it's a matter of exporting a file format that Illustrator can import or open.
    A Mac OS version of Canvas is under development, by the way.
    JET
    My bad. Typo on my part. I meant one that Adobe will recognize.
    Too early yet. I shouldn't try to type before I get my first morning tea.
    --OB.

  • Difference in results while using .CHILDREN and .ALLMEMBERS

    Hi,
    I have two almost similar MDX queries, in one I am using .CHILDREN and in other .ALLMEMBERS. First one returns no rows, the second one returns two. Please help me in understanding why!
    Query 1
    select
    [Measures].[Claim As Of - Count] on 0,
    [Accident Date].[Year].allmembers on 1
     from [AW Cube]
    where [Accident Date].[Year-Quarter-Month-Date].[Year].&[2010]
    ---NO rows
    Query 2
    select
    [Measures].[Claim As Of - Count] on 0,
    [Accident Date].[Year].children on 1
     from [AW Cube]
    where [Accident Date].[Year-Quarter-Month-Date].[Year].&[2010]
    --2 rows
    ---- Claim As Of - Count
    --All 637,350
    --2010 637,350
    TIA,
    Sourav
    EDIT: Some clarifications: AccidentDate is one of the Dimensions in my Cube [AW Cube]. Year is a natural hierarchy while [Year-Quarter-Month-Date] is an user defined hierarchy. [Year-Quarter-Month-Date] is created in the below way: Year-->Month--->Quarter--->Date.
    So 'years' can be obtained by doing [Accident Date].[Year-Quarter-Month-Date].[Year].members and also [Accident Date].[Year].MEMBERS. Hope I am clear.

    Well, got the answer myself.
    Actually every ".CHILDREN" gets internally translated to ".CURRENTMEMBER.CHILDREN"
    Now, [Accident Date].[Year].&[2010] is the corresponding value for the slicer on user defined hierarchy.
    Here,
    "[Accident Date].[Year].CHILDREN"
    actually gets translated to
    "[Accident Date].[Year].&[2010].CHILDREN"
    which is basically an empty set. Hence, Voila!  The empty result set!

  • Opening the Canvas window and the Timeline from the browser

    I am on an Intel 2x2.66 Dual Core using OS 10.4.11 and working in FCP 6.04.
    I know this is a stupid question but having been a composer all my life, I am not up to speed on FCP and I seem to be unable to find the answer in my manual.
    I dragged a QuickTime movie to the browser window. It is 500x375 in dimension and uses a H.264, AAC codecs. (info I got from the Get Info window).
    The video shows up and plays in the Viewer window but I cannot get the Canvas window nor the Timeline to open.
    I have tried selecting the sequence from the list in the browser and then control clicking it and looking at the shortcut menu there. The manual says I should choose Open Timeline from this shortcut menu but that is not even a choice I have. I don't mean it is grayed out, I mean there is no Open Timeline choice on the menu.
    As an alternate, the manual suggests selecting the sequence and then choosing View > Sequence in Editor. I tried this also. There is no Sequence in Editor choice under the View menu. There is a Clip in Editor choice but when I select that it simply opens the movie in Quicktime.
    I am aware that I am probably forgetting something simple or doing something stupid but I cannot figure it out. Help would be much appreciated.
    Thomas

    the simple fact that is being eluded to here is that without an active sequence in the project (shown in the browser) there is no canvas or timeline. If you delete your sequence from the browser, the timeline and canvas will disappear, and you will have to create a new sequence, then open that sequence by double clicking it, to get those windows back. Canvas and Timeline display sequence content. No sequence, no c/t.

  • Canvas.getHeight() and getWidth()

    Hi all,
    I'm completely stuck. I don't know what to do. I developed a complete MIDlet and now I'm running it to remove any kinks I put in while developing. And one kink I can not get out of my system. I'm running the code in the WIreless Toolkit from Sun (version 2.5).
    I made (I think) a simple game, just to learn working with Bluetooth and Midp. My game isbased on the venerable Pong, which should be played between two mobiles. One of the mobiles will act as server, the other one as client. The server starts with waiting for a connection, the client starts with connecting to the server. Both server and client use the same code.
    After connecting the Client starts with sending its width and height to the server, who will decide on the dimensions of the playing field. In theory a good approach, but what gets send over is nothing more that zero dimensions. I have been looking at this problem for the good part of a week, created several posts to the forums, and I still have no sollution for this problem. Who can help me finding the non-zero dimensions of the playing field.
    Some code so you know what I'm doing:
    First the MIDlet constructor:
        public MyMIDlet() {       
            // Retrieve the display for this MIDlet
            theDisplay = Display.getDisplay(this);
            // Set up the initial screen for the MIDlet
            createStartScreen(null);
            // Create the game object
            myGame = new MyGame (this);
        public void commandAction(Command command, Displayable displayable) {
             // Some code omitted
             else if (command == OKCOMMAND){
                // Start the game
                myGame.setSelection (gameType.isSelected(0));
                new Thread(myGame).start();
             else { /* do nothing, one of the other keys was pressed */ }
        }Next the MyGame object:
         public MyGame (MyMIDlet theParent) {     
              myMIDlet = theParent;
              myData   = new MyData ();
         public void run() {
              // Some code omitted
              if (!isGameStarted) {
                   // Determine if this game should start as a server or
                   // a client
                   if (isServer) {
                        // Wait for other MyMIDlet to connect
                        connection = waitForConnection();
                   else {
                        // Establish a connection to a MyMIDlet
                        connection = connectToServer();
                        if (connection == null) {
                             return;
                   try {
                        ins  = connection.openInputStream();
                        dins  = new DataInputStream (ins);
                        outs  = connection.openOutputStream();
                        douts = new DataOutputStream (outs);
                   catch (IOException ioException) {
                        displayMessage("IO Error",
                                  "An error occurred while opening " +
                                  "the input and output streams (IOException: " +
                                  ioException.getMessage() + ")");
                        try {
                             connection.close();
                        catch (Exception exception) {
                             displayMessage("Exception",
                                       "An error occurred while closing the connection " +
                                       "(Exception: " + exception.getMessage() + ")" );
                   // Create game canvas
                   myCanvas = new MyCanvas(this, myData, FONT);
                   myMIDlet.setCanvas(myCanvas);
                   myCanvas.addCommand(LEFTCOMMAND);
                   myCanvas.addCommand(RIGHTCOMMAND);
                   myCanvas.setCommandListener(myMIDlet.getCommandListener() );
                   // Negotiate game screen size
                   myData = negotiateScreenSize(isServer);
                            // Rest code omitted
         private MyData negotiateScreenSize(boolean isServer){
              if (isServer) {
                   try {
                        // Code to de-serialize data containing among others the dimensions
                                    myData.resurrect(dins);
                        // Set field dimensions to smallest screen
                        setFieldDimension(myData);       
                   catch (IOException ioException) {
                        displayMessage("IO Error",
                                  "An error occurred while reading " +
                                  "screen dimensions, (IOException: " +
                                  ioException.getMessage() + ")");
              else {
                   try {
                        myData.setFieldDimension(myCanvas.getWidth(), myCanvas.getHeight());
                                    // Code to serialize data containing among others the dimensions
                        myData.transfer(douts);
                   catch (IOException ioException) {
                        displayMessage("IO Error",
                                  "An error occurred while writing " +
                                  "screen dimensions, (IOException: " +
                                  ioException.getMessage() + ")");
              return myData;
         }For good measures, I add code from the MyCanvas constructor. The first place you can ask the dimensions of the screen:
        public MyCanvas(MyGame theGame, MyData theData, Font theFont) {
             myGame = theGame;
            myData = theData;
            font   = theFont;
            // Let Server start the match
            isServerGame = true;
            // Get dimensions of the screen
            height = getHeight();      
            width  = getWidth();
            myData.setFieldDimension(width, height);
    System.out.println ("myCanvas.constructor, set height=" + height + " and width = " + width + "."); 
    }      The last line prints out the following information:
    myCanvas.constructor, set height=0 and width=0.I have added more of these lines in my code to give me the values of the screen dimensions. I always get zero values.
    Who knows what I need do to get the correct values?
    Maik

    can u please show the code of mycanvas classI found the problem. Its in the code you are asking for. To get access to the height and width from outside the MyCanvas object I added the following code:
        public int getHeight (){
             return height;
        public int getWidth() {
             return width;
        }And ofcourse this was bugging my code. So I changed the constructor of myCanvas to:
            myGame = theGame;
            myData = theData;
            font   = theFont;
            // Let Server start the match
            isServerGame = true;
            // Get dimensions of the screen
            height = super.getHeight();
            width  = super.getWidth();
            bpData.setFieldDimension(width, height);And the problem was solved. Thanks for pointing me to the code with the build in bug.
    Regards,
    Maik

  • Spry Regions and Mouseover Effects

    I want to use a mouseover effect on a spry master region
    element that calls the spry details region data of the master
    region element. Any tips or pointers?
    I have tried searching the web for how to-s and even tried
    the Adobe Spry sites and samples...did not locate any specifics on
    how to change the click event of the master region element to a
    mouseover event.
    Any links, tips or detailed instructions is appreciated at
    this point; have been searching about 4 hours now.
    Thanks,
    nitefisher

    You can apply focus to form elements and anchors/links. In this case I am attempting to set the focus to the <a href> tag.. but only the first in the repeating region.
    <HTML>
    <BODY>
    <a id="foo1" href="#"> This</a>
    <a id="foo2" href="#"> That</a>
    <script type="text/javascript">
      // selects 'that'
      document.getElementById("foo2").focus();
    </script>
    </BODY>
    </HTML>

  • Depth, 3D, canvas restriction and masks -in Motion 4.

    Hello.
    I'm a digital artist, and work with Maya in combination with Motion 3.
    Is there an improvement in the "compound blur" filter. Does Motion 4 support depth in the image based on grayscale images, rendered out of 3D packages?
    The "compound blur" found in Motion 3 is quite buggy, and I've been forced to find several work arounds in order to use it.
    I saw in another post, that Motion and Cinema 4D, can work together. Does Motion support 3D files, like camera movement from other packages, like Maya also? A plugin?
    Is there still a canvas restriction in Motion 4?
    In Motion 3 using masks based on images, can give quite a few problems, for apparently no good reason at all. The mask seems to change size, and you'll have to find workarounds and so on. Is this still a problem in Motion 4? Any experiences?
    Thanks for your time!

    The camera data can only be exported from C4D 11.5 AFAIK.
    I'm not seeing issues with image masks in M4 yet.

  • I set up apple id's for my children and it will not allow imessage, why?

    I recently set up family sharing, and gave my minor children apple ids but when I tried to set the apple id on my daughters, diabled iphone (she uses as an ipod touch) so she could imessage me, it would not allow her apple id to do so.  how can i fix this?

    yes, when i go under imessage in settings and put in the icloud address under send and receive messages, I get an error message that says:  imessage activation....this email address cannot be used for imessage...any ideas how to fix this.FYI under icloud both devices are under my account.thanks for your help

  • JDAPI with multi canvas form and LAF questions

    I'm trying to use jdapi to apply LAF project on my forms, it works great with simple forms, but with multi canvases and blocks form it doesn't apply LAF for all of them. I can follow the code of the done one for the rest, but i have questions:
    do i have to set a different bean for each block?
    who overrides, the bean or the property set for the item?
    and sorry i have another questions concerning LAF:
    can i define a new scheme, and if yes, how?
    if i want to show an image for a button, the path should be relative to what? as till now i failed to set an image for a button.
    Thanks

    Hello,
    I have just tested and the result is OK.
    I have built a Forms module with 2 content canvases, each one containing a block.
    After running the JDAPI_LAF tool, the new module contains a LAF_BLOCK with two Bean area, each one one a different canvas.
    <p>Concerning the image on the button, the syntax is explained in the documentation</p>
    See the SET_IMAGE method.
    Francois

  • HTML5 Canvas: addChild and position

    Hey Guys
    I have an item on the stage called 'square1', I have added a symbol from the library and given it the name 'circle1'.
    I wish to position circle1 at the exact location of square1, my question is - how would I go about doing that?
    Thanks

    Knowing JavaScript is going to be essential for you to use Canvas. If you really don't want to get your hands into the code you should do your best with the timeline.
    If you're ready to take the canvas plunge then JavaScript has to become a tool for you. The second page of what I linked would show you that for almost every bit of ActionScript you might be used to, there's a translation over to JavaScript that's necessary. So every time you go to do something you're going to be right back here.
    The best option just might be for you to take a look at EaselJS. There's lots of very simple demos that can get you started with HTML5/Canvas and will give you answers you want in Flash. Take a look:
    CreateJS | A suite of Javascript libraries and tools designed for working with HTML5

Maybe you are looking for

  • "do not disconnect" and not recognized by iTunes

    I have read these discussios and I can see I am not the only one who has these same problems, but I have not gotten any answer that would have helped me. I just bought a new iPod Nano 4Gb, I had a 2Gb version and it worked just fine, not even one pro

  • Crystal Reports XI to Crystal Reports XI Release 2

    Is there an SR update to go from Crystal Reports XI to Release 2?  Or is it essentially a whole other version of the software and must be purchased seperately? Can Crystal Reports XI Release 2, save files back to Crystal Reports XI version? I'm suppo

  • I have frequent blocking on my imac with the little sphere spinning

    I have frequent blocking on my Imac with the little spere spinning and some how as I've installed Mackeeper eveything seems to be allright so I don't understand what's going on Please can you help me

  • Links for open source DRMs

    Hi Guys I am woriking on a project for that i require to manage the web users acount and theire resources,rights etc. the resources are mainly mp3,mp43 empeg4 vedio files, so i need to manage these user resources by encripting the files and associati

  • Apple authorised service provider contact list

    I was told by the apple staff that it would be much quixker to get my mac fixed if i contacted anyone on thia list.. Now the thing is im struggling so hard to find this list as my only access to the internet is on my 5 year old ipod touch. Pleae if a