<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to use the &amp;quot;Actor.create&amp;quot; function in Scaleform in Stingray Forum (Read Only)</title>
    <link>https://forums.autodesk.com/t5/stingray-forum-read-only/how-to-use-the-quot-actor-create-quot-function-in-scaleform/m-p/5826295#M1468</link>
    <description>The path should be relative to the scaleform project.</description>
    <pubDate>Mon, 21 Sep 2015 18:42:01 GMT</pubDate>
    <dc:creator>dan.matlack</dc:creator>
    <dc:date>2015-09-21T18:42:01Z</dc:date>
    <item>
      <title>How to use the "Actor.create" function in Scaleform</title>
      <link>https://forums.autodesk.com/t5/stingray-forum-read-only/how-to-use-the-quot-actor-create-quot-function-in-scaleform/m-p/5825703#M1456</link>
      <description>&lt;P&gt;I'm trying to autopopulate a menu with buttons using the "Actor.create" function, but I'm getting a little confused as to how to implement it. &amp;nbsp;If I have a prototype of the object I'm trying to replicate, how do I access it using the create function? &amp;nbsp;It accepts a parent container, and a table. &amp;nbsp;How to do I feed the prototype object in as a table?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2015 13:41:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/stingray-forum-read-only/how-to-use-the-quot-actor-create-quot-function-in-scaleform/m-p/5825703#M1456</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-21T13:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the "Actor.create" function in Scaleform</title>
      <link>https://forums.autodesk.com/t5/stingray-forum-read-only/how-to-use-the-quot-actor-create-quot-function-in-scaleform/m-p/5826024#M1463</link>
      <description>Hi biotic, &lt;BR /&gt;&lt;BR /&gt;'create' makes a new Actor, can add to the parent and can create any child components. There is some documentation here at Scaleform Studio help :&lt;BR /&gt;&lt;BR /&gt;chrome-extension://hehijbfgiekmjfkfjpbkbammjbdenadd/nhc.htm#url=&lt;A href="http://help.autodesk.com/view/ScaleformStudio/ENU/?guid=__lua_ref_obj_scaleform_Actor_html" target="_blank"&gt;http://help.autodesk.com/view/ScaleformStudio/ENU/?guid=__lua_ref_obj_scaleform_Actor_html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I will also check with the team and see if we can offer any specific help on this for you. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Sep 2015 16:14:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/stingray-forum-read-only/how-to-use-the-quot-actor-create-quot-function-in-scaleform/m-p/5826024#M1463</guid>
      <dc:creator>dan.matlack</dc:creator>
      <dc:date>2015-09-21T16:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the "Actor.create" function in Scaleform</title>
      <link>https://forums.autodesk.com/t5/stingray-forum-read-only/how-to-use-the-quot-actor-create-quot-function-in-scaleform/m-p/5826089#M1465</link>
      <description>Also, could you explain what you mean by 'prototype object'?</description>
      <pubDate>Mon, 21 Sep 2015 16:54:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/stingray-forum-read-only/how-to-use-the-quot-actor-create-quot-function-in-scaleform/m-p/5826089#M1465</guid>
      <dc:creator>dan.matlack</dc:creator>
      <dc:date>2015-09-21T16:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the "Actor.create" function in Scaleform</title>
      <link>https://forums.autodesk.com/t5/stingray-forum-read-only/how-to-use-the-quot-actor-create-quot-function-in-scaleform/m-p/5826144#M1466</link>
      <description>&lt;P&gt;I mean an object I've already created in the scaleform scene, like a button.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2015 17:27:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/stingray-forum-read-only/how-to-use-the-quot-actor-create-quot-function-in-scaleform/m-p/5826144#M1466</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-21T17:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the "Actor.create" function in Scaleform</title>
      <link>https://forums.autodesk.com/t5/stingray-forum-read-only/how-to-use-the-quot-actor-create-quot-function-in-scaleform/m-p/5826183#M1467</link>
      <description>&lt;P&gt;I'm trying the "scaleform.Actor.load("filepath")" function instead now, since it seems to be a better way to do this. &amp;nbsp;The path can lead to a template Actor that's been saved previously. &amp;nbsp;Unfortunately, I can't seem to get the template to load, here's my code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; if (e.name == "MENU") then
        local newButton = scaleform.Actor.load("content/ui/simple_menu.s2d/Start_Button.s2dactor")
        newObjects[1] = newButton
        newPoint = {x=160, y= -60}
        scaleform.Actor.set_local_position(newObjects[1],newPoint)
    end&lt;/PRE&gt;&lt;P&gt;It's giving me this error&lt;/P&gt;&lt;PRE&gt;Test Engine / Scaleform Studio: Error: ...i/simple_menu.s2d/Scripts/main_menu_keyboard_handler.lua:179: Error attempting to load 'content/ui/simple_menu.s2d/Start_Button.s2dactor'&lt;/PRE&gt;&lt;P&gt;What am I doing wrong here&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2015 17:54:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/stingray-forum-read-only/how-to-use-the-quot-actor-create-quot-function-in-scaleform/m-p/5826183#M1467</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-21T17:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the "Actor.create" function in Scaleform</title>
      <link>https://forums.autodesk.com/t5/stingray-forum-read-only/how-to-use-the-quot-actor-create-quot-function-in-scaleform/m-p/5826295#M1468</link>
      <description>The path should be relative to the scaleform project.</description>
      <pubDate>Mon, 21 Sep 2015 18:42:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/stingray-forum-read-only/how-to-use-the-quot-actor-create-quot-function-in-scaleform/m-p/5826295#M1468</guid>
      <dc:creator>dan.matlack</dc:creator>
      <dc:date>2015-09-21T18:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the "Actor.create" function in Scaleform</title>
      <link>https://forums.autodesk.com/t5/stingray-forum-read-only/how-to-use-the-quot-actor-create-quot-function-in-scaleform/m-p/5826314#M1471</link>
      <description>&lt;P&gt;I guess this is where I'm stuck. &amp;nbsp;Do I put the full file path "D:/stingRay_projects/demo_one/content/ui/simple_menu.s2d/Start_Button.s2dactor" ? &amp;nbsp;Or is there some other path I'm supposed to be using?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2015 18:54:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/stingray-forum-read-only/how-to-use-the-quot-actor-create-quot-function-in-scaleform/m-p/5826314#M1471</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-21T18:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the "Actor.create" function in Scaleform</title>
      <link>https://forums.autodesk.com/t5/stingray-forum-read-only/how-to-use-the-quot-actor-create-quot-function-in-scaleform/m-p/5826322#M1472</link>
      <description>the file path should start in the directory where the ui project is. Make sense? so if your project is in "D:/stingRay_projects/demo_one/content/ui/" then the path would be "simple_menu.s2d/Start_Button.s2dactor"</description>
      <pubDate>Mon, 21 Sep 2015 18:58:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/stingray-forum-read-only/how-to-use-the-quot-actor-create-quot-function-in-scaleform/m-p/5826322#M1472</guid>
      <dc:creator>dan.matlack</dc:creator>
      <dc:date>2015-09-21T18:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the "Actor.create" function in Scaleform</title>
      <link>https://forums.autodesk.com/t5/stingray-forum-read-only/how-to-use-the-quot-actor-create-quot-function-in-scaleform/m-p/5826361#M1474</link>
      <description>&lt;P&gt;That still generates an error. &amp;nbsp;Here's my code now&lt;/P&gt;&lt;PRE&gt; if (e.name == "MENU") then
        local newButton = scaleform.Actor.load("simple_menu.s2d/Start_Button.s2dactor")
        newObjects[1] = newButton
        newPoint = {x=160, y= -60}
        scaleform.Actor.set_local_position(newObjects[1],newPoint)
    end&lt;/PRE&gt;&lt;P&gt;and here's the same error basically&lt;/P&gt;&lt;PRE&gt;Test Engine / Scaleform Studio: Error: ...i/simple_menu.s2d/Scripts/main_menu_keyboard_handler.lua:179: Error attempting to load 'simple_menu.s2d/Start_Button.s2dactor'&lt;/PRE&gt;&lt;P&gt;I'm unsure as to why it's still logging an error.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2015 19:21:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/stingray-forum-read-only/how-to-use-the-quot-actor-create-quot-function-in-scaleform/m-p/5826361#M1474</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-21T19:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the "Actor.create" function in Scaleform</title>
      <link>https://forums.autodesk.com/t5/stingray-forum-read-only/how-to-use-the-quot-actor-create-quot-function-in-scaleform/m-p/5826413#M1476</link>
      <description>&lt;PRE&gt; if (e.name == "MENU") then
        local newButton = scaleform.Actor.load("Start_Button.s2dactor")
        newObjects[1] = newButton
        newPoint = {x=160, y= -60}
        scaleform.Actor.set_local_position(newObjects[1],newPoint)
    end&lt;/PRE&gt;
&lt;P&gt;Above should be correct, that was my fault from previous post. It should be relative to where the project lives and it lives in the .s2d folder so you don't have to include that.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2015 20:00:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/stingray-forum-read-only/how-to-use-the-quot-actor-create-quot-function-in-scaleform/m-p/5826413#M1476</guid>
      <dc:creator>dan.matlack</dc:creator>
      <dc:date>2015-09-21T20:00:08Z</dc:date>
    </item>
  </channel>
</rss>

