一键将 jpg 和文本从 flash 发送到 php

发布于 2024-09-29 10:37:56 字数 56 浏览 4 评论 0原文

可以举例说明如何一键将 jpg 和一些文本从 flash 发送到 php 吗?我真的对此很生气..

Can give an example of how to send jpg and some texts from flash to php in ONE CLICK ? I`m realy annoyed of that ..

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

七禾 2024-10-06 10:37:56

首先放松:)
然后尝试澄清...
您的具体问题是什么?

1/ 向 PHP 发送变量
有很多关于 Flash/PHP 通信的教程。
这是视频教程
http://blog.phpmoz.org/ Two-way-flash-php-communication-adobe-flash-tutorial-as3/

2/AS3中的图像编码
这篇文章可能会有所帮助,尽管它比您所要求的更进一步
http://designreviver.com/tutorials/ actionscript-3-jpeg-encoder-revealed- saving-images-from-flash/

3/一键完成上述所有操作
为什么不尝试介绍一下 AS3。我总是推荐 Adob​​eTV 上 Colin Mook 的 Lost Actionscript Week End 视频系列


不,我真的没有静态方法的链接。将其视为一种封装不影响类的特定实例的功能的方法。举例来说,您在应用程序中使用各种表单并且想要验证它们,您可以使用一些静态方法创建一个 Validation 类。

在该示例中,Validation 类显然不关心验证自身,它只是一个容器,用于在需要时访问验证方法。

   var email:TextField;
   //whenever that field has been filled , you could validate it like that:
   var valid:Boolean = ValidationClass.emailValidate( email.text );

正如您所看到的,为了访问类的静态方法,您不需要实例化该类,这也解释了为什么静态方法并不意味着影响类的特定实例。

希望有帮助!如果仍然不清楚,我相信谷歌搜索加上一些实验应该会有所帮助;)

First of all relax :)
Then try to clarify...
What's your specific problem?

1/ Sending variables to PHP
There are a lot of tutorials out there regarding Flash / PHP communication.
Here's a video tutorial
http://blog.phpmoz.org/two-way-flash-php-communication-adobe-flash-tutorial-as3/

2/Image encoding in AS3
This article may help , although it goes a bit further than what you're asking
http://designreviver.com/tutorials/actionscript-3-jpeg-encoder-revealed-saving-images-from-flash/

3/Do all of the above with one Click
Why not try an introduction to AS3. I always recommend Colin Mook's Lost Actionscript Week End video series on AdobeTV


No, I don't really have a link for static methods. Think of it as a way to encapsulate functionality that doesn't affect a specific instance of a class. Let's say for example that you're using various forms in your application and you would like to validate them, you could create a Validation class with some static methods.

In that example, the Validation class clearly doesn't care about validating itself, it's only a container for accessing the validation methods wherever you need them.

   var email:TextField;
   //whenever that field has been filled , you could validate it like that:
   var valid:Boolean = ValidationClass.emailValidate( email.text );

As you can see, in order to access the static methods of a class, you don't need to instantiate the class, which also explains why static methods are not meant to affect a specific instance of a class.

hope it helps! if it's still unclear , I'm sure a little Googling plus some experimentation should help ;)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文