Dynamic Text Inside Movie Clip?
i know that you can load a txt file onto your main stage, but can you load a txt file into a movie clip and then drag that into your stage?
FlashKit > Flash Help > Flash Newbies
Posted on: 02-19-2002, 02:58 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Dynamic Text Inside A Movie-clip
Hi, let's see what I'm doing wrong...
Main time line...frame 1:
- A dynamic textbox which loads from a txt file.
- AS: loadVariablesNum (variable, 0);
Ok, so far this is working fine...
Now I turn this dynamic text box into a MC symbol.
...and it isn't working any longer...Why??
Just do the test, you'll see it ain't working no-more.
I don't thinks its paths this time...
can anybody help please?
Thanks.
Dynamic Text INSIDE Movie Clip
Hi,
Having a problem displaying a dynamic text field inside a movieclip - when I test / publish the movie, the images from my html file display in the textArea, but the text itself (also from the same html file) does not display.. I don't know why this would be happening
I'm using AS2 in Flash CS3 (Newbie)..
my movie clip has the instance name: contentMain
The dynamic text field (Inside the movie clip) has the instance name: myText
The text field reads a html file, which contains text and images..
I'm a newbie and are uncertain as to how I should change the following code:
(I should add that I know my html file works, because I can test the dynamic text field scene in flash and see the content, but not when I test the entire movie)
Code:
//stylesheet stuff
var ss = new TextField.StyleSheet();
ss.load("stuff.css");
contentMain.myText.styleSheet = ss;
/***************************************************/
//xml stuff
about = new XML();
about.load("stuff.html");
about.onLoad = function () {
contentMain.myText.text = about;
}
Controlling Dynamic Text Inside A Movie Clip.
How do You Control Dynamic Text Inside A Movie Clip? Or Action Script In Side A movieClip
The Dynamic Text Is Connected To A var and I want to change that var once something happens
Flash MX Pro 2004
Action Script 2.0
[F8] Dynamic Text Field Inside Movie Clip
Hello there.
I have a problem with dynamic text fields. You see, whenever I put them inside of movie clips, they don't display variables like they do in the main stage. I've tried copying and pasting [perfectly functional] dynamic text fields from the main stage inside of movie clips, and watched as they break down and stop working.
I asked around some other flash forums a while ago, and I have been told that it has to "reference the parent clip", or something like that. However, no further answers were yielded upon further questioning. All I've gathered is that the movie clip the dynamic text field is inside of needs to have an instance name. Can anyone here tell me how to go about making the dynamic text field reference the instance name and whatnot?
Any help is greatly appreciated.
Preloader: Dynamic Text Inside A Movie Clip
Hey everyone,
I have been using some Dynamic Text in a PreLoader to display the % of the page loading. This works great, but i would like to put the DT inside a Movie Clip.
As soon as i do this, the DT stops function as expected, is it possible to have he DT inside the MC, but still retain its functionality?
I currently us the following Action Script for my PreLoader:
var amountLoaded:Number = _root.getBytesLoaded()/_root.getBytesTotal();
loadText.text = Math.round(amountLoaded * 100);
Thanks.
How To Load Dynamic Text Inside A Movie Clip?
hello all - i have a main stage where on the first frame my "home" movie clip displays. i did this by dragging/dropping, and then i put a stop action. all works fine.
inside this home movie clip on the main stage, there are links to other movie clips. for example, to get to my faq's page - you click that button, then it takes you to frame 4 on my main stage, where my faq's movie clip (followed by stop action) has been dragged/dropped and displays properly.
within the faq's movie clip this process is repeated, with buttons taking to you various pages (different frames where different movie clips play - all works fine).
so now i want to add a dynamic text field within my faq's movie clip. i have read numerous tutorials where i have created the text file but i have not been able to display it with success within my faqs movie clip.
here is some code that my dvd tutorial instructs me to place on main stage as i practice getting this to work:
var myMCL:MovieClipLoader = new MovieClipLoader ();
var myListener:Object = new Object();
myMCL.addListener(myListener);
var myLV:LoadVars = new LoadVars();
myLV.onLoad = function (success:Boolean) {
if (success) {
_level5.loadedInfo.htmlText = myLV.info;
} else {
_level5.loadedInfo.text = "There has been an error loading the requested information. Please contact the webmaster.";
}
}
and here is some code that i place on the faqs button within my main movie clip that takes me back to main stage and plays faq movie clip all successfully:
on (release) {
//Movieclip GotoAndPlay Behavior
_root.gotoAndPlay("4");
//End Behavior
}
and finally, here is some code that i place within my faqs movie clip in an attempt to display my dynamic text within the faqs movie clip - so far unsuccessful:
_level0.myLV.load("vars/faqs.txt");
NOTE:
i have published this to view - not working.
i have my faqs text file starting as info=
i have eliminated white space within my text file
i am using flash 8 pro
can anyone offer some sugestions? thanks!
Dynamic Text Inside Nested Movie Clip
hi everyone.please help me!!
basically i am trying to load text from a .txt file into a dynamic text box that is placed in a movie clip that is nested on the main root timeline. I have been trying to adapt this original code but without any luck:
stop();
loadVariables("mytext.txt", this);
i changed this to this:
stop();
loadVariables("mytext.txt","_root.note3_mc");
where mytext.txt is the name of the text file and note3_mc is the name of the movie clip.
the variable is called textField and my txt file reads as:
textField= testing!testing! lawrence your text goes here!!
when i test the movie i just get a blank text box.
any ideas people. thanks in advance.
Still Stuck With Dynamic Text Not Showing Up Inside Movie Clip Problem
hi there..
posted this afew days ago..but still havent recieved help.One guy was helping me and said i needed to but the "render text as html" but i did and still didnt help.
i want to use dymanic text inside a moving movie clip.But the problem is when i "test movie" it doesnt show up, there is nothing there.But when i change the text back to static text then it shows up fine.
Why might this be??
Can anyone helps me out
cheers!
Dynamic Text From .txt File Doesn't Work Inside Movie Clip
Let me start by explaining...
I have a 10 Scene flash movie / website. Everyscene has it's own cool animation. (To see what i mean check out http://69.41.144.121/aerocet/index.html). There are many layers in each scene and each scene has a lot of symbols. I am trying to load text from a txt file dynamically into a movie clip called t_info_text1 which is also inside Symbol 82 which is a symbol of Scene 2. I can't ever manage to see the text in the compiled site. I've tried many different paths the the object and such. Is there just a trick I am missing, or scripting I am getting wrong?
Again:
Textbox instance name about_txt var about
Part of Movie Clip t_info_text1
Part of Symbol 82
Part of Scene 2
Part of SWF
in same directory on HDD is about.txt which contains the following:
&about=Some text about us
in Frame 1 of Scene 2 actionscript reads the following
loadVariables("about.txt",0);
about_txt.embedfonts = true;
I have already embedded my fonts and they work fine, If i paste the text into the textbox it will show up, but if I load it froma text file, it's no go....
What can I do?
Dynamic Text Field Clip Inside Another ?
i have a dynamic text field called tCaption. it has an instance name of tr_txtCap. i pull text out of an XML file and it works great. so now i though i might like to animate this field. so i create a new mc called tCaption_scroller. - i drag in my tCaption symbol and give it a new instance name of tr_txtCap_Scroll then i animate the field to scroll (slide) across the screen. however, the dynamic text never gets inside this clip. when i do a trace on the variable it shows that it's working - am i just not referencing this correctly?
i make my clip here:
mc_TrCap = mc_Main.attachMovie("tCaption_Scroller","TrCap",0) ;
then i update the text for it here:
mc_TrCap.tr_txtCap_Scroll.htmlText = Small_Img[CurrentImageId].XMLData.childNodes[2].firstChild.nodeValue;
i trace it here: (which works)trace(mcTrCap.tr_txtCap_Scroll.htmlText + "is what you're looking for");
if i replace the tCaption_Scroller with tCaption and then change the instance name to match the tCaption instance - it works...it just doesn't scroll
Disappearing Images Inside A Dynamic Movie Clip
when i am trying to alter properties of a movieClip that was dynmically created the clip sometimes disappears and sometimes doesn't.
I attach a movieClip from the library. when attaching this movieClip i also load an image into one of the movieClips child movieClips that were created at authortime.
The disappearig act happens when i try to change the _x and _y position and the _xscale and _yscale of the parent movieClip containing this image...
i know the movieClip is still there because i have access to the roll over properties and the clip still functions. the only thing that happens is that the image in the movieClip sometimes disappears and sometimes doesn't!
does anyone know anything about this??
Setting A Text Box's Text Property That Is Inside A Duplicated Movie Clip?
How do you set a text box's property that is inside a dynamically duplicated movie clip?
for instance:
I have several duplicated movie clips (mc1, mc2, mc3, etc...) which were duplicated off a movie clip named "mc" and I was wondering how you set a text box's property that is inside one of those duplicated movie clips.
I don't know how many of these movie clips there are, or I would just use a for() or while() loop.
I hope I've explained this clearly, but I think I just confused everybody.
Furry
Load Text From Text File, INSIDE A Movie Clip...
Hi, I'm making this website, and I want to have a news section on it, and therefore I have to load some text from an external text file. This works fine when I try it out in a new, blank movie, but on my page, I have to have the whole Text Field inside an MC, and this is where it all goes wrong....
Nothing shows up at all when I do exactly the same in the MC as I do on the mainstage...
I don't blame u if you didn't understand what I was talking about
Hope someone has an answer!!
Thomas
Scrollable Text Inside Of A Movie Clip
I have several movie clips that im using as part of a webpage im making.. in the movie clip the text is setup to read a .txt file. well the text will appear but the scrolling arrows will not work. im not sure if there is something in the trigger codes im not specifing right or in the button itself... can someone help me...
Jonathan
Scrollable Text Inside A Movie Clip?
I would like someone to try to break apart my code and perhaps tell me if I am doing something wrong.
I have a movie clip dragable window and I want to place a scrollable text block inside this window, but I does not seem to be working????
Could it be that the movie clips inside the widnow movie clip are not allowed to work???
I am utterly confused????
Perhaps if I could send my fla. to someone, you could tell me what is wrong???
Thanks.
Wetsocks
Input Text Inside A Movie Clip
i've got input text fields that are inside movie clips, but user input into those boxes does not come through in the form mail (all input boxes OUTSIDE of movie clips come through fine).
is this a known problem with flash? does anyone have a work-around?
Scrolling Text Inside Movie Clip
I'm having a problem with using scrolling text inside of movie clips. A series of five buttons will make visible it's own movie clip when pushed. Each movie clip has a masked text field and an up and down button. The problem is that I'll get one movie clip to pop-up and work, but then the next one I open will either load with the text out of place or the buttons won't work. I'm a beginner and at a loss.
Can anyone help? Let me know if you need more info. Thanks.
Input Text Inside A Movie Clip
I have a form (sort of like a test for students) that students need to complete and send to the teacher for grading.
The input text fields are inside a movie clip, because it is a long form and requires scrolling to complete the entire thing.
The problem is...once the input text fields are inside a movie clip, Flash stops sending the data to the server (when i test a field oustide the mc, it works fine).
Anyone know what I'm doing wrong, a work-around, or another way I can accomplish this???
[F8] Having Trouble With Dynbamic Text Inside A Movie Clip
hello all - i have a main stage where on the first frame my "home" movie clip displays. i did this by dragging/dropping, and then i put a stop action. all works fine.
inside this home movie clip on the main stage, there are links to other movie clips. for example, to get to my faq's page - you click that button, then it takes you to frame 4 on my main stage, where my faq's movie clip (followed by stop action) has been dragged/dropped and displays properly.
within the faq's movie clip this process is repeated, with buttons taking to you various pages (different frames where different movie clips play - all works fine).
so now i want to add a dynamic text field within my faq's movie clip. i have read numerous tutorials where i have created the text file but i have not been able to display it with success within my faqs movie clip.
here is some code that my dvd tutorial instructs me to place on main stage as i practice getting this to work:
var myMCL:MovieClipLoader = new MovieClipLoader ();
var myListener:Object = new Object();
myMCL.addListener(myListener);
var myLV:LoadVars = new LoadVars();
myLV.onLoad = function (success:Boolean) {
if (success) {
_level5.loadedInfo.htmlText = myLV.info;
} else {
_level5.loadedInfo.text = "There has been an error loading the requested information. Please contact the webmaster.";
}
}
and here is some code that i place on the faqs button within my main movie clip that takes me back to main stage and plays faq movie clip all successfully:
on (release) {
//Movieclip GotoAndPlay Behavior
_root.gotoAndPlay("4");
//End Behavior
}
and finally, here is some code that i place within my faqs movie clip in an attempt to display my dynamic text within the faqs movie clip - so far unsuccessful:
_level0.myLV.load("vars/faqs.txt");
NOTE:
i have published this to view - not working.
i have my faqs text file starting as info=
i have eliminated white space within my text file
i am using flash 8 pro
can anyone offer some sugestions? thanks!
[F8] External Text Won't Load If It's Inside Movie Clip
Quote:
Originally Posted by egoldin
Hi all,
So I've searched the forums and found a few people having the exact same problem I'm having. However, none of them every got their question quite figured out, so here goes:
I have two swfs, a Master file and an About file. The About file is loaded into the master file using a MyMCL clip loader. In the about file, I want to load external text into a text box, and I've tried doing this using loadVars. The problem is, the text box is located INSIDE of a movie clip in the about file (as I want the text to appear after my animation has finished). And this makes my coding not work.
I know that it's the purely the fact that the text box is inside the movie clip that breaks the coding because I have placed a dummy text box on the About stage, and when i play master.swf I can see the text load in that box.
Here's my loadVars code located in frame 1 of master.swf:
PHP Code:
// -------- <load vars> ------ \
var myLV:LoadVars = new LoadVars();
myLV.onLoad = function (success:Boolean) {
if (success) {
_level5.loadedInfo.htmlText = myLV.info;
} else {
_level5.loadedInfo.text = "There has been an error loading the requested information.";
}
}
// -------- </load vars> ------ \
And in frame 1 of about.swf I use this to call the text:
PHP Code:
_level0.myLV.load("vars/about.txt");
I've attached my FLAs and text file.
Click on "About" in the menu. See how that one text box appears (the one that's way out of place) yet nothing else appears? The working text box has the same instance name as the other, but the other is inside of the "boxmovie" movie clip. Ideas? Help would be much appreciated. I've been pounding my head against a wall for about 2 days now. I know there are workarounds, but I really just want to figure out how to get this to work. I need to load external text so that my client can edit the text files to change text (she doesn't own Flash). I think the problem might have to do with the code being read before the instance actually exists (because the code is in frame 1), but I've tried moving the code to frames 20 and 23, and it still doesn't work.
Thank you SO much for your help.
- Evan
Hi all,
I'm sorry if this is subject posted twice. I spent 20 minutes writing the original post, posted it (or so i thought) but it never apppeared. It's been an hour now, so I'm gonna post again. Here goes:
I have two swfs, a Master file and an About file. As swfs, the About file is loaded into the master swf through a movie clip loader. In the about file, I want to load external text into a text box. The problem is, when the text box is located INSIDE of a movie clip, it doesn't work. And I need it to work, because I want the text to load at certain point during the movie clip. To load the text, I use this code in frame 1 of master.swf:
PHP Code:
// -------- <load vars> ------ \
var myLV:LoadVars = new LoadVars();
myLV.onLoad = function (success:Boolean) {
if (success) {
_level5.loadedInfo.htmlText = myLV.info;
} else {
_level5.loadedInfo.text = "There has been an error loading the requested information.";
}
}
// -------- </load vars> ------ \
And in frame 1 of about.swf:
PHP Code:
_level0.myLV.load("vars/about.txt");
I have attached my FLAs and text file for you to sample. Click on "About" in the menu. See how that one text box appears (the one that's way out of place) yet nothing else appears? The working "dummy" text box has the same instance name as the other, but the other is inside of the "boxmovie" movie clip, while the dummy box is located on the About stage. Ideas? Help would be VERY much appreciated. I've been pounding my head against a wall for about 2 days now.
- Evan
<mod edit> Some posts get flagged for approval. Yours was one of them; and it's nothing personal. - gerbick (supermod)
How To Auto Scale The Movie Clip Along With Text Inside
hi guys.
how to auto scale the Movie clip along with text inside, the text which i am calling from the external ".txt" file.
my code is:-
ActionScript Code:
loadText = new LoadVars();
loadText.load("external.txt");
loadText.onLoad = function() {
menu_txt.files.text = this.name_txt;
menu_txt.files.htmlText = this.name_txt;
menu_txt.files.text = menu_txt.name_txt.length;
};
where am i rong. some body help me out from this.
Loading External Text From Inside A Movie Clip
Hi, I'm having a little problem loading external text from a button inside a movie clip, I'm pretty sure it has something to do with my paths...the code for external text loading is the one I got from one of the tutorial in this site (chris99022 ). Anyway, I attach the source code. I'd appreciate any help. Thank you.
Arggh, I can't attach it coz my file's too big. Well, the code is :
ActionScript Code:
on (release) { loadText = new loadVars(); loadText.load("TEXT1.txt"); loadText.onLoad = function(success) { if (success) { // trace(success); newsBox.html = true; newsBox.htmlText = this.myNews; } };}
How should I modify it so the path points to the textfield that's on the main scene?
Loading External Text From Inside A Movie Clip
Hi, I'm having a little problem loading external text from a button inside a movie clip, I'm pretty sure it has something to do with my paths...the code for external text loading is the one I got from one of the tutorial in this site (chris99022 ). Anyway, I attach the source code. I'd appreciate any help. Thank you.
Arggh, I can't attach it coz my file's too big. Well, the code is :
ActionScript Code:
on (release) { loadText = new loadVars(); loadText.load("TEXT1.txt"); loadText.onLoad = function(success) { if (success) { // trace(success); newsBox.html = true; newsBox.htmlText = this.myNews; } };}
How should I modify it so the path points to the textfield that's on the main scene?
Reading A Text File From Inside A Movie Clip.
hey guys,
im making a hit counter in flash and im able to load the text file into a movie clip, but i have another movie clip that loads the movie clip with the counter in it, the counter works fine but after i load the movie clip threw the preloader mocie clip it no longer works.
im using this code to load the text file
Code:
var lv:LoadVars = new LoadVars();
lv.onData = function(text:String) {
hit.text = text;
}
lv.load("hit_count.txt");
any help greatly appreciated
thanks in advance
Using A Movie Clip Inside A Movie Clip To Start A Frame Of An MC Inside A Movie Clip
Situation:
I have a movie clip inside a movie clip with a button inside of it.
This button on release goes to a different movie clip(svideo) in a different frame on the maintime. This movie clip has a movie clip(portfolio) inside of it.
Okay: I use an absolute path on the aforementioned button
on release
_root.svideo.portfolio.gotoAndPlay(60);
But, for some reason Flash won't go to frame 60 of the portfolio movie clip that is inside of the svideo.
I have tried numerous variations on reaching frame 60 of portfolio. Like going to the maintime line and going to the portfolio MC. Also, portfolio and svideo are the instance names and not the name of the actual movie clip.
If anybody could help, I would appreciate it. Thanks.
Dynamic Text Inside A Movie Symbol
I'm having a problem with dynamic input text...
For some reason i cannot get the text [[being inputted from an external text file]] to display within a movie symbol...
If the text box is left in the root stage it loads/displays just fine, however, the second i put it within the movie clip it refuses to display...
Dynamic Text Box Inside Movie Instance
Hello and thanks for looking!
My issue is that i have this movie inside my flash file with a dynamic text box in it. i have named the text box in the Var section as "Question"
and the movie has an instance name of button1
so my question is to change the text inside that instance named "button1" i would do something like this right?
_root.button1.question = "Hello World";
i also tried
_root.button1.question.text = "Hello World";
but that doesnt work . any suggestions?
Thanks!!
~Peter
Images In Dynamic Text Box ... Inside A Movie
I've searched through other posts as well as my hangover will allow, and I don't think anyone has addressed this issue yet. My problem is that I've got some dynamic text boxes embedded in movie clips (converted to symbol) in order to alpha fade them on the time line. This works great, except when I have an image in the text box. It seem that by including an <img> tag, and then having that dynamic text inside a movie, the whole thing crashes.
Has anyone seen this before or know a workaround? I want to be able to update my little portfolio diary with pictures and not have to play a transition movie over the text which is what I'm doing on my current site. If this has been discussed before, my apologies. Otherwise, any help is much appreciated.
Problems With Dynamic Text Inside Movie Clips
Hi there..
seems to be on going problems for me with dynamic text in flash.Anyways does anyone know why im getting the following problem..what may i be doing wrong???:
I want to use dynamic font and am using it inside a movie clip..then when i test movie i cannot see any text at all, it dissapears!
Then when i change the text back to static it works fine...
Can anyone please help me with this annoying problem....
Many thanks!!
Chris
Help Please.. Having Trouble With Accessing A Dynamic Text Box, Inside A Movie
am trying to access a dynamic text field that is in a movie which is contained in an array.
My code looks something like this
movies = new Array();
// add1, add2, etc are the instance names of the movies
movies[0] = add1;
movies[1] = add2;
movies[2] = add3;
movies[3] = add4;
movies[4] = add5;
/*inside of the movie addtest (add1 - add5 are all instances of this same movie) I have a dynamic textfield called number1. How do I access this field in order to change it?
I have created an array that I would like to put the text from the fields in.*/
num1 = new Array();
for (i=0; i < 5; i++)
{
num1[i] = _root.movies[i].number1;
}
is this right? If not how would I go about doing this??
Any help would be appreciated.
Dynamic Text Within Dynamic Movie Clip Loops
Ok my predicament. I am trying to create thumbnails, but instead of using pictures as the thumbnails I would like to have text, formatted blah blah for people to select. Now the code I am trying to adapt is fine and dandy to get working with pictures, so I know the part of this code that creates the movie clip is fine. However I cannot seem to dynamically create the text boxes within the movie clips. I need to have them within the movie clips so the opacity will change when they are hovered over.
Code:
currentName = "t"+k
thumbnail_mc.createEmptyMovieClip(currentName, thumbnail_mc.getNextHighestDepth());
thumbnail_mc.currentName.createTextField("text"+cu rrentName, thumbnail_mc.currentName.getNextHighestDepth(), 0, 0, 244, 28)
thumbnail_mc.currentName.text="test"
k will be changing anyway for each time through taht a movie clip is made hence why they will need different names.
Any help...hope this can be understood.
Button Inside Movie Clip Inside Scrollpane Doesn't Work In Xml
This is sorta odd but I'm hoping somewhat easy to fix. This is in AS2 and is the last problem I have in a very small project of mine.
I have button called button01 inside a movieclip called movieclip01 which is the contentPath for a scrollpane called scrollpane01. I'd like the button to work, and depending on the code it will work in the normal .swf but won't when I embed my movie into xml.
If I put the code inside movieclip01
button01.onRelease=function(){
_root.gotoAndPlay("Frame Name");
}
It will work when I test it but not in the XML. So what I want to do is go to the main timeline where the scrollpane is and write the code there. That is where I'm stuck.
I've tried scrollpane01.movieclip01.button01 and tried movieclip01.button01 and also tried scrollpane01.button01. Just for giggles I also tried scrollpane01.movieclip01 but none of that works
Last night I had a similar problem with buttons inside a movieclip that was on the root stage. They worked in the swf but not when I embedded the file - so I found this which worked (typed in the root stage)
movieclip01.button01.onRelease=function(){
How To Add Text To A Dynamic Text Feidl In A Movie Clip Added Through Actionscript?
ok I've never been able to get this to work so I've always just found a way around it. But I really need to get this to work in this project.
I need to get dynamic text to change in a movie clip Where you are adding the movie clip through actionscript (its not on the stage, you are adding to trhough createEmptyMovieClip). I can change dnamic text in a movieclip that is already onthe stage and thats usually how I get around this, but I really need to add it through createEmptyMovieClip this time.
The follow doesn't seem to work and I've searched everywhere all they all say this is how you do it but I can't get it to work...
///////////////////////////////////////////////////////////
//create an Empty movie clip
var CountLayer:MovieClip = home.createEmptyMovieClip('CountLayer', 5);
//add the movie clip to the empty movie clip just created
CountLayer.attachMovie('ScoreCount_mc', 'ScoreCount_mc', 0, {_x:400, _y:400});
//test variable
var test:Number;
test = 0;
//Add text to the dynamic text in the movie clip
ScoreCount_mc.Score_txt.text = test.toString();
////////////////////////////////////////////////////////////////////
The above never seems to add anything to the dynamic text feild. So if anyone know whats going on here or the right way to do it please help.
Thanks.
Can't Seem To Get The Paths Correct When It's Occuring Inside A Movie Clip Inside
main movie on _level0, navigation loads into _level1, icon is dragged and dropped loading another samples.swf into _level2.
drag and drop works fine running outside of main movie but not inside main movie. i'm assuming i've messed up paths.
i tried to include the code (twice now) but it keeps cutting off my message.
it's an action on a button inside a movie clip inside a movie loaded into _level1. it needs to reference a movie clip on the main timeline of the _level1 movie. what would the path be?
Behavior On Buttons Inside A Movie Clip Inside A Button.
I would like t create an animated button with menu inside, how do i do it.
something like on here http://www.demarchelier.net
hidden menu on left side (contents) but on flash. I have flash 8. any tutorial that explain how to do that ?
Show Text In Dynamic Text Box (nested Movie Clip)
can someone please help me look in my file.. i stuck here 1 day already..
i wan the dynamic text box fill in the number when i click on the button. And the value is keep increasing by 1 once i click the button.
the nested movie clip is as folo,
mc_A-->mc_B-->txtnumber
the button is in the mc_B..
please help me... thanks..
Movie Clip Buttons Nested Inside Movie Clip Dont Work
Hi people!
im having a problem here.
in my first frame i have a movie clip named "menu_mc".
i have this AS for this movie:
Code:
this.menu_mc.onRollOver = function() {
menu_mc.gotoAndPlay(8);
}
this.menu_mc.onRollOut = function() {
menu_mc.gotoAndStop(7);
}
thats working ok, the menu_mc plays on rollover from frame 8 till frame 12 where stops.
On frame 12 (this is inside the menu_mc movie clip) i have another movie clip, named button1_mc.
and also i have AS controling that MC:
Code:
this.button1_mc.onRelease = function() {
getURL("index.htm", "_self");
}
The problem is that when i rollOver on menu_mc it work fine and the button1 appears, the problem is when i try to click button1...
doesnt work.
the swf you can see it on www.wt.com.mx/menu.swf
can anybody help me please?
what im doing wrong?
or what other ideas can you give me so i can make that work.
thanks!
Dynamic Text In Dynamic Movie Clip
I'm having a horrible time referencing the text variable in my dynamically created movie clip. What am I missing?
PHP Code:
// CONSTANTS
TotalRubs = "3";
RubWidth = getProperty("Rub", _width);
//
Label1 = "REPUTATION";
Label2 = "QUALITY";
Label3 = "INNOVATION";
//
//
// DUPLICATION
n = 0;
while (n<Number(TotalRubs)) {
n = n+1;
duplicateMovieClip("Rub", "rub"+n, n*10);
newrub = "rub"+n;
if (n == 1) {
setProperty("rub"+n, _x, getProperty("rub", _x));
} else {
setProperty("rub"+n, _x, getProperty("rub"+(n-1), _x)+RubWidth);
}
_root.newrub.label = eval("label"+n);
}
setProperty("Rub", _visible, "0");
Tween Inside A Button Inside A Movie Clip
Say I have 3 squares, from left to right, blue, red, yellow. The 3 squares together are a MC that move from off the stage on right, across the stage to line up on the left. Now say I want to make the left blue square a button so that when you roll over it, it has a orange frame and then when you press down on it it dims, and a larger version of it shows up above it. how would I do this? What i've done so far is made a button inside the MC, then on the down state of the button made a graphic button for the blue square, but it doesn't stay dimmed, and I don't even know how to make the larger blue square appear.
Is this too confusing?
please help.
thanks
Load A Movie Inside Blank Clip From Inside Itself?
Hi,
I am working on a site and I have a blank movie clip called contents. I have a button that when clicked, loads a swf (2.swf)inside of it. then I have a button in 2.swf, when clicked, I want it to load a swf in contents (the same movie clip that it was loaded into). I have tried using _root. and _parent. infront of the loadmovie code, but those aren't working. What code would I use to do this?
Thanks, Matt
Using Dynamic Text In A Movie Clip
I have a movie clip that i have dynamic text setup in reading from a text file with scrolling arrows on the side... Well the text will show up but it wont scroll... Is there any programming stuff I need to do besides what you do when its on the base page...
Any help would be great
The arrows have
on (press) {
tellTarget ("uptrigger") {
gotoAndPlay (2);
}
}
on (release, releaseOutside) {
tellTarget ("uptrigger") {
gotoAndStop (1);
}
}
and the down arrow is the same but with downtrigger...
please help!!!
Jonathan
Dynamic Text In A Movie Clip
I can successfully pull in an external text file's contents as long as the dynamic text field and the loadVariablesNum action are in the root timeline. How can I get it to work within a movie clip within the main timeline? The scenario is - a text bubble appears with dynamic text in it. I need to be able to contain the dynamic text design within the text bubble movie clip, but currently nothing shows up.
Thanks in advance for any help.
Dynamic Text Into Movie Clip
Using Flash 5, I've created dynamic text (named "text1") into a movie clip (instance named "movie1") on the main timeline. What is the correct syntax when passing the variable in the html?
I know when the dynamic text is on the main time line (not in a movie clip) it is:
EMBED src="Movie.swf?text1=XYZ"
Dynamic Text Within Movie Clip
Hi,
I'm trying to figure out how to reference a text variable that's within a movieclip (I want to reuse the movie clip numerous times, while changing some of the text within it).
I can't seem to address text variables inside movie clips (I've tried _root _parent _global, most everything I can think of). Seems like it should be straightforward but once I try to reference it in a movie clip, no go.
I've seen other people with the same problem, but haven't found a thread with an answer yet.
Thanks,
Maria
Movie Clip And Dynamic Text
hi everyone..
let's say i have a movie clip that fades a dynamic textfield in, and then out...
tween:
fades in..... then fades out...
and then i would like to change the text in the dynamic field after it fades out.. because i'd like it to tween again, using new text.
help!
Dynamic Text In Movie Clip
Hello:
I have playing with flash mx for some time now and have created a somewhat amateur site with it. My ? is, can I put an external a dynamic text field using the scrollbar feature in a movie clip? I did the tutorials that came with flash and took a beginners course in flash in a local college, but didn't cover this.
One of my pages has too much text to fit in one of the pages, so the scroll feature would be great, if I could only figure it out.
Thanks
PS. is this considered a "newbie" ?
Dynamic Text In A Movie Clip?
I had a flash movie which used dynamic text boxes. As the project has expanded i moved these boxes into a movie clip. Now the text doesn't load.
I used
loadVariablesNum("Dave.txt",0);
text box instance name 'Dave" Var content.
|