Targeting the properties of the mouse event: ROLL_OVER, MOUSE:DOWN
Hi - I am targeting the states of the button ie: ROLL_OVER is tweened a little bigger.
Then I want it to go back to its original size.
BUT it doesn't recognise the start and reverse methods.
Scene 1, Layer 'Layer 2', Frame 1, Line 60 1061: Call to a possibly undefined method start through a reference with static type gs:TweenLite.
button.addEventListener(MouseEvent.ROLL_OVER, rollOverHandler, false, 0, true);
button.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler, false, 0, true);
//button.addEventListener(Event.MOUSE_UP, mouseUpHandler);
button.addEventListener(MouseEvent.ROLL_OUT, rollOutHandler, false, 0, true);
var myTween:TweenLite = new TweenLite(button,1,{scaleX:1.05,scaleY:1.05,onComplete:myReverseFunction});
function rollOverHandler(e:MouseEvent):void
//TweenLite.to(button, 1, {scaleX:1.05, scaleY:1.05, ease:Elastic.easeOut});
myTween.start();
function myReverseFunction():void
myTween.reverse();
I took a look at the ASdocs for Tweenlite.
- http://www.greensock.com/as/docs/tween/_tweenlite.html -
Maybe try this.
private var myTween:TweenLite;
private function rollOverHandler(e:MouseEvent):void{
myTween = TweenLite.to(button, 1, {scaleX:1.05, scaleY:1.05, ease:Elastic.easeOut, onComplete:myCompleteFunction});
//TweenLite.to() returns a TweenLite instance that is now referenced (at class scope) by myTween;
private function myCompleteFunction():void{
myTween.reverse();
If this doesnt work I'll have to take another look later tonight when I'm at my home machine..
Looking back over your original code..it all looks correct (although I can't test). I mean nothing pops out.--
You created a TweenLite instance outside of function scope (the documentation on greensocks site says this is fine even though its a static class) and referenced it within the same class scope.
Similar Messages
-
How do I place an image and insert a different photo for the "mouse down" state?
I have placed an image within an accordian widget and when I select the "mouse down" area in the states dialog box, i click "fill" in the toolbar and insert the photo i want to display when the image is clicked but this image is "covered up" by the originally placed image and is not seen in my states dialog box.
I have done this before when i made rectangles and placed images in rectangles. But i soon realized that you cannot add alternative text to images in rectangles for some frustrating reason.
How do I place and image and have a different image for the mouse down state?Hello,
This effect can only be achieved when you use the images as a Rectangle Fill. And as you mentioned it above, you cannot add alternative text to images because it is added as a fill and not as a image.
I would suggest you to post this as a feature request on our "Ideas for features in Adobe Muse" section of the forums : http://forums.adobe.com/community/muse/ideas
Regards,
Sachin -
How do you make the "mouse down event" achnolage the area of an image
Hi
I am trying to program a simple game.
In this game I would like to insert
giff images, that when "clicked on"
by the mouse, will finallly return some kind of action.
In the book that I am reading, I have learnt how to
use the basics of the "mousedown event".
This I found out would be no use to me for what I am trying to achieve
at this moment,
because it only alows me to choose one coordinate at a time.
Is there any class that will able me to click anywhere on the "area" of the giff image instead of only one coordinate?
I hope I am clear enough..And this is how you create the JLabel:
JLabel j = new JLabel(new ImageIcon("yourImage.gif")); -
Having trouble ejecting a disk. I tried all the suggestions on the help list. to no avail.
Was this on the help list:
1 - open the Terminal application (in the Applications/Utilities folder).
2 - enter
drutil tray eject 1
followed by the Enter or Return key.
OT -
How to get the position of a selected cell in a table without using the mouse event?
Dear All,
I have a question about table:After clicking the cell of a table, the cell is into the edit status. How to know the row number and column number of the cell, when I click a button?
The link below is using the mouse down event:
http://forums.ni.com/ni/board/message?board.id=170&message.id=260102&query.id=55917#M260102
Is there any other way to do it? Having tried to using the "edit position" property, but it seems not working well.
Thanks for any suggestion.
Hugo
Attachments:
table.vi 17 KBIt works well with the "edit position" property.
See attached
Attachments:
table.vi 12 KB -
Whole screen is dragging with the mouse
I have a 23" cinema display - whenever I drag the mouse the whole display moves with it, not as the actual monitor, but the desktop on the screen - the menu bar and everything moves off if I move the mouse up and the menu bar moves down if I move the mouse down !
It looks a little lacking in sharpness
I have restarted / run tech tool pro etc to no avail - running the latest version of 10.4 with a G5
and have been to the displays in system preferences and all is set as it should be, I believe.
Is there a file that could have been corrupted ? Any help appreciated.....Open the Universal Access pane of System Preferences, click on Seeing, and turn off Zoom.
(33762) -
Mouse down event reading a string terminal trick
Hi,
I wondered why I was getting frustrated entering a pasword that was verified in the mouse down event of the OK button. This is becuase when you click the OK button the entered text is still in the buffer and not copied to the terminal. (Which is more natural than clicking somewhere on the FP first). Note pressing enter or tab gets the string control out of enter text mode.
Turns out need update value while typing turned on if you want to gaurantee a correct read of a text input control in a mouse down event. As this is one of those not obvious but sometimes happens bugs... I have posted for reference for others :-)
Example attached v8.6.1.
Attachments:
TestMouseDownEvent.vi 13 KBNick wrote:
Turns out need update value while typing turned on if you want to gaurantee a correct read of a text input control in a mouse down event.
AFAIK, "Update value while typing" will trigger only a Value Change event of the Str Ctl.
Mouse Down event will preceed a Value Change event, if you have both the event cases configured in your code.
- Partha
LabVIEW - Wires that catch bugs! -
PDA Mouse Down Event on Picture Control
While using the Mouse Down Event on the Picture Control for LabVIEW 7.1 PocketPC PDA, I want to get the xy coordinates on where the user tapped on the pict control. Any ideas or workarounds?
RobertHello Robert �
What do you mean by �outputting individual horizontal and vertical components�?
In the LabVIEW PDA module (and this applies to PocketPC and PalmOS), clusters will not show up in the PDA�s screen. You can use clusters to group controls/indicators but when there is need of sending a new value/showing the value in the screen, the bundle and unbundled functions have to be used, so that you can have individual controls/indicators to pass a new value/see the value, respectively.
So, from the Coords terminal in a Mouse Down/Up event, you need to unbundle the cluster and create individual indicators for each, the horizontal and vertical position.
I am attaching an example to show you what I mean. For PalmOS, the same applies.
H
ope this helps and if I misunderstood your post, please let me know.
Have a great day.
S Vences
Applications Engineer
National Instruments
Attachments:
PPC_Picture_Events.vi 30 KB -
[LV2013] Events ordering (mouse down vs. value changed) ?
Hi,
I've encountered a problem with my real-time behaving UI.
The event distribution mechanism registers several events
linked to various UI controls.
Two of them are set this way :
String control: value changed
Tree control : mouse down
The problem is that the String control is used both to display
and modify values within the tree. Click an item, its name is
displayed in the String control, modify the String control, the
new value is reflected into the Tree control.
The issue is when I edit a string inside the String control and
click another item in the Tree Control, the first event fired is
the Mouse down event on the Tree control. Then only the
Value changed event is fired.
What happens is that case is the value edited in the String
control gets overwritten with the new clicked item's value,
then it is saved inside the previous item's value.
Is there a way to give a kind of priority on some events
rather than others ?
David KochHow is LabVIEW "nasty, nasty"?
While it isn't doing what you want for your particular situation, it is doing exactly what it is supposed to do and is pretty logical.
1. You are in a control.
2. That control's value isn't update until you leave it.
3. Your method of leaving the control is by clicking on something else (the mouse down).
4. The mouse down is what happens first, once LabVIEW detects the mouse down on another control, it then says, okay, now I need to take the focus from the first control and place it here.
5. It is the loss of focus from the first control that is what fires the value change event on the first control.
So the precise order of events is:
1. Mouse Down event on control 2
2. Value change on control 1
and that makes perfect sense.
Your idea of reversing the order of events does not make sense to me. I want LabVIEW to enqueue events as they happen, not rearrange them. Supposed some other part of your VI is simultaneously issuing another value change event, or a user event. Where should that event fall into the queue related to the other events you've had LabVIEW rearrange?
From what I've seen from this message of yours and others in the past is you get quite upset when LabVIEW doesn't conform to your vision of the world and rather than figuring out how LabVIEW works and how to work with it, you try to fight how LabVIEW works and then take to the forums to complain. If that is actually picture of you in your user icon, then that is exactly how I envision you while you are working on the computer.
-
Problems with Mouse Down event for a picture control embedded in tab.
I noticed that when trying to get a Mouse Down event for a picture control that the Mouse Down will not be 'fired' if the picture is embedded in a tab control. It also appears that this problem exists for other controls (I only tested a slider in addition to the picture). It isn't much of an issue for me now as I can just poll the mouse property of the picture control, but the Mouse Down event has information that I may want access to in my next software revision (button pressed, and Alt mod). I could do that by handling the Mouse Down event for the tab itself and checking to see if the the mouse property isn't -1, -1 for the picture, but that seems a little bit too kludgy (sp?) to me and wouldn
't address the issue with other control types. Any chance of this being addressed by a patch sometime in the next couple of months???
Attachments:
TabProblem.vi 69 KBThe problem I reported above was in LV 6.1.
As a work-around, I used the mouse down on the tab control and did the math to decide if the picture was clicked.
I have been told that this was fixed in LV 7.0. I can not confirm.
You could call NI and ask about the service request number I cited above.
I hope this helps,
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction -
I'm experiencing frequent (every 11 minutes or so) mouse-down errors. As this occurs in any variety of apps, including the Finder, the application in-use seems to not be a factor.
I will be using an application and suddenly the track-pad no longer works. This is will last for between one and three minutes. Sometimes, the front-most window will veer suddenly to the left so that it is halfway off the screen. I will be unable to move it until the mouse-down error ends. Most of the time, I can continue to move the mouse around during these events, but I can't click on or move anything. Sometimes, gestures (like 4 finger push up to reveal Mission Control) will be disabled during these events, but not always. During these events, I am also unable to drag and drop any files from one space to another.
This is extremely frustrating and very disruptive to my work and I would really appreciate any help in resolving this.
The problem began a week or so ago after I installed more than a dozen applications; I have experimented with quitting one menulet at a time with no results. It seems to me, since the error is occurring on a fairly regular basis that one background process or another is causing it so the offending app would need to be fully uninstalled, not just quit anyway.
I'm wondering, at this point, if I should just restore from a two week old backup, but I would really like to avoid that hassle if it's possible to simple identify the offending process.
These are some of the console logs of mouse-downs:
This is the most recent EtreCheck report:
EtreCheck version: 1.9.15 (52)
Report generated 23, August, 2014 11:45:28 AM EDT
Hardware Information: ?
Mac mini Server (Late 2012) (Verified)
Mac mini - model: Macmini6,2
1 2.6 GHz Intel Core i7 CPU: 4 cores
16 GB RAM
Video Information: ?
Intel HD Graphics 4000 - VRAM: 768 MB
E2350 1920 x 1080 @ 60 Hz
System Software: ?
OS X 10.8.5 (12F45) - Uptime: 1 day 13:45:29
Disk Information: ?
APPLE SSD SM256E disk0 : (251 GB)
S.M.A.R.T. Status: Verified
disk0s1 (disk0s1) <not mounted>: 209.7 MB
⨀ (disk0s2) / [Startup]: 250.14 GB (72.26 GB free)
Recovery HD (disk0s3) <not mounted>: 650 MB
APPLE SSD SM256E disk1 : (251 GB)
S.M.A.R.T. Status: Verified
disk1s1 (disk1s1) <not mounted>: 209.7 MB
☾ (disk1s2) /Volumes/☾: 250.66 GB (250.34 GB free)
USB Information: ?
VIA Labs, Inc. USB3.0 Hub
VIA Labs, Inc. USB3.0 Hub
Western Digital My Book 1144 4 TB
S.M.A.R.T. Status: Verified
disk7s1 (disk7s1) <not mounted>: 209.7 MB
⠍⠑⠙⠊⠁∞ (disk7s2) /Volumes/⠍⠑⠙⠊⠁∞: 4 TB (695.3 GB free)
Western Digital My Book 1144 4 TB
S.M.A.R.T. Status: Verified
disk6s1 (disk6s1) <not mounted>: 209.7 MB
⠍⠑⠙⠊⠁ (disk6s2) /Volumes/⠍⠑⠙⠊⠁: 4 TB (1.17 TB free)
Western Digital My Book 1144 2 TB
S.M.A.R.T. Status: Verified
disk5s1 (disk5s1) <not mounted>: 209.7 MB
♾ ∞ (disk5s2) /Volumes/♾ ∞: 2 TB (823.76 GB free)
Western Digital My Book 1144 2 TB
S.M.A.R.T. Status: Verified
disk4s1 (disk4s1) <not mounted>: 209.7 MB
♾ (disk4s2) /Volumes/♾: 2 TB (826.78 GB free)
VIA Labs, Inc. USB3.0 Hub
Wacom Co.,Ltd. Intuos5 touch L
Audioengine Audioengine 2+
Apple Inc. BRCM20702 Hub
Apple Inc. Bluetooth USB Host Controller
Apple, Inc. IR Receiver
Firewire Information: ?
LaCie Group SA LaCie DVD MULTI Drive 400mbit - 400mbit max
WD My Book 111D 800mbit - 800mbit max
S.M.A.R.T. Status: Verified
disk3s1 (disk3s1) <not mounted>: 209.7 MB
⨀ ☾ ∞ (disk3s2) /Volumes/⨀ ☾ ∞: 999.83 GB (310.49 GB free)
WD My Book 111D 800mbit - 800mbit max
S.M.A.R.T. Status: Verified
disk2s1 (disk2s1) <not mounted>: 32 KB
Djuna (disk2s3) /Volumes/Djuna: 2 TB (467.22 GB free)
Thunderbolt Information: ?
Apple Inc. thunderbolt_bus
Configuration files: ?
/etc/hosts - Count: 21
Gatekeeper: ?
Anywhere
Kernel Extensions: ?
[loaded] com.AmbrosiaSW.AudioSupport (4.1.2 - SDK 10.7) Support
[loaded] com.Cycling74.driver.Soundflower (1.6.6 - SDK 10.6) Support
[loaded] com.bresink.driver.BRESINKx86Monitoring (9.0) Support
[loaded] com.cleancutcode.displaypaddriver (14 - SDK 10.7) Support
[loaded] com.cleancutcode.displaypadframebuffer (14 - SDK 10.7) Support
[loaded] com.dvdfab.kext.fabio (1) Support
[loaded] com.eltima.ElmediaPlayer.kext (1.58 - SDK 10.4) Support
[loaded] com.makemkv.kext.daspi (1) Support
[not loaded] com.roxio.TDIXController (2.0) Support
[not loaded] com.silabs.driver.CP210xVCPDriver (3.0.0d1) Support
[not loaded] com.silabs.driver.CP210xVCPDriver64 (3.0.0d1) Support
[not loaded] com.wacom.kext.wacomtablet (6.3.6 - SDK 10.8) Support
[not loaded] com.wdc.driver.1394HP (1.0.9) Support
[loaded] com.wdc.driver.1394_64HP (1.0.1 - SDK 10.6) Support
[not loaded] com.wdc.driver.USBHP (1.0.11) Support
[loaded] com.wdc.driver.USB_64HP (1.0.0 - SDK 10.6) Support
[loaded] org.virtualbox.kext.VBoxDrv (4.3.12) Support
[loaded] org.virtualbox.kext.VBoxNetAdp (4.3.12) Support
[loaded] org.virtualbox.kext.VBoxNetFlt (4.3.12) Support
[loaded] org.virtualbox.kext.VBoxUSB (4.3.12) Support
Startup Items: ?
ProTec6b: Path: /Library/StartupItems/ProTec6b
rEFItBlesser: Path: /Library/StartupItems/rEFItBlesser
Launch Daemons: ?
[loaded] com.adobe.fpsaud.plist Support
[loaded] com.adobe.SwitchBoard.plist Support
[loaded] com.ambrosiasw.ambrosiaaudiosupporthelper.daemon.plist Support
[loaded] com.barebones.authd.plist Support
[loaded] com.bombich.ccc.plist Support
[running] com.bombich.ccc.scheduledtask.17F56F48-3C2C-4D3B-B47E-205306ACCFDB.plist Support
[not loaded] com.bombich.ccc.scheduledtask.2D2A146C-2C9A-49C3-AB42-CC8739EB950B.plist Support
[not loaded] com.bombich.ccc.scheduledtask.5E0B2858-77D7-4B7F-9CFF-200039E53FA9.plist Support
[running] com.bombich.ccc.scheduledtask.5FDB8E27-273B-485D-AC72-217F3FD8119B.plist Support
[running] com.bombich.ccc.scheduledtask.65FB7ACA-8A91-47EC-AC2F-348EE1CE3AC4.plist Support
[running] com.bombich.ccc.scheduledtask.D8145D25-190A-44BF-BB03-CF94E6D9ADD7.plist Support
[loaded] com.cyberghostsrl.CyberghostPrivilegedHelper.plist Support
[running] com.eltima.ElmediaPlayer.daemon.plist Support
[running] com.freemacsoft.appcleanerd.plist Support
[loaded] com.github.GitHub.GHInstallCLI.plist Support
[loaded] com.google.keystone.daemon.plist Support
[running] com.informer.mac.daemon.plist Support
[loaded] com.JWVD.cbcache.plist Support
[loaded] com.microsoft.office.licensing.helper.plist Support
[loaded] com.oracle.java.Helper-Tool.plist Support
[loaded] com.oracle.java.JavaUpdateHelper.plist Support
[not loaded] com.robohippo.HippoConnectDaemon.plist Support
[loaded] com.rogueamoeba.instanton-agent.plist Support
[loaded] com.teamviewer.Helper.plist Support
[not loaded] com.teamviewer.teamviewer_service.plist Support
[loaded] com.timesoftware.timemachineeditor.helper.plist Support
[running] com.wdc.WDDMservice.plist Support
[running] com.wdc.WDSmartWareServer.plist Support
[loaded] net.interacto.flavours.helper.plist Support
[running] org.glimmerblocker.proxy.plist Support
[loaded] org.macosforge.xquartz.privileged_startx.plist Support
[not loaded] org.virtualbox.startup.plist Support
[loaded] org.wireshark.ChmodBPF.plist Support
Launch Agents: ?
[not loaded] com.adobe.AAM.Updater-1.0.plist Support
[loaded] com.divx.dms.agent.plist Support
[loaded] com.divx.update.agent.plist Support
[running] com.epson.eventmanager.agent.plist Support
[loaded] com.google.keystone.agent.plist Support
[loaded] com.oracle.java.Java-Updater.plist Support
[running] com.robohippo.HippoConnectAgent.plist Support
[not loaded] com.teamviewer.teamviewer.plist Support
[not loaded] com.teamviewer.teamviewer_desktop.plist Support
[running] com.wacom.wacomtablet.plist Support
[failed] net.culater.SIMBL.Agent.plist Support
[loaded] org.glimmerblocker.updater.plist Support
[loaded] org.macosforge.xquartz.startx.plist Support
User Launch Agents: ?
[loaded] com.adobe.ARM.[...].plist Support
[failed] com.adobe.ARM.[...].plist Support
[loaded] com.BlueStacks.AppPlayer.LogRotator.plist Support
[loaded] com.BlueStacks.AppPlayer.Service.plist Support
[loaded] com.BlueStacks.AppPlayer.UninstallAgent.plist Support
[loaded] com.BlueStacks.AppPlayer.UpdaterAgent.plist Support
[running] com.bombich.ccc-user-agent.plist Support
[running] com.nchsoftware.expressinvoice.agent.plist Support
[running] com.nchsoftware.inventoria.agent.plist Support
[loaded] com.nchsoftware.switch.schedule.LikeSurvey.plist Support
[running] com.plexapp.helper.plist Support
[running] com.spotify.webhelper.plist Support
[loaded] com.valvesoftware.steamclean.plist Support
[not loaded] org.virtualbox.vboxwebsrv.plist Support
[loaded] uk.co.markallan.clamxav.clamscan.plist Support
[loaded] uk.co.markallan.clamxav.freshclam.plist Support
User Login Items: ?
CheatSheet
handyPrintDaemon
iTunesHelper
iTunes
Degrees
Calendar
Wunderlist
Mint QuickView
Mail Call
Plex Media Server
Dropbox
DeskConnect
CloudClip Manager
Converto
Brightness Slider
ByteController
Moom
App for Facebook
Cobook
Numi 2
SnappyApp
TotalFinder
XtraFinder
Internet Plug-ins: ?
DirectorShockwave: Version: 12.0.5r146 - SDK 10.6 Support
o1dbrowserplugin: Version: 5.4.2.18903 Support
JavaAppletPlugin: Version: Java 7 Update 60 Check version
WacomNetscape: Version: 2.1.0-1 - SDK 10.8 Support
OVSHelper: Version: 1.1 Support
AmazonMP3DownloaderPlugin101750: Version: AmazonMP3DownloaderPlugin 1.0.17 - SDK 10.4 Support
WacomTabletPlugin: Version: WacomTabletPlugin 2.1.0.2 Support
AdobeAAMDetect: Version: AdobeAAMDetect 1.0.0.0 - SDK 10.6 Support
FlashPlayer-10.6: Version: 14.0.0.145 - SDK 10.6 Support
DivX Web Player: Version: 3.2.1.977 - SDK 10.6 Support
AdobePDFViewerNPAPI: Version: 11.0.07 - SDK 10.6 Support
Flash Player: Version: 14.0.0.145 - SDK 10.6 Outdated! Update
QuickTime Plugin: Version: 7.7.1
googletalkbrowserplugin: Version: 5.4.2.18903 Support
SharePointBrowserPlugin: Version: 14.3.6 - SDK 10.6 Support
AdobePDFViewer: Version: 11.0.07 - SDK 10.6 Support
Silverlight: Version: 5.1.20913.0 - SDK 10.6 Support
MeetingJoinPlugin: Version: (null) - SDK 10.6 Support
Safari Extensions: ?
myPlex Queue-2
AdBlock
DuckDuckGo
Save to Pocket
LinkThing
Deanimator
Harakirimail
dotepub
ClickToFlash
JavaScript Blocker-2 (Disabled)
FeedButton
1Password
Audio Plug-ins: ?
AirPlay: Version: 1.7 - SDK 10.8
iSightAudio: Version: 7.7.1 - SDK 10.8
InstantOn: Version: 8.0.0 - SDK 10.8 Support
iTunes Plug-ins: ?
Quartz Composer Visualizer: Version: 1.4 - SDK 10.8
User Internet Plug-ins ?
BlueStacks Install Detector: Version: 0.3.6 - SDK 10.7 Support
RealPlayer Plugin: Version: Unknown
3rd Party Preference Panes: ?
Flash Player Support
GlimmerBlocker Support
handyPrint Support
Java Support
MenuMeters Support
Perian Support
Shades Preferences Support
SwitchResX Support
WacomTablet Support
Time Machine: ?
Skip System Files: NO
Mobile backups: OFF
Auto backup: YES
Volumes being backed up:
⨀: Disk size: 232.96 GB Disk used: 165.67 GB
☾: Disk size: 233.44 GB Disk used: 298 MB
Destinations:
Ectoplasm [Local] (Last used)
Total size: 931.16 GB
Total number of backups: 77
Oldest backup: 2013-12-21 04:36:50 +0000
Last backup: 2014-08-23 15:01:44 +0000
Size of backup disk: Adequate
Backup size 931.16 GB > (Disk used 165.96 GB X 3)
Time Machine details may not be accurate.
All volumes being backed up may not be listed.
Top Processes by CPU: ?
11% firefox
2% WindowServer
1% Dropbox
1% Console
1% plugin-container
Top Processes by Memory: ?
1.76 GB firefox
1.70 GB com.apple.automator.xpc.workflowServiceRunner
393 MB mds
262 MB iTunes
213 MB installd
Virtual Memory Information: ?
3.03 GB Free RAM
6.08 GB Active RAM
4.47 GB Inactive RAM
2.41 GB Wired RAM
1.56 GB Page-ins
0 B Page-outs
Again, I would really appreciate any suggestions or questions you can throw at me.
Thank youTry un-installing SIMBL. It is a system hack.
SIMBL Uninstall
SIMBL Uninstall (2) See solution posted by Linc Davis .
Try un-installing the applications you installed. Un-install using the developer’s instructions to make sure you remove all parts of the application. Some people recommend not installing an application unless you know how to remove it. When you find the problem application, you can try re-installing the others. -
Mouse Down and Mouse Move and scroll ?
Hi,
Here is what I want to do:
Whenever a user presses the mouse down and the moves the mouse, I want to synchronize the scrollbar thumb and the mouse. How is it possible?
thanks.hi,
there are 2 ways to do this depending on what you need from the mouse move
1. To get the difference from when the mouse is pressed
on the mousedown event your store the mouse coordinates -
myX= stageX or LocalX myY= stageY or LocalY
on the mousemove event you subtract the current co-ordinates from the saved cordinates
myXDif = myX-currentX
myYDif = myY-currentY
the difference will be negative or positive you can use that figure to calculate the percentage of range and then set the scrollposition
2. Just track the mouse
on the mouse move calculate the percentage position of the mouse to set the scrollbars
HorizontalScrollPostion= the Max horizontal value * (LocalX /Width)
VerticalScrollPosition= the max vertical value * (LocalY/Height)
David -
Can I caputure the mouse down timing in flex ? If the user hold the mouse down for 30 milli seconds i have to fire an event. Please show me some pointers to implement this feature.
Create a global variable and on mouse down store the current time.
Also on mouse down, create a Timer object and let it fire each 250 milliseconds. It should check the current time against the stored time above.
In a mouse up handler reset the current time variable.
If you hit 30 seconds in the timer checking the time, do whatever you wish.
http://livedocs.adobe.com/flex/3/html/help.html?content=08_Dates_and_times_4.html
http://blog.flexexamples.com/2007/08/14/creating-a-simple-timer-in-flex-with-the-flashutil stimer-class/
http://groups.google.com/group/flex_india/browse_thread/thread/6404b8d35ce32907
If this post answered your question or helped, please mark it as such. -
I need a vi to run while the right mouse click button is down, but as soon as the operator releases the mouse button, the vi closes. And it needs to run under the event structure.
PaulG.
"I enjoy talking to you. Your mind appeals to me. It resembles my own mind except that you happen to be insane." -- George Orwell'-2' of what? My RMB returns 2 for the mouse button.
And you should wait on a mouse up event after the mouse down, see here.
Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas
LabVIEW, programming like it should be! -
Basically, I want to build several independent buttions. When one button gets the mouse down event, some code is excuted once, but when mouse up, the button go to its original status, and wait for the next click.,
this should be pretty simple in other languages (C++, or Java), anyway, I feel so hard to figure it out in Labview.
Any help will be greatly apprecitated!
bestSee this post for some good guides to start with
Paul <--Always Learning!!!
sense and simplicity.
Browse my sample VIs?
Maybe you are looking for
-
Skype, Messenger, and your Microsoft Account
I have posted this on the Microsoft forum too but think it's pretty relevant here. So... I have Windows Phone 8.1, my partner has WP8.1, she is my contact through her Microsoft account which she also signed into Skype with. We attempted to use the fe
-
Adobe website not loading correctly
Adobe website is not loading correctly. It does not display good.
-
What do i put in incoming mail server for gmail
What do i put in incoming mail server for gmai;?
-
Hello...thanks in advance, especially those (kglad) who have been responding to previous posts of mine regarding this same problem. I'm going out of my mind though with this...basically I have an extremeley tempermental flash movie which plays differ
-
Windows 7 installation went wrong - lost Mac OS X?
Hello, PLEASE BE PATIENT AND READ WHOLE TEXT. I went through the windows 7 installation process and i installed windows but unfortunately i can't find my mac os x anymore! When i restart and press option key button black screen appears that lasts for