Drag and scroll PLEASE HELP im desperate!
a script that does this:
movieClip clicked = start drag
if it is dragged to the LEFT 100pixels it stops drag and
scrolls to the left that is -800pixels if it is dragged to the
RIGHT 100pixels it stops drag it scrolles +800pixels.
movieClip on release = stop drag
it returns to its position before dragging.
I made this so far (DOESN'T WORK):
stop();
background.onPress = function () {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.startDrag();
mouseX= _xmouse;
onMouseMove = function () {
mouseX2 = mouseX - _xmouse;
if (mouseX2 > 100) {
this.stopDrag();
_root.lokacija1 = _root.background.targetx = background._x -
Stage.width;
mouseX= 0;
mouseX2 = 0;
play();
} else if (mouseX2 < -100) {
this.stopDrag();
_root.lokacija1 = _root.background.targetx = background._x +
Stage.width;
mouseX = 0;
mouseX2 = 0;
play();
background.onRelease = function () {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.stopDrag();
delete (mouseX2);
mouseX = 0;
mouseX2 = 0;
Text
Alright, accepted. Here's the thing, it was very difficult to
tell what you were needing from your first post, and now having
reviewed the file, it is much more complex than you had indicated.
However, there still is a great deal of extraneous code in the
scripts you have been working on, and the task can be accomplish
much more simply.
I have taken a moment to reconfigure an example of your file,
you'll find that the operating code is far less complex than that
which you had been trying to force into functioning, and requires
very few variables, and loops the panning between the two images.
this script can be modified to accomidate more images or use the
speed of the mouse movement as a ratio to effect the speed of the
tween, or any number of other effects. The codes you previously had
on the p1 and p2 MCs have been stripped out, as well as the
'symbol(s)', all of which are not necessary. I haven't done any
testing as to scaling the swf in a html doc, but if you set this
publish settings up correctly it should scale to the right size
without have to use the onResize method. so here's the file:
FLA
good luck, I hope this helps you out.
Similar Messages
-
my itunes will not open at all. it occasionally will open but when i plug my iphone into it the program freezes and crashes. please help as soon as possible
i think i might have a solution... i have windows vista and after i installed to latest itunes update everytime i tried to open it it would freeze. I tried everything, including uninstalling itunes and all of its components and reinstalled it numerous times. So i went to the itunes folder in my folders, not on itunes, and i deleted my itunes library and playlists. After that it worked just fine, all of my music was deleted but luckily i had my files saved elsewhere.
I hope this helped! I know its frustrating and APPLE/ITUNES NEED TO FIX THE PROBLEM!!!! -
my ipod generation 5 will not come out of recovery mode. i was simply updating my software and this happened. it will not let me restore it comes up with and error. please help, thanks.
Hey erinoneill24,
Thanks for using Apple Support Communities.
Sounds like you can't update your device. You don't mention an error that it gives you. Take a look at both of these articles to troubleshoot.
iPod displays "Use iTunes to restore" message
http://support.apple.com/kb/ts1441?viewlocale=it_it
If you can't update or restore your iOS device
http://support.apple.com/kb/HT1808?viewlocale=de_DE_1
If you started your device in recovery mode by mistake, restart it to exit recovery mode. Or you can just wait—after 15 minutes the device will exit recovery mode by itself.
Have a nice day,
Mario -
I lost my ipad and i need the serial number and IMEI , please help me how?
i lost my ipad and i need the serial number and IMEI , please help me how?
If you have registered your device, you can go to https://supportprofile.apple.com/ and log into your apple id. Your devices appear there with serial numbers.
Additionally, your serial number is included on the original receipt when purchased at any Apple Online or Apple Retail store, or any Authorized Apple Reseller. -
Itunes will not respond to my ipod touch, i have re-installed countless times and it still is not working. i have also tried different USB's and nothing. please help!
- Try here:
iOS: Device not recognized in iTunes for Windows
- Next try a different computer to help determine if you have a computer or iPod problem. -
I have an old version of InDesign CS5, have not used in a while..about a year. It will not load nor allow me to uninstall and reinstall, please help. I have original discs and serial number. How can I fix this?
CS Cleaner Tool for installation problems | CCM, CS6, CS5.5, CS5, CS4, CS3
-
Have Windows 7 LapTop, Before my restore my Iphone-4 worked like a champ... Now it won't start Itunes when Plugged in Via USB cable, tried Two in Fact
Won't Start I tunes, so i Manually opened I tunes and still No recognition of I phone in ITunes even after reinstall, manual start of mobile service stopping and starting mobile services, restarting the phone and computer, Please Help If Possible......Thankshttp://support.apple.com/kb/TS1538
-
I would like to keep all my Music and photos on my mac but only top rated music and certain photos on my iPad and iPhone how do i stop iCloud from sending all to iPad and iPhone
please help
Regards
Steve DaveyIf you manually manage the device the you can remove the content from the PC after you have put it on the device. However this isn't the recommended way. At some point you'll probably need to restore it which involves wiping all the data. If you don't have all this data to hand then you'll have to try to recover it from a now problematic device first. It's much easier to sync with your library - yes you have two copies, but that's not a waste, it is prudent. As long as you have two copies you can afford to lose one knowing you have a backup. In practice I keep a complete backup of my library, in addition to the subsets of it that I can put on my devices.
tt2 -
I have latest firefox on my desktop and laptop, was working very well since threee years. Sudenlly has stop working both on my desktop and laptop. please help me.
Hello becky81464
If you were able to load websites until you updated Firefox, your Internet security software (including firewalls, antivirus programs, anti-spyware programs, and more) is likely preventing Firefox from connecting to the Internet, see [http://support.mozilla.org/en-US/kb/configure-firewalls-so-firefox-can-access-internet firewalls]
see also : [https://support.mozilla.org/en-US/kb/configure-windows-firewall-allow-firefox-access Configure Windows Firewall to allow Firefox access to the Internet ]
thank you -
I am Hamza of Iraq as possible understand me, bought the iPhone from the owner of the device user and I do not know him and have worked formate device to show white screen and please me to activate the device via email and password Please help me I am po
You need the Apple ID and password that was originally used to set up the device. Ask the seller to give it to you. If the seller is unable or unwilling to provide the information, the Phone is probably stolen. There is nothing you can do.
-
Hello buy one gift card for buy music ann looking right now option to say gift card and my account and nothing please help thanks :)
You question is not clear...
Perhaps these links will help...
iTunes Gift Options
http://support.apple.com/kb/HT2736
How to Redeem a Code
http://support.apple.com/kb/ht1574 -
I am having trouble printing I have a connection to my printer wirelessly but does not print out the correct page I want.When I do print I get a bunch of pages more than is needed and also get a code and symbols please help I am jammed at work
This can be the result of selecting the wrong driver. An older, unsupported laser printer will sometimes work with the generic Postscript driver.
-
Hi! I cant conect The face time betwen my iPad ,iPod and iPhone, please help me,what i need for this issue?
What is it doing when you try to facetime? also if you are using the same apple Id/email on each device, it wont work.
-
TS3694 cannot restore forgot password and id please help?
cannot restore ipod, forgot password and id please help
thank youYou'll need to connect it to the iTunes library you normally sync it with and restore it. If iTunes asks you for this passcode before it will let you proceed, connect the iPod to iTunes in recovery mode instead using the instructions in this Apple support document.
iOS: Unable to update or restore
B-rock -
Problems with disk permissions and others - Please help
I recently updated to 10.5.8. When I open GoLive 6 i just get the spinning ball of death. When I try and run disk permissions it just scrolls and scrolls "reading permissions database and does nothing. I am on an iBook G4 1.33 and the system always seems to be dragging. Please help.
Message was edited by: Marcus MacColonnaHI Marcus,
the system always seems to be dragging
Check to see how much available space there is on the startup disk. Right or control click the MacintoshHD icon. Click Get Info. In the Get Info window you will see Capacity and Available. *Make sure you always have a minimum of 15% free disk space.*
If free disk space isn't an issue, help here for the SSBOD
Carolyn
Maybe you are looking for
-
A Friend of mine bought a new computer and they have a WR...
a Friend of mine bought a new computer and they have a WRT54G wireless router. The computer is connected to the router with a network cable and the only thing they use the wireless portion for id the Wii they have in the other room. Do I need to rein
-
Hmm.. don't recall re-installing Mac OS X
when I booted up my mac mini, and logged in, the home folder poped up, my icons on my desktop are scattered all over the place, itunes in the dock ended up being a "?" and iMovie being a "?" but next to it was iMovie HD that worked. anyone know what
-
Variable exit requirement - which i_step?
Hi, I have created a variable on comp code which is input ready and single value. Second variable is created on fiscal year, this is also ready for input and defaultly it should get the fiscal year values for the company code user inputted. for examp
-
Publish Failed: Captivate 6.1, Mac OSX 10.8.5
I am experiencing the dreaded and unhelpful "Publish Failed" error message as well. I receive the message only when I am publishing a project with a quiz; projects without quizzes publish without any issue. I am publishing only to SWF output. I am ru
-
I'm going crazy trying to get exim to do what I want it to. Basically, every mail that I send (locally to myself) is being frozen. I CAN send with php sendmail. I can hardly find any info at all on this, so I'm not even sure if exim is the right prog