Examples of a 'read more' button implementaion wanted

I'm looking for examples of how to implement 'read more' buttons with Flex 3.  I'd like examples of as many ways these buttons are implemented, but I really want both the drop-down text window and pop-up text window.

You could also use viewStates, maybe this example will work for you.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
     <mx:states>
          <mx:State name="viewFull">
               <mx:RemoveChild target="{text1}"/>
               <mx:RemoveChild target="{button1}"/>
               <mx:AddChild relativeTo="{titlewindow1}" position="lastChild">
                    <mx:TextArea text="{myText}" width="100%" height="250" />
               </mx:AddChild>
               <mx:AddChild relativeTo="{titlewindow1}" position="lastChild">
                    <mx:Button label="Less" click="currentState=''" />
               </mx:AddChild>
          </mx:State>
     </mx:states>
     <mx:Script>
          <![CDATA[
               [Bindable]
               private var myText:String="Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent aliquam, justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo porttitor, felis. Nam blandit quam ut lacus. Quisque ornare risus quis ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at, odio. Donec et ipsum et sapien vehicula nonummy. Suspendisse potenti. Fusce varius urna id quam. Sed neque mi, varius eget, tincidunt nec, suscipit id, libero. In eget purus. Vestibulum ut nisl. Donec eu mi sed turpis feugiat feugiat. Integer turpis arcu, pellentesque eget, cursus et, fermentum ut, sapien. Fusce metus mi, eleifend sollicitudin, molestie id, varius et, nibh. Donec nec libero.";
          ]]>
     </mx:Script>
     <mx:TitleWindow x="127" y="97" width="70%" height="400" id="titlewindow1">
          <mx:Text text="{myText.substr(1,100)}"  x="258" y="134" id="text1"/>
          <mx:Button label="More" click="currentState='viewFull'"  id="button1"/>
     </mx:TitleWindow>
</mx:Application>

Similar Messages

  • Can I make a drop down 'Read More' button to display a box of information?

    I have a image that I want to have a 'Read More' button underneath that you can click on and it drops down a box of 'more information', then hopefully you can click off it and it will dissapear or something similar?
    Thanks heaps!
    Adam

    Hello Adam,
    You might want to use the tabbed panel or the accordion widget for this.
    If you use the tooltip widget you can use the tooltip widget options to set the even onclick (the default is on rollover), and then clikcing on the trigger will bring the target in sight.
    If you use the accordion widget, you can delete two out of the three triggers in the Accordion Panel, and leave only one (by default there are three). Then make sure you keep the accordion trigger closed in the design mode. Also, make sure you use the "Can Close All" option from the Accordion options as shown in this screenshot: http://screencast.com/t/hlLukFqwUqww
    Hope this helps.
    Cheers
    Parikshit

  • Read More Button

    Dear Adobe Community:
    I recently downloaded a trial version of Adobe Contribute and am expecting to purchase a full version soon. I'm reworking our website's ABOUT US page, which features our employee biographies. Currently, our bios are all listed on one page in full text. Rather than make a customer scroll down all the way through every person's full biography, I'd like to add a "Read More" feature or button to each person's bio. How may I implement this feature with Adobe Contribute?
    Thank you for your help.

    Hi Graffiti,
    Thanks for responding. I'd like only a snippet of every biography shown on the page, but with each biography having a "read more" button option. When a user clicks on the button, it expands only that biography to full. Basically, as you said, I want more information to show up on the page they are already on. I hope this clarifies.
    Thanks

  • I have read most advise re audio books but I do not have a more button in music?

    I have downloaded and paid for audio books through the store but can not play as I can not find them, I have no "MORE" button in music?

    hi Matt, or someone else
    Only rarely do I get an email larger than 1000kb. But not matter how small the email, even if only a few kb, Thunderbird truncates every single one, and after I have "untruncated" a few emails, the server refuses to let me untruncate any more for a few minutes. I have used the Thunderbird Disk Save tool for years previously with no problems, and I think this happened when I changed it from 500 to 1000kb a few weeks ago (may have been due to a Mozilla update). I truncate large files because I pay $45/month for 4GB of usage, with absolutely no option to Telstra because I live in the bush in Queensland and Telstra wireless is our only choice for broadband. I use Windows Security Essentials and don't know how to turn off email scanning in it if indeed it does scan my emails (have always assumed it does, but can't find a way to see if it is). In any case I wouldn't want to have this feature off permanently. This problem with truncating all emails has occurred after I started to use Windows Security Essentials. Any more targetted thoughts please to what I've explained above.

  • Just updated to iCloud, but I can't find the 'purchased' list on the itunes store on my iphone. There's no button for it on the toolbar or under the 'more' option. Want to play/download my puchased music via iCloud on my iPhone.... Help someone please?!

    Just updated to iCloud, but I can't find the 'purchased' list on the iTunes store on my iPhone. There's no button for it on the toolbar or under the 'more' option. Want to play/download my puchased music via iCloud on my iPhone.... Help someone please?!

    Hi again Limons,
    just got your last reply per mail, re: 'presently only available in the USA.'
    Unfortunately, you're right. Just found this article: http://www.digitalmusicnews.com/stories/061011icloud
    seem like it's going to be a while before this gets sorted out . . .
    Frustrating outcome to my question, but thanks a lot for helping me sort out what the problem was :-)
    All the best to you.

  • What happened to the 'more' button on the bottom of the apps store? It seems to have been replaced by the 'updates' button. I want to get the 'more' button back.

    What happened to the 'more' button at the bottom of the apps store screen? It seems to have been replaced by the 'updates' button, and I want the 'more' button back.

    When using the back button I keep getting the drop down box when I do not want it. For me the hold down time before the box opens is far too short.
    I would be quite happy to always right click to get the drop down. Is there any way to disable this feature when using the left button or for making the delay longer?

  • Strange bug -- adding one more button OR page causes Form warning to appear

    I'm building a simple interactive document in InDesign CS4 on the Mac, to be exported/delivered as a PDF. There are a few text-based buttons on the Master Page that are set to Go To a Text Anchor on Release. There are 4 buttons of these buttons on the page, and each one leads to a different page in the document, and they all work fine. They are all built the same way.
    I want to export a PDF that opens cleanly in Reader, meaning no unexpected dialog boxes or warning messages appear. Up until this point, my document opens cleanly in Reader.
    However, when I create a FIFTH button (using the exact same method used to create the other buttons), OR I add ANY more pages to my document (which currently stands at 16 pages, but will need to ultimately be upwards of 40), for some reason, opening the PDF in Reader causes Reader to start displaying the large, distracting pink warning message at the top of the page:
    "Please fill out the following form. You cannot save data typed into this form. Please print your completed form if you would like a copy for your records."
    The fifth button I create (from scratch) causes this message to appear.
    Or, if I add another page (using my Master Page, where the buttons are used), this message appears. Even if the fifth button is not created, and I add another page from the Master, this message appears.
    If I add a blank new page (without using the Master Page), the message does NOT appear.
    So, for some reason, adding ONE more button, or referring to the Master Page in the document ONE more time by adding a 17th (or more) pages, seems to kick InDesign/Acrobat Reader into thinking my document is suddenly a form, and causes Reader to display that obnoxious pink message when opening the document.
    I've tried several troubleshooting steps.
    - I've ensured my buttons have unique names.
    - I've tried creating the fifth button from scratch, and also tried creating it from duplicating one of the existing "good" buttons.
    - I've made sure the button has a destination page/Text Anchor to go to.
    - I've opened the PDF in Acrobat Pro 9, and gone through all of the page and buttons in the Forms Manager, and there is nothing out of the ordinary in that view.
    Why is Reader suddenly thinking my document is a form (that "cannot be edited/saved") when I add one more button, or one more page!? It's bizarre, and quite frustrating.
    Thanks for any insights,
    Robbie

    You can use that same workaround with ID CS4 files. You just have to make the PDF and then go into Acrobat to add the security that doesn't allow editing (Acrobat -> Security -> Encrypt with Password) . That gets rid of the warning about the form. Of course if you actually have a form somewhere in your document, you won't be able to use that......

  • How to upload using  upload button and want to process it....

    Hi,
    I need a program to upload a file [Excel file] using upload button and
    want to process the excel sheet and store the data in database.
    I know that we can upload using Html - file type.
    but I dont know how to retrieve that uploaded file to process it?
    I mean , Is there any function like requset.getParameter() to get the uploaded file?

    Go to the [Apache Commons FileUpload homepage|http://commons.apache.org/fileupload] and carefully read the 'User Guide' and 'Frequently Asked Questions' sections from top to bottom (do not only focus on the code examples, but also on the article's text!!).

  • ITunes App Stuck Loading on "More" Button

    I have a strange issue that I haven't seen reported anywhere else. I recently purchased a song on itunes on my mac, and wanted to download it on my iphone. When I opened the iTunes store and clicked on "More" to find my available purchased downloads, the app will stay in this loading state for ever:
    All the other buttons of the store work fine (Music, Movies, etc.). But the "More" button stays like this forever.
    Things I have tried...
    1. Close the store and remove it from memory via double tapping the home button.
    2. Rebooting my phone
    3. Sign out and sign in using my apple id
    4. Complete iphone restore and then restoring from backup
    I'm at my wits end on what to try. Any suggestions?
    Thanks in advance.

    Of course right after I posted this I realized I hadn't tried one thing.
    I closed the iTunes store app.
    In settings I signed out of my Apple ID. I did not sign back in
    I opened the itunes store app and went to "More"
    I was prompted to sign in to an Apple ID and I did
    And voila - I got the More menu!
    I was able to browse my purchased music and download
    The only remaining issue is that Purchased>>Recent Purchases stays stuck in the loading state. At least it exited (i.e. the iTunes app shutdown) after a minute or two.
    I hope this helps if you ever get in the same situation.

  • Adding more buttons in playbar?

    Is there a way to customize the playbar to include more buttons? For example, if I have 5 slides, I want to create 5 more buttons to jump to each slide.  I found some sites where you could customize the skin but it doesnt say how to add more buttons and/or customize each button.
    Thanks.

    Adobe does include the FLA files for the skins to enable you to customise them. 
    In Cp 5.5 they're here: C:\Program Files (x86)\Adobe\Adobe Captivate 5.5\Templates\PlaybackFLA\AS3
    Documentation on how to do this is almost nonexistent but this link is useful: http://blogs.adobe.com/captivate/2010/11/playbars-demystified.html

  • How many times can you install Lightroom 5? My problem is that I have saved my programs on C. To I have more space, I want to save my programs now on E. Can I now uninstall Lightroom and reinstall from C to E? Can I use the same license code as the first

    Please help!!
    How many times can you install Lightroom 5? My problem is that I have saved my programs on C. To I have more space, I want to save my programs now on E. Can I now uninstall Lightroom and reinstall from C to E? Can I use the same license code as the first installation?

    Thank you for your answers, it helps me a lot.
    But sorry for my ignorance. I understand how you mean it, but I don't know how to do it. I'm scared to lose the settings/edits of the images.

  • How do i add a "More" button to my longgg page, like Twitter has

    I was just wondering if anyone knows how to shorten a long webpage by adding the "more" button. I realize i can add a button - hyperlink it to a new page, but how do i keep it nice like twitter's pages. By keeping all the articles i have on the same page. I viewed the source on one of my followers twitter pages and they had this code, i am assuming it has something to do with the button, not sure if it helps at all.
    <<img class="loading-spinner" src="/images/spinner.gif" style="display: none;" alt="waiting" title="waiting" height="14" width="14"/>>
    also for another spot on the page they had this code (since the spinner image above is on their server) so maybe it will help in making new code for my site.
    http://a1.twimg.com/a/1273875281/images/spinner.gif
    I want to add this "button" to my BVI news page here:
    http://www.vistadelmarbvi.com/Site/B.V.I._News.html
    since it is getting really long and i would rather not add new pages for articles to come, if i dont have to.
    Thank you

    Regarding your buttons.
    Move the textbox into view. I said that earlier.
    And remove the elem.style.left = '0'; code.
    The reason it's not showing in FF and MSIE is probably that they do not know how to display it.
    In such cases you have to find an alternatve.
    And the sites you mention have great feats.
    What I do is to study the code to see how it's done and then try to use it on my own pages.
    With iWeb it's a bit more challenging.
    But it can be done, as I showed.
    Here's the JavaScript (not Java) :
    http://www.wyodor.net/_Demo/DynamicAssets/javascript.js

  • Hide "more" button in a list view, only works for first item in the list

    I have the following code in a list view that outputs several dozen items in a web app.  The code only works for the first item, how can I make it loop through and execute the test for each item in the list view?  The {tag_hide more button} is a checkmark field that yields a numeric 1" if checked otherwise yields a numeric "0".
    <div id="more-option">
            <p class="right"><a href="{tag_itemurl_nolink}" class="btn btn-small btn-very-subtle">More &rarr;</a></p>
          </div>
          <div class="more-selection" style="display: none;">{tag_hide more button}</div>
          <script>
    if ($(".more-selection").text() == "1") {
        $("#more-option").hide();
    </script>

    What's the URL for the site where you are using this?  Offhand, it looks like it should work with your first example so you are either placing the script before those elements are loaded or you might try wrapping your current javascript inside the:
    $(document).ready(function() {
    --- your existing javascript here
    This make sure the code runs once all the html is loaded on the page.  Without seeing a URL and debugging with the js console in Chrome I can't give you a solid answer.
    But, I do know that you can probably do this with a lot less markup.  Once we figure out what the actual problem is I have a better solution mocked up for you on jsfiddle.
    When looking at my HTML code on jsfiddle, please realize I setup some dummy HTML and removed your tags and added actual values which would be output by your tags.  The main thing I did was remove the whole div.more-selection and instead, added a "data-is-selected" attribute on your div.more-option element.  Then, in my javascript for each div.my-option element on the page, we loop through them, find the value of that data attribute and hide that div if it's less than 1 (or 0).
    Here's the fiddle for you to look at:  http://jsfiddle.net/thetrickster/Mfmdu/
    You'll see in the end result that only two divs show up, both of those divs have data-is-selected="1".
    You can try pasting the javascript code near the closing </body> tag on your page and make sure to wrap my js inside a <script> tag, obviously.  My way is neater on the markup side.  If you can't get it to work it's likely a jquery conflict issue.  My version is using the $(document).ready() method to make sure all the code is loaded before it runs.
    Best,
    Chris

  • Simultaneously read more than one input and generate output

    Is it possible To simultaneously read more than one input and generate outputs depending on these inputs? If this isn't possible what is the best way to go about making some sort of timed loop that will read an input, read the next input, decide whether or not to output and so on. Hope someone can help. Thanks.Message Edited by Esmith13 on 05-25-2005 01:36 PM

    Hi,
    You should look at the synchronized examples for analog input and output that can be found in the example finder under:
    Help>>Find Examples>>Hardware Input and Output>>DAQmx>>Synchronization>>Multi-Function
    These will get you started to being able to handle multiple tasks at the same time.
    I hope this helps. Have a Great Day!
    George

  • What is the best way to create a read more/collapse text box on the homepage of a site?

    What is the best way to create a read more/collapse text box on the homepage of a site?

    I figured this out by using a lightbox. I set the trigger at the top of the box, hid all initially and added a close button. In the box that would have linked to the first thumbnail for the lightbox, I added a text box that said "read more"

Maybe you are looking for

  • Is it possible to install windows 7 on a partitioned external hard drive and then boot from windows from time to time?

    I have some applications that are windows only. I want to install windows 7 on my external hard drive and boot to it when I need to use my windows applications. Is this possible with a mac and, if so, how can I do that? I have a 64-bit Macbook Pro ru

  • Is the ipad 4g locked by the operator?

    I want to buy an ipad 4th gen whit cellular in the United States to bring it to bolivia because i live there, Is the ipad locked by the carrier?

  • LabView expert needed ASAP

    LabView expert needed ASAP to help complete a project. Specific skills needed are database connectivity experience with the LV Database Toolkit. Initial phase is approx. 15-20 hours of work with the potential for much more if we find the right person

  • Word 2004 inquiry

    This is not really a major issue but more of a preference , but every time i open a blank word document i get an extra panel for saving as PDF, which is nice, but i want to disable it from showing up and if i want to enable later ic ould, i went to F

  • Logic Pro Unexpectedly Quits Every Time I Open It

    Every time I open Logic the App unexpectedly quits, I have tried removing the preferences folder and going through the install wizard again. Problem persists. I have also tried re-installing Logic, no avail. I have the pro application support 4.0.2 u