Announcement

Collapse
No announcement yet.

UnrealScript + Scaleform + ActionScript 3 working together.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    UnrealScript + Scaleform + ActionScript 3 working together.

    SOLVED!

    Hi!

    Does someone knows if UnrealScript, Scaleform and ActionScript 3 work well together?, because I have tried almost everything to create a scrolling list without any kind of success.

    The worst part is that my flash can randomly work properly, I mean, sometimes all works well and sometimes everything fails... without having change anything!

    Regards!

    #2
    You could try using UWindow3?

    Comment


      #3
      I don't think it is an external software affair. Scaleform isn't making what it should make.

      For example, I have in my code:

      Code:
      Widget.SetFloat("rowCount", 3);
      It should establish 3 rows in my scrolling list, but it doesn't.

      Code:
      Widget.SetObject("dataProvider", dataProvider);
      This should insert the dataProvider that I have created in UnrealScript into my scrolling list, but it doesn't...

      Comment


        #4
        It depends how you've created the data provider. Setting the rowCount doesn't work magically as you also need to invalidate the data to ensure that Scaleform refreshes the scrolling widgets.

        Comment


          #5
          Code:
          function SetListDataProvider() {
          	local GFxObject dataProvider, temporaryObject;
          	local byte listIndex;
          
          	dataProvider = CreateObject("scaleform.clik.data.DataProvider");
          
          	for(listIndex = 0; listIndex < list.Length; listIndex++) {
          		temporaryObject = CreateObject("Object");
          		temporaryObject.SetString("label", list[listIndex].label);
          		dataProvider.SetElementObject(listIndex, temporaryObject);
          	}
          
          	listWidget.SetFloat("rowCount", list.Length);
          	listWidget.SetObject("dataProvider", dataProvider);
          }
          It's a very simple list with 4 elements (each one is a struct composed by a string and an int), so they should be entered in the dataProvider and the rowCount should be established in 4.
          The dataProvider rejects those objects and it shouldn't (at least, I think that is the problem).

          Comment


            #6
            Ok, I finally made it work. It seems the combination of Uscript + Scaleform + AS3 works fine, the problem is that the most part of the documentation is made for AS2 and it doesn't work for AS3.

            It would be good to make more tutorials and examples for AS3, to avoid lots of problems and questions (or so I think).

            Regards!

            SOLVED

            Comment


              #7
              So, how did you solve it?

              Comment


                #8
                Hi!

                Sidstyler helped me. You can read the solution he gave to me here: http://forums.epicgames.com/threads/...1#post30774732

                Regards!

                Comment

                Working...
                X