创建一个包含flash的页面可以动态添加文本 [英] create a page which contain a flash can be add text dynamiclly

查看:143
本文介绍了创建一个包含flash的页面可以动态添加文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须创建一个可以设置为全屏的网页(我的意思是真正的全屏,而不是像按F11),在全屏中应该显示一些文字。



http://stackoverflow.com 为例:



通常,它显示其内容(问题),但有一天,也许是一个VIP来访问页面,所以我们要用一个欢迎屏幕替换整个页面。



当然,我们可以替换 https://stackoverflow.com/index.html (假设它是索引页)与欢迎文本(欢迎xxx到我们的网站...)在服务器端。



然而,这是不方便的,文本不能被完全筛选。所以我想闪光灯,我可以在页面上添加一个控制器按钮,当需要时,我点击这个按钮,并设置欢迎词,然后一个闪光灯将启动在全屏幕模式下玩弄被伪装的单词。如果闪光灯可以显示文本的动画会更好。



我从来没有做过Flash的开发,所以我想知道这是可能的吗? b>

顺便说一句,可以把所有的客户端改成使用juse一键点击吗?

我的意思是我点击控制器按钮,那么所有访问这个页面的客户端应该会同时看到由Flash替换的内容。



我不确定你们是否知道我的意思。如果没有,我可以更新更多的细节。



我真的很焦虑,谢谢。 :)

解决方案

由于您从头开始使用Flash,我做了一个快速的例子, / em>你想要做的。 http://clearmpls.com/temp/fullscreen/ - 我制作此示例的源文件可以从这里抓取: http://clearmpls.com/temp/xml-loading -fullscreen-thing.zip



我使用Flash IDE来创建这个。您可以从Adobe的网站获取60天的试用期: https:// www.adobe.com/cfusion/tdrc/index.cfm?product=flash



这个例子显示了这些函数的例子:
- it加载一个带有文本数据的XML文件
- 在舞台上的文本框中显示该数据
- 为您提供一个按钮,您可以在全屏和常规之间来回切换
- 调整舞台大小textfield根据您在XML文件中写入的内容


I have to create a web page which can be set to full screen(I mean the real full screen,not like press the F11),in the full screen there should be some words displaying.

Take the http://stackoverflow.com for example:

Normally,it show its contents(the questions),but someday,maybe a VIP come to visit the page,so we want to replace the whole page with a welcome screen.

Of course we can replace the https://stackoverflow.com/index.html (suppose it is the index page) with the welcome text(welcome xxx to our site...) in the server side.

However this is not convenient,and the text can not be full screened.

So I thought the flash,I can add a controller button at the page,when required,I click this button,and set the welcome words,then a flash will start to play with the sepcified words in a full screen model. It would be better if the flash can show the text with a Animation.

I have never did the flash development,so I want to know if this is possible?

BTW,can all the clients change to flash with juse one click?

I mean I click the controller button,then all the client who is visit this page should see the contents replaced by the flash at the same time.

I am not sure if you guys know what I am meaning. If not,I can update more details.

I am really Anxious, Thanks. :)

解决方案

Since you're starting from scratch with Flash, I made a quick example of what I think you want to do. http://clearmpls.com/temp/fullscreen/ - the source files that I made this example with can be grabbed from here: http://clearmpls.com/temp/xml-loading-fullscreen-thing.zip

I used the Flash IDE to create this. You can grab a 60-day trial from Adobe's site here: https://www.adobe.com/cfusion/tdrc/index.cfm?product=flash

This example shows examples of these functions: - it loads an XML file with text data - displays that data in a textfield on the stage - gives you a button where you can toggle back and forth between fullscreen and regular - resizes the stage and textfield based on what you have written in your XML file

这篇关于创建一个包含flash的页面可以动态添加文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆