设计包含某些内容的 Flash 网站的最佳方式是什么
我是 Flash 新手,刚刚学习了一些带有一些事件的动作脚本 3。
我必须使用动态菜单构建网站,然后使用 xml 构建每个页面的内容。
网络上是否有任何示例来展示如何构建该网站。
什么是 GAIA,它对我有帮助还是我应该自己编码
谢谢
I am new to flash and just learned some action Script 3 with some events.
I have to build site with dynamic menus and then contents for each page using xml.
Is there any example on web to show how I can build the site.
What is GAIA , will it help me or I should code my self
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
首先,在人们对 Flash 发起“口水战”之前,让我提醒您,根据您对网站的使用情况,如果您使用完整的 Flash 制作网站,您将不会从 Google 等搜索引擎获得太多“帮助”。
SWF 文件被认为很像图形,计算机很难自动理解它们。
因此,除非您做了很多“预先思考”和“技巧”来使内容页面可以通过正常的 URL 进行选择,例如 http://www.mywebsite.com/?page_id=home
那么我认为您已经走上了错误的道路。
将 Flash 视为“一个封闭的盒子”。你放在那里的东西可能看起来很棒,但在制作广泛的网站时它有缺点。
Actionscript 3.0 与 Javascript(例如,没有插件的浏览器脚本)和 C# (Microsoft .NET) 很接近。
无需 Actionscript 和 Flash 即可生成动态菜单。使用 DHTML(动态 HTML)的方法有很多 - 看看 jQuery (www.jquery.com) 以及他们为您构建的所有插件或 UI...免费。
对于搜索引擎来说,这些在大多数情况下都是“可以的”。
现在...您的问题:
Actionscript 3.0 - 从 XML 加载菜单。
首先,您需要设计 XML 格式,比方说:
您可以从中选择称为“菜单”的“Decandents”。
通过将所有这些读入数组,您可以构建可视化菜单。
在 Google 上搜索关键字,例如:“actionscript、xml、menu”,以获取大量示例。
其次,您需要某种方式来“存储”页面内容,以便您可以显示一些内容。您没有向我们提供太多详细信息,因此很难知道您是否会使用普通 HTML 页面或只需要文本。
您也可以将它们存储到 XML 文件中。与上面的方法相同,或者在每页单独的 XML 文件中,例如:
这种方法的问题是它开始看起来很像正常的 (X)HTML:
我想说的是:确保您的目标是正确的并且您选择完成任务的正确工具。顾客并不总是对的。事实上,他们经常来找我们,因为他们有一个想法,但不知道如何使其成为现实。
你就是专家!
First, before people starts a "flamewar" against Flash, let me remind you that depending on your usage of the website, you wont get much "help" from Search engines such as Google, if you produce a website in complete Flash.
The SWF files are considered much like graphic, which is hard for computers to make any sense out of automatically.
So unless you do a lot of "pre-thinking" and "tricks" to make the pages of content selectable through normal URL's such as http://www.mywebsite.com/?page_id=home
Then you are in my opinion already on the wrong path.
Think of Flash as "a closed box". What you put in there can look awesome, but it has downsides when producing widespread websites.
Actionscript 3.0 is close to what Javascript (eg. browser script without plugins) and C# (Microsoft .NET) looks like.
Dynamic menus can be produced without Actionscript and Flash. There are loads of ways with DHTML (Dynamic HTML) - have a look at jQuery (www.jquery.com) and all the plugins or UI they have build - for you... for free.
Those will most of the time be "ok" for search engines.
Now... your question:
Actionscript 3.0 - load menu from XML.
First you need to design your XML format, lets say:
From this you can select your "Decandents" called "menu".
By reading all these into an array you can build the visual menu.
Search for keywords such as: "actionscript, xml, menu" on Google for loads of samples.
Secondly you need some way for "storing" your page contents, so that you have something to show. You havent provided us with much details, so its hard to know if you will use normal HTML pages or just need text.
You can store those into XML files too. Same approach as above, or in a separate XML file per page like:
Problem with this approach though is that it starts to look A LOT like normal (X)HTML:
What I am saying is: make sure your goal is right and you choose the right tool for the task. Customers aren't always right. Infact, they often come to us, because they have an idea, but dont know how to make it become real.
You be the expert!
对 BerggreenDK 上面所说的进行补充:
使用 Flash 来补充 DHTML 网站,例如添加横幅、视频等,但不能用于构建网站。
To add to what BerggreenDK said above:
Use flash to complement a DHTML website, say for adding banners, videos etc, but not to build one.