PDA

View Full Version : paths


Krakadu
03-27-2006, 11:21 AM
what should be the path to a movieclip within a button !? i really need it but just cant find any info about that :( ?.
i have a button within the main timeline "history".
within history i have a movieclip which i want to control - "histA"
help pls :confused:

Xeef
03-27-2006, 12:24 PM
history.histA._x=100

Krakadu
03-27-2006, 12:35 PM
doesn't work ;(

Xeef
03-27-2006, 01:12 PM
i have a button within the main timeline "history".
within history i have a movieclip which i want to control - "histA"

then your info is incorect !

you also can try :

_root.history.histA._x=100

but if still no joy
then there is some other problem !

let's see your FLA

Krakadu
03-27-2006, 04:03 PM
in the main timeline in frame 1 i have a button "history". within the button i have converted the texts for UP and OVER into movieclips. i want when i press a button in the main timeline the movieclips with the texts to jump one frame forward. the idea is to change the language :). if u cant tell me an easyer way i will be really greatfull. maybe to make the text dinamic or something like that, i just need to change the text without remaking the whole site i have in the other language...
i have tried by a movieclip;dinamic text;layers and none worked. at all is it possible to make a path to sth within a button... i had tried with the "insert a target path" thing ...

Xeef
03-27-2006, 04:28 PM
within the button i have converted the texts for UP and OVER into movieclips.

why ?

in this case you will need an aditional path :

_root.history.TheConvertedTextsMovieClipName.TheTe xtFieldName.text="Bla"


but in general i can just suget to chuse the language in FRONT of ALL
other wise it will by a nightmare !
you will need to ceap track of all elements wich hase text on them and change the text on language change !
i don't know of any program in wich you can chuse language during the program is runing whit out a restart !


//this shoud by set at the verybegining befor anything is writen !!!
ChusenLanguage = "En";
//
Languages = {};
//
Languages.En = {};
Languages.En.Welcome = "Welcome to my side";
//
Languages.De = {};
Languages.De.Welcome = "Wilkommen zu meine Seite";
//
trace(ChusenLanguage+" --> "+Languages[ChusenLanguage].Welcome);
//
ChusenLanguage = "De"
trace(ChusenLanguage+" --> "+Languages[ChusenLanguage].Welcome);

Krakadu
03-27-2006, 04:54 PM
on (release)
{_root.history.histA.text="history";}
thats what i write in the "actions" of my button which i want to change the language with. and i doesnt work. "histA" is the instance name of the dinamic text within the button. whats your email to send u the fla if theres no problem :) . its 1mb.

AngelEyesShadow
03-28-2006, 02:23 PM
Isn't it easier to convert your buttons in library to movie clips and to write a prototype for movie clips for actions like rollOver, rollOut, press, release, and your problem with clips in clips would be solved.
Of course, an array with words in different languages, as Xeef said, would be a very good thing to use.