Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-13-2005, 07:16 AM
Junior Member
 
Join Date: Jul 2005
Posts: 3
Default Newbie Question :)

Hi there all, im testing this software, and i can understand most of it functionallity and features, but for some reason, i can not understand how to code one of the most easy things. Here's my question.
I have swf movies.
Movie 1 = Main intro and a simple "Choose Language" menu that sends
Code:
fscommand("ffish_run", [language here]);
to swf kit.
Movie 2 = it can be one of 6 different movies, depending of the language selected in movie 1.
The question is:
Whats the method to replace the movie being displayed in the main application window by the 2nd movie.
Im sorry but i can not figure out how to code it.
Any help will be welcome.
Thanks in advance.
Diego.
Reply With Quote
  #2 (permalink)  
Old 07-13-2005, 01:54 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Newbie Question :)

If the purpose of the menu is only to load a movie, you don't need to send a command to swfkit, just load the specified movie in action script directly. You only need to call the Application.setBasePath method in the "initialize" script.

If you don't know how to make it work, please send your files to support@swfkit.com, we will make a sample for you.
Reply With Quote
  #3 (permalink)  
Old 07-13-2005, 02:35 PM
Junior Member
 
Join Date: Jul 2005
Posts: 3
Default Re:Newbie Question :)

Quote:
Originally Posted by SWFKIT
If the purpose of the menu is only to load a movie, you don't need to send a command to swfkit, just load the specified movie in action script directly. You only need to call the Application.setBasePath method in the "initialize" script.

If you don't know how to make it work, please send your files to support@swfkit.com, we will make a sample for you.
Thanks for the quick answer!
The thing is, i know how to do it in action script, but i was wondering if there was a way to do it in SWFKIT.

I mean, i have 2 movies in SWFKIT's Movie List, and i want, at some point, to unload movie 1 and load movie 2. That way, i can pack the movies inside the generated exe.
Reply With Quote
  #4 (permalink)  
Old 07-14-2005, 11:58 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Newbie Question :)

You can add the external movies into the attachment list and insert the following code into the "initialize" script:

Code:
var path = getAdditionalFile();
Application.setBasePath(path);
In the action script, you just need to load the movies using the relative path name, e.g. loadMovie("mymovie.swf");
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 01:52 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.