Any way to scroll the viewport of a cropped LDM?

I’m modifying Openspark’s vertical scroll bar
example (
http://nonlinear.openspark.com/tips/oop/scrollBar/index.htm)
to allow both vertical and horizontal scroll bars on the same LDM.
Essentially these scripts cycle through every sprite in the LDM and
move them a given increment. It works well enough but I’m
banging my head against the wall thinking there must be a way to
modify the viewport of an LDM in similar fashion to scrolling an
MIAW with drawRect. Does anyone know some tricks or is moving every
sprite individually really the best way?

On ma, 2008-01-14 at 19:41 +0000, Applied CD wrote:
> I?m modifying Spenspark?s vertical scroll bar example
> (
http://nonlinear.openspark.com/tips/oop/scrollBar/index.htm)
to
> allow both
> vertical and horizontal scroll bars on the same LDM.
Essentially
> these scripts
> cycle through every sprite in the LDM and move them a
given
> increment. It works
> well enough but I?m banging my head against the wall
thinking there
> must be a
> way to modify the viewport of an LDM in similar fashion
to scrolling
> an MIAW
> with drawRect. Does anyone know some tricks or is moving
every
> sprite
> individually really the best way?
>
Hi again,
I dont have another solution for this.
I have done some experimenting, but can not find a way to
"change the
viewport" either.
I was hoping something like "tell sprite() to set the rect of
the
stage
to rect()" would work, but it sets the rect of the
main-stage, not the
rect of the LDM-stage. I think this is one of the
shortcomings of
LDM's.
Years ago there was an aticle on one of the Director lingo
sites about
linked Director movies, and the tricks you can play with
them.
But... you guessed it, I can not remember.
It was something with clocks... maybe google can help?
I even tried to use the Shockwave ActiveX, hoping it would
play the
extenal movie with scrollbars. But the only thing I get is an
immediate
Director crash. :(
The moving of the sprites is not that bad.
You can make 1 generic behaviour for all the sprites, that
moves the
sprite with an extra offset.
Something like:
property myStartLoc
global gOffset
on beginSprite me
myStartLoc = the loc of sprite(me.spriteNum)
end
on prepareFrame me
set the loc of sprite(me.spriteNum) to myStartLoc + gOffset
end
You can now change the value of gOffset right in the main
movie, to
move
all the sprites with this behaviour.
gOffset should be a rect.
Good luck,
let me know how it goes.
Richard.

Similar Messages

  • When using an external (ergonomic mouse) is there any way to get the wheel to scroll one full page at a time?

    When using an external (ergonomic mouse) is there any way to get the wheel to scroll one full page at a time? Much appreciated.

    I can't use the keyboard to scroll. I need to keep my hand on the mouse, otherwise I'd never get anything done. Since I have no problem getting Firefox to scroll one page at a time, and I'm constantly jumping between 3 browsers, it would be nice to be able to scroll a full page at a time in Safari, just like I can in Firefox. Thanks.

  • Is there any way to make the scroll bars wider and blue in Lion?

    Is there any way to make the scroll bars wider and blue in Lion?

    Nope, afraid not. The only third-party utility that you might look at is LionScrollBars 0.5.4. You can search for others at MacUpdate or CNET Downloads.

  • Is there any way to disable the expanding scroll bars in Mountain Lion?

    Since I never scroll by dragging the scroll bars with the cursor, I find the expansion of the scroll bars to be a distracting and even productivity limiting feature. Is there any way to disable the expansion of the scroll bars (perhaps with a terminal command)? System Preferences doesn't have an option to switch this feature off as far as I'm concerned.
    Thanks a lot in advance.

    No!

  • Any way to get the old behavior of "Hyperdraw Other"

    In Logic 4.7 one could type ^Command-O to bring up a dialog, then simply type in a controller number and RETURN. That's all you needed to do to hyperdraw any arbitrary controller.
    In Logic 7 you type ^Command-O which brings up a long list. No text entry box. You are then forced to use your mouse to scroll waaaay down the list to the controller you want. To add insult to injury you are then forced to use the mouse again to click on the close box to close the window. Yes, this is one of those nifty new-fangled windows without a "CLOSE WINDOW" key command.
    Is there any way to replicate the old behavior of Hyperdraw >Other?
    I don't want to rant but it seems to me that the speedy interface of logic 4.7 has given way to uber-bloat in logic 7. I hope this isn't the general direction things are going.

    Hi K,
    ⌘ W
    Yes, it does close the floating window on my system.
    Coming fresh off the transition from 4.7 the distinction is vivid. You may not remember
    Probably not, since I made every upgrade along the way, though skipped a lot of V5's primetime.
    In my opinion once you start adding up a bunch of "nowhere near as terrible"s and your forced to do them again and again day after day they add up to one big terrible.
    Agreed - but some adaption is of course to be expected (at least, IMO). Some is for the better, some is for the worse. Overall, I find the workflow faster with 7 than 4 but again, my memory is not as vivid as yours.
    Cheers,
    J

  • When I add a new bookmark, and the (star) Page Bookmarked window appears - is there any way to expand the size of that window so that I can see my entire list of folders when adding a new bookmark to an existing folder?

    When I add a new bookmark, and the (star) Page Bookmarked window appears - is there any way to expand the size of that window so that I can see my entire list of folders when adding a new bookmark to an existing folder? The endless scrolling technique is far too tedious when trying to add a new bookmark, because the window is simply too tiny. Is there maybe a plug-in that will let me grab the corner of that window and re-size it? Thanks!

    I suggest you install the "Add Bookmark to Here2" extension, then you can expand the the list but you will not see the bookmark itself in the list if that is what you wanted. At the top you have three major folders you can select one of them and scroll up and down. Below that you have your most recently used folders and you can select one of them instead and scroll up and down. You can see the folder the bookmark is in -- they get added to the bottom
    If you really want to see the bookmark within the folder the same extension allows you to bring the bookmark to the folder from say the bookmarks sidebar that is why it is named as such. I use it but mainly i use the dialog.
    Please continue reading about bookmarks and some related extensions at
    * http://kb.mozillazine.org/Sorting_and_rearranging_bookmarks_-_Firefox
    * https://addons.mozilla.org/firefox/addon/add-bookmark-here-2/
    * http://dmcritchie.mvps.org/firefox/firefox.htm#addbookmarkhere2
    * http://dmcritchie.mvps.org/firefox/kws.htm
    If you are not using tags at all, you can remove a whole lot of confusion by removing them from the dialog via the extension.

  • Any way to change the order of the items in the Files Inspector? DW CS4

    Hi,
    I'm using Dreamweaver CS4 with my menus split virtically.
    Is there any way to change the order of the items in the Files Inspector?
    Specifially I'd like to have them in this order:
    | Local/Remote Files | Modified | Size | Type |
    The reason being that next to the 'Local Files' the 'Modified' column is most impotant for putting updated files/images, and in split vertical mode I have to scroll right to see the 'Modified' column.
    Is this a feature request?
    Rich

    Is there any way to change the order of the items in the Files Inspector?
    Yes, but it must be done on a site-by-site basis.
    In the Site Definition dialog box, select File View Columns. You can control the position and display of columns there. The only one that can't be changed is Name.

  • Is there any way to prevent the OS from querying the Superdrive when start

    Just a random question. Whenever my MacBook Pro starts up (either from sleep or a complete/fresh start, the OS queries the drive slot to see if there is a disc present. While this may be normal behavior, it seems to slow down the start up process. (I rarely ever have a disc in the drive). Just curious if this, in fact, normal, or if there's something awry.

    Is there any way to prevent the OS from querying the Superdrive when start
    No
    he OS queries the drive slot to see if there is a disc present.
    How can you tell? Based on the noise it makes?

  • Is there any way to retreive the FileName in the mapping

    Is there any way to retreive the FileName and so that I can use that in my mapping. This is FILE2RFC scenario with NO BPM.
       I am using the adapter specific message attributes in the file sender CC.
    Thanks,
    Ravi
    null

    Yes you can retreive it.  Create an simple user defined function in the mapping and use the following code.
    Imports: com.sap.aii.mapping.api.*;
    Parameter: String filename
    Paramter: String filename;
    filename = fileName + ".DAT";
    DynamicConfiguration conf = (DynamicConfiguration) container
    .getTransformationParameters()
    .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File", "FileName");
    conf.put(key, filename);
    return filename;
    Or
    Just do whatever mentioned in this weblog:
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    ---Satish

  • Is there any way to repeat the last action on a new selection?

    I'm playing with Pages to see if I can use it instead of Word. I'm very expert with Word, just starting with Pages. Like some things, don't like some, but I think it's worth continuing to play with it to see if it will work for me. One problem I've been having is repeating an action. In Word, if you do something (in the particular situation I just had, it was deleting a row in a table), and then click on another place and do command-Y, it repeats what you did. Similarly, if you format a word as bold, say, and then select another word and do command-Y the second word will also be made bold. I realize the latter can be done in pages by selecting "emphasis" style for the second word, but I couldn't figure out any work-around for deleting the table rows (I tried selecting several non-adjacent rows, but "delete row" was greyed out on the actions menu). Any way to do this that I've missed?

    Thanks anyway. I'm sorry that Apple didn't include a "repeat" keyboard shortcut - going to the Inspector and then the actions wheel and then "delete row" time after time wasn't fun.
    I'm afraid I failed to communicate well about outline format - I didn't mean a bulleted or numbered list, I do know how to do that, but rather making a single character (or in my particular interest a symbol, the diamond and heart suit symbols) appear in outline text format. You can do it by going to format->font->outline, but if I want to do it for several occurrences of the same thing (or a few different things), it's not much fun to do it that way. But maybe I can define a character format that's outline and that will work. Still would prefer to have a keyboard shortcut to apply the character format though.
    Incidentally, while I'm talking about diamonds and hearts, is there any way to change the amount of space that gets put in after the diamond and heart symbols if you insert them using Edit->Special Characters? I write a lot of documents that use those symbols and lines end up unevenly spaced because of the large amount of space below each symbol (I've figured out a partial work-around - I defined a style for "body after suit symbol" that is raised enough to get the line spacing right, but that only works when I want to have a hard return at the end of the line with the suit symbols, since if the lines wrap, both lines have to have the same paragraph formatting. This problem isn't really Pages related - I have the same difficult with Word .

  • Is there any  way to Mask the Name when  a select statement is issued?

    Dear all,
    Is there any way to mask the name .. i mean if User issue a select statement in a customer table the real name should come like ' ABCXXXDEFXXCFXX'... Which is not the actual name?
    e.g if Name: CHIEV SONG MEE
    If user issue a statment select * from customers;
    The Result Should come something Like this:
    Name
    CHXXV SXNG MXX
    Thank You

    user3029023 wrote:
    but it seems there is no option in oracle it self which can be used as there they are saying to get a data masking software which we can't due to some internal issues....I would not say that. How one implements masking depends entirely on the requirements that need to be met.
    For example, schema A owns all the tables. Schema B can be created as a "trusted" schema - in other words, schema A trusts schema B and allows it full access (with grants) to its tables. Schema B implements data masking as views. For each table in A, a view exists in B that implements the required masking. B can now grant select access on these views to user C. User C will see the same data object names in B as it would have if it used A - only, by using the B data objects it uses masked data objects and not the original source data objects.
    Another example - schema Dev is to have all the data objects of schema Prod, but masked where needed. One can use CTAS (Create Table As Select) to create the required tables in Dev with masked values where relevant. This Dev schema can be "refreshed" on weekends by dropping all tables and getting a new fresh copy of production data and masking it - ready for the next week's development cycle.
    If the application use is for example APEX, then instead of coding SQL directly as reporting regions to display, a function is used instead. APEX supports reporting regions where it calls a function and this function provides the APEX run-time with the SQL to execute and contents to render. It is easy to use this approach to implement logic in functions that masked column data depending on who the APEX user is, the security/role attributes of the user, and so on.
    No there is not a single "+mask this column!+" feature in Oracle.. but that does not mean that such a feature is not supported and cannot be implemented. Oracle has a very comprehensive and rich set of tools - more so than most (if not all) other RDBMS products.
    It is up to the architect/designer/developer to use this toolkit in creating a system that meets the specific requirements at hand.

  • Is there any way to identify the particular socket connection is closed ?

    Is there any way to identify the particular socket connection is closed or not ?
    Any methods ???
    How can the program knows the connection is lost or some thing ...
    Is the socket throws some excpetions when there is no active connection ???
    namanc

    If you get an IOException when you try to use the socket, the connection was obviously closed.
    The correct way for an application to know if the socket was closed is:
    1) the server sends a message indicating that the socket should be closed
    2) the client closes the socket itself

  • Is there any way to get the height/width of an image before importing it in the indesign document.

    Hi All,
    I need to obtain an image's attributes such as dimensions (height, width in pixels) without placing image in indesign document.
    I have full path of the image (say abc.jpg is stored at c:\my pic\abc.jpg).
    I have obtained the IDFile for this image, tried getting size using GetFileSize() which correctly return size in bytes.
    Is there any way to get the height/width of image without importing it in the indesign document.
    Please, give me some hints. I have spent quite a lot time digging in CHM. I have searched in FileUtils, IDFile API's but found no method which serves this purpose.
    At this point I am clueless where to search next.
    Any help will be appriciated.
    Just a point to mention, I am able to get image height and width for an image in indesign doc though Its not my requirement.
    Thnx,
    D.

    You might be able to examine the contents of the PlaceGun after calling kImportAndLoadPlaceGunCmdBoss without actually placing the image in a document. Not sure, but would be worth looking at.
    Otherwise you will probably have to write platform specific code, ideally with a generic platform-independant wrapper (see SDKSamples/paneltreeview/PlatformFileSystemIterator).
    For the Mac, look at CGImageGetWidth() etc., not sure what the best option is for windows.
    Perhaps Quicktime could provide you with a platform independant solution.

  • Any way to HIDE the Pages "Backup" filenames in iCloud document listing?

    The "Backup" files are annoying to see in iCloud.
    Any way to HIDE the Pages "Backup" filenames in the iCloud document listing at the Open dialog?

    No, there isn't what you are looking for. Maybe someone else have a work around.
    Download the Pages User Guide by going to the Help menu in Pages. there you see what you can do.

  • Is there any way to specify the default version of LabVIEW?

    I have a sinking feeling that the answer to this question is "no."  With more than one version installed, is there any way to set the default LabVIEW version for opening a VI? I have both 7.1 and 8 installed, and usually only use 8 to open an example or look at something posted here.  When I do that, it resets all the OS hooks so that the default action for opening a VI is to open it in version 8.  I've even gone so far as to create actions to open files in 7.1 and 8, but it always resets my default action.
    I found this KB article for when version 7 came out, but it's suggestions don't seem to work with 7 and 8.
    Ugh. I hate it when software thinks it knows what I want better than I do.

    eaolson wrote:
    I have a sinking
    feeling that the answer to this question is "no."  With more than
    one version installed, is there any way to set the default LabVIEW
    version for opening a VI? I have both 7.1 and 8 installed, and usually
    only use 8 to open an example or look at something posted here. 
    When I do that, it resets all the OS hooks so that the default action
    for opening a VI is to open it in version 8.  I've even gone so
    far as to create actions to open files in 7.1 and 8, but it always
    resets my default action.
    I found this KB article for when version 7 came out, but it's suggestions don't seem to work with 7 and 8.
    Ugh. I hate it when software thinks it knows what I want better than I do.
    Add
    in the LabVIEW.ini file of those versions you do not want to rewrite
    the registry on startup to point to themselves for VI files, the
    following:
    RegisterExtensions=False
    Of course the VersionChooser utility mentioned earlier is even more convinient.
    Rolf Kalbermatter
    Message Edited by rolfk on 06-28-2006 08:21 AM
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

Maybe you are looking for

  • Use of enque and deque function in BADI MB_DOCUMENT_BADI

    Hi All, I have implemented one implementation to the BADI MB_DOCUMENT_BADI.I have to use update command in this implementation to update on ZTABLE,In order to update I need to use enqueue and dequeue function before updating the table. My concern is

  • No search on app store?

    why is there no search option on the app store? i just don't always know the category for the app type i'm looking for. this is nuts to have no search. or maybe i'm nuts not to find it? even that would be okay as long as it's there!

  • Raw files from Nikon d750

    I have dowloaded Camera Raw 8.7 and DNG Converter 87 but still cannot open my raw files taken with my new Nikon d 750 camera

  • Landscape orientation/graph/overlay

    I am trying to     (1) make my blank page/file in landscape mode,                             (2)  create a grid that I can resize so it looks like very small graph paper,                          (3) insert a text box, type text and then reverse the

  • Essbase migration (from backup)

    Gurus, In the environment I work in, we backup Essbase everyday. We have script to backup all the artifacts, such as essbase.sec, essbase.bak, essbase.cfg, .otl, .csc, .rep, .rul, etc. We have several cubes in Essbase and we are supposed to recreate