A few questions on making animated buttons for a website Nav

Hello, I have a few questions on creating some animated buttons for a nav.
There are 2 actions I want to trigger on moue over.
If I want to use a static (PNG) image that I created in Photoshop for the actual button, can I use that? I want to smoothly slide button down on mouse-over and slide back up on mouse off. If I push part of the button off the "canvas" (sorry, this is coming from a Photoshop guy) will it disappear in the final animation? Another way to put that is, if I put an animated element off the white area, will it no longer show up in the movie (.swf) when it's published?
For the second part; you can see a bit of what I want to do if you look at this website's top Nav: http://www.photoshopsupport.com/index.html
I need the "light" above the button and it's going to be on another colored <div> so I can't set one solid BG color for my flash document. But I want to achieve the effect of the "bar" lighting up above the button and the actual button sliding down upon moue over.
Any help you can provide would be greatly appreciated.

Hi,
Regarding this button problem mentionned by kglad, it is easily overcome with a little trick.
I call this the undesired "jumpy button". Your button starts to hesitate down-back-down-back quickly, like it's a bug, and then it settles.
What you could do is create a simple sprite or movieclip containing only a simple shape, whatever the color, put it on top of your button's graphic, change this sprite/movieclip's alpha to 0, then add your mouse events on this invisible "target" instead of your graphic. So, when you mouse over, you have the graphic move, not the invisible "target".
Sometimes, for this invisible target, you will be using a movieclip, not a sprite, so you can easily add your own properties on it.
Example:
var graphicBtn:Sprite; // your png
var targetBtn:MovieClip; // your invisible target, created with code or not
targetBtn.graphics.beginFill(0x000000);
targetBtn.graphics.drawRect(0, 0, graphicBtn.width, graphicBtn.height);
targetBtn.alpha = 0;
targetBtn.mygraphic = graphicBtn;
targetBtn.addEventListener(MouseEvent.MOUSE_OVER, onOver);
targetBtn.addEventListener(MouseEvent.MOUSE_OUT, onOut);
addChild(graphicBtn);
addChild(targetBtn);
function onOver(event:MouseEvent):void
     TweenLite.to(event.target.mygraphic, 0.25, {y:40, ease:Back.easeOut});
function onOut(event:MouseEvent):void
     TweenLite.to(event.target.mygraphic, 0.25, {y:0, ease:Cubic.easeOut});
So you see, you can have only one function (well, 1 for over, 1 for out) used for all your buttons. You can add as many properties you need on your movieclip to make that one-function flexible.
Here I used GreenSock's tweening engine, but use the one you prefer (Here, I am moving the graphicBtn in y for 0.25 second).
Design Cyboïde
Création de sites web

Similar Messages

  • What is the best tool for making a "coupon" for my website?

    What is the best tool or app for making a "coupon" for my website?

    Not according to the people I have rented from because I asked them.  They provided me with a suggestion I simply thought I would get another opinion. 
    I am not trying to get anything for free I just want more than 24 hours to finish watching a movie on my iPad.  If iTunes would give more than 24 hours to finish a movie (like 48???) it would help.  I have spend endless hours trying to comunicate with Apple about the issue.  Guess what no one cares!  I love Apple and my Apple products, I am a very good customer but I think they are over the top on this issue, they have a monopoly.
    Maybe you have another suggestion??
    This is the first time I have ever used a "Support Community" for ANY product, sorry I broke the rules.  I have never taken anything for free from anywhere.

  • Making a button for a third party plug-in

    Hello there,
    I've just downloaded and started playing with Configurator.
    My problem is that I would really like to add buttons for two
    plug-ins I've added to photoshop.
    (Picturecode Noise Ninja and Alien Skin Exposure 2).
    These plug-ins do not appear on the drop down list in
    Configurator.
    Is there any way I can modify the script box in order to
    launch a non-standard plugin?
    Similarly, I have a Script (Showit Borders) that I'd like to
    make a button for.
    Many thanks,
    Miller.

    id try it but i use neatimage for noise...
    your actions are all created with selecting a new action,
    then going to INSERT MENU ITEM within the actions panel so that you
    could then manually add a plugin to your action, yes?
    as opposed to actually hitting RECORD for a new action and
    then going to the plugin within the normal dropdown menu, which
    might then cause problems with some plugins, because your not just
    adding the plugin window to popup this way, your adding the plugin
    window to use the settings you recorded with, and if its noise
    reduction, it could be trying to pull the exact-named file into its
    profiler...im just taking a stab at the cause...

  • How do I create an ANIMATED GIF for my Website Logo?

    Hi,
    I would like to make a turning logo for my website. The problem is that I don't know which software to use and how.
    Is there an Adobe program which is easy for creating an Animated GIF or equivalent moving logo...
    You can see my static logo here: Online Radio
    Thank you,
    Freeway

    Hey Iggy,
    These might help:
    Muse
    http://tv.adobe.com/watch/introducing-business-catalyst/getting-started-with-business-cata lyst-and-muse-what-is-business-catalyst
    http://tv.adobe.com/watch/introducing-business-catalyst/getting-started-with-business-cata lyst-and-muse-creating-and-publishing-sites
    -Dave

  • Can anyone describe the workflow for this website nav?

    Here's the url:
    http://www.hypertemplates.com/templates/11195.html
    I'm trying to create a similar nav system for my website, I'm
    not concerned with the search features, but I just want the top nav
    portion to have all the elements "fly into place" after loading,
    then have the main pic have some animation that loops with animated
    buttons such as the one in this template. I know this is a
    subjective question, since there's probably many ways to accomplish
    the same task, but I was curious to hear how different people would
    go about building such a thing before I start. Also, does anyone
    know where to get some simple, non-obnoxious click sounds for
    buttons (kind of like the ones in this template, maybe even more
    non-obtrusive)?
    Thanks everyone, have an awesome new year!

    Here's the basic gist of how I'd do it:
    1) Create your nav, make sure each button is it's own symbol.
    2) Select all the nav items, right click, distribute to
    layers
    3) Select all the keyframes for each nav item layer on frame
    1, and move to some location where the nav will start to fly in
    4) Still dealing with the nav item layers, select a column of
    frames say 10-20 frames beyond where the keyframes are, press F6 to
    add keyframes
    5) You now have two keyframes, start and end point. Scrub the
    timeline to where the first keyframe is, and
    a) Move them to the right, say 50px
    b) In Properties panel, change the Color mode to Alpha, and
    set to 0 or a small value, like 10
    6) Now scrub the timeline to where the end keyframes are,
    select all the nav items on stage, and make sure it appears as you
    will want it to(since you already added the keyframe, it should be
    100 alpha and in the right place)
    7) Select a column of frames between the start and end
    keyframes for the nav item layers
    8) In the properties panel, for Tween select Motion
    9) Add some ease
    10) At this point all nav items zoom in at once. Now simply
    go through the timeline and take each tween and move it to the
    right a few frames, so one will come in after the other
    For the looping animation picture, put some animation inside
    of a MovieClip symbol, it will loop when on the main timeline. Now
    you can just fade in/animate in the MovieClip initially.

  • Making a button for a song

    I am making an iWeb site to showcase music but the QT loads slowly and I ran across a way to make a HTML snippet with inserted code here: http://web.me.com/toad.hall/Demo_2/Widget-Window.html.
    My question is how to accomplish "URL to location of linked file" which I supply inserted into the code. The songs are on my hard drive right now. What is the path? Do I upload them to the iWeb server? Its all new to me and I'm confused. It is probably very simple but can't find the answer. Maybe someone can help. Thanks in advance.

    I've done a whole section on Music Players here...
    http://www.iwebformusicians.com/MusicPlayers/Players.html
    You'll find a variety of ways to play your music and also stuff about file paths.
    There's also some downloadable tutorials for the more complicated players here...
    http://www.iwebformusicians.com/iWebMusicWebsite/iWebTutorials.html

  • A few Questions about Zoo Tycoon 2 for Mac

    I just got Zoo Tycoon 2 for my macbook, and everytime i play the game, after a few hours, the game will either freeze, lock up my laptop, or just go completely goofy. I'm just wondering if anyone else has this particular game for their mac, and have experienced similar problems. If not, just in general, is it the game that has an issue, or do i need to change something with my laptops actual settings?
    For anyone that does have this game and knows something about it, is there anyway to slow down the cursor speed? It seems to be in in fast forward, the animals and people move around like crazy too. Just wondering if this is just the way that this particular version is, or if there is a way to change that.
    Thanks!

    The pdeploy bug on PortalServer+AppServer+Windows is verified by a very helpful Sun contact in Sydney, Australia. The workaround is to copy your portlet WAR file to the C:\Sun\PortalServer\tmp\portlet directory, and run the pdeploy command from that directory, e.g.
    C:\Sun\PortalServer\tmp\portlet> C:\Sun\PortalServer\bin\pdeploy deploy -u "uid=amadmin,ou=people,dc=synergy,dc=com,dc=au" -w admin123 -p admin123 -g helloworld-portlet.warAlso, to redeploy, it is important that you copy your original WAR file to the tmp\portlet directory as deployment makes changes to your original WAR file. For example, it adds the portletappengine.jar file to your WAR file and registers listeners in your web.xml. An attempt to deploy the existing (from prior deployment) WAR file in that directory will result in a "IllegateStateException" when you view your portlet.
    In addition to the above, I was also having problems getting the Portlet deployed/registered correctly. After some investigation, it is found that the root cause of the exception is a ClassNotFoundException, wrapped by the observed UnavailableException (in the portlet log file). The portlet class is found to be instantiated via the default Class.forName(...) method, which uses the class loader of the caller. Debugging shows this to be an AppClassLoader rather than a WebAppClassLoader, and as such not able to find the portlet classes. The correct way of doing this is to use the 3-argument Class.forName(...) method and pass in the current context loader. Long story short, you will need to patch the com.sun.portal.portletappengine.impl.LifecycleManagerImpl class (portletappengine.jar) and replace the existing "Class.forName(...)" call in the "createPortlet(...)" method with "Class.forName(portletClassName, true, Thread.currentThread().getContextClassLoader())".
    I hope Sun support engineers pick this up for their next release.
    Thanks,
    jeff

  • Page up button for my website

    Hello ,
    here is my website you can check the page source code www.modaikra.com  .when i put page up commands into my source code java breaks.I need a page up button which goes down when you go down on the page.
    Thank you

    Hello,
    you could use a small "sticky footer" adapted from http://alt-web.com/DEMOS/CSS2-Sticky-Footer.shtml. I for my part sometimes use an arrow image in conjuction with
    <a href="#top"><img src="images/up.jpg" border="0" />.
    Hans-Günter

  • Need to create a PDF with submit button for Wordpress Website.

    I need to create a restaurant's employment application in PDF form with fields that user can fill out and a submit button to send the form to a specified email. I then need to put this PDF online on client's website. Is this possible with ID?

    Yes, but you may have to tweak it in Acrobat Pro.
    That said, you may be better off just creating the form right in the
    site. My guess is that there are a ton of WordPress plugins to do this.

  • ITunes button for my website and myspace

    hello there..
    i am trying to find a button that i can add to my website and to myspace accout to show that i have a cd available through iTunes. a button that someone can push and they would be magically transported to the iTunes music store.
    does such a button exist?
    thanks!
    csdj
      Windows XP Pro   n/a

    Well, I think I have your answer. If you go to itunes, and make your way through the music store to where your podcast is, and click the arrow nex to it so you get the full page description where your picture and episode listing is, right click on your image on select "copy iTunes Link" or something like that.
    that's it, that is the link you need. throw it in an
    My podcast
    and you are good to go!

  • Animated button as3

    Hi there
    I have this animated button that I created from a tutorial, but am a little confused at to how I could set a hotspot for the button, the button is just a white outline square, no background image, so the button is not completely filled.
    it only triggers when rollover line, am I making any sense.
    is this the easiest way to create an animated button in as3, seems like there is alot of script???
    I have attached fla example of button

    thank you for that, yes that makes sense
    is this now the norm for making animated buttons in as3, or do/can you use a hotspot from the button movieclip??
    what is the correct way?
    many thanks

  • "Get" button for podcasts has disappeared

    A few days ago, the "get" button for individual or get all podcasts no longer appears, so I can't manually download podcasts anymore. I have iTunes 10 and an 8 gb iPod Touch. In my iTunes it just lists the new available podcasts, but there's no more buttons and when I right-click, there's no options there to download either. Any ideas?

    I have the exact same problem using iTunes 10 and an iPhone 4. I'm pretty sure it's a bug, as most people still have those buttons. I'd really like to get them back. But in the meantime, you can double click on the grayed-out, available podcasts and that should start downloading them. Alternatively you could go to the podcast's iTunes page and download them all manually, but that's even more of a pain. I haven't figured out any way to Get All though.

  • Animating buttons - How to go to another chapter when selected

    I am putting together a DVD of soccer highlights. I thought it would be great to have an Animating button for each player with one of the best clips in the button. The problem I can't figure out is when the button is selected for that player it goes to the chapter# from the animation and not the chapter # where the player's highlights start. I thought I could do it with Button Override but there must be something I am missing. Thank you.

    Bill,
    One Timeline and one chapter for each player.
    In previous DVD's I started each chapter with a jersey number that is in a static button.
    Rather than start the animation with the jersey number and then the title to a clip (for each game I have a 4 second title with date, team score etc) I would like to have a highlight of their best play in their button.
    I have gotten this to work with the first player(by adding two more chapters before the next player's chapter and using this chapter for animation and setting the end action to go to the player's chapter) but when the button is selected things go wrong. The animation that is in the button plays full screen and then jumps to the start of the player's chapter. I could live with this but when I add a second player using this same technique things seem to go wrong. I may of had some overrides that are the culprit.
    From what you said what I am trying to do may not be possible but I wanted to give it a try. Thank you.
    Bob

  • Few questions about streams configuration

    Hi all,
    I am currently setting up a test streams environment while going through the documentation, and had a few questions. This will be for a 10.2.0.2 environment across two databases.
    1) If I setup a streams admin account of "strmadm", and create the queue under this account. Is it possible to have other user accounts create the rules for the capture and apply? The documentation mentions granting dba to the strmadm account, and we would be prevented from allowing the application developers to have access to this account.
    2) What are some of the best sources of info for 10g streams? I have doc 298877.1 and the Oracle documentation, but was wondering if there were any other good sources of info.
    3) Our current plan is to have the capture, stage, and propagation monitored by the DBA team, while the apply is managed and coded by the developers. We were thinking to do this we would create a strmadm account in each database, with a queue created by strmadm. We would have a local capture done on database A, and propagate the LCRs to the queue on database B. Once the messages were in queue on database B, it would be the application developers who were responsible for writing the code to properly apply the messages. Does this make sense from a high level, or am I missing something?
    Thanks for the help

    1)
    Sure. You can use any name. even multiple dfifferent accounts.
    DBA is requared.
    2)
    298877.1 is good document but for 10gR1
    You can use Streams docs. Just search DBMS_STREAMS_ADM.MAINTAIN... procedures. You will find good source somethere close.
    3)
    I think DBA team should be responsible for everything excluding DML handlers.
    Regards,
    Sergey

  • Few questions about website...

    Hello,
    I'm trying to create my first website but I have few questions as I stuck, link to my website below:
    http://yee.sytes.net
    user: test
    password: t3st
    1. I know that I should slice the boxes of the packages because they need to be flexible but is there some way to do so as they are not symmetric and it is not possible to repeat middle part like in the example from the link (http://http://alt-web.com/DEMOS/Image-slices-in-a-CSS-based-layout.shtml)
    2. what would be the best way to put some text like in the picture below, I was thinking to create a div - wrap around selection (picture of package) and then inside this div create another one with appropriate size and position so it would be fix
    3. Is it possible to delete the colour of the links so there won't be any after visit or if it's active and so on...
    4. Is it good way that I put the small images-slices even if the background is the same, there are doubled but I didn't know how to keep the distances of whole website
    5. How can I disable dragging website pictures I mean if I click on the picture I can drag something like its 'ghost'
    6. How to disable selection/copy of the text
    Sorry for so many questions but it's really important for me and I don't know how to go further, thx in advance.

    3. Is it possible to delete the colour of the links so there won't be any after visit or if it's active and so on...
    If you don't define CSS link styles, you will get  default links in purple, blue  and red.  Better to use CSS to style your links as shown below (use  colors to match your own site.):
    a:link{/*unvisited*/
    color:#990000;}
    a.visited{/*visited*/
    color:#9999FF;
    a:hover{/*mouseover*/
    color:#990000;
    a:active{/*selected*/
    color:#FFCC00;
    a:focus{/*optional,  same as hover, but with tab  key*/
    color:#990000;
    The memory device for   correct link order is LiVHA (link, visited, hover, active).  For more on pseudo-classes and link  styles, visit the w3schools.com
    http://www.w3schools.com/css/css_pseudo_classes.asp
    4.
    Is it good way that I put the small images-slices even if the
    background is the same, there are doubled but I didn't know how to keep
    the distances of whole website
    I really don't  understand this question.  Your design comp should have multiple objects each in it's own layer.  Foreground images separated from background images.
    Read this tutorial.
    Taking  a Fireworks (or Photoshop) comp to a CSS based layout in DW
    http://www.adobe.com/devnet/fireworks/articles/web_standards_layouts_pt1.html
    5. How can I disable dragging website pictures I mean if I click on the picture I can drag something like its 'ghost'
    You can't.
    6. How to disable selection/copy of the text.
    You can't.  This is how the web works.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

Maybe you are looking for

  • WindowedApplication and StageScaleMode.SHOW_ALL issues in 4.5.1 SDK

    Hello, hope someone can help me out. I am having an issue updating a project from 4.1 to 4.5.1 SDK and it can be demonstrated in the sample code below. In 4.1 when the window is maximized, it fills the entire screen and scales the content to fit. In

  • Upgrading Oracle XML Parser for Java v9.0.4 with Oracle Applications 11i

    Guys, I applied ATG.PF.H.RUP4. In postinstall steps it is mentioned,Upgrading Oracle XML Parser for Java v9.0.4 with Oracle Applications 11i(doc-271148.1) which says after applying patch 4038964 do the following-- AUTOCONFIG ENABLED APPLICATIONS ENVI

  • Printing envelopes & labels in 10.2.8

    Help! We're perplexed trying to figure out whether or not we are able to print envelopes &/or labels on my son's G4 using OS 10.2.8. Thanks in advance. Power Mac G4   Mac OS X (10.2.x)  

  • Sales Order Not Getting Converted to Production order

    Hi gurus, I have a sales order and when on MTO process i try using CO08 to create a production order using with order type ZP02 , sales order no , item no , production plant the production order doesnt gets created . could anyone help me

  • Oracle WebLogic 11g - WLST issues

    Hi, I have created a template for weblogic 10g using template builder using existing weblogic 92 template and it worked fine. After that I noticed that 11g out there so we would like to use that instead of 10g. I have created the template using templ