Vertical sliding content question

I try to put vertical sliding content on my flash site and I work so that when I click on the second button, it slides up to the second content, but when I click on the 1st, it does not slip down to view the contents of 1.  I use a cursor mask, here is my code:

var currentPosition:Number = contentholder.richginfo._y;

var startFlag:Boolean = false;

menuSlide = function (entry: MovieClip) {}

If (startFlag == false) {}

startFlag = true;

var finalDestination:Number = input._y;

var distanceMoved:Number = 0;

var distanceToMove:Number = Math.abs (visiting - currentPosition);

var finalSpeed:Number =. 3;

var currentSpeed:Number = 0;

var dir:Number = - 1;

if (currentPosition < would stay) {}

dir = -1;}

ElseIf (currentPosition > = would stay) {}

dir = 1;

}

this.onEnterFrame = function() {}

currentSpeed = Math.round ((distanceToMove-distanceMoved + 1) * finalSpeed);

distanceMoved += currentSpeed;

contentholder._y += dir * currentSpeed;

if (Math.abs (distanceMoved - distanceToMove) < = 1) {}

contentholder._y maskMovie._y - currentPosition + dir = * distanceToMove;

currentPosition = input._y;

startFlag = false;

delete this.onEnterFrame ;}} ;}

};

richgbutton.onRelease = function() {}

menuSlide (contentholder.richgphoto);

};

folsbutton.onRelease = function() {}

menuSlide (contentholder.folsinfo);

};

The code you have works very well if all the pieces are there. So I wonder if you do not pay attention to the details of my question - I think that evil named something in your code.  You do not have a button that I see that refer to an object named "richginfo" (where it started), the only one that takes you to a "richgphoto".

var currentPosition:Number is contentholder. richginfo._y;

richgbutton.onRelease = function() {}
menuSlide (contentholder. richgphoto);
}

Tags: Adobe Animate

Similar Questions

  • Content question Pack Microsoft Active Directory

    So I installed the pack content for Microsoft Active Directory, and it works well for what it was designed for.

    Would it not possible to add another article for the surveillance of the integrity of the file? It is a requirement for PCI compliance and would be a great addition to this content back dashboard!

    Thought I would ask here before you request a feature, to see if it could possibly be just added to the fly ;-)

    OK, the content of Windows pack has been updated to include the auditing of objects! Please take a look and reply back with any feedback. If this answers your question could you please mark it as answered? Thanks for the comments!

  • Vertical sliding bar disappears on Safari

    My vertical slider disappeared from Safari and I can only cross towards the bottom of the page by using the Page down (bar appears, then disappears when I do that).  Have restarted without result.  Any suggestions as to what is current and the fixing of the problem would be appreciated.  21 "iMac, OS 10.11.3

    JDB38,

    Go to System Preferences > general > Show scroll bars:... and select the choice that fits your needs.

  • Vertical button discussion questions

    I've been at this for hours and can't seem to understand the problem.

    What I want is simple - vertical skinny 6 buttons that stretch to the top of the screen down (fact). I want that they regularly spaced from left to right (done). So I want to click on each of them for different actions. What is happening, it is the first button immediately Gets the focus and seems to have the focus on the entire screen. No matter where I click, the first button is the one that keeps the focus. Help? Here's the code to application below. The buttons spread the field and are inspired by PictureBackgroundButtonField one of the examples.

    SerializableAttribute public class MyApp extends UiApplication implements FieldChangeListener
    {
    //------------------------- Class Attributes -------------------------------
        
    //------------------------- Class Methods ----------------------------------
    Public Shared Sub main (String [] args)
    {
    MyApp PAP = new MyApp ();
            
    Have this app into the event queue
    theApp.enterEventDispatcher ();
    }

    //------------------------- Attributes -------------------------------------
    private display display;
        
    private HorizontalFieldManager hfm;

    private VLineButtonField [] lineButtons = new VLineButtonField [6];

    //------------------------- Constructor ------------------------------------
    public GuitarTunerApp()
    {
    Screen is the screen or basic framework of the user of RIM interface class.
    Screen = new MainScreen();
          
    lineButtons [0] = new GuitarStringButtonField (10, 480, Field.FOCUSABLE |) Field.USE_ALL_HEIGHT, 'E');
    lineButtons [0] .setChangeListener (this);
     
    lineButtons [1] = new VLineButtonField (10, 480, Field.FOCUSABLE, "A");
    lineButtons [1] .setChangeListener (this);
     
    lineButtons [2] = new VLineButtonField (10, 480, Field.FOCUSABLE, "B");
    lineButtons [2] .setChangeListener (this);

    lineButtons [3] = new VLineButtonField (10, 480, Field.FOCUSABLE, "C");
    lineButtons [3] .setChangeListener (this);
     
    lineButtons [4] = new VLineButtonField (10, 480, Field.FOCUSABLE, "D");
    lineButtons [4] .setChangeListener (this);

    lineButtons [5] = new VLineButtonField (10, 480, Field.FOCUSABLE, "E");
    lineButtons [5] .setChangeListener (this);
             
    Add a Horizontal field Manager that contains the custom button sample fields.
    HFM = new HorizontalFieldManager(HorizontalFieldManager.USE_ALL_WIDTH |)
    HorizontalFieldManager.NO_HORIZONTAL_SCROLL)
    {
    public int getPreferredWidth()
    {
    Return getManager () .getWidth ();
    }
                
    protected void sublayout (int maxWidth, maxHeight int)
    {

    Super.sublayout (maxWidth, maxHeight);

    * If I remove this loop, the buttons eat together on the left with

    most of the buttons has focus on the rest of the screen open at the time. *****

    for (int i = 0; i)< 6;="">
    {
    Field field = getField (i);
    setPositionChild (on the ground, 48 + 51 * i, 0);
    }
    }
    };
            
    Background bg = BackgroundFactory.createBitmapBackground (Bitmap.getBitmapResource ("funImage.png"));
    hfm.setBackground (bg);
            
    for (int i = 0; i)< 6;="">
    {
    HFM. Add (lineButtons [i]);
    }
        
    mainScreen.add (hfm);

    pushScreen (mainScreen);
    }

    ' Public Sub fieldChanged (field field, int context)
    {

    String text = "Button";
            
    If (GuitarStringButtonField instanceof field)
    {
    text = ((VLineButtonField) field) .getName ();
    }
                     
    Dialog.Inform (text + "was clicked.");
         
    }

    Never fails. Post something, then shortly after solve it. It turns out that the super.sublayout (maxWidth, maxHeight);

    was causing me problems. Remove that and setting the scope solved my problems.

  • ScrollPane content question

    I'm using flash pro 8.

    ScrollPane is on the scene and the content path is set to songButtons_mc, the name of the clip that loads in it.

    In the first frame of the clip songButtons, I put the following code in a layer actions:

    function rhyme (mc:String, sLabel) {}
    eval(MC+'_btn').onRelease = function() {}
    _root.gotoAndStop (slabel);
    }
    }

    the ScrollPane with this code works perfectly until the film is loaded into another .swf movie, then nothing works.

    How to make this work? I'm new to the use of components.

    Thanks in advance for your help.
    Mark

    I thought about it... it's as simple as adding this ._lockroot = true; to the main timeline. Maybe there is another way to do it as well, but as long as it works that way, that's what I'll use.

    Thank you all. Hope someone else can use it in the future.

  • vertical scan page stutters

    during the test on an ipad, my folio has a stutter pronounced Visual whenever I try to go to the next page. This only happens with vertical sliding, and if I specify horizontal, it's smooth. any suggestions?

    It's supposed to be fixed in the v24 Viewer. Are you sure that you were testing in the content viewer Adobe v24 and not an older version of it?

    Neil

  • Issues of content servers IE9

    Hi all

    Can someone tell me if Cisco working on issues with IE9 and content questions of edition server?

    Kind regards

    GK

    Hi Graeme, please use the compatibility mode in IE9:

    http://Windows.Microsoft.com/en-us/Internet-Explorer/products/IE-9/features/compatibility-view

  • Widget of composition is not growing with British Colombia news content

    I have British Colombia news content in a widget of composition, but the target will extend vertically when content is longer that the target area. Is it possible to have the target area develop or are all the widgets fixed hight?

    Yes, looks like the Composition widget containers are of fixed height. I expect any container widget that supports being 100% browser width will work (accordion, tab panel, status button), but others will not for the moment. We will look at that review, but it will not be part of the next major release.

  • Horizontal sliding and sliding that snaps

    I wonder if it is possible to have is contained in a frame scroll wink at some points when you drag horizontally, or do a multi-State thus object when you drag to change state, it looks like the content is slippery, similar to what it looks like when you slip into an article to access the next page, when it is set up to slide horizontally. So what I'm looking for is a kind of hybrid between scrollable content continues and a multi-state object, where you are sliding content, but flapping in each State.

    Not with InDesign. Might be possible with HTML.

  • Return to a completed question

    Hello

    I have a Captivate 8 project where there are several sections with the questions of the exam at the end of each section. I use the table of contents to allow users to move to the entire project and helped moving backwards the quiz option. Present is the only button that I show on the quiz page.

    The problem is that if someone is going backwards through the table of contents to a previous section and moving forward through the issues of the next exam section, has already been answered to the question and they can not move (they should use OCD off the question slide)

    Is it possible to use actions to display a button to go forward if the question is already answered or just go to the next slide somehow?

    Otherwise, (since I don't have my exam on the table of contents questions) is there a way to hide the button to 'review' if the associated test questions have been completed.

    I dug around in the advanced actions, but can't see all the built-in variables that appear to identify if the question has been answered or not. The only solution is to create both custom variables to contain this information?

    Thank you

    Steve

    Normally, you need to provide the following button to be able to move, but you kept only the submit button.

    If a question answered, little sense given that CP must create as many of these variables as there are questions, there is no system quizzing stores variables. There is a variable system of attempts, but only on the Quiz level and even for the viewing mode. In fact, the only solution would be to keep the status of each slide in a user variable, check that the variable and display a form button if answer to the question.

    Buttons on Question/Score of Captivate 6 slides? -Captivate Blog

    I don't understand the sentence on the 'review', maybe a problem of terminology. Review for me is the State that the question slides get only when the user clicks the button control on the slide of Score: good response and responses will appear on question slides. As far as I know, there is no a possibility to do it with the table of contents.

    Lilybiri

  • Download content in mainland China?

    Can we build a magazine app several question that people in mainland China can install on the App Store and then be able to download the content (questions)?

    or is the solution to build an application one question?

    Any help will be appreciated.

    Thank you

    Dave

    I heard that the download of mainland China in the Apple Appstore app works very well. So ideally, a unique integrated editing DPS application that is hosted at Apple should work, and Yes you can use the creative cloud to build a simple editing application. That said, nothing is tested and proven Adobe DPS and I cannot gurantee the or you sure 100%. You might want to dig into it al little more :-)

    Thank you

    Lohrii

  • Vertical swiping by hanging of Article

    Hello

    There was something going on with vertical sliding through articles in the custom Viewer (v22).

    By hitting swiping a page down to the next page, I have to drag my finger on the full screen or it does not change the page at all (only crappling) and I have to try a second time.

    Here is a video demonstration of it:

    It's a PDF v20 folio, created with InDesign CS6.

    Thanks to this report, we confirmed that there is a problem with the v22 Viewer which will be fixed in v23.

    Neil

  • Several small issues, no doubt easy for you, difficult for me! Help! :) link provided

    * Many thanks to KEN so far!

    Mods: can delete nicely related first post

    So here I am: SITE!
    (DW CC)

    I'm married to this model, if while I appreciate all the advice against it, I need to to its glorious end I go nuts and now a deadline.

    Here's what I messed up with for a week with little success. I really feel I have tried everything. Felt crazy several times.

    -for background images to display in their entirety! Cut, can't scroll to see all this.

    -to be able to move the white translucent content area ("blob")... but it remains right + centered vertically. Also, I'd be happy if I could just move its position on the home page.

    -for the 'blob' to stay put where I want it to be, as well as the menu and other objects

    -want each page to have its own url (/, / author, etc.), but with the sliding content blob still work (if possible)

    -for the menu to stay in place and be centered... I got close enough, but it is not perfect, and it moves also when resizing... want it fixed in one place

    -to add a slideshow on the page of the snippet (there is code for it, but I don't know if you'll be able to see it because it doesn't have its own page) I was playing with it in vain: Slideshow HTML

    I want everything must be static and functional (menu, 'blob', background) to keep a consistent look.

    I thank very you MUCH for your time guys! I need help!

    t

    -Recommendations for adding a coil simple slideshow/photo /.

    Look at jQuery Cycle2, Cycle2 demos.

    on getting the box to slide in and out at the time to choose a new menu item

    I do not recommend your site like this.  I'm not a big fan of page 1 sites.   If JavaScript is disabled, menus will not do anything, the content is not displayed.  About 5% of users have no script for security reasons. This could cause problems of great conviviality.  I think that it is better to build your site with web pages instead of 1 long AJAX/JSON driven page.   You get more traction with search engines if you have several web pages with unique page titles.   And generate traffic to websites in the search engines.

    You PM'd me on different background images.  This is easily possible using the CSS code integrated on your internal site pages and changing the property background for use to a different URL.

    Would like to know how to break the text up into columns within the content boxes
    

    Columns CSS explained:

    http://CSS-tricks.com/Almanac/properties/c/columns/

    Nancy O.

  • Preview and scroll text problems

    Anyone having problems becomes the scrolling text function to work in a superposition of a provision fixed ePub? I have the latest version of InDesign CC, purchased last week.

    Here is a picture of my file. As you can see, it's really simple. Content area is on the right. You can't see the whole box, but it is long enough to fit all my text. On the left, I created a container box, wider but shorter than the content area. I then selected and used content in paste to place the content in the container. Then, I chose the container, went to Folio overlays, and I called the vertical scroll content box, start at the top left and vector format. But when when I tried to preview (more on problems of overview in a minute), the container appears as a simple text with no capability of scrolling box. I asked the help of Adobe people and they don't seem any ideas not yet.

    scrollable screenshot.jpg

    For what is an excerpt, well, I can export to Adobe Digital Editions or I can look at the page in the preview window/Interactive/EPUB interactivity. But an excerpt from treaty simply file/Folio page and then returns nothing. And the same thing happens when I hit an excerpt in the Panel inlays of Folio.

    I would like to know if this is specific to my system or a common problem. Since I bought only CC to produce annotated books, there is not much I can do without it. And if CC does not do, does anyone have a suggestion for something that a non-programmer can use to achieve the same result?

    Thanks for any help.

    Frames with scroll are a DPS - Digital Publishing Suite - function (like all the other effects in the Folio overlay Panel). This is a different beast than ePub ch-putting on the page.

    For fixed layout, interactivity all is supported (any Panel in windows > interactive flyout) except the forms, Page Transitions and Animation of two presets smoke and blur. Note that Folio Builder panels and overlays of Folio is not part of the interactive panel group.

    I know it's very confusing!

    If you try to create a * app * then you use DPS, and you should ask this question in the DPS forum.

    Digital Publishing Suite

    If you try to create a * ebook * then this is the forum to post in.

    You might find my new lynda.com video tutorial course, Creation fixed provision EPUB from InDesign CC, to be useful. A bunch of videos are free and may be all you need. To look at the other, however, you will need a subscription. You can use my free pass URL to get a free week of free access to all the videos on lynda.com.

    Watch the online video course, creation of available fixed EPUB with InDesign CC

    Free pass: http://lynda.com/freepass/amconcepcion

    AM

  • Scrolling images problem

    I am using the framework floating to create a vertical sliding tab/Board (created being grouped, pasted into the image). The strange thing is that the first time I created and previewed it, it worked perfectly fine. However, I changed the group object and the content Viewer now not even detect that I'm clicking on an object. If anyone knows what I could hurt I'd be enormously grateful. Note, I also tried to make the solution bypass tray but had no luck.

    So, I thought about it. You should always use the solution of the status bar. Images of scroll will not scroll unless the main tray has been cropped by the frame and the invisible box is still there. At least for grouped objects, I have not tested with just a simple picture.

Maybe you are looking for

  • Satellite C870 - good version of the BIOS

    I have a C870 Satellite (model number PSCBAE). I am trying to determine if I need to update the BIOS (trying to solve a continuous blue screen of the cause of death). My current BIOS version is 6.10 (24/09/2012). On the update of the driver page, I a

  • How can I mirror my laptop on a second monitor screen?

    I use a HP laptop, Windows XP computer and attempt to connect to a LG TV. He let me just to extend my desktop on the TV and will not mirror, which is what I want. I've been in display - settings - advanced and fingered with all parameters, but withou

  • level of windows 8 to 8.1

    am having a problem with not being able to upgrade windows... when I try to my settings, I can't download it from there and it does not appear in the app store... help please... any who

  • No sound with the Radeon HD 4350

    I have a Compaq Presario sr1717cl he came with integrated ATI Radeon Xpress 200, I bought and installed the ATI Radeon HD 4350 512 MB DDR2 Premium Grafphics card and now I have no sound, I goto sounds and audio designs properties and it says: No Audi

  • Force connection in archivelog mode

    Hello!!! What happens if I 'force_logging' parameter to true when the database is in archivelog mode? Thank you.