Click to See Complete Forum and Search --> : Cannot launch word doc w/ load movie code


dustycoats
04-21-2007, 07:15 PM
I am trying launch a word doc and and a power point from my flash site. It works when I test from the .swf file but when lthe swf is loaded with loadmovie it does not work

the code to load movie I am using is:

on(press){
_root.loadMovie("portfolio_objective.swf");

}

And the code for the word and ppt is:


on(release){
getURL("resume.doc","_blank");
}

CAn anyone tell me what I am doing wrong? Thanks so much

ryanbutler
04-24-2007, 07:00 PM
Can you give a better clarification of the project scope? Such as how each file gets loaded? It's probably a scope issue.

dustycoats
04-25-2007, 05:05 PM
Sorry but I do not understand what 'scope" is, can you direct me to some literature on that topic? Thanks, Dusty

launchpad67a
05-01-2007, 10:13 AM
What are you loading the firstmovie into? You should be loading it into an "emptymovieclip" on your main stage. Like this:

on(release){
_root.loadMovie("portfolio_objective.swf", "empty_mc_name");
}
You need to create a movie clip, drag it to the stage, position it where you want the movie to load and give it an instance name. This instance name will go where I have written "empty_mc_name".

For your WORD.doc . You are launching an application (MS WORD) by linking to a .doc file. So as long as "resume.doc" is in the same folder as your main flash swf, clicking this button will fire up microsoft word on the users computer and launch your file.
on(release){
getURL("resume.doc");
}

If you're trying to use PowerPoint with Flash, there is documentation on how to do this. It's not a straight forward button click.