おう、これはどこにあるんだよ?!
ねえじゃねえかよ!!
Flex3買わねえといけねえのかよ?!
おう、これはどこにあるんだよ?!
ねえじゃねえかよ!!
Flex3買わねえといけねえのかよ?!
We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Manage your cookie preferences below:
Essential cookies enable basic functions and are necessary for the proper function of the website.
These cookies are needed for adding comments on this website.
Google reCAPTCHA helps protect websites from spam and abuse by verifying user interactions through challenges.
Google Tag Manager simplifies the management of marketing tags on your website without code changes.
Statistics cookies collect information anonymously. This information helps us understand how visitors use our website.
Google Analytics is a powerful tool that tracks and analyzes website traffic for informed marketing decisions.
Service URL: policies.google.com (opens in a new window)
Marketing cookies are used to follow visitors to websites. The intention is to show ads that are relevant and engaging to the individual user.
A video-sharing platform for users to upload, view, and share videos across various genres and topics.
Service URL: www.youtube.com (opens in a new window)
You can find more information in our Cookie Policy and Privacy policy.
「mx.utils.Base64Encoder」への12件の返信
http://crypto.hurlant.com/
を使えばいいのか?
しかしcorelibe全然つかえねえじゃん・・・。
Flex3SDKの中にありますよ。
flex3sdk/frameworks/projects/framework/src/mx/utils/Base64Encoder.as
はぃ、Flex3持ってないのです・・・汗
試用版でもDLしてしまえばライブラリだけは使えるんですかねぇ・・?
あ、SDKの中にあるんですね!!
DLしまっす!!
ありがとうございます。
ゲトしました。ありがとうございます。しかしcryptoで動作していたのが、Base64Encoderの方を使ったら動かなくなった・・・orz
め・・面倒な・・・w
こ・・これは・・
Error: No class registered for interface ‘mx.resources::IResourceManager’.
at mx.core::Singleton$/getInstance()
at mx.resources::ResourceManager$/getInstance()
at mx.utils::Base64Decoder()
なんかFlexの標準のツールなのかな??
Base64DecoderはFlashでは使えないのか?!
Flex専用なのかしら・・?
こんにちは。
..frameworks/projects/framework/src
にクラスパス通してもダメですか?
こちらではFlashCS3で以下のやつ動きました。
import mx.utils.Base64Encoder;
import mx.utils.Base64Decoder;
import flash.utils.ByteArray;
var ben:Base64Encoder = new Base64Encoder();
var bde:Base64Decoder = new Base64Decoder();
ben.encodeUTFBytes(“テスト”);
bde.decode( ben.flush() );
var bt:ByteArray = bde.flush();
trace( bt.readMultiByte( bt.length, “utf-8” ) );
どうでしょう?
色々アドバイスありがとうございます。
やってみたのですが、駄目でした。
var bde:Base64Decoder = new Base64Decoder();
の一行が引っかかっているようで、これだけ記述した時点で以下のエラーが出てしまいます。
Error: No class registered for interface ‘mx.resources::IResourceManager’.
at mx.core::Singleton$/getInstance()
at mx.resources::ResourceManager$/getInstance()
at mx.utils::Base64Decoder()
at test_PostPlay_fla::MainTimeline/frame1()
が出てしまいます。
..frameworks/projects/framework/src
にクラスパスを通したというよりも、これ以下のフォルダを共有ライブラリの中にコピーして使いました。flexに対して何か他にCS3側で設定必要なのかもしれません。それかFlexを入れるとなにか他のコンポーネントとか入るのかなあ?
うーん・・。
も少し調べてみます。ありがとうございます。
分かりました。
なにやらバグのようです。
http://bugs.adobe.com/jira/browse/SDK-12205#action_178148
頭に
import mx.core.Singleton;
var resourceManagerImpl:Object =
flash.system.ApplicationDomain.currentDomain.getDefinition(“mx.resources::ResourceManagerImpl”);
Singleton.registerClass(“mx.resources::IResourceManager”, Class(resourceManagerImpl));
を追加したら頂いたサンプル動作しました。
ちょっとこれからこちらで実装していたものでも試してみますー。
出来ました!
ありがとうございます。
http://blog.img8.com/archives/2008/04/003728.html
に結果エントリーしましたです。