How to Save Data Using Shared Object in Action Script 3.0

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ต.ค. 2024
  • This is a tutorial for the beginners to give an idea about Shared Object and save date within it in Flash using Action Script 3.0
    Adobe Flash or Adobe Animate CC is an object oriented programming. You can develop apps for computer, android & ISO very easily. Adobe Flash or Adobe Animate CC is a platform where you can build apps using timeline animation or script called Action Script 3.0. This is a channel where you can learn to make basic to advanced level of apps or games using timeline animation as well as action script 3.0
    Blogger: flashbdtutoria...
    FB Page: / flashbdtutorial

ความคิดเห็น • 69

  • @baishakhestudio9637
    @baishakhestudio9637 4 ปีที่แล้ว +2

    Wonderful explanation!

    • @fbd8193
      @fbd8193  4 ปีที่แล้ว

      Glad you think so!

  • @RoloMFlash
    @RoloMFlash 7 ปีที่แล้ว +1

    40/5000
    I don't speak English, but I understand you very well, thank you.You are a good teacher,congratulations.

    • @fbd8193
      @fbd8193  7 ปีที่แล้ว

      You're welcome

    • @fbd8193
      @fbd8193  7 ปีที่แล้ว

      Thanks very much.

  • @EsskafRedouane
    @EsskafRedouane 8 ปีที่แล้ว +1

    thank you very much for your tuto? I have searched a long time for those very needed information, so I want to ask you about comparing sound in as3.0 whene we want to return a feedback to a kids about exact pronunciation of a letter.+ viewing a map on flash

    • @fbd8193
      @fbd8193  8 ปีที่แล้ว +1

      Create sounds as you need, export sounds in AS. Import sound like,
      var Sound1 = new sound1();
      var Sound2 = new sound2();
      var Sound3 = new sound3();
      ///-----And play sound when necessary saying,
      Sound1.play();
      Sound2.play();
      Sound3.play();

  • @thelittletwostar6256
    @thelittletwostar6256 5 ปีที่แล้ว +1

    Hi is there an option to pass the string data to a external or Database? and what is the best option to pass the string data from any external hosted or loaded file.

    • @fbd8193
      @fbd8193  5 ปีที่แล้ว

      Yes, you've have to use php & my sql and connect actionscript 3.0.

  • @blueix9
    @blueix9 8 ปีที่แล้ว +1

    I'm using AC3. I am trying to make a save button that saves the frame that the button is on. For example if the Save button is on frame 10, I would like to push the button and save frame 10. Then at start up, recall the frame either automatically, or with a load button on the first frame. I need help figuring out the script for this, if you can help. I would appreciate this i've been looking around to find a way to do this but I have found nothing helpful.

    • @fbd8193
      @fbd8193  8 ปีที่แล้ว

      +blueix9 @visit this link to have what you're looking for!!! Thanks-th-cam.com/video/RLMVa6CTI84/w-d-xo.html

    • @blueix9
      @blueix9 8 ปีที่แล้ว

      Sorry, I clicked on the link. but its set to private.

    • @fbd8193
      @fbd8193  8 ปีที่แล้ว

      blueix9
      @ it was still under uploading, you can view it now. I've just created it for you. Thanks

  • @parasite34
    @parasite34 7 ปีที่แล้ว +1

    Thanks

    • @fbd8193
      @fbd8193  7 ปีที่แล้ว

      Welcome

  • @noviawulandari3049
    @noviawulandari3049 6 ปีที่แล้ว +1

    i have seen your video and practice it. but the .sol file to save score that I created does not appear, why? thank you

    • @fbd8193
      @fbd8193  6 ปีที่แล้ว

      C:user>user>appData>Roaming>Macromedia>Flash Player>#SharedObject>ZHEXXWEQ or (something like this)>localhost>"File location">"File folder name"

    • @noviawulandari3049
      @noviawulandari3049 6 ปีที่แล้ว

      +Tariqur Rahman
      yes i know, but the "folde name" not apear and not file .sol

    • @fbd8193
      @fbd8193  6 ปีที่แล้ว

      Is your file working?

    • @fbd8193
      @fbd8193  6 ปีที่แล้ว

      Un-hide all files & folder, make file extension visible first because appData folder is systematically hidden

    • @noviawulandari3049
      @noviawulandari3049 6 ปีที่แล้ว

      maksud saya, program yang saya buat tidak menghasilkan file .sol di foldel #ShareObject
      import flash.net.SharedObject;
      var so:SharedObject;
      this is my program
      so = SharedObject.getLocal("projectskripsi");
      so.flush();
      trace(so.data.highScore1);
      so.data.highScore1=skor;
      skorbab1.text =" "+so.data.highScore1;
      what is missing?
      my file work but can save the score

  • @alinasir9630
    @alinasir9630 7 ปีที่แล้ว

    i just wanted to save data after i text on input and close application, if i open it again, text should be automatic loaded.... plz help me how to do this...

    • @fbd8193
      @fbd8193  7 ปีที่แล้ว +1

      1. Take a new .fla,
      2. Save fla.
      3. Use text tool to have text on stage and change text type to Dynamic text.
      4. Give instant name of that dynamic text field, "displayTxt",
      5. Use text tool to have another text on stage changing text type to input text and give instant name of that input text field, "inputTxt".
      6. Take a button from component and give it an instant name of "saveBtn". Now type below code:
      import flash.net.SharedObject;
      import flash.events.MouseEvent;
      var so:SharedObject = SharedObject.getLocal("saveName");
      so.data.savingName;
      so.flush();
      displayTxt.text = so.data.savingName;
      saveBtn.addEventListener(MouseEvent.CLICK, mouseClickHandler);
      function mouseClickHandler(e:MouseEvent){
      so.data.savingName = inputTxt.text;
      }
      When you type anything on inputTxt and click on saveBtn, you'll see the text on displayTxt later on you open your .fla or .swf.

    • @alinasir8935
      @alinasir8935 7 ปีที่แล้ว

      Error found
      TypeError: Error #2007: Parameter text must be non-null.
      at flash.text::TextField/set text()
      at BankAccount_fla::MainTimeline/frame1()[BankAccount_fla.MainTimeline::frame1:8]
      at runtime::ContentPlayer/loadInitialContent()
      at runtime::ContentPlayer/playRawContent()
      at runtime::ContentPlayer/playContent()
      at runtime::AppRunner/run()
      at ADLAppEntry/run()
      at global/runtime::ADLEntry()
      Now what should i do?

    • @fbd8193
      @fbd8193  7 ปีที่แล้ว

      check instant name well.

    • @fbd8193
      @fbd8193  7 ปีที่แล้ว

      Embadded your text. And don't copy and paste code instead type the code

    • @alinasir9630
      @alinasir9630 7 ปีที่แล้ว +1

      Tariqur Rahman I have just copied symbols of each input with same instant name... So will it work after deleting all symbols except one...

  • @albertcorbilla4322
    @albertcorbilla4322 6 ปีที่แล้ว

    Will this work on adobe air?

    • @fbd8193
      @fbd8193  6 ปีที่แล้ว

      Of course it will since shared object location will be changed.

    • @albertcorbilla4322
      @albertcorbilla4322 6 ปีที่แล้ว

      when deployed in an android phone? but why is it when i tried deploying it to a phone, the phone hangs, and it seems that it dont allow the app to use the local storage of the phone or maybe not detecting the storage of it. whats your opinion sir?

    • @fbd8193
      @fbd8193  6 ปีที่แล้ว

      You meant Air for Android?

    • @albertcorbilla4322
      @albertcorbilla4322 6 ปีที่แล้ว

      yes

    • @albertcorbilla4322
      @albertcorbilla4322 6 ปีที่แล้ว

      what do you think is the problem?

  • @الادهم-ص2ظ
    @الادهم-ص2ظ 5 ปีที่แล้ว +1

    scoreLeaderBoard in actionScript3.0

    • @fbd8193
      @fbd8193  5 ปีที่แล้ว +1

      OK...

  • @fbd8193
    @fbd8193  8 ปีที่แล้ว

    Save multiple data using shared object: th-cam.com/video/Cj5c2VJ0QCg/w-d-xo.html

  • @phuthinh4091
    @phuthinh4091 5 ปีที่แล้ว +1

    Can you send me File .fla ?

    • @fbd8193
      @fbd8193  5 ปีที่แล้ว

      Sure...I can.

    • @fbd8193
      @fbd8193  5 ปีที่แล้ว

      Sure...I can.

    • @phuthinh4091
      @phuthinh4091 5 ปีที่แล้ว

      Thanks very much.

    • @fbd8193
      @fbd8193  5 ปีที่แล้ว +1

      Sorry....I couldn't find my .fla......I've to make another one. Please, wait till next Friday. Thanks....

    • @phuthinh4091
      @phuthinh4091 5 ปีที่แล้ว

      No problem, I can wait.