No announcement yet.

Edit text on SWF or Flash is it posible?

  • Filter
  • Time
  • Show
Clear All
new posts

  • Edit text on SWF or Flash is it posible?

    Hello guys.. i have a created swf file and inserted to my project. the swf file has only Text example the text is CONTINUE, is there a way to edit the text in the AMS to change into something?

  • #2
    Hey telco,

    You've been kinda quiet, lately. Happy that you're still here, buddy.

    Have a look at the attached examples - which show 2 different approaches to manipulating text with Flash files. These are updates of some Flash marquees made back in 2010 under my old Requiem avatar (original thread here ). Demonstrates manipulation of text with Flash, either externally via textfile or internally via string. (The original .fla source has been included in the Flash folder if you wish to recompile the .swf file).

    There's a general consensus that Flash is outdated and insecure. And many people don't even have Flash installed these days. So if using it, be sure to include a check for the Adobe Flash ActiveX Control by using the built-in Dependencies check under the Project menu. (Or alternatively, code in your own dependency-check function like in the examples here).

    Personally, for this kind of thing, I'd avoid Flash altogether and opt instead for using an external JScript file embedded in a Web object. (See 3rd attached example). But that's just me.

    Hope these help.
    Attached Files


    • #3
      Hello BioHazard thanks for the response.. hmm i will check this samples..
      But to give you more detail.. i have an existing .swf file which is created in the third party application, and the swf file contains a text animation.. now how i am able to manipulate the text of the swf file using AMS?


      • #4
        You don't ...

        AMS just calls the existing parameters within the SWF file. So you'd first need to edit the SWF via the action script (the .fla source) from which the SWF was compiled. And then call those parameters from AMS.

        This is the basic premise:

        in your action script (.fla source):
        on (press) {
        in the On FSCommand event of the AMS Flash object :
        if (e_FSCommand == "yourVariable") then
            -- do something here


        • #5
          Sorry, I should probably also clarify that if you know the variable name assigned to the Flash function responsible for the text, then you can set its value via the Flash.SetFlashVariable() action.
          Flash.SetFlashVariable("Flash1", "yourFlashFunctionVariable", yourAMSVariable);


          • #6
            So, let's take this a step further for you ...

            If for example, you were to decompile the globe.swf from the AMS \Gallery\Flash folder to examine its action script, you could identify a relevant variable name at play with which we can manipulate text:

            So using the variable name assigned to the text function in the SWF's action script, we can pass any string to that variable from AMS, viz.
            Flash.SetFlashVariable("Flash1","Message","Your text here");
            Example is atttached
            Attached Files


            • #7
              I really think you should walk away from this, flash is a dead tech and not safe in places, no new computer has it and everyone is told to keep away from it, installing flash to a end user without them knowing is braking eula's all over the place and maybe even have criminal indications these days. Flash is not a way to go, it's best to move to another tech, you can piggy back of windows IE 11 with a reg change for the embed browser and use HTML 5 if you really wanted to use web test for a project.
              Plugins or Sources MokoX
              BunnyHop Here


              • #8
                Hello bio thanks for your response.. maybe for now i will kept all the example and study it later if its really helpful to me since as kingzooly mentioned about the swf or flash file.. thanks so much.. i think i will need to go for other idea, as i student i really like to learn, just this AMS.. thank you.


                • #9
                  anyone here still using SWFText if so please let me know i need some help!