SwishTalk.com
 

Go Back   SwishTalk.com > .:: THE HELP DESK ::. > » Actionscript Help

Reply
 
Thread Tools Display Modes
#1   How to load extrnl mov with variable  
 
aaheer's Avatar

Name: 
aaheer
Status: Offline
Rank: SWiSHer
Posts: 34
Old 05-25-2012, 08:54 AM Reply With Quote


i want to load extrnl mov in main mov with variable and i wanna extrnl mov dont open with out main mov otherwise the extrnl mov exit from the desktop how it can be done ?




               
 
View Public Profile Send a private message to aaheer Find all posts by aaheer Add aaheer to Your Contacts
#2    
 
cycle1500's Avatar

Name: 
cycle1500
Status: Offline
Rank: Oberlin, Ohio, USA
Posts: 1,497
Mood: MEAN: Do's not play well
Old 05-25-2012, 09:11 AM Reply With Quote


Quote:
i want to load extrnl mov in main mov with variable
There are several different ways to do this. One you can use
Code:
onFrame (1) {
    loadMovie("`URL`");
}
This will load over top of the main movie.

Code:
onFrame (1) {
    container.loadMovie("`URL`");
}
Here you have a movie clip in the main movie called container. This will load the external movie and not hide the main movie.

Quote:
i wanna extrnl mov dont open with out main mov
You can not open a external movie with out the main movie working.

Quote:
otherwise the extrnl mov exit from the desktop how it can be done ?
Flash movies to not play on your desk top. They play on a browser becouse the need the flash projector to play.

Wayne


               
__________________
The Hairy One
Wayne helps those that helps themselves.
 
View Public Profile Send a private message to cycle1500 Find all posts by cycle1500 Add cycle1500 to Your Contacts
#3    
 
aaheer's Avatar

Name: 
aaheer
Status: Offline
Rank: SWiSHer
Posts: 34
Old 05-25-2012, 10:12 AM Reply With Quote


good but i see a extrnl mov with this variable
onframe1
gate=_level0.gatepass
if pass eq ''''
fc_command quit
else
play

when i click on swf the automatic exit but that swf working in main what is the variable between extrnal and main mov ?




               
 
View Public Profile Send a private message to aaheer Find all posts by aaheer Add aaheer to Your Contacts
#4    
 
cycle1500's Avatar

Name: 
cycle1500
Status: Offline
Rank: Oberlin, Ohio, USA
Posts: 1,497
Mood: MEAN: Do's not play well
Old 05-25-2012, 11:57 AM Reply With Quote


Take all the files you are looking at or working with and Zip or RAR them and upload them here or post a link to them.
Need to see what you have.

Wayne


               
__________________
The Hairy One
Wayne helps those that helps themselves.
 
View Public Profile Send a private message to cycle1500 Find all posts by cycle1500 Add cycle1500 to Your Contacts
#5    
 
mobosof's Avatar

Name: 
mobosof
Status: Offline
Rank: Administrator
Posts: 16,173
Mood: fandabbydozy
Old 05-25-2012, 03:35 PM Reply With Quote


sounds like a (exe)projector file Wayne where the movie was converted to use fs command menus


               
 
View Public Profile Send a private message to mobosof Visit mobosof's homepage! Find all posts by mobosof Add mobosof to Your Contacts
#6    

Name: 
OutCast**NL
Status: Offline
Rank: SWiSHer
Posts: 647
Old 05-25-2012, 03:55 PM Reply With Quote


They simply created a var in the mainmovie so the submovie cannot be viewed seperatly,..

To do so, create a variable in your mainmovie, like ie:

Code:
onSelfEvent (load) {
    checkvar = "abcdef123"
}
then in your submovie use an if conditional to see if the var excists, like:

Code:
onSelfEvent (load) {
    if(_root.checkvar != "abcdef123"){        
            fscommand("Quit",);
        }
}
Note that this is not the best save way to protect content
cause with the proper software, the var can easily be distracted from the mainmovie.
For a more secure methode, you mite want to considder php.



               
 
View Public Profile Send a private message to OutCast**NL Visit OutCast**NL's homepage! Find all posts by OutCast**NL Add OutCast**NL to Your Contacts
#7    
 
aaheer's Avatar

Name: 
aaheer
Status: Offline
Rank: SWiSHer
Posts: 34
Old 05-25-2012, 07:36 PM Reply With Quote


i will upload soon dear and out cast how we can do with php? I am learning from here i love flash swishmax is my best


               
 
View Public Profile Send a private message to aaheer Find all posts by aaheer Add aaheer to Your Contacts
#8    

Name: 
OutCast**NL
Status: Offline
Rank: SWiSHer
Posts: 647
Old 05-27-2012, 02:02 PM Reply With Quote


I'm @ a festival this weekend and wont be home before tuesday,..
I;ll see what I can do when I get back,..



               
 
View Public Profile Send a private message to OutCast**NL Visit OutCast**NL's homepage! Find all posts by OutCast**NL Add OutCast**NL to Your Contacts
Advertisement:





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

Forum Jump