Web Design Web Design Forum
Registration is free! Here you can view your subscribed threads, work with private messages and edit your profile and preferences Calendar Find other members Frequently Asked Questions Search
Home Web Design

Convenient web based access to our favorite web design Usenet groups

web design reviews

This is Interesting: Free Magazines for Graphics designers and webmasters  





  Last Thread  Next Thread
Author
Thread Post New Thread   

Dynamic text: Easy I think...
 

Mighty Ravenscar




quote this post edit post

IP Loged report this post

Old Post  06-18-04 - 04:14 AM  
Hi,

Trying to do a simple thing and feel like an idiot for not being able to. I'
m
sure this must ahve been asked befor, but I couldn't find the answer when I
searched...

Trying to make different text files appear in the same Dynamic text Box,
depending on what thumbnail is clicked. I think I have to change the variabl
e
of the text box, but nothing seems to be working. Here's a simple test i tri
ed
and it doesn't seem to work: (the text box has an instance name of
"Description," the text files is called Design_Omega.txt):

Description.text = Design_Omega ;
tellTarget (Description) {
LoadVariablesNum("Design_Omega.txt", 0) ;

}

Any and all help would be greatly appreciated.

{R}



Post Follow-Up to this message ]
Re: Dynamic text: Easy I think...
 

J formerly private news




quote this post edit post

IP Loged report this post

Old Post  06-18-04 - 05:14 PM  
createEmptyMovieClip("holderMC", 1);
holderMC.loadVariables("Design_Omega.txt");
holderMC.onData = function() {
Description.text = this.var1;
};


where your txt file begins with 'var1='


"Mighty Ravenscar" <webforumsuser@macromedia.com> wrote in message
news:catdm6$pfq$1@forums.macromedia.com...
> Hi,
>
>  Trying to do a simple thing and feel like an idiot for not being able to.
I'm
> sure this must ahve been asked befor, but I couldn't find the answer when
I
> searched...
>
>  Trying to make different text files appear in the same Dynamic text Box,
> depending on what thumbnail is clicked. I think I have to change the
variable
> of the text box, but nothing seems to be working. Here's a simple test i
tried
> and it doesn't seem to work: (the text box has an instance name of
> "Description," the text files is called Design_Omega.txt):
>
>            Description.text = Design_Omega ;
>             tellTarget (Description) {
>   LoadVariablesNum("Design_Omega.txt", 0) ;
>
>            }
>
>  Any and all help would be greatly appreciated.
>
>  {R}
>




Post Follow-Up to this message ]
Re: Dynamic text: Easy I think...
 

J formerly private news




quote this post edit post

IP Loged report this post

Old Post  06-18-04 - 05:14 PM  
or more up to date with:: this Is the newer of the two ways I think, but
both do the same sort of thing.

loadVarsText = new loadVars();
loadVarsText.load("Design_Omega.txt");
loadVarsText.onLoad = function(success) {
if (success) {
trace("done loading");
Description.text = this.var1;
trace(Description.text);
} else {
trace("not loaded");
}
};


"Mighty Ravenscar" <webforumsuser@macromedia.com> wrote in message
news:catdm6$pfq$1@forums.macromedia.com...
> Hi,
>
>  Trying to do a simple thing and feel like an idiot for not being able to.
I'm
> sure this must ahve been asked befor, but I couldn't find the answer when
I
> searched...
>
>  Trying to make different text files appear in the same Dynamic text Box,
> depending on what thumbnail is clicked. I think I have to change the
variable
> of the text box, but nothing seems to be working. Here's a simple test i
tried
> and it doesn't seem to work: (the text box has an instance name of
> "Description," the text files is called Design_Omega.txt):
>
>            Description.text = Design_Omega ;
>             tellTarget (Description) {
>   LoadVariablesNum("Design_Omega.txt", 0) ;
>
>            }
>
>  Any and all help would be greatly appreciated.
>
>  {R}
>




Post Follow-Up to this message ]
Re: Dynamic text: Easy I think...
 

J formerly private news




quote this post edit post

IP Loged report this post

Old Post  06-18-04 - 05:14 PM  
just add the below code with the right text file to the buttons, you might
have to add Description.text = ""; to the first line of the handler if the
text appends im not sure :P

but the var for the text field is incedental for this function, make sure
also that the text box is dynamic! not static!

"J formerly private news" <ruffup@msn.com> wrote in message
news:caupe4$gda$1@forums.macromedia.com...
> or more up to date with:: this Is the newer of the two ways I think, but
> both do the same sort of thing.
>
> loadVarsText = new loadVars();
> loadVarsText.load("Design_Omega.txt");
> loadVarsText.onLoad = function(success) {
>  if (success) {
>   trace("done loading");
>   Description.text = this.var1;
>   trace(Description.text);
>  } else {
>   trace("not loaded");
>  }
> };
>
>
> "Mighty Ravenscar" <webforumsuser@macromedia.com> wrote in message
> news:catdm6$pfq$1@forums.macromedia.com... 
to.
> I'm 
when
> I 
Box, 
> variable 
> tried 
>
>




Post Follow-Up to this message ]
Sponsored Links
 





All times are GMT. The time now is 03:56 AM. Post New Thread   
  Previous Last Thread   Next Thread next
Flash Site Design archive | Show Printable Version | Email this Page | Subscribe to this Thread

Popular forums

Adobe Photoshop forum Macromedia Flash Web Site Design
Dreamweaver FrontPage forum
JavaScript Forum XML forum
Style Sheets VRML
Forum Jump:
Rate This Thread:

 

XML RSS Feed web design latest articles Syndicate our forum via XML or simple JavaScript

Web Design archive  Database administration help  


Top Home  -  Register  -  Control Panel   -  Memberlist  -  Calendar  -  Faq  -  Search Top