Scroll movieclip on zoom area problem
Hi there
I have a script which scrolls a larger image using the
scrollrect function. when you click on the left mouse button the
image is enlarged or zoomed into. but it loses the position that
you originally clicked on. i guess i have to update the x and y
coordinates at the same time as i alter the xscale and yscale but i
m having trouble with the calculation. can anyone help me with
this? i ve searched a lot of sites but not found anything to help?
my code is below or you can look at my test file @
http://www.shiftyshaun.com/zoom2.zip
thanks in advance!
shaun
import mx.utils.Delegate;
import flash.geom.Rectangle;
import flash.geom.Point;
import mx.transitions.Tween;
import mx.transitions.easing.*;
image._x = 0;
image._y = 0;
image.cacheAsBitmap = true;
target = _root;
rect = new Rectangle(0, 0, 640, 480);
mouse = new Point(0, 0);
x_pos = 0;
y_pos = 0;
r_img = new Rectangle(0, 0, image._width, image._height);
r_mask = new Rectangle(image._x, image._y, rect.width,
rect.height);
function start():Void {
image.scrollRect = rect;
image.onEnterFrame = Delegate.create(this, enterframe);
moving = true;
function enterframe():Void {
if (moving) {
mouse.x = target._xmouse;
mouse.y = target._ymouse;
if (r_mask.containsPoint(mouse)) {
y_pos =
((Math.abs(image._y-mouse.y)/rect.height)*(r_img.height-rect.height));
x_pos =
((Math.abs(image._x-mouse.x)/rect.width)*(r_img.width-rect.width));
rect.x += (x_pos-rect.x)/8;
rect.y += (y_pos-rect.y)/8;
image.scrollRect = rect;
start();
var my_event = new Object();
my_event.target = image;
Mouse.addListener(my_event);
my_event.onMouseDown = function() {
if (moving) {
moving = false;
zoomIn();
} else {
zoomOut();
moving = true;
zoomIn = function () {
new Tween(image, "_xscale", Strong.easeOut, 100, 150, 1,
true);
new Tween(image, "_yscale", Strong.easeOut, 100, 150, 1,
true);
trace("rect x = "+rect.x+" rect y = "+rect.y);
zoomOut = function () {
new Tween(image, "_xscale", Strong.easeOut, 150, 100, 1,
true);
new Tween(image, "_yscale", Strong.easeOut, 150, 100, 1,
true);
trace("rect x = "+rect.x+" rect y = "+rect.y);
Problem solved
I just had to rearrange the order of the captions, and now
it's ok. I kept basically the same order as it was when the problem
occured: slide, mouse layer, zoom area and captions.
Cheers!
Andrei
Later edit... thanks Rick for your feedback... seen your post
after I posted this one.
Similar Messages
-
Position problem with four zoom areas at a slide
Hi to all,
my problem, i've made a slide, containing a single picture (periodic table). Then, i added four zoom areas at the elements C, H, S and N. Source areas are 45 by 45 px, target areas are 180 to 180 px. I try to set fixed postions for the targets (Target || position X || Position Y):
Target 1
90
330
Target 2
290
330
Target 3
490
330
Target 4
690
330
The result looks really ugly, size and positions went totally wrong. This is just an examples, sometimes, the target areas are overlap each other, looks like a silly randomizer at work...
Maybe anyone can give me a idea/solution to fix this?
Thanks in advance
MarcIf you use CP5 or CP5.5 I would use Effects in this case: a combination of a motion path and scaling. Try to find the correct combination, save as a custom effect and apply to all the elements where you want the Zoom.
Lilybiri -
Why can't I use 2 scrolling movieclips in the same movie?
Hi all,
I've created a couple of sites now that both use scrolling
movieclips...
If there is one scrolling mc, it works fine but as soon as I
add another (using the same code and instance names - just a
different mc) the up buttons fail to work properly. I've tried
changing the instance names but it makes no difference.
Does anyone know why this happens? Is it a bug in Flash 8? Is
there a way round this?
Thank you very much and I look forward to hearing from you.
Take care,
Markhi there,
many thanks for the reply.
it might be easier to see what i'm doing rather than actually
describing it...
i've uploaded my fla
here. the
unlocked layers on the main timeline are the ones of interest.
have you had this problem before? if you test the movie and
select a section with the scrollbars (ie. the gallery) it just
jumps to a random place for no apparent reason!
thank you very much once again.
all the best,
mark -
Some graphics in a website cannot be scrolled, panned or zoomed in/out
http://professional.wsj.com/article/SB10001424053111903520204576480123949521268.html?mod=WSJ_Home_la...
the graphics in the above website does not respond to scrolling, panning or zooming gestures. Is there a way to make it happen? without that, major parts of the graphics cannot be viewed.
unfortunately this is a paid site so you may not be able to load it but i thought may be some of you may be subscribers.
thanks.
Solved!
Go to Solution.thanks, aandras.
in this art there is an interactive graphic which you can access either by 1) clicking on the graphic towards the middle of the article on the left side just above the picture of senator Reid, or 2) clicking on the tab near the start of the article labelled "interactive graphics".
for me, either way will load that page but the page is not scrollable, zoomable nor pannable. that page actually has a set of 10 different graphics you can select via buttons in the left. oddly these buttons work and actually switch the graphics. but most of them are too large to be displayed on the playbook screen which therefore have to be scrolled/panned but that does not work for me. the page, other thank those buttons, acts as if it is frozen. -
Can I use the mouse scroll wheel for zooming the timeline?
Howdy...
As a recent convert from Vegas, one of the best features that I miss is using the mouse scroll wheel to zoom into and out of the timeline..
Anyone know a way I can set this up in FCP6?
Thanks...
-BenYes.
(I know I'm gonna get flamed by the pros here who will advise NEVER to use third party plug-ins, but... I've been a heavy user of FCP for years and NEVER had any problem with this, so here goes:)
Install USB Overdrive, and program your mouse with:
- wheel_up to cmd+plus (=zoom in) and
- wheel_down to cmd+minus (=zoom out).
I actually use clickedwheelup and clickedwheeldown for this zooming in and out, keeping the plain vanilla wheel_up and wheel_down for, well, up and down (or clip_left and clip_right on the timeline).
Nice thing is, it then works in the Viewer and Canvas to zoom in and out, too.
HTH. -
Zoom area, content and talking head
Hi all-
Here's what I'm trying to do. I have a talking head video and normal text content on my slide. I want to alternate between showing the talking head video and the normal text content. I was hoping that i could use the zoom area to zoom in and out depending on if it was more important for the learner to see the content or the talking head at that moment. The zoom area works well for the zooming in piece, but it doesn't zoom out nicely (just kinda jumps back to the main screen where both content and talking head are shown.) I toyed around with including the talking head in the TOC, but then I can't seem to zoom in on the video at all.
The other issue I seem to be running in to is that the video is less clear when I zoom in to it.
Any ideas on how I should be approaching this?We are having this same problem but just for Mac users. Mac
users can see video if the presentation is published locally and
moved to web server but not if published to ConnectPro
server. -
Zoom Areas - bleed-through in background
I'm running into an odd problem trying to use Zoom Areas.
I've got a recorded session with lots of slides of standard windows
dialogs.
When I try to zoom into an area that has a white background,
what I'm finding is that the "zoomed" window has a faint image of
what appears to be previous slides blurred in the background. I've
tried some quick workarounds (like duplicating the background to
the previous side) without a lot of luck - in some instances I can
actually read windows text that is nowhere on the current screen.
Has anyone else seen this odd behavior? Can't imagine that it
is just me...There is an answer out there from Captiv8r to use the zoom
with a better image.
His answer is to setup the zoom. There are two zoom windows
and one is the destination window. Make a good capture of the image
you want. Double-click the destination window to open the
properties and click the button Select Image... and pick the image
you saved for the zoom result. This should solve the problems you
mentioned.
You can read other information by using the search feature
for General Discussion and type the word Zoom. -
Scrolling effects in Muse are not working properly with the Chrome browser at the moment.
My scrolling effects in Muse are not working properly in the Chrome browser .I disabled any third party widgets to see if that was the problem but it wasn't. Safari and firefox presented my site perfectly but when it was opened in chrome the menu navigation bar will not stop moving uncontrollably jittering when the page is scrolled. Does anyone know what I can do to fix this? My site is danieltoruno01.businesscatalyst.com
We are using Vertical spry menu bar features provided with Dreamweaver CS3.
You are using Spry 1.4.
The latest version of the Adobe Spry Framework is 1.6.1, this is the same version that ships with Dreamweaver CS4.
When using Dreamweaver CS3 (uses Spry 1.4), it's wise to upgrade your files to the latest version. This can easily be done using the Spry Updater that can be found here.
If after that you still have problems, please come back here.
Ben -
Why does Adobe Reader use the scroll wheel to zoom in/out rather than actually, um, scroll? I can't find anywhere to change this function in Preferences, either.
I had the same problem on my Windows 8 touch screen laptop. It was driving me crazy! Every time I tried to scroll a page down, the program would zoom the page! Made reading an ebook difficult.
I finally found the solution:
Under Edit select Preferences - General
Uncheck "Make Hand Tool Use mouse-wheel zooming". -
my 2009 macbookpro has begun running very slowly, apps freeze and pages hang ... i've run EtreCheck and there are problems but don't know how to sort ... ran CleanMyMac and freed up about 30GB of space but didn't help ... ran AdwareMedic so that's been sorted but the other issues that came up on the EtreCheck I need help with however i can't figure out how to paste the results on this page
thanks thomas ... here it comes
EtreCheck version: 2.1.5 (108)
Report generated December 29, 2014 at 5:03:07 PM GMT
Click the [Support] links for help with non-Apple products.
Click the [Details] links for more information about that line.
Click the [Adware] links for help removing adware.
Hardware Information: ℹ️
MacBook Pro (17-inch, Early 2009) (Verified)
MacBook Pro - model: MacBookPro5,2
1 2.66 GHz Intel Core 2 Duo CPU: 2-core
4 GB RAM Upgradeable
BANK 0/DIMM0
2 GB DDR3 1067 MHz ok
BANK 1/DIMM0
2 GB DDR3 1067 MHz ok
Bluetooth: Old - Handoff/Airdrop2 not supported
Wireless: en1: 802.11 a/b/g/n
Video Information: ℹ️
NVIDIA GeForce 9400M - VRAM: 256 MB
Color LCD 1920 x 1200
NVIDIA GeForce 9600M GT - VRAM: 512 MB
System Software: ℹ️
OS X 10.9.5 (13F34) - Uptime: 0:5:36
Disk Information: ℹ️
FUJITSU MHZ2320BH FFS G1 disk0 : (320.07 GB)
EFI (disk0s1) <not mounted> : 210 MB
[redacted]'s world too (disk0s2) / : 319.21 GB (30.39 GB free)
Recovery HD (disk0s3) <not mounted> [Recovery]: 650 MB
MATSHITADVD-R UJ-868
USB Information: ℹ️
Apple Inc. Built-in iSight
Apple Inc. iPhone
Logitech USB Receiver
Apple Inc. BRCM2046 Hub
Apple Inc. Bluetooth USB Host Controller
Apple, Inc. Apple Internal Keyboard / Trackpad
Apple Computer, Inc. IR Receiver
Configuration files: ℹ️
/etc/hosts - Count: 29 - Corrupt!
Gatekeeper: ℹ️
Mac App Store and identified developers
Kernel Extensions: ℹ️
/Library/Application Support/Roxio
[not loaded] com.roxio.TDIXController (1.7) [Support]
/System/Library/Extensions
[not loaded] com.kensington.mouseworks.iokit.KensingtonMouseDriver (3.0) [Support]
/System/Library/Extensions/KensingtonMouseDriver.kext/Contents/PlugIns
[not loaded] com.kensington.mouseworks.driver.ADBID32Mouse (3.0) [Support]
[not loaded] com.kensington.mouseworks.driver.ADBID32MouseX1 (3.0) [Support]
[not loaded] com.kensington.mouseworks.driver.ADBID4Mouse (3.0) [Support]
[not loaded] com.kensington.mouseworks.driver.ADBID4MouseX1 (3.0) [Support]
[not loaded] com.kensington.mouseworks.driver.KMWBluetoothHIDMouse (3.0) [Support]
[not loaded] com.kensington.mouseworks.driver.KMWBluetoothOldHIDMouse (3.0) [Support]
[not loaded] com.kensington.mouseworks.driver.KMWUSBHIDMouse (3.0) [Support]
[not loaded] com.kensington.mouseworks.driver.USBMouseX1 (3.0) [Support]
[not loaded] com.kensington.mouseworks.driver.VirtualMouse (3.0) [Support]
[not loaded] com.kensington.mouseworks.driver.VirtualMouseX1 (3.0) [Support]
[not loaded] com.kensington.mouseworks.iokit.KensingtonMouseDriverX1 (3.0) [Support]
Startup Items: ℹ️
AdobeVersionCueCS2: Path: /Library/StartupItems/AdobeVersionCueCS2
Firewall: Path: /Library/StartupItems/Firewall
RetroRun: Path: /Library/StartupItems/RetroRun
Startup items are obsolete in OS X Yosemite
Launch Agents: ℹ️
[not loaded] com.adobe.AAM.Updater-1.0.plist [Support]
[loaded] com.adobe.CS4ServiceManager.plist [Support]
[loaded] com.adobe.CS5ServiceManager.plist [Support]
[invalid?] com.oracle.java.Java-Updater.plist [Support]
Launch Daemons: ℹ️
[loaded] com.adobe.fpsaud.plist [Support]
[invalid?] com.adobe.SwitchBoard.plist [Support]
[loaded] com.adobe.versioncueCS3.plist [Support]
[loaded] com.adobe.versioncueCS4.plist [Support]
[running] com.atomicbird.macaroni.launchd.plist [Support]
[loaded] com.macpaw.CleanMyMac2.Agent.plist [Support]
[invalid?] com.oracle.java.Helper-Tool.plist [Support]
[loaded] com.prosofteng.DriveGenius.locum.plist [Support]
[loaded] com.skype.skypeinstaller.plist [Support]
User Launch Agents: ℹ️
[loaded] com.adobe.AAM.Updater-1.0.plist [Support]
[loaded] com.adobe.ARM.[...].plist [Support]
[loaded] com.adobe.ARM.[...].plist [Support]
[loaded] com.google.keystone.agent.plist [Support]
[loaded] com.macpaw.CleanMyMac2Helper.diskSpaceWatcher.plist [Support]
[loaded] com.macpaw.CleanMyMac2Helper.scheduledScan.plist [Support]
[loaded] com.macpaw.CleanMyMac2Helper.trashWatcher.plist [Support]
[running] com.prosofteng.DGMonitor.plist [Support]
[running] ws.agile.1PasswordAgent.plist [Support]
User Login Items: ℹ️
CNQL1210_ButtonManager ApplicationHidden (/Library/CFMSupport/CNQL1210_ButtonManager.app)
System Events ApplicationHidden (/System/Library/CoreServices/System Events.app)
Mail Application (/Applications/Mail.app)
Firefox Application (/Applications/Firefox.app)
AdobeResourceSynchronizer ApplicationHidden (/Applications/Adobe Reader 9/Adobe Reader.app/Contents/Support/AdobeResourceSynchronizer.app)
Calendar Application (/Applications/Calendar.app)
Skype Application (/Applications/Skype.app)
Dropbox Application (/Applications/Dropbox.app)
AdobeResourceSynchronizer ApplicationHidden (/Applications/Adobe Reader.app/Contents/Support/AdobeResourceSynchronizer.app)
MouseWorks Background Application (/Library/Application Support/Kensington/MouseWorks.prefPane/Contents/Resources/Support/MouseWorks Background.app)
Internet Plug-ins: ℹ️
AdobePDFViewerNPAPI: Version: 11.0.10 - SDK 10.6 [Support]
Flash Player: Version: 16.0.0.235 - SDK 10.6 [Support]
EPPEX Plugin: Version: 3.0.0.0 [Support]
AdobePDFViewer: Version: 11.0.10 - SDK 10.6 [Support]
ContentUploaderPlugin: Version: 1.2 [Support]
iPhotoPhotocast: Version: 7.0
RealPlayer Plugin: Version: Unknown [Support]
PDEPrint: Version: 2.0 [Support]
DirectorShockwave: Version: 11.5.2r602 [Support]
PDF Browser Plugin: Version: 2.4.2 - SDK 10.2 [Support]
FlashPlayer-10.6: Version: 16.0.0.235 - SDK 10.6 [Support]
QuickTime Plugin: Version: 7.7.3
CANONiMAGEGATEWAYDL: Version: 3.0.0.2 [Support]
DivXBrowserPlugin: Version: 1.3 [Support]
Silverlight: Version: 5.1.30514.0 - SDK 10.6 [Support]
Google Earth Web Plug-in: Version: 6.0 [Support]
Default Browser: Version: 537 - SDK 10.9
Flip4Mac WMV Plugin: Version: 3.2.0.16 - SDK 10.8 [Support]
JavaAppletPlugin: Version: 14.9.0 - SDK 10.7 Check version
OfficeLiveBrowserPlugin: Version: 12.3.6 [Support]
User internet Plug-ins: ℹ️
QuickTime Plugin: Version: 6.5.1
fbplugin_1_0_0: Version: Unknown [Support]
Safari Extensions: ℹ️
Ultimate [Installed]
3rd Party Preference Panes: ℹ️
ASM [Support]
DivX [Support]
Flash Player [Support]
Flip4Mac WMV [Support]
Macaroni [Support]
Time Machine: ℹ️
Skip System Files: NO
Mobile backups: OFF
Auto backup: NO - Auto backup turned off
Destinations:
G-DRIVE Mini [Local]
Total size: 999.86 GB
Total number of backups: 7
Oldest backup: 2014-07-09 00:13:07 +0000
Last backup: 2014-12-10 22:18:57 +0000
Size of backup disk: Excellent
Backup size 999.86 GB > (Disk size 0 B X 3)
Top Processes by CPU: ℹ️
6% WindowServer
3% firefox
1% mds_stores
0% mdworker
0% Skype
Top Processes by Memory: ℹ️
348 MB firefox
137 MB Skype
122 MB mds_stores
120 MB com.apple.IconServicesAgent
73 MB Dropbox
Virtual Memory Information: ℹ️
1.26 GB Free RAM
1.74 GB Active RAM
477 MB Inactive RAM
543 MB Wired RAM
503 MB Page-ins
0 B Page-outs
Diagnostics Information: ℹ️
Dec 29, 2014, 04:58:09 PM Self test - passed
Dec 29, 2014, 10:58:04 AM /Library/Logs/DiagnosticReports/Keychain Access_2014-12-29-105804_[redacted].hang
Dec 29, 2014, 10:54:33 AM /Library/Logs/DiagnosticReports/Keychain Access_2014-12-29-105433_[redacted].hang
Dec 29, 2014, 10:52:33 AM /Library/Logs/DiagnosticReports/Keychain Access_2014-12-29-105233_[redacted].hang
Dec 29, 2014, 10:50:24 AM /Library/Logs/DiagnosticReports/Keychain Access_2014-12-29-105024_[redacted].hang
Dec 29, 2014, 10:50:24 AM /Library/Logs/DiagnosticReports/Skype_2014-12-29-105024_[redacted].hang -
Not working imessage!! Credit card and I can not send imessage than after apple id. There are problems with Apple seeverele?? Thanks!
Before the service reset function. Wait 24 hours to activate imessage.go to the settings and turn off imessage
but that don't change the issue that you will never be able to facetime eachtoher
the appleID is really meant as the handle that identify you it was not meant to be shared
but can see that people may want to do not buy apps more then once -
I have put a lot of work into a docx document on my Mac, but now can't open it as it gives the error message: 'the Open XML file cannot be opened because there are problems with the contents. Details, Unspecific
error, Location: 2'
When opening the original file the message said: 'this file contains word 2007 for Windows equations' etc. but I managed to track changes fine, and saved, closed and re-opened it numerous times without problem. Some graphs seemed moved, and various formulas
were illegible, but no other weirdness was observed.
I have microsoft 2008 installed on my Mac OS X version 10.6.8.
I've tried to fix it using various solutions suggested here, but am afraid am too IT illiterate to have had any luck, please help I'm new to all this!
I've uploaded it to https://www.dropbox.com/s/hkw9k6lyihzoxpc/SittwayPauktawSQUEACREPORT_KD%2BCH.docxHi,
This issue is related strictly to oMath tags and occurs when a graphical object or text box is anchored to the same paragraph that contains the equation.
Please use the "Fix it" tool in the following KB article to resolve the problem. See:
http://support.microsoft.com/kb/2528942
Hope this helps.
Regards,
Steve Fan
TechNet Community Support -
I created a site and created a document libarary and assigned a word document as a content type . I have written a workflow to create a new document . The workflow is working fine and all the document is getting created and values are getting stored
in it .
As per my requirement I am saving the above site as site template .
After that I am creating a new site based on the above site template , Its getting created and I started the workflow , its working fine and the document is also getting created .
The problem is I am getting error while opening the word document
Error - The file filename.docx cannot be opened because there are problems with the contents .
Details - No error details availble .
IndreshWhat are you doing within the txt document? Is it general text and string based items, or have you something more elaborate going on?
An older discussion here elaborates a bit more on the dotx vs docx side of things.
http://social.msdn.microsoft.com/Forums/en-US/de1b5ff9-ea6d-460c-a707-8c28acd4906f/error-opening-office-open-xml-file-when-using-sd-workflow-to-create-item-in-document-library?forum=sharepointcustomizationlegacy
Steven Andrews
SharePoint Business Analyst: LiveNation Entertainment
Blog: baron72.wordpress.com
Twitter: Follow @backpackerd00d
My Wiki Articles:
CodePlex Corner Series
Please remember to mark your question as "answered" if this solves (or helps) your problem. -
File cannot be opened because there are problem with the files
Hi
My program reads the data from file uploaded into SharePoint 2010 and massage with the list information. It finally creates a new document and prompt the end user to save it. When user opens the saved document it consecutively prompts with the below two message
How to turn off this warning messages? When I re-save this document with different name and open it again (any number of times) then the above messages
stops prompting. I want these messages should not appear even in first time as well. I tried to add these document on trusted location and also removed the protection settings but it does not help. Is there any setting requires to suppress these warning messages?
Any help will be greatly appreciated.
Best Regards,
ImranHi Imran,
your document is damaged. Pls try opening new and fresh documents
http://social.technet.microsoft.com/Forums/sharepoint/en-US/921c57a4-6120-419d-a612-07d4826eebcb/the-file-cannot-be-opened-because-there-are-problems-with-its-contents?forum=word
Please remember to click 'Mark as Answer' on the answer if it helps you -
HTML5 Zoom Are Shows Wrong Image
Hi All,
I have a Captivate 6 Project that is being published ot HTML5. Some of the Zoom areas zoom into what that area looks like later. In other words, I wan to zoom into a menu, instead it sooms into an image that shows later in the slide. The same Zoom works fine or swf output.
Has anyone else noticed this?
TIA - VijayHello,
I'm using Mac OS X Mountain Lion. Here are some screen shots in order:
In the shot below, right in the center of the screen is the word Baseline:
Here is the same slide with the Zoom Area:
And here is later in the same slide where the "Zoomed" image is coming from part of another object which appears later in the timeline:
Thanks much for your help - Vijay
Maybe you are looking for
-
Sound on my iPhone 4S is messed up, tips and suggestions left by others not working any more. At first turning it off for a while worked, when turned it back in the keyboard click would work for a few keystrokes but now not even that. Had the phone
-
Overlay problem with embedded video
On the homepage of http://www.koersoprollen.eu you will see an embedded youtube video. When you hover the Google+ button on the bottom and you are logged in in Google+, you will see that a part of the dialog box is underneath the video and an other p
-
Accordion widget in document template
I'm trying to design my site using an accordion widget for my left-side navigation bar: each tab is a product category and when you click it, it shows all the subcategories. When I was working on just the index page, the accordion worked fine every t
-
My wish list paging control is broken and I can't access my recent additions; any suggestions? It seems to be stuck on page1 (I have 7 pages with a total of 181 songs saved).
-
ABAP lowercase entries in tables
When we make entries for tables through se11 or se16 in lowercase but DB is taking in uppercase how is it? Is there any option(menu) available in standard sap?