Help with the MOUSE_OVER and MOUSE_OUT events

Hello

I am very new to Flash and I'm having a bit of a problem with my first ActionScript.

I'm working on a project where I have a black and white photo. When you hover over the image, it turns to a color version of the same image. When you take your mouse out of the picture, it was in black and white.

I have three instances of the image, a black and white image to frame 1, a color to frame 10 image and a black and white image to frame 20. Currently, when I mouse over the black and white photo, it turns to color image as I had hoped. However, when my mouse leaves the image, she remains on the color image.

My code looks like this:

import flash.events.MouseEvent;

Stop();

btnCory.addEventListener (MouseEvent.MOUSE_OVER, coryOn);
btnCory2.addEventListener (MouseEvent.MOUSE_OUT, coryOff);
function coryOn(event:MouseEvent):void {}
gotoAndStop (10)
}
function coryOff(event:MouseEvent):void {}
gotoAndStop (20)
}

btnCory is the first black and white photo in frame 1, btnCory2 is the frame of 10 color picture.

Any comments / help would be much appreciated.


Thank you


Jeremy

your movieclip with images on frame 1, 10 and 20 must have a name (for example, image_mc) and you do not need to convert images on 1 and 10 executives (and 20 if there is no point to have a duplicate on frames 1 and 20 image) to objects and your code should look like:

import flash.events.MouseEvent;

Stop();

image_mc.addEventListener (MouseEvent.MOUSE_OVER, NFB);
image_mc.addEventListener (MouseEvent.MOUSE_OUT, offF);
function onF(event:MouseEvent):void {}
image_mc.gotoAndStop (10)
}
function offF(event:MouseEvent):void {}
image_mc.gotoAndStop (1);
}

and a message in the cc forum I see you are using 5 images, so use:

import flash.events.MouseEvent;

Stop();

image_mc.addEventListener (MouseEvent.MOUSE_OVER, NFB);
image_mc.addEventListener (MouseEvent.MOUSE_OUT, offF);
function onF(event:MouseEvent):void {}
MovieClip (e.currentTarget) .gotoAndStop (10)
}
function offF(event:MouseEvent):void {}
MovieClip (e.currentTarget) .gotoAndStop (1);
}

Tags: Adobe Animate

Similar Questions

  • Helps with the rv180w and the Shrew soft vpn

    Hi, I'm trying to establish a vpn connection by using soft shrew for the cisco rv180w router.

    I watch and read everything I could find, but the connection drops during the opening of the tunnel.

    There were a few tuttorial here in the forum, but the links are down.

    I want Edifier is to establish communication and to be able to access my domain on the network.

    Any help with the settings would be greatly apeciated. I am new to vpn.

    Thanks in advance.

    Federico,

    Try to access the following link. It has good instructions for a similar model. The main difference is that the SA500 has double-WAN and the RV180W does not work.

    https://supportforums.Cisco.com/docs/doc-9378#comment-7216

    Here's another tutorial for the RVS4000 that can help:

    https://supportforums.Cisco.com/docs/doc-18443

    Check out the last post in the following thread, which received instructions for the RV220W (should be exactly the same as RV180W)

    https://supportforums.Cisco.com/message/4165652#4165652

    -Marty

  • Need help with the earpiece of video events complete and twinkle in Web site button

    Hello.

    I'm building my first site flash on AS3 and I'm having some problems that I can't solve.

    Question No. 1:

    I have a video that plays on a page (frame) and want to go to the next page after the video is finished. It's pretty easy... I did a search for information and came to the top with something in the sense of (written in memory):

    instance.addEventListener (Event.COMPLETE, instancecomplete);


    function instancecomplete(event:Event):void {}

    gotoAndStop (3)
    }

    And it worked fine when the page loaded initially (it was the homepage), but after he moved to the next page, I clicked the button which takes back me to the homepage and what might happen is that the video would play for about 1 second and send me back to the next page. My assumption is that what is happening is in loading, the event listener is to see that the video does not play, assuming that it is finished, and it takes me to the next page. If this is true, is there a way to delay the eventlistener?

    Question 2:

    The buttons on my page of sparkle. I read on this topic, and I apparently it's because I'm on a mac. I checked on a PC and the flicker isn't here so it must be because im on a mac. On a forum I found the following line to fix it:

    btnHome_mc.buttonMode = true;

    The problem is... I never wrote this line, and if it is a code generated automatically, I can't find it in the scripts of action... so I'm stumped. Any help?

    I don't know what to say without seeing the code.

    Try to remove the listener:

    function onComplete(e:VideoEvent):void {}

    instance.removeEventListener (VideoEvent.COMPLETE, onComplete);

    }

  • Need help with the formatting and reinstalling windows

    Hi, I have a Compaq Presario C700 p/n GR598EA #ABU I got to work about 3 years ago.

    Recently, it does not load windows, even in safe mode and I can't get back either.

    I used a disc to boot from linux to access and backup of all my important files and now I want to reformat the hard drive, resintall windows and start over (or try something else which will fix it)

    The laptop has been pre-installed with Windows Vista and HP stuff had already installed on it.  I don't have a Windows disc or discs of driver with the laptop.

    How can I format and reinstall windows and drivers, if I don't have records?

    Help, please.

    Thank you.

    Hello:

    You can order a Vista recovery disk set for your laptop if they are still available. See the instructions below:

    http://support.HP.com/US-en/document/c00810334=

    If you live not in the US or the Canada, you can contact HP Support worldwide for the country you live and ask recovery disks command to your laptop

    The link to the assistance of HP WW is below:

    http://welcome.HP.com/country/us/en/wwcontact_us.html

    Paul

  • Need help with the links and the fill color

    Hi all, I just recently discovered liveCycle and I am very impressed with it! I tried to get a calendar of working from home for awhile now and I did for the most part, but there are a few things more that I would like to add that I do not know how to do.

    I have experience HTML and Java, but very few XML or JavaScript experience. I have a feeling that what I try to do is relatively simple, but I just can't understand it! I spent hours on Google and the help files, and I feel that I got the end again, but not joy.

    I have attached my calendar (truncated to fit the size of max 5 MB attachments) so far. I would like it to do more than two things:

    1. have the background color of the table cells change from white to green when the checkbox is enabled.

    (Alternatively, I would really like to get rid of boxes to tick all the thogether and just the table cells background become green with a hotkey, such as "ctrl + D" to 'make'.) "But if this is not possible, then the color change with the box is fine).

    2. I want the button called "WORD DOC" in the upper right of the form to open a document in word on my local computer. I just push this button and a doc of work opens right in Word in another window.

    I was able to get. PDFs to open in the other two buttons here ('Big Java' and 'Beginning Java II') by adding the script

    app.openDoc ("Big Java.pdf");

    and

    app.openDoc ("Java beginning II.pdf");

    for each buttons respectively, but these PDF files must be in the same folder as the calendar to make it work. I tried just to edit this script by replacing the name of the PDF file by the name of a file to Word doc like this:

    app.openDoc ("test.docx");

    but the button does not work, there is simply nothing.

    So what I'm trying to do. I spent hours messing around with everything I could think of to make it work, but unfortunately I do not know the language well enough so he can work.

    I'd appreciate really any advice on this at all. I thank very you much for your review.

    Click on the second box to check and see the result.

    Is that what you want?

    Nith

  • Help with the VLAN and RVS4000

    I am trying to Setup VLAN on a RVS4000 to share our Internet connection with another office but do not allow access to our network of the other network. We have a BEFSX41 connected to Internet and also connected to our other site via a virtual private network to another BEFSX41. Port 1 on the BEFSX41 connects to Port 1 on an EZXS88W switch.

    The other company has provided the RVS4000 and also provides a WRT54GS router. I want to connect 2 ports on the BEFSX41 to Port 1 on the RVS4000 and 2 ports on the RVS4000 to track 1 on the WRT54GS.

    Port 1 on the RVS4000 is member of the default VLAN1 and Port 2 will be a member of VLAN2.

    Our IP network is 192.168.20.0/24

    BEFSX41 is 192.168.20.1

    The DHCP service is disabled

    The RVS4000 has a static IP address of 192.168.20.254 and is configured as a router

    DHCP is also disabled

    The wireless network is as follows:

    IP network is 192.168.21.0/24

    The address IP of WRT54GS is 192.168.21.254 and is static and also configured as a router.

    I don't know how to actually Setup the VLAN from here and the instructions are not useful. My questions are:

    1 port 1 on the RVS4000 must be safe, with label or Untagged?

    2 If the interval routing disabled?

    3. If so, how do I route between the RVS4000 and WRIGHT so the two networks have access to the Internet, but not to other networks?

    The befsx41 should be one that is connected to the internet so that your final point so that the vpn tunnel work. The wan port on the wrt54g must be connected to the lan of the befsx41 port.

    If your server is located behind the befsx41, you should be able to port forwarding. If your server is located behind the wrt54g you may experience the problem with the redirect because you need to forward ports on both routers and according to me, there are some applications that do not work on double NAT.

    If you want to have access to the internet on both VLAN of the rvs4000, it should work as a router so its internet port must be connected to the port the befsx41 lan.

  • HP Pavilion a6000n - improvement of the system. Need help with the decision and suggestions

    Hi all

    I have a HP Pavilion a6000n, spec even with this link , except that I have 3 GB of memory and Window Vista Home Premium 32-bit.

    I think to update some of my computer hardwares that can run more smooth in some games and to improve my gaming experience.

    I'm looking to replace the processor and graphics card.  At the present time, I have an AMD Athlon (TM) 64 X 2 Dual Core Processor 4200 + 2.2 and a NVIDIA Geforce 6150SE nforce 430.

    My price range is around $100-$200 for processor and graphics together.

    I looked at cela processor and graphics card

    They will make a big difference and improvement than what I have at the moment?   If this isn't the case, then can you guys give me some suggestions on the choice of the better ones out there?

    Thank you!

    You have only a 300w ATX PSU (Power Supply Unit), then you will need to update if you plan to install a good graphics card.  Check the manufacturers minimum power required for the card you decide on getting.  As for the CPU, it does not require the upgrade - the graphics card is what causes your performance problems (in the games).  I would like to spend more money on a power supply and graphics card and leave the CPU alon (so far )

    Message edited by Kalt on 05/12/2008 23:18
  • by comparing certain objects... helps with the formatting and variables

    I want to delete computer accounts in an ORGANIZATIONAL unit that do not exist in a folder of vmware...

    Step 1. Compare.

    $ad = Get-QADComputer -SearchRoot 'domain.lan/Test-NoGPO'
    $vmware= Get-VM -Location VDI_RemoteAccess
     
    Write-Host "AD" $ad
    Write-Host "VMWARE" $vmware
     
    Compare-Object  $ad $vmware
    
    

    Gives me this result:

    AD DOMAIN\DSTASA1$ DOMAIN\SXCH100$ DOMAIN\SKFB111$ DOMAIN\FAKEPC$
    VMWARE vstaq16 vstaq18
    
    InputObject                                                               SideIndicator                                                           
    -----------                                                               -------------                                                           
    vstaq16                                                                   =>                                                                      
    vstaq18                                                                   =>                                                                      
    DOMAIN\DSTASA1$                                                          <=                                                                      
    DOMAIN\SXCH100$                                                          <=                                                                      
    DOMAIN\SKFB111$                                                          <=                                                                      
    DOMAIN\FAKEPC$                                                           <=    
    
    

    I need the output of 2 first orders are the same... preferably just the 'name' of the pc. On the subject line - compare I tried to use $ad. Name and $vmware. Name but that the errors and says that it is null when the script runs...

    How to disinfect these lists and end up with a list of computers that are not in both places? (to later be deleted with other commands, not relevant here)

    You were there at halfway when you tried with the Name property.

    But you must keep all the computernames in 1 table and all VMnames in another table.

    Then, you can compare the 2 tables.

    Something like that

    $ad = Get-QADComputer -SearchRoot 'domain.lan/Test-NoGPO' | %{$_.Name}$vmware= Get-VM -Location VDI_RemoteAccess | %{$_.Name}
    
    Compare-Object $ad $vmware
    
  • HP Pavilion Notebook - 15-p199: need help with the installation and activation of 10 Windows after completely uninstalling Windows

    Hello HP assistants.

    I need help for a specific problem. My laptop came with an installation of Windows 8.1. Then I upgraded to 10 Windows when it became available. After a while, I decided to uninstall Windows completely (to wipe the hard drive) and install a Linux operating system.

    Now, I decided that I want to use some software that is not available on Linux and if I want to reinstall Windows 10. My problem is that Windows has completely disappeared in a form any. So now, I need to download Windows 10 from an official source (which I think can be done fairly easily from the official source of Microsoft, although if there is a better, HP official medium to do this then please recommend it) and then I need to activate Windows some how.

    As has been made clear, I have the right to use Windows 8.1 and 10 but I would need to download Windows 10 and turn it on. Is there a way to do this? I'm literally stuck without solution.

    Thanks in advance.

    Hello

    As long as the previous installation of Windows 10 had activated Ok after upgrade from 8.1, you can simply perform a new installation as described in the guide on the following link.  Note: On the activation screen, select "I don't have a product key" - Windows will activate automatically once installation is complete.

    http://www.howtogeek.com/224342/how-to-clean-install-Windows-10/

    Kind regards

    DP - K

  • Directly open an htm page to help with the TOC and header frame

    I was wondering if there was a way to directly load a specific help page and still have the images left and top display.

    For example, my main help page is:

    MyHelp\mainHelp.htm

    When I enter this url everything seems correct, and I have a TOC box with a senior that include search, etc.

    I also have a help page specific that I can navigate from the TOC framework.  Let's say that:
    Topic1.htm

    If I go MyHelp\Topic1.htm - the only thingdisplayed is the page of Topic1.htm itself and no other frames.

    Does anyone know how I can do these chassis more appear?

    Thank you

    See call WebHelp by using URLS on my site.

    See www.grainge.org for creating tips and RoboHelp

  • Help with the lasso and auto smoothing...

    I must have done something by mistake - all of a sudden when I make a selection with my lasso tool, click on out of her, photoshop automatically smooths my selection (makes it smooth as in an oval or circle, ignoring my detailed selection).  How to remedy this situation, or disable auto-smoothing (?)?  Thanks for any help you can give.

    Set the value of the pen to a few or zero in the options bar.

    Paulo

  • Need help with the query and output

    I have a table that contains a list of property and each an asset contains a category field, each an asset can have several categories assigned, then the category column is filled in a list (for example, 14, 16, 17, 19).

    The values are based on a table of categories using the primary key as a reference number (for example 14 = keyboards, 16 = Trackballs, etc..)

    I tried to understand how the power of categories so that when the category is displayed, the list will appear under the name of the category as opposed to the non referenced.

    example:
    < name cfquery = "qIndex" datasource = "#appDSN #" >
    SELECT Asset.Reference, Asset.AssetName, Asset.Category
    Assets
    WHERE category LIKE ' %#URL. Category #% '
    < / cfquery >

    < cfoutput query = "qIndex" >
    #Asset.Reference # < br / >
    #Asset.AssetName # < br / >
    #Asset.Category #.
    < / cfoutput >

    Exhibition:
    AD_987738
    Keyboard XYZ
    11, 14, 17, 18

    Table for categories are:
    CatID = primary key
    Category = category name
    CatImage = header Image

    Thanks for any help.

    Finally figured this out. Had to insert an intermediate query within the output to filter each record, otherwise he was out the results of the first record only and repeat.


    SELECT *.
    Assets
    WHERE category LIKE ' %#URL. Category #% '


    SELECT the CATEGORY, AssetID
    Assets
    WHERE assetID = #qIndex.AssetID #.


    Category category WHERE CatID IN (#catids #)


    Category: #qCat.Category #,

    #qIndex.Asset #.

    #qIndex.Reference #.

    Thanks again for the help.
    Paul

  • Need help with the upgrade and activation 10 WIndows in Windows 7

    * Original title: upgrade windows 10

    I am now using windows 7 ultimate sp1, today get 10 app shows upgrade windows to windows 10 now.i am now in a little confusion if I update to windows 10 can he turn what method?
    right to digital or by using the product key.

    Is this the same computer - not necessarily the same problem or the Windows version - as in one or more of these other threads of yours?...

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-windows_install/Windows-10-upgradation/6eec5c3e-4391-4a67-8a02-56bba437f137 (13 Mar-16)

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_10-performance/Windows-10-slow-running-showing-logo-twice-when/a3b1bea1-8871-43f9-840B-efa46445a557 (Mar 04 - 16).

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_10-performance/Windows-10-Pro-blue-screen/4991e1a1-c54d-4B35-b28e-9ccfedec3359 (29 February-16)

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_10-update/how-to-get-November-update/390e4cec-d39b-4D6F-B03D-1d6ed069e25f (20 Feb-16)

  • Help with check boxes and actions

    Hello

    I just downloaded a trial version of LiveCycle Designer ES2 to see if this program works for the company that I work for. I need to create order forms for our products that our customers can fill out online and then send an e-mail to our sales department.

    I have imported our current order form to LiveCycle as a work of art and have inserted check boxes on the form. I want the form to automatically add the price of the option they checked off the retail price of total at the bottom of the form. Do you have any suggestions for me?

    Thank you!

    Stefan

    Hello Stefan,

    LC Designer is a very powerful application. While you can drag and drop objects on the form, for things really move you need to put a script in objects. This allows to control the way in which the form will be according to the users actions.

    To begin with there is help. If you have a look at the Action Builder in the Tools menu, you can select an object, then use the plain instructions accumulates the desired interaction. When you click OK, LC Designer will insert the necessary script.

    Therefore, there may be a steep learning curve, so it depends on how comfortable you are to roll up your sleeves and do some scripts.

    First, you must configure your workspace. This tends to be a personal preference, but here's a basic layout.

    It is a bit small, because of the scale, but you get the idea. At any time, you should be able to see the page, the hierarchy and the script editor. The object library and the range of the object and other palette must be close to hand as well.

    I am NOT inclined to import the form existing as work. This can limit the built-in options in LC Designer later. You can save your form existing in JPEG format and then in a new form to use the image object (value size full page) to display the image of the existing form.

    [ALTERNATIVE: you can also add fields to a PDF in Acrobat].

    Regarding scripting, the following JavaScript code should work in the click event of the checkbox (on the ground that the other field is named totalPrice).

    If (this.rawValue == 1)

    {

    totalPrice.rawValue = totalPrice.rawValue + 10;

    }

    on the other

    {

    totalPrice.rawValue = totalPrice.rawValue - 10;

    }

    This should take into account if the user changes of opinion and unticks the box.

    One thing to keep in mind about forms developed in the LC Designer, it is only the functions that will be available in the form (such as submit by e-mail in PDF format) will depend on whether the user has Acrobat or Reader, and also on whether the form has been active player (and how it has been activated). There is more information here: http://assure.ly/gYyYc2.

    I highly recommend JP Terry on LC Designer which is excellent - book "create dynamic with Adobe LiveCycle Designer Forms. It starts at the beginning and clearly sets out the key learning points. In the end, there are a few good examples that you can copy anywhere in your forms.

    We have solutions and blog posts on our website http://www.assuredynamics.com.

    There are also a range of online resources. You can find these resources useful:

    http://www.Adobe.com/go/learn_lc_scriptingBasics

    http://www.Adobe.com/go/learn_lc_scriptingReference

    http://www.Adobe.com/go/learn_lc_formCalc

    http://www.Adobe.com/devnet/LiveCycle/articles/Adobe_XML_Form_Object_M odel_Refer ence.pdf

    http://www.Adobe.com/devnet/Acrobat/PDFs/lc_migrating_acrobat_xmlform. PDF

    And a very convenient resource (and even if it's for version 6, it is still very good because of the way it is presented):http://partners.adobe.com/public/developer/en/tips/CalcScripts.pdf

    The HelpFile in the LC designer can also help with the syntax and LC designer itself comes with some great models and examples.

    Finally, discover the network of the developer on http://www.adobe.com/devnet/livecycle/

    A book that does not deal with the scripts at all, but is very good on the formatting is also ""does this work " by Caroline Jarrett and Gerry Gaffney."

    The Adobe "PDF forms Bible" is OK, but focuses mainly on AcroForms.

    WindJack Solutions have a service on subscription for the scripts and solutions tohttp://www.pdfscripting.com. There a lot of AcroForm script which can be modified according to LC designer and a growing library of LC Designer solutions.

    I hope this helps,

    Niall

  • get a nervous movement on MOUSE_OVER and MOUSE_OUT

    If you go to my intro page mojogar.com and place the cursor on the cards, the card movement gets jumpy while still hovering in some places on the map of each.  Each card is a symbol on the stage and is controlled by the following AS3.

    animationMainPage.addEventListener (MouseEvent.MOUSE_OVER, animGo);
    animationMainPage.addEventListener (MouseEvent.MOUSE_OUT, animOut);

    supportMainPage.addEventListener (MouseEvent.MOUSE_OVER, supportGo);
    supportMainPage.addEventListener (MouseEvent.MOUSE_OUT, supportOut);

    designMainPage.addEventListener (MouseEvent.MOUSE_OVER, designGo);
    designMainPage.addEventListener (MouseEvent.MOUSE_OUT, designOut);

    function animGo(event:MouseEvent):void {}
    gotoAndPlay (29);
    }

    function animOut(event:MouseEvent):void {}
    gotoAndPlay (38);
    }


    function supportGo(event:MouseEvent):void {}
    gotoAndPlay (61);
    }

    function supportOut(event:MouseEvent):void {}
    gotoAndPlay (70);
    }


    function designGo(event:MouseEvent):void {}
    gotoAndPlay (45);
    }

    function designOut(event:MouseEvent):void {}
    gotoAndPlay (54);
    }

    no explanation on the jumpyness?

    Thank you.

    What you see is the effect of having a mouseover interrupted by a mouseout/mouseouthandler() (and), probably because of something inside objects interfere.  This often happens when you have a selectable text in an object, but I don't see that being the case in each of the cases here.

    What you try to do is set the mouseChildren to false for each of the buttons and see if that makes a difference.

    animationMainPage.mouseChildren = false;

    supportMainPage.mouseChildren = false;

    designMainPage.mouseChildren = false;

    You can also try to change the ROLL_OVER and ROLL_OUT event.  The MOUSE_OVER and MOUSE_OUT the can trigger other questions at times, but I do not directly apply in your case.

Maybe you are looking for

  • 6.5.0 RC1 slow RESPONSE

    Hi all Seems after installing RC1 6.5.0 (was 6.5.0 T338) after about 5 min, is no longer, I can reach any url feature is the host, but I can access via ssh. What ever it is causing issues slows ssh access as well, although ssh connects is very very s

  • power density spectrum

    I'm using strain gage accelerometers to collect data from acceleration axis X, Y and Z on channels separated as a way to quantify the vibrations in the cabin of an off-road vehicle.  Using the DASYLab "formula module" I put across the output of the a

  • LogicalDisk scoping

    Hi all I'm rules by scope Services. For example I brought to CPU utilization as:(Host: $object in (((FSMService_:_name_like_'Fogl%').definition_:_$object_instanceof_FSMChildService).definition: $object instanceof FSMDynamicManagedComponent) .componen

  • Reinstalling Windows 7 on a new hard drive

    I can't find an answer to this question anywhere. I own a Sony Vaio VPCL116FX running Windows 7. A few days before, without warning, a window opens, informing me that the failure of the hard drive was imminent and do a disk backup and restore immedia

  • Windows 7 final activation States "invalid product key".

    I went to activate windows 7 ultimate via internet, but it says "product key invalid"what should I do? ". work windows 7 without activation (only 2 days for activation) Please help