How can I get the web page to keep the button count value

Hello
I have a button that, whenever he is pressed by slices, a number. The number is displayed in a text box. This set works very well on my web page. However if I close the web page and then reopen it, the numbers go back to zero. How can I keep the number is (for example 10) and keep incrementing?
I have the button on frame 1 and the text on the image 2 box.

Thank you
Paul

Resolved to myself. Much less complicated that I was trying. Hope this helps someone else.

var my_so:SharedObject = SharedObject.getLocal ("savedShare", "/");
dir_btn.onRelease = function() {}
If (my_so.data.count == undefined) {}
my_so. Data.Count = 1;
}
else {}
my_so. Data.Count ++;
my_so. Flush();
}
trace ("my_so.data.count =" + my_so.data.count);
}
so_txt. Text = my_so.data.count;

Easy when you know how!

Tags: Adobe Animate

Similar Questions

  • How can I get (record) web pages to work when im offline

    How can I get (record) web pages to work when im offline. I can't find any setting for this.can help you

    Try the Read It Later addon.
    https://addons.Mozilla.org/en-us/Firefox/addon/7661/

  • How can I get the button 'send' on an application form to be sent to a specific e-mail address?

    Hi, I use cc DW and have created a Web site by using one of the models of "bootstrap". How can I get the button 'send' on an application form to be sent to a specific e-mail address? I put:

    " < button type ="submit"id ="feedbackSubmit"class =" btn-primary btn btn - lg "style =" margin-top: 10px; "method ="post"action =" mailto: [email protected] "enctype =" text/plain"> Send < / button > " "

    The source code for the model:

    "< button type ="submit"id ="feedbackSubmit"class =" btn-primary btn btn - lg "style =" margin-top: 10px; ' > Send < / button >

    Should I put in a new bootstrap or jquery function or change one for code work?

    See you soon

    Karen

    Take a look at this tutorial to see what it Alt-Web Design & Publishing: Contact form sensitive with 3.2 Bootstrap and PHP (part 1)

  • How can I get the shutter count for my Canon 7 d Mark II using Windows XP?

    How can I get the shutter count for my Canon 7 d Mark II using Windows XP? I have been looking for many places and make downloads of files, but I can't seem to find anything. I am wary of downloading software that I know nothing. Any help is greatly appreciated.

    Hi, I paid only $2.99 acquired program namely the supreme court on a 7 d Mark 2

    Search: direstudio.com to find out.

  • How can I get the button 'Customize', having accidentally deleted?

    I managed to remove the button 'customize '. How can I get it back?

    Right-click on an empty space on the toolbar (the small space between the address bar and the bar of the excellent research work), click Customize, click on default settings to restore the layout 29.

  • How can I get the button up in the save window slot to be normal Windows Explorer?

    I noticed that the Up button is on the window save under, but not in the normal windows explore. How can I get that in the normal Explorer window?

    The top button has been removed in Windows 7 Explorer (provided in Windows 8, however).

    You can use a third-party program such as the classic interface to add.  In fact, it is the only option that I use in the classic environment

    http://www.classicshell.NET/

  • How can I get my web pages to match my main or master?

    I am currently using the free trial version of 30 days of Muse and so far I love it. However, when creating my site, some how my pages stopped corresponding to my main page. Alignments are out of service, etc. How do you get everything to match the homepage again?

    If the master is applied, then it must inherit from the main design unless the page includes any third party element that can cause this problem.

    To better understand it please post screenshots, more try to check if the same basic shape is applied to the pages or not.

    Thank you

    Sanjit

  • How can I get a Web page to load dialog boxes after you click by mistake on "prevent this page from creating additional dialog boxes?

    I still need to be able to have dialogues load with the Web page. I'm not able to see all of the images on this site because by clicking on this button by mistake. Empty the cache does not solve the problem; Create my profile does not correct the problem. Firefox needs to address this issue, as it happens too many web apps.

    Jscher200... you rock! Real Player was the problem. I've uninstalled it. I'm not taking any chances for the part of the application on my system, and my Flash Slide show works perfectly well. I was running down the wrong alley because I assume a relationship between the snap of him "to prevent additional pages of execution of dialog boxes" and the absence of images via the Flash Player. Thank so much! Your tenacity and discipline helped me tremendously.

  • How can I get the classic report value when I click on the record?

    Hi all

    I have a simple classic report and I want to get the empno when I click on record. For example, when I click on record 1, and I'll go '7369', if I click on the 3 card, and I'll go '7521'. How can I do this? Please help, thanks!

    Hi jane.kuang,

    Jane.Kuang wrote:

    Thank you very much!!! Your message is useful for me. But this javascript has something wrong. When I click on the first time, the empno appears only once, but when I click on the other record, empno appear twice, and I click on the third time, it appears three times... I'm new to JS, I don't know how to fix it. Thank you!

    Use instead the dynamic action to that effect.

    Here are the steps:

    • Change your region classic report-> section 'Attributes'-> 'ID' static-> give an id say myempregion static
    • Create a dynamic action with the following attributes:

    Event: click on

    Selection type: jQuery Selector

    jQuery Selector:

    #myempregion table.uReportStandard tbody tr
    

    Action: Run the JavaScript Code

    Code:

    var empno = $(this.triggeringElement).find('td[headers="EMPNO"]').text();
    alert(empno);
    $('#P21_X').val(empno);
    

    Items concerned: keep it unselected

    • Change once created, your dynamic action-> go to section 'Advanced'-> set 'Extended event', 'dynamic'.

    This will fix the following in the code of the Para:

    • The jQuery Selector used by Para to trigger the click event is bad. This will fix the multiple alerts.
    • Para code won't work on loading the page, but if there are many rows in the table and pagination for the report is in place, and then when you paginate your report, it will not work. But it will work with dynamic action 'Scope of the event' the 'Dynamic' value even when you paginate the report.
    • Finally, most of the dynamic interactions page must be converted to dynamic actions, this will help the maintainability of the code, instead of stacking the javascript in your page.

    Kind regards

    Kiran

  • How can I get the button tab to work again?

    The button tab and the '+' have been working fine until this morning. Since this afternoon, however, they are all two has stopped working. I click on each of them and nothing happens. I can't open a new tab. I have to open multiple browsers in order to work with the different windows. I followed the suggestion of another user and checked the Add-ons, and nothing happened. I have no ASK bar, so that came out also. Can you help me? I ran out of resources. Thank you!

    Hi, madperson! And thanks for your reply. Yesterday, when I posted my request, I had already run FF in safe mode and checked all the (and some) ext/addons I have. The problem persisted, while I posted my question. This morning, however, the glitch seems to have emptied himself! The button tab and the icon "+" both work as before! Don't ask me what happened, I couldn't even begin to try to explain. In any case, here's the ext/addons I: Norton Protection against vulnerabilities. Personas; Flash Video Downloader; Groowe Search Toolbar (which was proposed by Mozilla); and Yahoo Toolbar. Thanks again for your help, I appreciate it.
    Marcia

  • How can I get the 'secure site' (padlock) icon to display when you access a web page secured with Firefox 4?

    The "secure" (lock) icon no longer appears on the status bar (or anywhere else I can find) when you go to a secure web page. How can I get the 'secure site' (padlock) icon to display when you access a web page secured with Firefox 4?

    You can add a 'lock' the b-I-S with this extension.

    https://addons.Mozilla.org/en-us/Firefox/addon/padlock-icon/

  • How can I get the model of web site of the "Safari Lodges can" that is on the Site of the day web page?

    How can I get the model of web site of the "Safari Lodges can" that is on the Site of the day web page?

    Hi George,.

    The site to which you refer does seem to be a template that you can get your hands on, however, I suggest that you contact the owner through their contact us page and see what can be done.

    - Abhishek Maurya

  • Ieyboard is now locat ed in the middle of the page that makes it almost impossible to see what is typed. How can I get the keyboard down where it can be?

    On my iPad Mini 2, I use a split keyboard, which I like, but the keyboard is in the middle of the document I'm working on. It is very difficult, if not impossible, to see what I'm typing. How can I get the keyboard to the bottom of the page where once stood?

    Press and hold the keyboard icon in the lower right corner, then drag your finger to select 'Dock '.

  • I just download v4.0. How can I get the third arrow back button navigation, which allows the selection of a page forward or back?

    I just download v4.0. How can I get the third arrow back button navigation, which allows the selection of a page forward or back?

    Don't know how to get the exact button back (sorry) I dig around too much to do...
    But! Today, I found by chance that by clicking and holding on the back button the same box to popup in last-12-sites and you can stream on the list to return to that particular site.

    Not exactly what you (and me) tried but at least the functionality is there.

    Good luck!

  • I can not connect to a web site using my iPad. Message says required certificate required. No problem using my laptop. How can I get the required certificate on my iPad?

    EError message say site has no certificate, no problems until what I put at the operating system level. How can I get the required certificate on my iPad?

    Certificates are provided by the site. So if the site has a certificate expired or outdated, it may not work. In your case, the certificate No is probably not updated to work with the new software of Safari on your iPad,

    If all other Web sites running on the iPad except this one, I'll try to contact the manufacturer Web site. If a single Web site does not work, there probably nothing wrong with the iPad. In addition, certificates work differently on an iOS, as opposed to an OSX computer device.

    The only thing that can help on the end of your iPad is to delete the data from the Web site for this particular site. It might be the old data storage a before you update. To do this, go to settings > Safari > advanced > data Web site > Edit > remove data from the Web site.

    If you want to erase all data from the Web site, you can go to settings > Safari > clear the history and data from the Web site. Which will remove saved passwords and all data of the Web site, so don't do that if you know your password.

    Good luck

  • How can I get the songs on my wish list?  There is no indication as to how to buy on the wish list page.

    How can I get the songs on my wish list?  There is no indication as to how to buy on the wish list page.  I searched for over an hour for the method to buy songs from the wish list.  Very frustrated!

    Is this a question about Apple TV.

Maybe you are looking for