This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Flash Site Design > June 2004 > Movie Debacle!!! Urgent!!
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Movie Debacle!!! Urgent!!
|
|
| Markvs 2004-06-23, 7:14 am |
| Hello fellow flash patrons,
Let me get straight to the point. I have two swf files. One is the host the
other is loaded into it by a button action. This works fine with static text
and images.
The problem:
If I try to load text dynamically from a text file into the second flash file
it does not load but any static text and images are loaded fine.
The code:
The following code loads the second flash file from the host - which does
load:
loadMovie ("Company/Corporate.swf", "_root.papermove.paper.white.list");
Now the code below loads the text file in the second swf file:
loadVariables ("Text/Vision.txt", "0");
This works perfectly when you preview this second swf file on its own, but you
cannot see the text when you view this page through the host swf file.
Please can anyone help me with this problem as it is extremely urgent.
Thanks a lot like jelly tots (in advance)
| |
| Peter Blumenthal 2004-06-23, 7:14 am |
| it's a common 'gotcha' when using loaded movies. the _root statement in your
loaded movie no longer refers to it's own _root, but the _root of the
timeline loading it.
| |
| Markvs 2004-06-23, 7:14 am |
| Hi Peter and future responcees,
Thanks a lot for your responce, I am sure that you put a lot of time and
effort into reading my dramas, but I am not sure if you are understanding the
full extent of the problem. Below is what I hope is a more clear description of
what seems to be happening in this nightmare I call Flash:
> I have my main swf file called index, in this file there is a movie clip
where I reference all the other pages to be loaded.
> The reference is as follows: _root.papermove.paper.white.list
> The buttons that link the other swf files are also in this host movie.
> When a button is clicked the following code is executed:
loadMovie ("Company/Corporate.swf", "_root.papermove.paper.white.list");
> This code works perfectly, and each page is loaded in the correct position
etc.
The problem comes in here:
> At the moment these seperate pages have just static text on them, which is
visible when they are loaded in the host swf file.
> What I would like to do is have dynamic text, which is called from a text
file, to be placed on these pages.
> Within one of these I have placed the following code to refernce the desired
text from the .txt file:
loadVariablesNum ("Text/Vision.txt", "0");
> When this page is previewed on its own (i.e not within the host swf) it
works perfectly and the text can be seen.
> However when previewing this from the main swf file (host) it will show the
static text but not the text that is referncing the .txt file.
Basically I am wondering if it is possible to load a movie in a swf file when
that swf file is already loaded in another one. Eg. a movie in a movie within a
movie.
Am pretty sure it is the target of my second code above (at the moment it is
level 0).
So anybody (even you Peter) can you help me with this, as I have tried
changing the target to various things and it still does not work.
Help me.. i'm melting :-)
| |
| Markvs 2004-06-23, 7:14 am |
| Hi Peter and future responcees,
Thanks a lot for your responce, I am sure that you put a lot of time and
effort into reading my dramas, but I am not sure if you are understanding the
full extent of the problem. Below is what I hope is a more clear description of
what seems to be happening in this nightmare I call Flash:
> I have my main swf file called index, in this file there is a movie clip
where I reference all the other pages to be loaded.
> The reference is as follows: _root.papermove.paper.white.list
> The buttons that link the other swf files are also in this host movie.
> When a button is clicked the following code is executed:
loadMovie ("Company/Corporate.swf", "_root.papermove.paper.white.list");
> This code works perfectly, and each page is loaded in the correct position
etc.
The problem comes in here:
> At the moment these seperate pages have just static text on them, which is
visible when they are loaded in the host swf file.
> What I would like to do is have dynamic text, which is called from a text
file, to be placed on these pages.
> Within one of these I have placed the following code to refernce the desired
text from the .txt file:
loadVariablesNum ("Text/Vision.txt", "0");
> When this page is previewed on its own (i.e not within the host swf) it
works perfectly and the text can be seen.
> However when previewing this from the main swf file (host) it will show the
static text but not the text that is referncing the .txt file.
Basically I am wondering if it is possible to load a movie in a swf file when
that swf file is already loaded in another one. Eg. a movie in a movie within a
movie.
Am pretty sure it is the target of my second code above (at the moment it is
level 0).
So anybody (even you Peter) can you help me with this, as I have tried
changing the target to various things and it still does not work.
Help me.. i'm melting :-)
| |
|
|
| Markvs 2004-06-23, 7:16 pm |
| Thnks, but thatcode is what is being used at the moment, a similar version at least. So not much help there, I do appreciate it though. Anymore ideaas are definately welcome. So keep 'em coming :-)
| |
| posted.by\(Vern\); 2004-06-23, 7:16 pm |
| >>So anybody (even you Peter) can you help me with this<<
Please don't get upset with me, I just gotta laugh at that one. Its like
saying "Help me to learn to drive this car, even you Mario Andretti".
Sorry, Just had to chuckle at that one!!
At any rate, good luck in your quest to solve your problem.
--
Regards,
--Vern
===========================
onClipEvent(doSomethingStupid){
setProperty("Face", color, #FF0000);
_root.audio = "uh oh!";
}
| |
| Shawn Hughes 2004-06-24, 4:14 am |
| Make this easy. Post a link to the zipped up .fla.
Shawn Hughes
"Markvs" <webforumsuser@macromedia.com> wrote in message
news:cbbf32$p36$1@forums.macromedia.com...
> Hello fellow flash patrons,
>
> Let me get straight to the point. I have two swf files. One is the host
the
> other is loaded into it by a button action. This works fine with static
text
> and images.
>
> The problem:
> If I try to load text dynamically from a text file into the second flash
file
> it does not load but any static text and images are loaded fine.
>
> The code:
> The following code loads the second flash file from the host - which
does
> load:
> loadMovie ("Company/Corporate.swf",
"_root.papermove.paper.white.list");
>
> Now the code below loads the text file in the second swf file:
> loadVariables ("Text/Vision.txt", "0");
>
> This works perfectly when you preview this second swf file on its own,
but you
> cannot see the text when you view this page through the host swf file.
>
> Please can anyone help me with this problem as it is extremely urgent.
> Thanks a lot like jelly tots (in advance)
>
>
>
>
| |
| Peter Blumenthal 2004-06-24, 7:20 am |
| heh - cheers Vern ;)
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|