Dynamic Text Disappears When Using LoadMovie
The problem:
Dynamic text is not displayed in an swf that is loaded, using loadMovie, into a movieClip located on the stage. The trace statements say that the data has been loaded, but it is not being displayed. The dynamic text is visible when the swf is viewed on its own and not loaded into a movieClip inside another movie. Does anyone have any idea why this is happening and/or know how to remedy it?
Thanks,
Michelle
FlashKit > Flash Help > Flash ActionScript
Posted on: 10-21-2004, 04:48 PM
View Complete Forum Thread with Replies
Sponsored Links:
Dynamic Text Disappears
Hi, I'm have a bit of a problem. I got dynamic text to work (I'm a newbie at actionscript) but for some reason it disappears as soon as I take my mouse off the button. Here is what I have so far.
On the button I have this action:
on (release) {
_level0.NewMovieText = "HOME";
gotoAndPlay (125);
}
At frame 125 I have an MC named NewMovie with a dynamic text field in it with the var set to NewMovieDisplay. I also have the actions on frame 125 set to this:
NewMovie.NewMovieDisplay = _level0.NewMovieText;
I'm not sure what I'm doing wrong but I need the text to stay in the field. thanks for the help in advance.
View Replies !
View Related
Dynamic Text Disappears...
Hello,
I have a dynamic text window which loads a text from a text file just fine into a dynamic text field:
myLoadVar = new LoadVars ();
myLoadVar.load("update.txt");
myLoadVar.onLoad = function (success){
if (success == true) {
update.htmlText=myLoadVar.myText;
}
}
I have put this textwindow in a movie so it can fade in nicely, but now it loads the text and after that I see:
"_level0.instance10.update" in the window and the line that was loaded is gone, what am I doing wrong?
View Replies !
View Related
Dynamic Text Disappears
hi everyone,
i'm using a scrollbar component and have been having quite a bit of trouble.
my file consists of a dynamic text box (that is connected to the scrollbar component) that is linked to an external .txt document. everything works fine when i test it on my computer, but when i upload it to the web, the text disappears.
you can see what is happening at the URL below. the area under the white rectangle on the right is supposed to contain text.
i think it has something to do with the paths, but i've tried everything i know (including changing all the _root.'s to this.'s) and i'm in desperate need of some help.
thanks in advance!
rachel
http://www.ernidesigns.com/portfolio_beta_3.html
View Replies !
View Related
Dynamic Text Disappears?
Hi,
My problem is this one :
I created a dynamic text, and I embeded the font.
the eddets work, but when I try to change the text MyDynamic.text="hello world"
, the text do not appear!
I would like to know how can be resolved this problem.
thanks!
View Replies !
View Related
Dynamic Text Disappears
Here's my scenario. I have an .swf that has dynamic text within it. The text shows fine on preview. The problem arises when I load that .swf into a base movie. The text disappears. I have scoured through my code and checked the location of external files and can't understand why this is happening. Can someone help me?
View Replies !
View Related
Dynamic Text Disappears
Using this technique:
var textVar:LoadVars = new LoadVars();
textVar.load("about.txt");
textVar.onLoad = function() {
_global.dyn1 = (textVar.headline);
_global.dyn2 = (textVar.details);
my_mc.dyntxt.html = false;
my_mc.dyntxt.htmlText = dyn1+" "+dyn2;
};
The dynamic text populates just fine. But when I click on the text field an embed the fonts, this stops working???
Anyone know why embedding fonts makes dynamic text disappear? Any way to avoid this...
I want to skew dynamic text, which is why it needs to be embedded.
View Replies !
View Related
When I Rotate A Dynamic Text Object, The Text Disappears At Runtime
Can someone explain why the text of a dynamic text object disappears at runtime when rotated?
It happened when I rotated a MovieClip object via actionscript that contained a dynamic text object. So, to test whether this happens all the time, I created a movie clip again with a dynamic text object in it, populated the dynamic text object with a single letter, and rotated it by hand and ran the movie - the letter disappeared.
LOL in a happy, rare accident, I discovered the answer myself. Page 432 of the Flash 8 Actionscript Bible says, "Aside from just allowing text to look the way you want it to look, embedded fonts actually enable your Textfield objects to do some things they wouldn't otherwise do. For example ... a TextField object that uses device fonts (nonembedded fonts) cannot be rotated nor can you change the alpha. But once you embed the font, you can do both of these things."
Alright - now to embed that sucker...
How: (for dynamic or input text objects) clicking the Embed button in the Property inspector.
Note, this will increase the size of your swf. Just embedding the lowercase and uppercase letters from a-z of one font increased the swf filesize from 3-9KB.
View Replies !
View Related
Dynamic Text Field Disappears
i have a button that triggers all the stuff below.
for some reason when i mouse over my dynamically created textField all the text except for the first line disappears.
anyone know why?
on (release) {
if (Math.floor(_root.bgClip._x) == 1604 && _root.bdudeContent._alpha>=100) {
_root.bdudeContent._visible = false;
_root.tinyMC.gotoAndStop(1);
_root.attachMovie("bdudeStage", "bdudeStage1", 1);
_root.bdudestage1._yScale = 1;
_root.bdudeStage1._x = 400;
_root.bdudeStage1._y = 190;
_root.bdudeStage1._alpha = 80;
_root.bdudestage1.onEnterFrame = function() {
if (_root.bdudestage1._yScale<100) {
_root.bdudestage1._yScale += 5;
}
if(_root.bdudeStage1._yScale == 101 && (Math.floor(_root.bgClip._x)==1604)) {
_root.bdudeStage1.createTextField("myText", 1, -40, -140, 350, 400);
_root.bdudeStage1.myText.text = "This is my dynamic text. But, for some reason when i mouseover the text area the all the text except for the first line disappears. WTF is wrong with it?This is my dynamic text. But, for some reason when i mouseover the text area the all the text except for the first line disappears. WTF is wrong with it?";
_root.bdudeStage1.myText.autoSize = "left"
_root.bdudeStage1.myText.textColor = 0xFFFFFF
_root.bdudeStage1.myText.wordWrap = true;
_root.bdudeStage1.myText.selectable = true;
_root.bdudeStage1.myText.swapDepths(1);
}else{
_root.myText.removeTextField();
}
}
}
}
View Replies !
View Related
Embedded Dynamic Text Disappears
I have spent hours searching the forums for a solution, and I haven't found this exact problem.
I have some text in a dynamically loaded movieclip. The text is also dynamic, it has to be because I make changes to it as the program runs. If I try to embed the font no text shows up when I run the movie. If I choose "None" in the character embedding options the text shows up, but is jagged and ugly. I would really like to be able to embed the font, because I am not sure that everyone has this font and I am using Chinese characters. Has anyone found a solution to this problem? I saw an earlier post about this, but no solution was posted.
I am using Flash MX, and the fonts I have tried are MS Song, MS PMincho and various others. Even good old Arial doesn't work when I try to embed it.
View Replies !
View Related
Dynamic Text In Movie Disappears
hi everyone,
i'm using dynamic text in a site i'm working on. it works fine, save when i try to nest it in a movie, and the text disappears. it's happening in a couple of places, but a good example is when you try and nest the text box in the scrolling area of the scrollpane component.
any thoughts would be much appreciated.
thanks!
rachel
View Replies !
View Related
[F8] Dynamic Text Disappears On Rollover
I'm attaching a 2 frame MC to my main movie, using basic button code to jump to the states on rollover.
// menu items
this.attachMovie("subMenu", "subMenu1a", 5,{_x:0, _y:100, _alpha:100});
// button code
subMenu1a.onRollOver= function ()
{
this.gotoAndStop(2);
};
subMenu1a.onRollOut = function ()
{
this.gotoAndStop(1);
};
my problem is that the dynamic textfield in the attached MC is fed by XML data, it loads in on the inital load of the page, but if i roll over the button using the above code the text data disappears??
//my XML that loads the menu item text
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
mainTitle = [];
menuTitle = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
mainTitle[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
menuTitle[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
}
firstImage();
} else {
content = "file not loaded!";
}
}
function firstImage() {
if (loaded == filesize) {
var imgUrl:String = image[p];
myMCL.loadClip(imgUrl, img_mc);
txtLayer.desc_txt.text = description[0];
txtLayer.title_txt.text = mainTitle[0];
subMenu1a.menu_txt.text = menuTitle[0];
mg_mc_num();
}
}
View Replies !
View Related
Dynamic Text Disappears When I Add A Keyframe
I have to assume I am doing something horribly wrong here, but I am new at this and was having problems with dynamic text disappearing so to create a simple example I have two layers (actions, text). In the actions layer I have:
Code:
myText_txt.text = "This is a String";
...and on the text layer I have a dynamic text box with an instance name "myText_txt".
I set the timeline to 40 frames and placed a keyframe at frame 20. How come when the movie hits frame 20 the dynamic text disappears? The text field doesn't change, why does the variable get reset?
Thanks
View Replies !
View Related
Dynamic Text Disappears After Masking
hey
I'm trying to make a nav menu and I am using a mask, I have dynamic text boxes which will offer descriptions of the various button. The problem is that when i run the swf the dynamic text simply does not appear
You can find the fla attached, thanks..
View Replies !
View Related
Dynamic Text Disappears Because Of .multiline
Hi! I have a dynamic textfield that gets data from an php array. It works fine but only when multiline is set to false but i need <br /> and <p> to format the text but if i set multiline to true the text disappears completly. Has anybody an explanation for this?
best regards
recorder
View Replies !
View Related
Dynamic Text Disappears When Containing MC Is Rotated
i have a square Movie Clip that has an instance name 'mc'
Code:
var t:MovieClip
t = mc.createEmptyMovieClip("TextContainer", 0);
t.createTextField("someText", 100, 0,0,0,0);
t.someText.autoSize = "left";
t.someText.text = "Artist rendering, final results may vary";
//mc._rotation = 5;
now if i remove the commets on the rotation, the whole text is gone...
anyone knows why this happens?
View Replies !
View Related
Dynamic Text Disappears On SetNewTextFormat()
I have a dynamic text box and I need to re-format it. But it just won work. I can do it fine with all the oether text boxes in my movie - just not this particular one. The only difference is that the ones that work are created dynamically at run-time, whereas the one that doesn't work is inside another .SWF that is loaded in. I can sometimes change the colour but that's it.
Anyone know what might cause this?
Here is the code that is NOT working...
actionscript Code:
Original
- actionscript Code
_root.header_mc.title_anim.titleTextClip.title_text.embedFonts = true;
_root.header_mc.title_anim.titleTextClip.title_text.html = false;
_root.header_mc.title_anim.titleTextClip.title_text.border = true;
_root.header_mc.title_anim.titleTextClip.title_text.borderColor = 0xFF0000;
var t_fmt:TextFormat = new TextFormat();
t_fmt.bold = true;
t_fmt.color = _root.ConfigObj.configs.pages.page[current_page].title_colour.data;
t_fmt.font = "Arial-20";
t_fmt.size = 20;
_root.header_mc.title_anim.titleTextClip.title_text.setNewTextFormat(t_fmt);
_root.header_mc.title_anim.titleTextClip.title_text.embedFonts = true; _root.header_mc.title_anim.titleTextClip.title_text.html = false; _root.header_mc.title_anim.titleTextClip.title_text.border = true;_root.header_mc.title_anim.titleTextClip.title_text.borderColor = 0xFF0000; var t_fmt:TextFormat = new TextFormat(); t_fmt.bold = true; t_fmt.color = _root.ConfigObj.configs.pages.page[current_page].title_colour.data; t_fmt.font = "Arial-20"; t_fmt.size = 20; _root.header_mc.title_anim.titleTextClip.title_text.setNewTextFormat(t_fmt);
... and this code DOES work:
actionscript Code:
Original
- actionscript Code
var pageTextBox:TextField = textClip.createTextField("text"+textNum, textClip.getNextHighestDepth(), xpos, ypos, text_width, 100);
textClip.cacheAsBitmap = true;
pageTextBox.embedFonts = true;
pageTextBox.html = false;
pageTextBox.multiline = true;
pageTextBox.autoSize = _root.ConfigObj.configs.pages.page[textNum].text_align.data;
pageTextBox.wordWrap = true;
var my_fmt:TextFormat = new TextFormat();
my_fmt.color = _root.ConfigObj.configs.pages.page[textNum].text_colour.data;
if (_root.ConfigObj.configs.pages.page[textNum].text_font.data != "Alias" and _root.ConfigObj.configs.pages.page[textNum].text_font.data != "Business")
{
my_fmt.font = _root.ConfigObj.configs.pages.page[textNum].text_font.data + "-20";
}
else
{
my_fmt.font = _root.ConfigObj.configs.pages.page[textNum].text_font.data;
}
my_fmt.size = _root.ConfigObj.configs.pages.page[textNum].text_size.data;
my_fmt.align = _root.ConfigObj.configs.pages.page[textNum].text_align.data;
pageTextBox.setNewTextFormat(my_fmt);
var pageTextBox:TextField = textClip.createTextField("text"+textNum, textClip.getNextHighestDepth(), xpos, ypos, text_width, 100); textClip.cacheAsBitmap = true; pageTextBox.embedFonts = true;pageTextBox.html = false;pageTextBox.multiline = true;pageTextBox.autoSize = _root.ConfigObj.configs.pages.page[textNum].text_align.data;pageTextBox.wordWrap = true; var my_fmt:TextFormat = new TextFormat(); my_fmt.color = _root.ConfigObj.configs.pages.page[textNum].text_colour.data; if (_root.ConfigObj.configs.pages.page[textNum].text_font.data != "Alias" and _root.ConfigObj.configs.pages.page[textNum].text_font.data != "Business"){ my_fmt.font = _root.ConfigObj.configs.pages.page[textNum].text_font.data + "-20";}else{ my_fmt.font = _root.ConfigObj.configs.pages.page[textNum].text_font.data;} my_fmt.size = _root.ConfigObj.configs.pages.page[textNum].text_size.data;my_fmt.align = _root.ConfigObj.configs.pages.page[textNum].text_align.data; pageTextBox.setNewTextFormat(my_fmt);
View Replies !
View Related
When I Rotate My Dynamic Text Field, The Text Disappears Please Help
Hi,
Thanks for reading this.
I have created a dynamic text field with custom scrollbars and it all works but when I rotate the text field to fit into the background I have, the text disappears when I test the movie.
Does anyone know how this can be prevented or know if I'm doing anything wrong?
I've uploaded my .fla here.
Please can someone have a look and tell me where I'm going wrong!?
Thank you very much and I hope to hear from you.
Take care,
Mark
View Replies !
View Related
Dynamic Textbox Just Disappears When Text Is Changed
I'm having a huge problem, I got the actionscipted dynamic textbox to display the text I want, but you could only see it when using trace();. When the text changes, the box just disappears and the depths don't change. Its very odd how it just disappears. It shouldn't be doing that, it should just display the text.
The mx 2004 and mx versions of the file are attached.
Thanks in advance.
View Replies !
View Related
Embedded Dynamic Text Magically Disappears
I'm running into a problem with embedding fonts for dynamic text fields:
Everything is in the same typeface at the same size, but some text fields are bold and others are not.
When I only had the bold fields embedded, they showed up correctly in Flash Player. Now that all fields are embedded, some of the bold fields just don't appear.
I'm baffled. Is it only possible to embed one?
View Replies !
View Related
[CS3] Dynamic Text Disappears When Moved With Code
Hi
Got an annoying problem. I'm using dynamic text and I want to keep it centered no matter how much text is there, so want to add some code to move it on the y axis after the text gets changed. everything's working fine except when i change the y value (or the x for that matter), the text vanishes completely. I'm not masking it at all, have embedded my font, it's working fine as long as I don't try and move it with code. Can anyone help as this is not making sense to me! Here's my code:
Code:
toolTip.toolTipText.tf.autoSize = TextFieldAutoSize.CENTER;
toolTip.toolTipText.tf.text = toolTipArray[section];
toolTip.toolTipText.y = toolTip.toolTipText.y +1;
Thanks!! Emma.
View Replies !
View Related
Dynamic Text Disappears When Changed By Actionscript?
He I have a simply little dynamic text box inside a movie clip. Any when I use actionscript to change the text it disappears, yet when I trace the text it displays the correct text as if it did change.
my movie clip is mainBar with a textbox called titleTxt.
Keep in mind that the trace at the top works correctly when I call the function with different variables (click on about button and it returns the about string. Then click on the services and it returns the services string.
Code:
switch (subsection) {
case "intro" :
_root.mainBar.titleTxt.text = "INTRODUCING US";
_global.curHeader = subsection;
break;
case "about" :
_root.mainBar.titleTxt.text = "ABOUT US";
_global.curHeader = subsection;
break;
case "services" :
mainBar.titleTxt.text = "SERVICES WE OFFER";
_global.curHeader = subsection;
break;
case "clients" :
mainBar.titleTxt.text = "OUR CLIENTELE";
_global.curHeader = subsection;
break;
case "careers" :
mainBar.titleTxt.text = "CAREERS WITH US";
_global.curHeader = subsection;
break;
case "contacts" :
mainBar.titleTxt.text = "CONTACT US";
_global.curHeader = subsection;
break;
default :
trace("**switchHeaderBar can't find: " + subsection);
}
trace(_root.mainBar.titleTxt.text);
View Replies !
View Related
Dynamic Text Disappears When Timeline Loops
I am creating a virtual stock market-like board which loops users information across the screen within movieclips. I dynamically assign the text with actionscript. The text shows up fine the first time through. Any further passes show the text's original non-dynamic content. ( text I have in it on the stage). It seems to lose the dynamic content when the timeline loops. Anyone able to help me?
Thanks,
L
View Replies !
View Related
Dynamic Text Under Mask Disappears When Tweening
Hi all,
I'm sure this has been asked in some way or another a couple of times before, and usually the first response seems to be..."are your fonts embedded?"
Yes, they are. I am using a couple of different tweening classes (it happens with all of them). Basically what I'm doing is a simple sliding in and sliding out animation via the x and y properties of a movieclip. It only happens to a few movieclips, but some (not all) of my dynamic textfields disappear when doing this. When I click in the area that they are supposed to be, it magically appears. I have even tried creating the masks dynamically to stop the bug with no luck. It is very sporadic, but does anyone know/have experience with how to solve this problem?
Any help would be appreciated...
View Replies !
View Related
Dynamic Text Disappears In External Movies
Hi folks,
I'm loading an external .swf (say, a calculator) that contains a number of dynamic text fields that are assigned values within the external .swf. When I view the .swf on it's own, it works fine. However, when I load the .swf into another movie, all of the text fields lose their values.
Could anyone explain why this is and how to fix it?
Thanks!
-joe
View Replies !
View Related
Load Movie And Dynamic Text Disappears...what The?
i dont understand. I have a swf which the dynamic text works perfect on. I use the loadMovie and load in the swf with the text, and the text doesnt appear. Can anyone help. beanie dude
goto the link to see the thingo..press enter and goto characters...
(please ignore the silly voice and my noobiness at flash)
View Replies !
View Related
Text Disappears In Dynamic Text Box
I created scrolling text using a dynamic text box, as long as the text box and actionscript is directly on the main stage, it works. However; if I build the scrolling text in a movie clip and put the movie clip on the main stage, the text disappears in the dynamic text box. any way to prevent this?
View Replies !
View Related
Actionscript Disappears On Loadmovie
hi there,
I have a A.fla file in which I load an external B.swf into a postion/goal (empty movie clip) but when I publish it, all the actionscript like _root.omarueck._x=_root.omarueck._x+38; of the A.swf is gone!!
To load the B.swf into a position like '2' is useless, because once the A.fla itself is published, it will loaded into another C.fla file (the carrier)
Since I do not want to recreate all the moves in tweens - what shall I do?
thanks - angielina
View Replies !
View Related
Button Sound Disappears With LoadMovie
howdy!
i am not too good at actionscripting, just getting started and i run into this problem.
i have a button that has a rollover effect. it gets larger and smaller with the mouse moving over it. it does not have true button states. i added a real button within this pseudo button to add sound when in the "over" state. and this works fine, until i add actions to the main pseudo button to load a movie.
>>>>here is the rollover effect action script within the pseudo button
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.nextFrame();
} else {
this.prevFrame();
}
}
>>>>here is where the problem starts.....
on (release) {
unloadMovie("books.swf");
unloadMovie("comics.swf");
unloadMovie("design.swf");
unloadMovie("web.swf");
unloadMovie("contact.swf");
unloadMovie("home.swf");
loadMovie("home.swf", "_root.boo");
}
with this amount of code added, the button sound disappears.
on the other two buttons, the "books and "comics" the sound works fine, because it doesn't yet have the load or unloadMovie commands, which i guess is the problem since it works fine before thay are added.
here is the address of the problem:
http://www.omnicomics.com/test
any ideas?
thx,
justin
View Replies !
View Related
Main Scrollbar Disappears When Loadmovie
I have a main flash file with a few pages (w/scrollbars) but most of my content is loaded through external swfs (w/scrollbars). The main scrollbar works fine, until I use loadMovie. then when I return to the main scrollbar it has vanished. The scrollbars in the external swfs continue to work fine though. I have changed the instance name of the main scrollbar and textfield so that they are unique, but that didn't help. The scrollbar is the MX component.
The site is at www.micahmorgan.com
the affected page is resume
View Replies !
View Related
Main Scrollbar Disappears When Loadmovie
I have a main flash file with a few pages (w/scrollbars) but most of my content is loaded through external swfs (w/scrollbars). The main scrollbar works fine, until I use loadMovie. then when I return to the main scrollbar it has vanished. The scrollbars in the external swfs continue to work fine though. I have changed the instance name of the main scrollbar and textfield so that they are unique, but that didn't help. The scrollbar is the MX component.
The site is at www.micahmorgan.com
the affected page is resume
View Replies !
View Related
Tooltip Dynamic Text Box "disappears"
ok... normally i wouldnt even ask questions in here for something like this but for some reason i am completely oblivious to what is going on...
i have a tooltip that pops up in a container (which works fine) but the dynamic text box which displays the "tip" is not showing up even with the fonts embedded and correct variables , etc... it was working fine before but for some reason it has now disappeared... i changed the textbox to static text just to see if i can see it and it works... so other than embedding the font, any ideas for me to try out before posting fla? thanks in advance...
View Replies !
View Related
Tooltip Dynamic Text Box "disappears"
ok... normally i wouldnt even ask questions in here for something like this but for some reason i am completely oblivious to what is going on...
i have a tooltip that pops up in a container (which works fine) but the dynamic text box which displays the "tip" is not showing up even with the fonts embedded and correct variables , etc... it was working fine before but for some reason it has now disappeared... i changed the textbox to static text just to see if i can see it and it works... so other than embedding the font, any ideas for me to try out before posting fla? thanks in advance...
View Replies !
View Related
Using LoadMovie With Dynamic Text
Can someone show me an example of how to do a loadMovie with the target being located in the text of a dynamic text file which was loaded with loadVariablesNum like so:
loadVariablesNum("./fscommand/img.dat", 0);
loadMovie(imgText, imgMov);
the dynamic text looks like:
C:\WINDOWS\Desktop\Matt\caricature.jpg
View Replies !
View Related
Loadmovie() And Dynamic Text PLEASE HELP
Hi there,
I have had this problem for a while and no one has helped me properly b4.
After example.swf loads 5361-1.swf the dynamic text from 5361.swf dissapears??? im lost as to why???
please look at the fla's attached
MUCH APPRECIATED!!!
Cheers Adam.
example.fla
5361-1.fla
View Replies !
View Related
LoadMovie + Dynamic Text
Ok,
This is on Flash MX
I am working on an online TV show that displays my sports simulations. My Main SWF is a TV that has a basic menu. We will call this moviea. When a channel is selected, that channel is loaded as a separate swf file we wil call movieb.
MovieB is loaded into a movieclip with instancename "screen";.
Now in movie b, i start to give the weather forcast and want to display some random variables for temperature, wind etc. So I have dynamic text boxes. Because i want to fade them in and out, that is saved in a local movie clip in Movie B. I have given this movieclip instance name weatheroverlay.
Now i have tried accessing the variable by every name and its mother and i cnat seem to get the blasted text boxes to display. According to the debugger the values have been saved(see below), but they just arent showing up. Among the names ive tried are:
_root.screen.weatheroverlay.temp=
_root.screen.weatheroverlay.temp.text=
_root.screen.weatheroverlay.temp.value=
_level0.screen.weatheroverlay.temp=
_level0.screen.weatheroverlay.temp.text=
_level0.screen.weatheroverlay.temp.value=
_level0.weatheroverlay.temp=
_level0.weatheroverlay.temp.text=
_level0.weatheroverlay.temp.value=
_level1.weatheroverlay.temp=
_level1.weatheroverlay.temp.text=
_level1.weatheroverlay.temp.value=
Ive checked all the obv stuff like my text color being the right color etc... The text box has the variable name temp.
When i set them to the following, the show up in the debugger:
var temp = random(40)+40;
_level0.screen.weatheroverlay.temp=_root.screen.te mp+" F";
This is what the debugger shows:
Variable _level0.screen.weatheroverlay.temp = "70 F"
Variable _level0.screen.weatheroverlay.precip = "60%"
Edit Text: Target="_level0.screen.weatheroverlay.temp"
variable = "temp",
text = "70 F",
htmlText = "70 F",
html = false, textWidth = 93, textHeight = 27, maxChars = null,
borderColor = 0x000000, backgroundColor = 0xFFFFFF, textColor = 0xFFFFFF, border = false,
background = false, wordWrap = false, password = false, multiline = false,
selectable = true, scroll = 1, hscroll = 0, maxscroll = 1,
maxhscroll = 0, bottomScroll = 1,
type = "dynamic",
embedFonts = false, restrict = null, length = 4, tabIndex = undefined,
autoSize = "none",
condenseWhite = false
But alas no text, any help would be greatly appreciated.
I will note i have the SWFs in different directories, ive heard rumors that could be a no no, but im not going to jarble them all up until i hear otherwise, and everything but the dynamic text works great.
Rob
View Replies !
View Related
Loadmovie() With Dynamic Text PLEASE HELP ME
Hi there.
Really annoyed with this now!
Example.swf loads 5361-1.swf ~ OK but dynamic text from 5361-1.swf doesnt appear
but does appear when 5361-1.swf is loaded on its own
WHY???
please look at the .fla's
I HAVE TRIED EMBEDDING MY FONTS!!!
example.fla
5361.fla
(sorry wouldnt upload within actionscript.org)
View Replies !
View Related
Dynamic Text To LoadMovie
Flame away!
Is it possible to use the loadMovie function using dynamic text, instead of using an object; like a button?
If so please point me in the right direction.
I have searched the forum and google with not much joy, perhaps I'm using the wrong query/terminology?
View Replies !
View Related
LoadMovie + Dynamic Text = No Fun
I followed http://www.kirupa.com/developer/mx/...amictextbox.htm and it works fine, but I only want the text to come up in certain parts of a movieclip that is brought in using loadMovie using gotoAndPlays. But the text doesn't show up if the dynamic text box doesn't start on frame 1 of that moveclip.
thx
View Replies !
View Related
Dynamic Text To LoadMovie
Flame away!
Is it possible to use the loadMovie function using dynamic text, instead of using an object; like a button?
If so please point me in the right direction.
I have searched the forum and google with not much joy, perhaps I'm using the wrong query/terminology?
View Replies !
View Related
Using LoadMovie And Dynamic Text...
I made a dynammic scrolled text box and this works fine, now my problem
I made this text box for my news section (news.swf) which i load in my main movie (main.swf) with LoadMovie.
The news.swf itself works fine but, if i put it online it doesn't work...
Can anyone help me out??
here's the action for the dynamic scrolled text box...
loadText = new loadVars();
loadText.load("links.txt");
// creating the loadVarsText function
loadText.onLoad = function() {
scroller.text = this.links;
scroller.html = true;
scroller.htmlText = this.links;
};
Thanx in advance...
Andreas
View Replies !
View Related
Dynamic Text Problem With LoadMovie
On the Stage of my main movie, I have a button called "News" whose action is to load a movie called "news.swf" to a loadTarget. This part is working fine.
The movie "news.swf" consists of a single frame. On the Stage of this movie is a dynamic text box, which calls a .txt file.
When I test "news.swf" on its own, it works fine. It calls the .txt file, and all the HTML formatting works. But when I test my main movie, and click the news button, it load "news.swf" (I can see the text field appear) but the text itself doesn't appear.
What am I doing wrong?
View Replies !
View Related
LoadMovie With Dynamic Text Field
Ok, this may be a little difficult to explain. I have a movie ('main.swf') that when you click a button in there, it calls a loadMovie('secondary.swf'). In secondary.swf, there is a dynamic text field that displays fine on its own, but when I load the secondary.swf into the main.swf, the dynamic text does not load with it! Any thoughts?
View Replies !
View Related
Target Dynamic Text Box From LoadMovie SWF?
I have a template that loads SWFs from the main timeline. When you click a nav button or next and back buttons, each loads a SWF into level 2 and automatically updates the dynamic text box assigned var pageNumber.
I need to use a button on a loaded SWF to update the dynamic text box on the main timeline. My code unloads the SWF and loads a new SWF -is working. My pageNumber will not update. I have tried adding _parent to everything. I'm missing something . . . somewhere . . .
Here's what I have on the SWF button.
on (release) {
_parent.unloadMovieNum(2);
if (_parent.obj2strt<>0) {
movieNumber = 2;
loadMovieNum("page_"+movieNumber+".swf", 2);
pageNumber = "";
pageNumber = movieNumber+" of "+pageNumberOf;
trace(pageNumber);
}
}
"obj2strt" is identified as 2 on main timeline, which = 2.
I tried just telling it movieNumber = 2, which works.
If you need my .fla, I will attach.
Much Thanks!
Ed
View Replies !
View Related
LoadMovie Swf With Dynamic Text Into MC Not Working
Here's the layout:
The main screen has 2 buttons that are supposed to target a single empty movieclip (instance name "content") and load a specified swf.
actions for the main screen:
PHP Code:
loadMovie("welcome.swf","_root.content");
actions for the Events button:
PHP Code:
on (release) {
loadMovie("events.swf","_root.content");
}
actions for the Welcome button:
PHP Code:
on (release) {
loadMovie("welcome.swf","_root.content");
}
both welcome.swf and events.swf are just a dynamic text box w/ scrolling functionality. For some reason, no matter what button you press it keeps the movieclip w/ the same welcome.swf, though it does blink, as though it's loading. When welcome.swf was a static textbox and welcome.swf was a dynamic textbox, the switch worked fine. Now it doesn't want to. I've also tried telling it to unloadMovie("_root.content"); and it clears it. Anyone know WHY it's not loading!?
View Replies !
View Related
Loadmovie/dynamic Text Problem
I know there have been several posts about this problem, but I still haven't been able to figure it out. I've spent hours on this, and any help would be greatly appreciated.
Basically, I'm working with an active search list that I found in the tutorials on this site, and the dynamic text won't show up when I use the loadmovie command to load it into an empty container clip on the main stage.
Every post I've seen about this mentions embedding the fonts, but for whatever reason that hasn't worked for me (I'm probably not doing it correctly).
I'm attaching a simplified version of what I'm actually working on called "load.fla" and the active search list "search.fla".
I'm so frustrated. Please help me if you can.
Thanks.
View Replies !
View Related
LoadMovie & Dynamic Text Problem
I did a search in the forums to find a solution to my problem but didn't have any luck. I found one thread that was kind of related, but not exactly:
http://www.flashkit.com/board/showth... ext+loadmovie
OK, here's the situation...
I have my main flash movie, let's call it "main.swf", and it is broken up into sections. Each section is an individual swf that is loaded into a Movie Clip place holder in main.swf using the loadMovie command.
One of the sections, let's call it "section1.swf", has Dynamic Text boxes with scroll bars into which external text files are loaded.
When I publish section1.swf, the external text appears just fine and it scrolls perfectly. When I publish main.swf, section1.swf loads up but the Dynamic Text is no longer visible. The other static text, the background, and the scroll bars are there but the text is not. The scroll bars even indicate that there is content within the text box (you can scroll up and down) yet nothing is visible or selectable (cannot highlight the invisible text—as if it were a color issue).
Does anyone recognize this or know of problems when loading an external text file into a swf and then loading that swf into another swf? Any help would be appreciated. Thanks and have a great day.
View Replies !
View Related
Dynamic Text Does Not Load Using LoadMovie
I am having a very frustrating problem and I am praying someone can help me out...I am using loadMovie() to load a swf file named about.swf that contains some dynamic text that imports text from a file called about.txt. The about.swf file contains the following actionscript to import the text:
loadVariablesNum("about.txt", 0);
By itself about.swf works perfectly, however, when I load it into another file called DADC.swf using the actionscript:
loadMovie("about.swf","clip2");
You can check out the web site to get a better idea of what I'm trying to do:
http://www.dadcstudentcouncil.com and click on Members and About us
These are the individual swf files i am loading into the main:
"Members" http://dadcstudentcouncil.com/about.swf
"About Us" http://dadcstudentcouncil.com/xml_pg_final.swf
Click on the "members" and "about us" both of which have the dynamic text that isnt showing up.
Thank you for your help. I really need it!!
Here is all the relevant actionsript I used:
/* Loading the images in their appropriate Movie Clips */
loadMovie("main.swf","clip1");
loadMovie("about.swf","clip2");
loadMovie("xml_pg_final.swf","clip3");
loadMovie("","clip4");
loadMovie("","clip5");
loadMovie("","clip6");
/* Setting the x and y position of Movie Clips in which images are loaded */
setProperty("clip1",_x,_root.imagewidth*1);
setProperty("clip1",_y,0);
setProperty("clip2",_x,_root.imagewidth*2);
setProperty("clip2",_y,0);
setProperty("clip3",_x,_root.imagewidth*3);
setProperty("clip3",_y,0);
setProperty("clip4",_x,_root.imagewidth*4);
setProperty("clip4",_y,0);
setProperty("clip5",_x,_root.imagewidth*5);
setProperty("clip5",_y,0);
// _root.imagewidth defines the width of the image//
_root.imagewidth = -680;
// _root.speed defines the speed of the sliding images//
_root.speed = 3;
/* _root.trig.xposnew defines the x position of the
sliding images */
_root.trig.xposnew = -(_root.imagewidth);
// About us Button
but1.onPress = function() {
_root.trig.xposnew = -(_root.imagewidth);
};
// Products Button
but2.onPress = function() {
_root.trig.xposnew = -((_root.imagewidth)*2);
};
// Services Button
but3.onPress = function() {
_root.trig.xposnew = -((_root.imagewidth)*3);
};
// Clients Button
but4.onPress = function() {
_root.trig.xposnew = -((_root.imagewidth)*4);
};
// Contact Us Button
but5.onPress = function() {
_root.trig.xposnew = -((_root.imagewidth)*5);
};
but6.onPress = function() {
_root.trig.xposnew = -((_root.imagewidth)*6);
};
stop();
View Replies !
View Related
|