Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-13-2008, 12:06 AM
Junior Member
 
Join Date: May 2008
Posts: 1
Default Change movie problem.

I make application for playing included .swf files.

At change movie

FlashPlayer.movie (getAdditionalFile ("1.swf"));
FlashPlayer.movie (getAdditionalFile ("2.swf"));
...

I have two problems

1. Value variables with identical name transferred from 1.swf in 2.swf

2. If user has changed variable value in 1.swf and switched 1.swf-> 2.swf-> 1.swf the changed variable keeps value, but i need variable with default value.

Movie should playing as for the first time run with default values. How I can make it using FFish Script?

p.s. I have no source codes .swf files and I can not change Action Script. Movie can use hundreds variables - the method FlashPlayer.setVariable() is very hard.

Reply With Quote
  #2 (permalink)  
Old 05-15-2008, 12:46 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Change movie problem.

To change the playing movie, you must use
Code:
FlashPlayer.movie = getAdditionalFile ("1.swf");
FlashPlayer.movie = getAdditionalFile ("2.swf");
Whenever a movie is loaded, a "onMovieLoaded" event will be triggered. You can handle the event and change the variables
Code:
Application.onMovieLoaded = function(movie)
{
  FlashPlayer.setVariable("...", "...");
}
There is no other method to set the variables. However, you can put all the variables in an array so that you can call the method in a loop without writing a lot of "setVariable".
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:13 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.