拖放,删除和克隆 - Flash AS3(Drag, Drop and Clone - Flash AS3)
我是一名老师,试图制作一个简单的Flash AS3游戏,学生可以将任何来自az(movieclips)的字母拖到舞台中间创建单词。
我是Flash的业余爱好者,所以使用代码片段,我已经成功地允许用户拖放字母,但我真正想要的是用户能够拖放一封信,留下原始字母movieclip到位并根据需要多次克隆一个新的。
是否有人能够帮助我使用AS3我需要实现这一目标? 非常感谢。
I am a teacher trying to make a simple Flash AS3 game where students can drag any letter from a-z(movieclips) out to the middle of the stage to create words.
I am a total amateur with Flash and so using code snippets, I have been successful in allowing users to drag and drop letters but what I would really like is for users to be able to drag and drop a letter leaving the original letter movieclip in place and clone a new one as many times as is necessary.
Is anyone able to help me with the AS3 I would need to achieve this? Many thanks.
原文:https://stackoverflow.com/questions/21674358
最满意答案
好吧,当你切换到新的页面格式时,这只是一个FB错误,但我确实弄明白了如何修复它。 如果您遇到此问题,请转到您的页面,然后点击右上角的“编辑页面”按钮。 你最终会到这里:
转到应用程序选项卡,然后单击应用程序名称下的“编辑设置”。 将出现上面显示的弹出窗口。 只需点击“删除”,然后再次点击“修改设置”,然后点击“添加”。 您的标签现在将尊重您提供的名称。 烦人。
Well, this is just a FB bug when you switch over to the new page format, but I did figure out how to fix it. If you encounter this problem go to your page and click the "Edit Page" button in the top right. You'll end up here:
Go to the apps tab and click "Edit Settings" under the app name. The popup shown above will appear. Just click "remove" and then click "Edit Settings" again and click "add". Your tab will now respect the name you have given it. Annoying.
相关问答
更多-
如果申请被拒绝,Facebook会重命名回调参数(Facebook renamed callback parameters if application is rejected)[2023-09-10]
Bug已经修好了。 https://developers.facebook.com/bugs/292294647538649 Bug has been fixed by facebook. https://developers.facebook.com/bugs/292294647538649 -
一旦重命名,似乎无法点击并突出显示所选的li(Cannot seem to click on and highlight selected li once it is renamed)[2022-11-14]
您可以使用html()而不是replaceWith()。 $(function () { $("#rename").on("click", function(){ var li = $('#colors').find('.active'); li.html(''); }); $('li').on("click", function () { ... -
我自己发现了罪魁祸首:由于我在某处阅读的文章中的建议,运行“从模型生成数据库”向导。 它将所有模型的基础表和列名称更改为SQL Server标准名称([dbo]。[Customers]。[CustomerID]等)。 I discovered the culprit myself: running the "Generate Database from Model" wizard due to a recommendation in an article I read somewhere. It chang ...
-
为什么我的pdf被重命名?(Why are my pdf's being renamed?)[2022-11-18]
试试.... // PDF UPLOAD $allowed_filetypes_pdf = array('pdf'); $ext_pdf = end((explode(".", $_FILES['pdf']['name']))); $pdfName = basename( $_FILES["pdf"]["name"]); $path = "../".$path_pdf.$_POST['Office']."/"; //$path_pdf = ... -
页面选项卡只是一个iframe,你可以在iframe中做任何你想做的事...... 通过api更改page_tab_url请参阅https://developers.facebook.com/docs/reference/api/application/ a page tab is nothing else then an iframe, you can do whatever you want in that iframe... for changing the page_tab_url via api ...
-
Android:如何为Facebook获取重命名的包名称的命名空间?(Android : How to Get Namespace of a Renamed Package Name For Facebook?)[2023-07-09]
写下你的应用程序的包名,即com.domain.appandroid。 它会工作正常。 Write the package name of your app i.e. com.domain.appandroid. It will work fine. -
好吧,当你切换到新的页面格式时,这只是一个FB错误,但我确实弄明白了如何修复它。 如果您遇到此问题,请转到您的页面,然后点击右上角的“编辑页面”按钮。 你最终会到这里: 转到应用程序选项卡,然后单击应用程序名称下的“编辑设置”。 将出现上面显示的弹出窗口。 只需点击“删除”,然后再次点击“修改设置”,然后点击“添加”。 您的标签现在将尊重您提供的名称。 烦人。 Well, this is just a FB bug when you switch over to the new page format, b ...
-
鉴于你告诉git关于文件移动,你认为它可以解决它。 但事实并非如此。 --contents开关将完成你想要的。 从git-blame手册页... --contents
When is not specified, the command annotates the changes starting backwards from the working tree copy. This flag makes the command pretend as if the ... -
将旧的插件文件夹一直移出插件文件夹,而不是重命名。 也许wp-content/unused-plugins/thrive-leads Move your old plugin folder all the way out of the plugins folder rather than renaming it. Maybe wp-content/unused-plugins/thrive-leads
-
n => println(n)是一个匿名函数(一个没有名字的函数),它接受一个参数并对其进行操作。 该参数标记为n但它可能是x或wwz ,或者其他什么。 当您将该函数作为参数传递给另一个函数时,接收函数将为接收的参数赋予名称。 foreach的第一个参数标记为onNext但它可能是x或zzw或其他。 它是收到的函数的名称。 当函数传递给foreach时,该函数的名称是什么并不重要,也许它是匿名的并且没有名称,在foreach代码中它现在的名称为onNext 。 在foreach , onNext是一个函数的 ...