swfが読み込む外部swfや画像などは、そのswfが貼付けられたhtmlからのパスによって変化してしまう。そこで、flashの_urlプロパティを使うと、swfファイルのディレクトリが参照できるので、 どんな階層からswfが読み込まれていても、swfからの相対パスを指定することができる。 たとえば、以下のように書けばswfファイルの絶対パスだけを抜き取る事ができる。 localPass = _url.substr(0, _url.lastIndexOf("/")+1);
swfが読み込む外部swfや画像などは、そのswfが貼付けられたhtmlからのパスによって変化してしまう。そこで、flashの_urlプロパティを使うと、swfファイルのディレクトリが参照できるので、 どんな階層からswfが読み込まれていても、swfからの相対パスを指定することができる。 たとえば、以下のように書けばswfファイルの絶対パスだけを抜き取る事ができる。 localPass = _url.substr(0, _url.lastIndexOf("/")+1);
Flash覚え書き今や立派なオーサリングツールとなったMacromedia FlashのActionScriptを中心とした覚え書きです。 バージョンは最新のMX 2004ではなくMXになります。だってMXにバージョンアップしてすぐ2004が出たのでもったいないんだもん。;・つд`);・。
デザインする グラフィックアプリの使い方から、デザインの基礎、最新の表現手法まで、デザイナー、イラストレーター、写真家が知りたい情報が満載!
初めて質問をさせていただきます。 よろしくお願い致します。 下記の、adobe.comにある「XMLでJPEGスライドを作成する」で、 読み込む画像サイズがバラバラの場合に、 “表示サイズをそれぞれの画像によって変えたい”(縦のサイズだけ固定をし、中央に寄せて表示させたい) と試行錯誤しているのですが、なかなか進みません。。 ▼XMLでJPEGスライドを作成する http://www.adobe.com/jp/support/flash/applicatio … この解説の中の下記のページで、 http://www.adobe.com/jp/support/flash/applicatio … 「ステージ上のターゲットクリップのインスタンスをリサイズすると、 ロードされた画像やムービーは同じだけ拡大縮小されることも覚えておきましょう。 ターゲット領域をリサイズしたいのだが画像サイズを替えた
> サイズが指定している100*100になりません。 画像ロード後にサイズを 100*100 にしないからです。 書かれていらっしゃるスクリプトは次のようになっています。 this.attachMovie("img",newName,ID); //インスタンスを作成 ↓実行↓ this[newName].loadMovie(ID+".jpg"); //作成したインスタンスに画像を読み込む ↓実行↓ this[newName]._width = 100; //画像を読み込んだインスタンスの幅を変更 これを見る限り,ロード後に 幅を 100 にしているように見えます。 しかし実際はロードに時間がかかるため, this.attachMovie("img",newName,ID); //インスタンスを作成 ↓実行↓ this[newName].loadMovie(ID+".jpg"); //作成し
Flash 8 入門講座 目次 お絵描きからActionScriptを使ったアニメーション制作まで いまやすっかり,Web上のインタラクティブ・コンテンツの代名詞となった感がある“Flash”。実は,アニメーションやゲームなど私たちが目にする,いわゆるFlashコンテンツは正確には「Flashムービー(ファイルの拡張子は.swf)」と呼びます。 Flashムービーを作成する方法はいくつかありますが,一般には,アドビシステムズの開発ツール「Macromedia Flash(以下,単にFlash)」を使います。本連載では,Flashの最新版である「Flash 8」を使って,Flashムービーの作成方法を中心に紹介していきます。Flash 8を持っていないという人も,1カ月間タダですべての機能を使用できる体験版がアドビシステムズのWebサイトに用意されているので,ダウンロードして一度試してみては
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く