Scrolling images scrolls from anywhere on the stage, help keeping it to current target?

hello again guys,
I have a mask over a movieclip(containing images) that scrolls on mouse over to show the hidden images, now i figured out the code but am having trouble containing the scroling ability to when i mouse over the content_mc area.
so anywhere i mouse on the stage moves the content_mc, I only want it to move when i mouse over the actual content_mc movieclip?
tried using currentTarget but cant figure out where i put it..
var verticalCenter:Number = stage.stageHeight =200;
var limit:Number = stage.stageHeight - stage.height;
var speed:Number = 0.03;
var scrollY:Number = 0;
content_mc.addEventListener(Event.ENTER_FRAME, scrollContent);
function scrollContent(e:Event):void {
scrollY = - speed * ( mouseY - verticalCenter );
content_mc.y+= scrollY;
if (content_mc.y>0) { content_mc.y= 0;}
  else if (content_mc.y< limit) { content_mc.y= limit;}

I'm not really clear on what you're attempting with that code, but if you want to limit the scrolling to when the mouse is over the area, then you should only assign the scrolling/ENTER_FRAME when the mouse is over that area, and otherwise remove it. You could probably use a MOUSE_MOVE listener to have it check if it needs to assign that ENTER_FRAME listener or not.  I don't know what the interactive nature of the scrolling section involves, so assuming that you need to be able to click within it, then you would need to monitor if the mouse is within the x/y boundaries that define the location of the scrolling area (x > x1 and < x2, y > y1 and < y2).

Similar Messages

  • Accessing oracle apps from anywhere on the internet

    Hello,
    I have oracle apps R12.1.1 up and running on linux 6.3. I have disabled the firewall on linux.
    I am able to access apps from windows clients on the same network after updating the host files.
    I would however like to access the url form anywhere on the internet.
    How can I achieve this?
    Please advise.
    Thanks.

    1006947 wrote:
    Hello,
    I have oracle apps R12.1.1 up and running on linux 6.3. I have disabled the firewall on linux.
    I am able to access apps from windows clients on the same network after updating the host files.
    I would however like to access the url form anywhere on the internet.
    How can I achieve this?
    Please advise.
    Thanks.Problem & solution have nothing to do with Oracle,
    but involves only Networking Basics 101.
    Does DB Server have a hostname & IP# that can be resolved & accessed from anywhere on the Internet?
    If so, post those details here.

  • Remotely control your PC from ANYWHERE in the world using JAVA/RMI!

    I have just developed a project named XtremePC.
    This well commented Java project involved RMI technology, can be used to control the server from anywhere in the world including features of listing running processes, file transfer, shutdown/logoff/lock/restart server PC, execute programs, browsing in DOS/Linux fashion. The server is protected by encrypted password. I bet my time and energy on this project most for increase the strength instead of designing GUI. In response to huge request from AIUB, Bangladesh teachers and students for uploading my project of Object Oriented Programming-1 course, I have decided to come up with this Java RMI project with source code!! (Tested on jdk1.3, 1.4)
    Get it from the MyDownload section of my homepage: www.tanzim.tk
    Thanks!
    -- Tanzim Saqib
    [ www.tanzimsaqib.tk ]

    and how many backdoors did you build into it so you can take over all those
    machines and turn them into zombies? lol

  • Does Apple TV remote work from anywhere in the house?

    Does Apple TV remote work from anywhere in the house?

    it's IR like a normal tv remote it's not wifi or anything like that
    so it will work the same way in relations to the appletv as your tv remote works in terms of the tv

  • On my 4gen ipod i have to move close to the internet router to get a better signal.while on my iphone and other devices they connect from anywhere in the house

    my ipod needs to get closer to a router to get a better signal and why is that.But my other devices like iphone ipad connet from anywhere in the house to our internet.how do i fix my ipod so i wont have to get close to a internet router to get a better wi-fi signal like other normal devices.

    If you have that problem with all networks that tends to indicate that the antenna connection is lose.
    http://www.ifixit.com/Guide/Installing+iPod+Touch+4th+Generation+Wi-Fi+Antenna/3 640/1

  • Hello. Recently I am having a problem of loading video from youtube. The message "loading" keeps go on and on and nothing happens.Can you advise on how to fix this problem ?

    Hello.
    Recently I am having a problem of loading videos from Youtube.
    The message " loading" keeps go on and on and nothing happens. Can you advise on how to fix this problem.
    Thank you inadvance.

    This problem has been fixed. I rebooted my laptop after clearing my Firefox cache and deleting all cookies. Once my laptop was rebooted, I opened Firefox and now I can access the regular YouTube site, not the mobile site.

  • Navigate an image that is larger than the stage?

    Hello, I would like some assistance getting this to work. I'm not even sure if its possible, but I will be eternally grateful for an answer.
    I would like to have an image much larger than the stage, with little buttons all over it that play a MC when moused over. When the mouse reaches the edge of the screen, I want it to scroll so that the viewer can explore the whole image.
    In short, its a map with destinations, and on mouse over the destinations play a MC. I'd like the viewer to be able to "explore" the map with the mouse.
    It seems simple, is there a good way to do it?
    Also, once it is done, is there a way to begin with the entire image shown, but then have it tween to its final (Very large) size, without breaking that functionality.
    Thank you so much. This is for a class project and I'm trying to "go above and beyond" but, its a little to beyond for me.
    Kayla

    To make the image move, based on the mouse position you might do something like this:
    addEventListener(Event.ENTER_FRAME, checkMouse);
    function checkMouse(e:Event):void
         if(mouseX > 500){
              myImage.x -= 1;
         if(mouseY < 100){
              myImage.y += 1;
    That's just a simple example. You'll need to check the bottom and left too... and you'll need to stop your image from moving past its edges:
    if(myImage.x + myImage.width < theRightEdge){
         myImage.x = theRightEdge - myImage.width;
    to keep it from going too far left...
    I would also suggest using TweenLite to do your tweening. You can simply google TweenLite to find it.

  • My down and up arrow buttons for scrolling don't work except on the firefox help page, it worked fine with chrome?

    I had google chrome before I switched to firefox due to the obsessive popups on chrome. All of a sudden the up and down keys don't scroll up and down on web pages, the only one they work on is the firefox help page. Any thoughts?

    In order to be able to find the correct solution to your problem, we require some more non-personal information from you. Please do the following:
    *Click the Firefox button at the top left, then click the ''Help'' menu and select ''Troubleshooting Information'' from the submenu. If you don't have a Firefox button, click the Help menu at the top and select ''Troubleshooting Information'' from the menu.
    Now, a new tab containing your troubleshooting information should open.
    *At the top of the page, you should see a button that says "Copy text to clipboard". Click it.
    *Now, go back to your forum post and click inside the reply box. Press Ctrl+V to paste all the information you copied into the forum post.
    If you need further information about the Troubleshooting information page, please read the article [[Use the Troubleshooting Information page to help fix Firefox issues]].
    Thanks in advance for your help!

  • Sically close to the router. This is a new problem as previously it picked up wifi from anywhere in the house and garden. My wife and daughters IPads pick up wifi from anywhere in the house and garden.

    My IPad 2 has suddenly been unable to connect to wifi unless it is physically close to the router. Previously it picked up wifi anywhere in the house or garden.but now, for example,  I lose the signal if I go to the top floor of the house. My wife and daughters'  IPads do not have this problem and can get wifi throughout the house and garden.

    Reset network settings:
    Settings > General > Reset > Reset Network Settings
    If that doesn't work you could try a complete reset of the iPad, so back it up using iTunes first.

  • Movie Clips vs the Stage help me out plz

    Before i start i currently am taking a class on flash and i
    dont think we have gone terribly in depth.
    I have 2 sets of Code one in a Movie Clip and another on the
    Stage.
    the issue i have is neither one can see variables from the
    other. is there some special syntax or notation i need to pass the
    variables
    I cant see the Current Unit in the Button

    Syntactically your code is just fine. I didn’t receive
    any errors when I checked it. However I would rearrange some things
    in it. The 2 eventhandlers in the onEnterFrame function, I would
    pull these out and put them outside of the onEnterFrame function
    but on the same frame.
    “the issue i have is neither one can see variables from
    the other. is there some special syntax or notation i need to pass
    the variables”
    Inside that mc, the code that you have below “//Code in
    Button”, it is typically recommended that you don’t
    reference other movieclips by using ‘_levelX’. Use a
    relative path, such as ‘this._parent” or
    “this._parent._parent” depending on how many movieclips
    are nested into it. Also note, when you reference a movieclip from
    inside an eventHandler (onPress, onRelease, onEnterFrame, etc.) you
    are already within an object. So to reference something on the same
    tier you should use ‘this._parent’. Once you find the
    correct tier by using the code I mentioned in the last sentence,
    you then need to attach the instance name of the movieclip you are
    trying to access (that is if you are trying to access a movieclip).
    For an example, ‘this._parent.currentguy’.
    I hope this helps, I understand it may be hard to grasp
    however give it a shot and post back.
    You may be interested in this link that is from the livedocs;
    http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context= LiveDocs_Parts&file=00001220.html

  • New tweens and resizing the stage: Help!

    Hi all. I'm going nuts trying to figure this out.
    I built an animation project at 630 pixels wide. Turns out the project needs to be 430 pixels wide. In CS3, using the classic tweens, I would simply resize the stage, Onion All, then resize everything on the stage at once. But with the new tween structure, it looks like I can't do a mass resize like that. Anything that's been tweened using the motion editor does not resize.
    I know I can just create a new movie clip, paste all frames into it and then resize the MC, but I have some JPEGs of signatures that pixellate when they are resized that way.
    So, can you onion skin the new tweens? Is there a workaround?
    Thanks!

    I'm afraid there isn't a good answer for this one - it's one of the present limitations that we're aware of. The problem is twofold: One instance per tween instead of two/more (Edit multiple frames is entirely based on multiple instances - a tween only has one), and auto-keyframing (usually making things easier, but for this, complicating things - if you change the scale at a location it automatically tweens the change, which you don't want in this use case).
    For any motion paths, you need to select each and then scale them (you can use the Transform panel to enter a percentage. Mutliple selected motion paths will scale the instances instead (unfortunately for this case).  You can try selecting multiple and using the Transform panel, but this doesn't work well yet.
    If you haven't tweened the scale of your instances and they start at the same position, you're in a bit more luck. Put the playhead at the first frame of the span(s) and then scale the instances. If you have tweened the scale, then you'd need to move the scale tween up/down in the motion editor (press the Alt key while dragging the path in the graph).
    In the even less likely chance the instances share the same tween, I'd do this for one instance, save it as a preset and then apply it to the rest.
    I know this is a pain - I'm sorry it's not better for changing the size of the Stage. We didn't get the time to make Edit Mutliple Frames better for new motion in this release.

  • Why does the 'iCal helper' keep appearing in my dock?

    After upgrading to 10.5.6 today the iCal helper application keeps launching and staying in my dock. It's not marked as a log-in item, and doesn't necessarily launch when i log-in. It just launches randomly every hour or so.
    I've read that it is the program that allows iCal to display alerts when it's not running, but it never used to be visible in the dock, it doesn't even have a real application icon.
    Does someone know how to prevent it from showing up in the dock??
    Message was edited by: goughbradley

    Anyone??

  • Making some texbox and image invisible from header in the second page and third page only

    i have written this expression for the image
    =iif(Globals!PageNumber= 1,false,True)
    the problem is, it is repeating in every pages, i want it to be displayed in the page one only, when the rdlc report is generated in the report viewer

    Hi aki.mary,
    According to your description, you added textbox and image to page header, now you want to display them on the first page, on other pages, their visibility is set to false, but the image is visible on every page.
    I tried to reproduce the issue in my local machine, but it works fine for me. I set visibility of textbox and image by following steps:
    Right-click the image, click Image Properties.
    Click Visibility in left pane, select Show or hide based on an expression.
    Click (fx) button and type the expression: =iif(Globals!PageNumber= 1,false,True).
    The following screenshot is for your reference:
    In order to improve the efficiency of troubleshooting, please provide detailed information of the report. I would be appreciated it if you could provide steps you created the report and screenshot of the report. By collecting this information now, it will
    help us move more quickly toward a solution.
    Thanks,
    Wendy Fu
    Wendy Fu
    TechNet Community Support

  • Can anyone get my skype name from anywhere in the ...

    i have had a chap on my skype from florida america, i asked how he managed to get my name, he said he has just joined skype and picked my name out,  could you please tell me how he managed to get my name 

    He probably went and typed up a random username/name in the Skype directory and happened to click on your contact and started chatting to you

  • AirPort Express vs Extreme.  Is this a solution?  My wife wants to be able to access files on her hard drive for our Mac by way of a laptop from anywhere in the house.  For example, she would like access her $ software from any computer in house.

    Will one of these work to use software from iMac on any laptop wirelessly around the house?  Which would be better Express or Extreme?

    I've had much better luck with Express rather than the Extreme.
    She can use "Sharing"
    Apple - AirPort Express - Easy Setup
    Mac 101: File sharing

Maybe you are looking for

  • Open Doc Links not working - BO 3.1 (They were working fine earlier)

    Hi All, I have come across a strange problem with Web intelligence links (opendoc). We have a number of links of our webi reports shared with the users, used in external portals. All of them were working but suddenly they have stopped working. Ex: ht

  • CM755A HP Officejet Pro 8500A Not Connecting

    Bought my Officejet Pro 8500a in July, 2011.  Hooked it up via USB directly to my PC and it worked great for almost two years.  This past winter I started getting messages saying it was not connected.  I would power it off and back-on, remove and re-

  • Timemachine and mountain lion cannot find harddrive to boot to

    So i booted my macbook pro this morning and it came up with the question mark sign. so i restart in recovery mode with command r. tried to repair the drive and it only came up with verify so then i tried to backup from time machine and it found the e

  • Can I use Lightroom 4.4 on my desktop pc and laptop under a single license?

    I am currently using Lightroom 4.4 on my pc and would like to use the program on my laptop.  Can I download a copy of the software to my laptop under my existing license or do I have to purchase a new copy?

  • ITunes 11.0.4 pinwheels when I launch

    iTunes 11.0.4 pinwheels when I launch on new computer running OSX 10.8.4-not sure if it ever worked since I got the computer running .  I get no error code because it just pinwheels.  I can access iTunes on my iPhone and it is not an internet problem