Question about scrolling and Movie Clips loaded library

I hope I am posting this in the right forum.

OK, I am using actionscript 2.0, and I'm doing a picture scroll Gallery. I have a clip with three layers. the first contains a clip used as a scroll bar. The second is a mask used to hide the contents of overflow, and the third contains thumbnails of clip from movie. When I click on one of the thumbnails, it loads a symbol containing a larger version of the image above the thumbnails on the same layer. My problem is the large image is added to the top of the clip, even when it scrolls out of view. I want it to appear on the horizon, so that the user doesn't have to scroll all the way up to the top to see. It's annoying and confusing. Is there a way to do this?

Here's the code I used to create the effect of scrolling (there is actually a whole lot more code but it is very long, so I'm not there add it now.) I'll do it if I must)

(Oh, and there is no text involved in this.) I just got this code on a tutorial and I have not changed the variable names yet)

var scrollUpper:Number = 58;
var scrollLower:Number = 309;

var textLower:Number = 60;
var textUpper:Number = - 179;

var scrollRange:Number = scrollLower - scrollUpper;
var textRange:Number = textLower - textUpper;
var startY: Number = imagesHolder_mc.thumbs_mc._y;

//
function scroll() {}
var moved: number = imagesHolder_mc.scroller_mc._y - scrollUpper;
var pctMoved:Number = moved/scrollRange;
var textMove:Number = pctMoved * textRange;
imagesHolder_mc.thumbs_mc._y = textLower - Gauchedeplacez;

}

imagesHolder_mc.scroller_mc.onPress = function() {}
this.startDrag (false, this._x, scrollUpper, this._x, scrollLower);
this.onMouseMove = scroll;
}

imagesHolder_mc.scroller_mc.onRelease = scroller_mc.onReleaseOutside = function() {}
this.stopDrag ();
this.onMouseMove = null}

What you have explained, it seems to say anything that scrolls to adjust its position so that the top is in the display area after adding a new symbol.  I don't see where it would be your scroll controls, the position of which scrolls.

I'm a little curious.  You seem to be saying that as new images are selected, they are added to everything that has already been selected, so the reason for scrolling to see things.  Why don't you just show the selected image and remove everything above it so that there is no need to scroll?

Tags: Adobe Animate

Similar Questions

  • About a month ago I posted a question about iMovie and not being able to "share". I solved the problem thanks, so no more emails!

    About a month ago I posted a question about iMovie and not being able to "share". I solved the problem thanks, so no more emails!

    Hi Michael,

    If you want to stop receiving notifications by electronic mail, in the thread, that you have created, then I suggest that you follow the steps below:

    One time connected to the Apple Support communities, visit your mini profile and select manage subscriptions.

    Content

    To manage this content, you are currently subscribed and changing your preferences, select the content.

    Select next to see what content you are currently following.  Note that any thread you are responding you subscribe you automatically to this thread.

    You can select to terminate a subscription to a thread.

    Learn how to manage your subscriptions

    Take care.

  • Question about business and Service of Proxy

    Hi friends,
    I have a question about services and proxy services business IE I need to find the time it takes to call an operation on multipoint business of proxy service, how can I do in oracle service bus (OSB)? You can help quickly

    If your question is only about the performance analysis,
    try to activate the 'monitoring' on the 'operational' of the Service Proxy Service/Company tab.
    For the Proxy Services, if you activate at the level of the 'Action' you get a lot of information about each individual action in a power of attorney.

    See http://www.javamonamour.org/2011/06/osb-profiling-your-proxy-service.html

  • Why there are graphics and Movie Clip in Flash?

    Where there are graphics and Movie Clip in Flash?

    What is the deference?
    When to choose one of the other?
    It would be simpler if Flash does that Movie Clip (so people are not confusing choose)?

    Thank you!

    Main differences are:

    MovieClip symbols contain their own calendars. That's why they can run animations inside of them that are independent of the main timeline. They are also targeted by actionscript to run the script-driven events, animations, changes, etc.

    Graphic symbols are better used to hold static images images, text or what you create with the drawing tools. Although you can run an animation in them, it should the main timeline to be of the same length to see the full animation. Graphic symbols cannot be targeted by actionscript.

  • Noob on chain and Movie Clip symbols question

    So, I have a table containing the names of occurrence of some movie clip symbols... I want to catch a random and perform operations above.

    So, I put a table with string names and grab one at random.

    var log_array:Array = ["truckStop_mc", "blackJack_mc"];
    Index number: var = Math.round (Math.random () * log_array.length);

    I then used track to make sure that I'm grabbing the name correctly... it is for me the names...

    trace (log_array [index]);

    I then try set the x and y property

    log_array [index] .x = 399,4;
    log_array [index] = - 3 there.

    I get this error when running:
    Cannot create the x on string property

    I tried to store only the clips themselves as objects but it wrong as well.

    var log_array:Array = [truckStop_mc, blackJack_mc];

    Is there a way to store the objects themselves in the table, or is it possible to convert this string to the object.

    Something like
    var obj:Object = getObject (log_array [index]);
    obj.x =...

    any help would be great... I was blocked a bit now.

    Thank you

    you need to store the instance name of the MC as you have in the second version here, as in:

    var log_array:Array = [truckStop_mc, blackJack_mc];

    ... However the RND formula should be adjusted to:

    Index number: var = Math.round (Math.random () * (log_array.length-1));

    ... And when you set properties on an MC XY, you need a stroke of underscores, differeing from the XY of an object property, as in:

    log_array [index] ._x = 399,4;
    log_array [index] ._y = - 3;

  • Windows 7 starts questions about mac and office 2010 following an installation

    It's a long cut as short as vent. I've been miss sold a record of upgrade of windows 8 full disk-shaped, with norton and office 2010. My goal of creating windows on my mac for a course I'm taking. After that know I need windows 7, I bought it online. I created a partition of 80g on my mac charge windows 7, then norton. Until I loaded the office that I was invited to perform the update from apple in the windows software 7. Note before I installed norton, I load boot camp mac utilities according to the instructions. So, followed by all as should be. The prompt update from apple was quick time, iTunes and airport, I checked all and then updated. Then I loaded office 2010 and obtained throughout the process from the Microsoft site. On the last part of the installation, the installation failed due to a mistake of hanging iTunes. I tried again and again, I fixed the update to iTunes to add and remove the section of windows. Then, I got different errors. I decided to remove the whole score without uninstalling all programs again. When I get to the windows live, that this falls priming. I get various error messages whenever I try to start the process. As a header of Bank pool, fatal error and so on. Can anyone help? What is the damage?

    Hello

    Thanks for posting your query in Microsoft Community.

    Because the question is limited to Windows 7 on your Mac with Boot Camp, I suggest you contact Apple Boot Camp support for assistance.

    http://www.Apple.com/support/Bootcamp/

    I hope it helps. If you have any questions about Windows in the future, please let us know. We will be happy to help you.

  • Question about snapshots and virtual machines

    Hi all

    I have a small question about snapshots. I use VMware for about 6 months and I read about snapshots and how they work but still have a question to make sure that I understand how it works and it will work the way I think it works.

    I have a Windows 2003 server, which is a virtual machine. I have an application that uses MSDE database. I want to upgrade the database to MS SQL 2005, but to do this I need to back up the MSDE database, uninstall MSDE, and then install SQL 2005 and move the SQL database. This happens on the same VM.

    What I was thinking if I well Snapshots correctly is to snap turned the virtual machine before doing anything. Then do my upgrade steps and see if everything works. If its all messed up so I should be able to return to my shot and everything should be the way he had. What is the good? One of the main reasons I moved the server VM was because of this upgrade.

    After reading the documentation for the snapshots, it's how I undestood it. Pretty much any change could be reversed with snapshots. I wish just they had put in a few examples in the PDF file. Also it would be the same for all type of grades of the OS? Could I snapshot a Windows 2000 Server, and then "in the upgrade of the square" to Windows 2003? I've cloned a VM to do this but was curious about whether snapshots would be just as easy.

    Thanks for your help.

    Hello.

    What I was thinking if I well Snapshots correctly is to snap turned the virtual machine before doing anything. Then do my upgrade steps and see if everything works. If its all messed up so I should be able to return to my shot and everything should be the way he had. What is the good?

    That is right.

    After reading the documentation for the snapshots, it's how I undestood it. Pretty much any change could be reversed with snapshots. I wish just they had put in a few examples in the PDF file. Also it would be the same for all type of grades of the OS? Could I snapshot a Windows 2000 Server, and then "in the upgrade of the square" to Windows 2003? I've cloned a VM to do this but was curious about whether snapshots would be just as easy.

    Exactly the same thing for the upgrades of the OS.

    Perhaps the most important thing with the snapshots is to keep an eye on them and don't let them sit too long or become too big.  You have described the use cases are very good uses for snapshots.  Just make sure you have a solid plan with a schedule set, so that you can come back or validate changes before the snapshot becomes too large.

    Good luck!

  • New movie clip load on top of old video clip

    I create a Movie Clip Player interface. You can click on a thumbnail and load an external SWF. At the end of this clip, I want to load another SWF, it's just a filler of logo animation that plays until the next thumbnail is clicked.

    I use this script:
    var myLoader:Loader = new Loader();
    addChild (myLoader);
    var url: URLRequest = new URLRequest("swfs/movie00.swf");
    myLoader.load (url);

    But it loads the new movie just above the former.
    How can I get this first unloading?

    Thank you!

    If you create a new instance of the loader it will not affect the other charger and will sit atop it if that is where it is meant to go.  If this instance is created inside a child object, a chronology of something to do with the charger that holds the child.  You're better off Managing your charger in the main timeline.  If your children need to replace themselves, then just talk to them at a function in the main scenario for what it take care of this.

  • Question about CR and LF

    Hey guys,.

    Quick question on LF and CR. As you can see I'm LF and CR of writing to a text file and because directly.

    However, I don't get the CR at the time where I read it. Why is this? Is it because Windows ignores the CR?

    Thank you

    Hi dora,

    read the Help for the WriteText function.

    There is an option for handling of CR/LF characters and explained mentioned in the "Advanced" section of the article for help!

  • M30-832: Questions about memory and DVD player

    Hi all, new to laptops up to have a few questions! First of all, I have a Satellite M30-832.
    1. He has on the dvd player on the side of the Compact disk with re-writable below image and sign dvd R/RW under. That means it is a DVD burner as well? It does not sem to recognize blank DVDs and I was under the impression that it should be possible to write about them!

    2. can I upgrade the memory with memory DDR - RAM modules or does take a special type? And how to change them!

    Thank you very much

    Hi Richard,

    From what I can find your M30 832 is equipped with a DVD burner so you should be able to burn DVDs (the specification says you can only burn at X 1 speed for DVDs).

    You should be able to update your RAM to a maximum of 2 GB and I recommend you buy a quality mark to avoid any problems. Your user manual should have details on how to change the RAM modules, but generally it will be to remove a panel of access (usually on the bottom of the unit) and then releasing it two clips (one on each side of the RAM modules) plastic spring-loaded and gently raising the output modules.

    Please make sure that you either wear a wristband anti-statuc dirt or this earth you yourself before accessing RAM modules. They are very sensitive to electrostatic.

    You can find suppliers of RAM suitable if you GOOGLE 'M30 832 RAM.

    HTH)

  • Question about phone and / or Android 1.5

    I have a question or a statement that needs confirmation. If someone could be good enough to help out I'd appreciate it.

    I am a heavy Texter and text on a daily basis, probably an average of about 250 + texts per day. Also, I noticed and I took County, after about 4 hours of texting the android keyboard and also the swype keyboard, affecting the time key to key response starts to slow down and get slow and ultimitely is unbearable to the text with. Even with the home screen and sliding screens from left to right, and as I said it doesn't happen only after some hours of use of the phone. So, I have to restart the phone and repeat for it keep to become lazy and unbearable to text with. I usually reset every morning or when I wake up. This is nothing compared to my sisters Mytouch, which is in fact older than my phone, it can affect his day at the time and not get done with the delayed touch response. I also noticed that his phone is running Android 1.6.

    Now my concern is, if I'm the only one knows this or is it due to a defective phone. What is the Android obsolete 1.5 that many people are talking about who is performing on the phone in this way.

    Basically, it's because of 3 things.

    1. history - more history, more than it takes to load. (If you wipe all messages and try again, you'll see what I mean)

    2 android 1.5 - don't know what the reason, but even on 1.6 devices SMS language delay is AVERAGE less.

    3 Swype - if you have enabled, it tends trolling more than the default android.

    It is not your phone, it's all phones Cliq/Cliq XT... 1.5 hate text messaging.

    In addition, your phone will work more effectively without a task manager. They are nice to have if you need something CF or to extend the life of the battery (no), it actually takes your phone like some processes that would otherwise, and you also have the risk of frost on the phone all together because some group programs are essential and cause the home screen all recharged after their closure. I would like to refer to this site in order to better explain.

    http://tiny.cc/00s5a

  • Question about processor and Windows. need to answer accrdingly to discription below. ?

    I use windows xp. on cpu 2.4, 1 gb ram and 256 of the hard drive. and I am aware of two pins in my processor is broken by the heat of combustion. the system still works fine. but the only problem that I face is that it takes 3 x the normal time to copy the data from the drive usb or vice versa...  This is: it is because of the processor broken pins to copy slow. and is there a way to solve via software system say avoid those specifice pins or some how? ?   Hopefully the issue is understandable. answer please...

    Pins broken on a processor and things still work, and your concern is slow copy?

    What is "thermal burning?  You can expand on how these pins really broken?

    There is no software (that I know) to "move" broken material as you describe.  You would be better to spend a little money to find a replacement processor or a replacement processor and motherboard that will accept your current memory, etc. MY HUMBLE OPINION.

    Is * only * the cause of your slow copy - questionable.  Save more explanation of what happened to the pins of the processor - I suspect there is other damage suffered by the system, you don't even know of which could cause slow best USB.  Something with the motherboard, possibly.  Specifically the same USB ports.

    I mean - you could back up everything, perform a clean installation of the operating system and see if it works better after loading the latest drivers form the manufacturers of hardware components in your machine costs and clean...  Otherwise - shot in the dark so that blindfolded and ignoring obvious cries of "stop, don't shoot."  * smile *.

    Side also - comment - if there is something wrong * everything * and you declare it here, the system * not * "are still working fine.  * smile *.

    --
    Martin Stanley
    --

  • Question about VALIDATION and EXCEPTION loop

    DB version: 11.2

    I believe the gurus here despise is committed inside loops. Due to budgetary constraints our java colleagues write code PL/SQL here. Below is an excerpt from a stored procedure that does some archive stuff.


    Question on COMMIT
    =====================
    I know is committed to the inside of the loops is bad, but I just want to know if the path that they have implemented COMMIT frequency is correct (using the number of iterations). Their intention was to commit all 200,000 records.


    Question on EXCEPTION
    ======================
    LMD like that, isn't better to have the exception block in the loop?




     
     
    select po.txn_id, po.po_id BULK COLLECT into v_txn_id, v_po_id 
    from purchase_orders po inner join txn_pkt_common tc 
    on tc.txn_id = po.txn_id
    and tc.created_date < po.last_mod_date;
    
    
    v_rec_count := 0;
    
    
    IF v_txn_id IS NOT NULL AND v_txn_id.COUNT > 0 THEN
    
    
         FOR i IN v_txn_id.FIRST .. v_txn_id.LAST LOOP
    
              v_rec_count := v_rec_count + 1;
    
              INSERT INTO purchase_orders_archive SELECT * FROM purchase_orders WHERE po_id = v_po_id(i);
    
              DELETE FROM purchase_orders WHERE po_id = v_po_id(i);
    
    
              IF v_rec_count >= 200000 THEN
              COMMIT;
              v_rec_count := 0;
              END IF;
    
          END LOOP;
         COMMIT; 
    
    end if;

    ExpansiveMind wrote:
    DB version: 11.2

    I believe the gurus here despise is committed inside loops.

    Cursor inside the lines, Yes, but this isn't a case of contemptuous, it's more to do this is to knowingly introduce a bug in your code, resulting in a possible "snapshot too old" error So, good programmers do not.

    Question on COMMIT
    =====================
    I know is committed to the inside of the loops is bad, but I just want to know if the path that they have implemented COMMIT frequency is correct (using the number of iterations). Their intention was to commit all 200,000 records.

    Q: Why is there the intention to commit all 200,000 records? What is the issue they're trying to move?

    In your example code, it is the data block collection. Is it really in collector block + 200,000 records? If so you may have a serious impact on the resources of database data are collected in the memory of the PGA, which is expensive.

    Question on EXCEPTION
    ======================
    LMD like that, isn't better to have the exception block in the loop?

    That depends on what you want to do when an exception occurs. If the exception can be 'managed' and you want to continue processing the rest of the data, then Yes, you would want an exception around the DML inside the loop block. If an exception should cause processing to stop completely, then you want the exception handler (if you really need one) out of the loop... but then you wonder again why you make inside the loop, because it is not supposed transaction.

    All of this procedure looks like this could be done with a single INSERT statement followed a single DELETE statement, followed by a unique validation. Oracle can easily handle millions of records, so it shouldn't be a problem.

    The other problem with frequent postings is that each commit tells oracle to write the data to the data blocks, and these 'write' get statements go in the database for the writer to manage processes. By default, there are X number of writer running process (depends on version and other parameters) when the database starts, but if a large number of postings is published then Oracle begins to generate additional editor on the server processes to manage the extra workload, which can then cause a lot of writer running process (using the resources of the server) all trying to access the same load of blocks of data in terms of physical i/o and therefore all the other slows down. This is why frequent postings are not a good thing, and you must book to engage in logical business transactions.

  • Question about ESXi and NFS

    Greetings!  I'm hoping to get feedback on the following possible scenerio.

    Computer 1:

    The computer that is running Windows Server 2008.  Large amount of storage available, via dedicated hardware raid or 'software' / raid ICH10.

    Computer 2:

    Computer running ESXi v4 (installed on the local hard drive).  Core2Quad w / 8 GB RAM.  Responsible for about 4-5 virtual machines.  Each virtual computer will be low IO load (DCs environment lab, MySQL server, web server).

    I have three questions:

    1. are there any problems with the use of the space on 1 computer through Windows 2008 NFS to host virtual machines that will run on computer 2.

    2. because I do not use hardware RAID on computer 2, I won't RAID1 for redundancy.  If the hard drive fails, but virtual machines are on a redundant protected NFS share on Computer1, is there loss of data outside the need to reinstall ESXi on a new hard drive?

    3. someone can tell the performance of a 'software' RAID (probably RAID5) NFS share (ICH10, etc.) from the point of view of virtual machines hosting?

    Thanks in advance!

    1. are there any problems with the use of the space on 1 computer through Windows 2008 NFS to host virtual machines that will run on computer 2.

    Although the NFS Windows service is not the most ideal, it will work fine. You want to make sure there is no automated etc. updates and limited storage functions of the machine.

    2. because I do not use hardware RAID on computer 2, I won't RAID1 for redundancy.  If the hard drive fails, but virtual machines are on a redundant protected NFS share on Computer1, is there loss of data outside the need to reinstall ESXi on a new hard drive?

    It would not be otherwise than a hardware failure on any machine. You don't have the risk of data damage whether physical or virtual.

    3. someone can tell the performance of a 'software' RAID (probably RAID5) NFS share (ICH10, etc.) from the point of view of virtual machines hosting?

    Without hardware raid with a caching controller you won't have better disk performance. Controllers setting cached on RAM and will require a battery to protect the cache failure.

  • should we empty loading data ODI and move to "Load rules" of Essbase?

    Hello
    We use to load data in planning 11.1.1.3's ODI Essbase cubes.
    Should move us data loading ODI on "Load rules" of Essbase?
    We see no advantage to ODI over aid maxl Essbase calls script loading rules and calc scripts.
    One thing he has the advantage on Essbase, is that it can refresh planning. Can you load supporting details and the text in the cell?

    You have data from multiple sources, say some data sets are file bases, some are stored in warehouses or books of accounts, you want to collect these data, transform and apply the mapping, to load that data into essbase, you can add Automation around her then that is an example to use ODI to load data into essbase There are many others.
    Yes you can do it with maxl, but must eventually bring about more strive to add automation, mappings, error handling etc. as you would if you have walked the path of ODI.
    I do not say that you must use it, if you don't see any profit is meaningless.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

Maybe you are looking for