How to show MouseOver effect on dropable region while dragging a MovieClip?

Hello friends,
I am creating Drag and drop flash application.
While dragging an instance of a movieclip I want also the dropable region to show effect like MouseOver case.
So that end user can confirm that they are dropping the item in right region.
Here the mouse is moved while it is kept clicked
Plz help me,
Thanks.
Venkat

Thanks for taking interest.
I did the first part of your reply already, but  How to check if a MovieClip is being dragged?
Say, I have two MovieClips
TargetToDrop_mc
DropableRegion_mc
TargetToDrop_mc.addEventListener(MouseEvent.MOUSE_DOWN, gotMouseDown);
TargetToDrop_mc.addEventListener(MouseEvent.MOUSE_UP, gotMouseUp);
TargetToDrop_mc.addEventListener(MouseEvent.MOUSE_OVER, gotMouseOver);
TargetToDrop_mc.addEventListener(MouseEvent.MOUSE_OUT, gotMouseOut);
DropableRegion_mc.addEventListener(MouseEvent.MOUSE_DOWN, gotMouseDown);
DropableRegion_mc.addEventListener(MouseEvent.MOUSE_UP, gotMouseUp);
DropableRegion_mc.addEventListener(MouseEvent.MOUSE_OVER, gotMouseOver);
DropableRegion_mc.addEventListener(MouseEvent.MOUSE_OUT, gotMouseOut);
function gotMouseDown(EventReceived:MouseEvent):void {
    EventReceived.currentTarget.startDrag ();
function gotMouseUp(EventReceived:MouseEvent):void{
    EventReceived.currentTarget.stopDrag();
function gotMouseOver(EventReceived:MouseEvent):void{
    EventReceived.currentTarget.alpha=0.5;
function gotMouseOut(EventReceived:MouseEvent):void{
    EventReceived.currentTarget.alpha=0.7;
Now plze guide me on basis of above.
Thanks,
Venkat

Similar Messages

  • How to show large images along with cursor while dragging ?

    Hi Friends,
    While dragging images, image has to be shown along with cursor. In normal dragging process, only (32, 32) size of the original image size only appears.
    But in my application, I need to show image with its original size along with cursor while dragging. So i need an application (program) or
    suggestions which can meet the above requirement. It is an urgent issue for me. Any help in this regard is highly appreciated.
    Thanks in advance,
    Sunil

    Learn to search the forums before asking. This is such a recent posting.
    [http://forums.sun.com/thread.jspa?threadID=5346407]
    db

  • How to make mouseover effect text show image in popup window or tooltip?

    I am trying to display a popup image in a new window when the mouse moves over some text. Or perhaps, the image could display in a tooltip when the mouse moves over some text.
    However, I have achieved the functionality of an image appearing above the text when the mouse moves over some text. This is how I did this:
    I put this code into the Page HTML Header:
    <script type="text/javascript">
    <!--
    function setFirstChildImgDisplay(el,vis) {
    if(!el || !el.getElementsByTagName) return;
    el.getElementsByTagName('img')[0].style.display=vis;
    // -->
    </script>
    I created a region and put this in the Region's Title field:
    {div onmouseover="setFirstChildImgDisplay(this,'inline')"  onmouseout="setFirstChildImgDisplay(this,'none')">Check out Page 1 here <img src="#WORKSPACE_IMAGES#DGNR Preview Page 1.bmp" alt="Page 1 Preview" style="display:none;">{/div}
    I am thinking that I should not have all of this code in the Region's Title field. But, I don't know where else to put it in APEX.
    So my questions are:
    1. how to get an image to display in a popup window or as a tooltip when the mouse is moved over some text?
    2. where should the {div} content be placed in APEX, if not in the Title field?
    Please note that I used '{' & '}' instead of '<' & '>' just so the div would display in this post.
    Also, I would like to give credit to this website because this is where I found out how to do what I have provided above.
    http://forums.devshed.com/web-design-help-2/mouseover-effect-text-shows-image-321876.html
    Thank you in advance,
    Maggie

    It's just an image map. Play with the settings. Here's a shape layer making a hole in the water and adding a bit of color.

  • How to show asterisk * effect once the user starts editing the document??

    I wrote a java text editor. I creat a new internal frame and allows to open a document.
    How to have an effect (an asterisk * follows the filename in title bar) once
    the user starts editing the document? And once I save that file, that asterisk * will
    disappear. It seems to me we need to add a listener, but not sure how to change
    the title bar of internal frame??

    just use DocumentListener like
    myTextArea.getDocument().addDocumentListener(new DocumentListenet(){
    public void changedUpdate(DocumentEvent e){
    frame.setTitle( frame.getTitle() + "*" );
    implements two other methods too

  • HOW TO SHOW JLABEL IN JDIALOG USE TIMERTASK WHILE MAIN CLASS IS SLEEPING?

    I have done a code below and it is working but the only problem is when the main program start to sleep by use Thread.sleep(10000) for 10 secs and it will prompt out a JDialog contain JLabel inside it with message "Please wait.... program is sleeping.". And when the thread ends the JDialog will auto disappear and it back to the main program.
    The problem is:
    When the JDialog appear, it doesn't show the component so I only be able to view the JDialog window without contain any component. I already use container to add the component into JDialog but it still doesn't show. I only be able to see the JDialog window contain empty component when the main window is sleeping.
    How to make the components also appear in the JDialog when the main program is sleeping?
    Below is the code pls have a try:
    import java.util.*;
    import java.lang.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    public class testThread extends JFrame
    public static java.util.Timer thisTimer;
    public static doTask a;
    public static testThread tT;
    public Container cMain;
    public Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    public JButton exitBtn;
    public JButton startThreadBtn;
    /** Creates a new instance of testThread */
    public static void main(String args[])
    new testThread();
    public testThread()
    //System.out.println("Start to call JDialog");
    tT = this;
    int realW = (int)screenSize.getWidth();
    int realH = (int)screenSize.getHeight();
    int mainW = 500;
    int mainH = 300;
    setBounds((int)((realW-mainW)/2), (int)((realH-mainH)/2), mainW, mainH);
    setVisible(true);
    exitBtn = new JButton("EXIT");
    exitBtn.setBounds((int)((500-100)/2), (int)((300-50)/5), 100, 50);
    exitBtn.addActionListener
    new ActionListener()
    public void actionPerformed(ActionEvent e)
    System.exit(0);
    // WHEN USER PRESS startThreadBtn it will make the application sleep for 15 secs and pop out JDialog window contain JLabel msg wrote "Please wait... program is sleeping"
    startThreadBtn = new JButton("Start Thread");
    startThreadBtn.setBounds((int)((500-100)/2), (int)((300-50)/5*4), 100, 50);
    startThreadBtn.addActionListener
    new ActionListener()
    public void actionPerformed(ActionEvent e)
    try
    System.out.println("Start to call JDialog");
    a = new doTask();
    thisTimer = new java.util.Timer();
    thisTimer.schedule(a, 0);
    System.out.println("Thread start to sleep first 10 secs");
    Thread.sleep(10000);
    System.out.println("Thread start to sleep second 5 secs");
    Thread.sleep(5000);
    System.out.println("Thread Wake Up");
    a.terminate();
    thisTimer.cancel();
    catch(InterruptedException ie)
    ie.printStackTrace();
    cMain = this.getContentPane();
    cMain.setLayout(null);
    cMain.add(exitBtn);
    cMain.add(startThreadBtn);
    public class doTask extends TimerTask
    JDialog infoDialog;
    public void run()
    System.out.println("TASK IS RUNNING");
    int screenWidth = (int)screenSize.getWidth();
    int screenHeight = (int)screenSize.getHeight();
    int w = 300;
    int h = 200;
    infoDialog = new JDialog(tT, true);
    infoDialog.setTitle("Please Wait!!!");
    Container c = infoDialog.getContentPane();
    c.setLayout(new BorderLayout());
    JLabel infoLbl = new JLabel("Please Wait... Program is sleeping!!!", JLabel.CENTER);
    c.add(infoLbl, BorderLayout.CENTER);
    infoDialog.setBounds((int)((screenWidth-w)/2), (int)((screenHeight-h)/2), w, h);
    infoDialog.setVisible(true);
    public void terminate()
    infoDialog.setVisible(false);
    infoDialog.dispose();
    this.cancel();
    }

    LOUD NOISES.

  • How to show webgui progress indicator in Webgui while executing report

    ITS 6.2 patch 18
    I am calling r/3 report as a new window from template base html page. Mission is to show webgui progress indicator instead of hour glass. The report takes 3 minutes to the result. Shortly before showing result page,the webgui progress indicator appears at the center of the page. I tried abap function SAPGUI_PROGRESS_INDICATOR to r/3 report.However, it did not work.
    If anyone konws how to do it, let me know.
    I am using below function to call r/3 report.
    <script language="JavaScript">
      function new_win(){
    var w_address, wp  ;
    w_address    = "http://`HTTP_HOST`/scripts/wgate/webgui/!?transaction=ZZZZ&~OkCode=EXEC&PA0001-ORGEH=" + "`PA0001-ORGEH`" + "&PCHDY-DEPTH="  + "`PCHDY-DEPTH`" ; ;
    w_address    = w_address    +  "&client=`write(client)`&language=`write(language)`"  ;
        win_prop = "left=0, top=0, height=600, width=800, status=no, menubar=no, resizable=yes,  fullsize=yes, channelmode=no, scrollbars=yes";
    alert(w_address);
    wp = window.open(w_address,'',win_prop);
    wp.location.href = w_address;
    alert(w_address);
    if (window.focus) {
          wp.focus()
         return false;  
    </SCRIPT>

    Hi Klaus,
    I appreciate your quick response.
    Okay ! Let me give up webgui progress indicator.
    Another question is how to grab webguiform input field data.
    I got other issues.
    As you see source code, I pass parameter like PA0001-ORGEH=`PA0001-ORGEH` to the javascript function for a popup window .
    When I use this `SAP_InputField("PA0001-ORGEH")` clause at template script, I cannot grab data properly before hitting enter. I guess the reason is in webgui's dynamic webpage generation. Is it right ?
    When I use html code <input type="text">, there is no problem in passing parameter. When I use search help function with <input> code,  other field's data is changed into default value.
    If someone knows the way to grab input field data from DOM, let me know. I tried document.webguiform.element[0].value, it did not work.
    It seems there are tons of limits in webgui function.

  • 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>

  • How to have an effect show up in a certain part of the clip?

    I'm resonably new to AE and I'm editing a video where the guy pulls a scoped gun up to his face, and I was wondering if there was a way to have only the scope lense get brighter as he pulls it up to his face. Thank You For Your Help.

    BTW, here are a couple of videos in which I show how to have an effect only apply to one item in a scene:
    - using Roto Brush
    - using masks (manual rotoscoping) and motion tracking

  • How to show "ALL" Values by default in Page Drop-Down Lists in Pivot Tables

    Hi Everyone,
    Iam stuck with 1 problem please can any 1 help me if u know the solution.
    Here is my problem:
    How to show "ALL" Values by default in Page Drop-Down Lists in Oracle BI Pivot Tables?
    For example, if you place Region in the pages area, a Region drop-down list allows the user to select a particular region, and see the data for only that region, rather than seeing all the Regions,But by default its not showing "ALL" option in the drop down list ,rather than doing that its showing result for only 1 region by default.
    And an other problem with this pages area is, if we palce the multiple attributes in the Pages area in the pivot table, the (Fields)result is showing in vertically, the attributes 1 by 1(Every attribute in a new line) ,rather than showing like that, is there any way to show the results in horizantally?(We want to have it as a seperate drop drown list for every field horizantally not as a concatenated list).

    Thanks Nikhil. But I am fetching the values from the LOVCache.java.
    I am using <af:selectManyChoice>. Is there any way I can use LOVCache.java value for selecting default values instead of hard coding?
    I mean to say can I write
    unselectedLabel="#{LOVCache.entityTypeSelectionList.anyValue}"
    where LOVCache.entityTypeSelectionList is used to populate the drop down box.
    Regards,
    Aseet

  • How to "Show options" in every window at once?

    In many Illustrator windows, useful tools and settings are hidden by default unless you open the flyout menu in the top corner and choose "show options".
    I always want to "show options", everywhere, all the time.
    Whenever I come to use or help someone with Illustrator on a new machine, new user account, new install, or after trashing preferences for any reason, it's necessary to click through every window showing its options. It's a nuisance and I always forget some windows, which means when I then use that window I'll be puzzled that a tool I'm used to isn't where I remember it being.
    Is there any way to "Show options" everything at once? Or set it to never hide options anywhere? I've been right through Preferences and found nothing that looks relevant.
    It'd be really useful for the above situations and also for helping beginners ("Let's see, is 'Scale strokes and effects' ticked in the transform window?", "There is no 'Scale strokes and effects' in the transform window!", "What, are you sure?" etc etc...)

    I think you're misunderstanding the question, I'm asking how to open out all the options in every window.
    Your answer is how to save it as a custom workspace after I've shown options. It saves them as being open by default, so that isn't a problem. A custom workspace might be useful as a backup or to transfer to another computer but I often want different workspaces on different computers (e.g. because of screen size differences). I just want to know how to "show options" in every window at once.
    My question is 'How to "Show options" in every window at once?'

  • How to add more than one tabular region in a page?...

    How to add more than one tabular region in a page?
    i have a page, that page contain form and tabular region. when i trying to add another tabular region it showing error
    1 error has occurred
    Updatable SQL Query already exists on page 2. You can only add one updatable SQL query per page. Select a different page.
    but i have to add the tabular in that page.
    Is it possible?
    pls help...
    Thanks and regards,
    skud

    hi,
    even i am searching for some thing similar.
    i want to have 3 calendars in one page.
    getting same message calendar already exists on page 2. You can only add one calander per page. Select a different page.
    pls help.

  • How to show employee names in descending order but 3rd row is fixed and always top on the table ?

    how to show employee names in descending order but 3rd row is fixed and always top on the table ?
    for example employee names is A,B,C, D, E
    and output is     C,E,D,B,A

    Since you are posting in the design forum, the short answer is - you don't.  Rows in a table have no inherent order that you can rely on and the "position" of rows is a visual characteristic that should be implemented by the application that displays
    this information or by the query that is used to generate the resultset.  
    So the next question is how one accomplishes this particular order within a select statement.  That is a tsql question which, for future reference, is best posted to the tsql forum.  In addition, many of the questions or issues that you will face
    have been discussed in the forums - often many, many times.  The first thing you should do when faced with an issue is to simply search the forums and leverage the the knowledge that has already been discussed.  In doing so you are quite likely to
    see suggestions or related issues that you should consider in your search for a solution.  
    Now, to answer the question - you need to formulate a order by clause that forces the rows to be sorted in the manner you desire.  Effectively you have 2 levels of sorting.  The first level divides your rows into 2 groups.  Group 1 consists
    of rows where name = E and Group 2 is everything else.  Following that you then need to sort the rows in each group by name in descending order.  Something like:  
    order by case name when E then 1 else 2 end, name desc

  • Why does my video shows interlacing effects

    I am importing HD videos from my Canon Legria HF200. On my user account the videos show interlacing effects, while on the other user account on the same iMac the videos are perfectly imported. We looked in preferences in order to find differences in settings but we could not find any.
    I guess I modified a setting somewhere on my account which my partner did not on his.
    I tried updating iMovie but it is already the most recent version (9.0.2).
    I tried reinitializing the settings but could not find how to do it.
    Can anybody help?
    Thanks a lot!

    You should check out this thread. It will explain why you are seeing interlacing in iMovie with the Legria HF200.
    https://discussions.apple.com/message/13203436?messageID=13203436
    This is a known issue with all Canon Legria (PAL) camcorders. If you do a search with the term Legria, interlacing and iMovie you will find a number of threads.

  • How to set display size of a Region or Dynamic Region?

    Hi,experts,
    In jdev 11.1.2.3,
    I drag and drop a task-flow into a jsf page to create a Region,
    and set display size for the region, source code as:
    ===================
    <f:facet name="second">
    <af:decorativeBox theme="medium" id="db1">
    <f:facet name="center">
    <af:panelGroupLayout layout="scroll" id="pgl1"
    inlineStyle="width:1200px;height:700px;">
    <af:region value="#{bindings.trainflow11.regionModel}" id="r1"
    inlineStyle="width:1200px;height:700px;"/>
    </af:panelGroupLayout>
    </f:facet>
    </af:decorativeBox>
    </f:facet>
    =================
    But, the Region is only showed a small fraction area on the parent jsf page whenever during design or run time.
    How to set display size of a Region or Dynamic Region?
    Thanks!

    Hi,
    the decorative box is supposed to stretch components in the center facet, so at runtime the region should stretch. Can you try with a static region to see if this is an issue with dynamic regions?
    Frank

  • How to show result from process in popup page?

    <br>We want to use one popup page for many information in application. So we want to make the following thing.
    <br>We want to execute process and show result in popup page (through hidden parameter-"P2_MESSAGE").
    <br>We also assign title of region on that popup page through "P2_TITLE".
    <br>What I do not know is how to show popup after process-branch problem.
    <br>Process is executed from one button. Button is located on page "28" and popup page is "2"
    <br>Code for javascript should be like:
    <br>
    javascript:popupURL('f?p=&APP_ID.:2:&APP_SESSION.::::P2_TITLE,P2_MESSAGE:'+'status '+','+'&P28_X.')<br>THX

    I have found in one thread:
    <br>
    <br>1) create an application item APP_ONLOAD (of course you can choose your own name)
    <br>2) create an application level before footer computation on APP_ONLOAD to clear the item after the page is generated.
    <br>3) place &APP_ONLOAD. (dot also) in the on load property of the page.
    <br>4) fill the APP_ONLOAD using :APP_ONLOAD := 'onload="your own javascript to call a popup window;"' in the plsql of an after On Submit - After Computations and Validations process (type PL/SQL anonymous block)
    Fill the when button pressed property of the process with the button you want to use to show the popup.
    <br>5) create a branch to branch to the current page (or a other if you wish)
    <br>
    Looks OK but when I create in PL/SQL js with "&" signe, which I use for filling some hidden values in popup page I get error.
    begin
      is_test_ok (1, :P28_X);
      :APP_ONLOAD := 'onload="javascript:popupHeightURL(''f?p=&APP_ID.:2:&APP_SESSION.::::P2_TITLE,P2_MESSAGE:''+''statusu testova''+'','+''&P28_X.'')"';
    end;<br>Should I use ASCII codes for that or what? Any example please!
    <br>THX

Maybe you are looking for

  • Java Script Disable/Enable Items Problem

    Hi, I followed the directions to disable/enable items from http://www.oracle.com/technology/products/database/htmldb/howtos/htmldb_javascript_howto2.html#disable. And I'm getting an error. I have fields like : Issue Summary Issue Description Identifi

  • Oracle 10g - OLAP - ocijdbc10.dll

    Hi, Im new to 10g. Oracle 10g client is installed in my machine, am able to connect to 10g SIDs using SQL*Plus and SQL*Plust work sheet. Trying to start up OLAP Analytical Workspace Manager. Added a 10g SID into the tree. While trying to connect, i a

  • GoPod - Does it work with the latest Ipod firmware?

    I have a 5th Gen 60gb iPod and have used goPod in the past to remove the volume cap. But ever since updating my iPod with the latest firmware the volume limit seems to be very quiet compared to what it used to be. Is this because goPod 1.4 doesn't wo

  • Raw support for Nikon D40X

    I just purchased a Nikon D40X. I realize that this is a very new camera that is not yet supported but I was wondering when ImageIO.framework was going to be updated to support this camera. I plan on purchasing Aperture at some point but will not do s

  • Which disk do I need?

    My Macbook Pro (late 2011) came with Lion installed and I want to downgrade to Snow Leopard. I don't care about saving my current data, I just want a clean install of Snow Leopard. My issue is I don't know which OS disk to buy. Do I need to buy OS X