Dyncamic Text Not Working - Can Trace Value
Hi, The following code works fine except for the damn dynamic text component. The trace(encrypted); outputs correctly, so the value is there (it's 17 btw), but encrypted.text = encrypted; does nothing to a dynamic text field on the stage with that instance name. All elements on are sitting in one frame at the root so I can't imaging that there are targeting issues. What could it be?
Code:
submit_btn.onPress = function() { var send:LoadVars = new LoadVars; var receive:LoadVars = new LoadVars; send.toPHP = input.text; receive.onLoad = function() { encrypted = this.toFlash; trace(encrypted); encrypted.text = encrypted; }
send.sendAndLoad("mypath.php",receive,"POST"); //end of submit brackets };
DevShed > Flash Help
Posted on: March 9th, 2008, 04:42 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Trace Not Working... ?
I am trying to use the Trace() feature in Flash MX 2004 Pro but its not working for me.
This is what I am doing...
• Create new project
• File > Publish Settings > Omit Trace Actions
• Added this to first frame: Trace("It Works!");
• Opened Output Window
• Published in Flash
Shouldnt this print "It Works!" in the output window? Its not...
Thanks
Trace Not Working?
I'm updating some old code (actionscript 1) to flash 8 and trying to run traces to find how everything links. but trace won't run. any ideas of what could be wrong. theres not a way to turn trace off is there? i can't even get trace to work from frame 1
Trace Not Working ?
For some strange reason Flash stopped returning trace results (Actionscript 2.0)
Any idea what could cause this? The movie doesn't look like it stopped. Is there anything that would conflict with a trace? And actually will I'm asking about traces...is there a way to make the results of a trace into a new variable? As in PHP were you can echo the result of a query or use something like:
while(list($varible) = mysql_fetch_row($result)){
$this = "$varible";
Is there an actionscript method like this?
AIR Trace Not Working In Air/cs3
Hi,
This may be something obvious but after installing adobe air, trace no longer works to my output window.
I've checked the publish settings and 'omit traces' is unchecked.
Anybody else have any ideas?
Trace Not Working
Hey all.. I'm trying to do some quick debugging, and I'm not able to get the trace() function to work. I'm using flash 9 on a mac with AS 2.
The rest of my actionscript seems to work except I'm also having a problem testing my mouse position.. when I create new files everything works fine... any thoughts?
Trace Action Not Working
Is there any basic reason why Trace would not work anymore?
I ususally use Trace a lot in my coding to see what's happening, but I can't get it to come up at all anymore. Could there be something turned off that's not allowing it to show results?
Trace( ) Command Not Working?
I've got no idea how I screwed it up.
The "omit trace actions" is not checked.
I deleted the pref files like like someone said on a previous post.
Even a simple trace(hello) in a otherwise entirely blank document wont work.
What the heck is my problem? Thanks.
Trace() Action Not Working?
Allright, I posted a week or so ago and couldn't get it working then either. Since then I've replaced my hard drive and operating system and upgraded to MX 2004. The d@mn thing still dont work.
The "omit trace actions" is not checked.
Even a simple trace("hello"); in a otherwise entirely blank document wont work. I've attached a test file.
What the heck is my problem? Thanks.
Trace Function Not Working
everytime i use a trace fucntion, i areas I know work, as I have tested via other means, the trace fails to show in the output window!
anyone else ever have this problem?
Trace Function Not Working
I am trying some very simple code and I can't get it to work. To debug, I tried using the trace function and that doesn't even work! I opened a new doc, I added it to an old doc, but nothing seems to work!
Code sample
var myNum:Number;
pic_btn.onRelease = function () {
gotoAndPlay(2);
myNum = 0;
trace(myNum);
}
contact_btn.onRelease = function () {
gotoAndPlay(2);
myNum = 1;
trace(myNum);
}
The gotoAndPlay works but the variable doesn't get set and the trace function does not fire. What am I missing. Please help if you can!
Thanks,
Roachmoe
[F8] [AS2] Trace Function Not Working
Guys, here's the hell thing:
I have two flas, with two different movieClips that extends differents Classes.
The first .fla loads the second: just like Default.fla load catalog.fla
all the functions are working just Ok, but... on the movieclip at catalog.fla, the class dont show ANY trace, eventhough it runs into all the functions.
I have even created a dinamic textfield and in the constructor function of the class I set some text and it did it, just well... what proves my functions are all working, but from any hellish reason I cant see ANY trace, so I just am not able to debug this damn class.
Could someone help me? please.
trying to be a little more expecific:
I have default.fla who has a movieClip called main. Main is a Class who extends Controller class.
And I have catalog.fla who has a movieClip called photos. Photos is a Class who extends Remote class.
so photos runs inside main. all the actions are ok, but It just stop showing me the traces of ONLY the Photos Class!
My Trace Function Not Working
hi i am trying to trace "newcolor" but its not working
_root.clr10.onRelease = function () {
newcolor = "w10"
}
function objDrop2()
{
var _loc3 = this.newgrid1.attachMovie(newcolor, "obj" + String(objCountx), objCountx);
trace(this.newgrid1[newcolor]._name);
}
Trace Statement Not Working
OK I have no idea whats going on, I can't get anything to work properly right now. I'm kinda new to this so If i'm missing something obvious please forgive me.
In an effort to simplify things I wrote the most basic script I could and it is NOT working,,, by that I mean I'm not getting the "trace statement" I'm not getting any errors either...
Here is the code I have PLEASE HELP !
(I have an FLA File named "landingPage" and an AS file named "main" the AS is in a sub folder named 'src' and the document class for "landingPage" is "src.main". All I want here is a simple trace statement to make sure I am starting on the right foot.....)
ActionScript Code:
package src
{
import flash.display.MovieClip;
public class main extends MovieClip
{
public function Main()
{
trace("working");
}
}
}
Trace Is Not Working Anymore
stange, i'm using the trace function, it was working in the begining of my project, and now, nothing to show , is there a limit in the trace actions ? or something like that ? if i'm creating a new project, the trace function is working perfectly..
Trace Command Is Not Working
Hi,
I've a flash movie for an interactive map. There are around 400 lines of code for that. The code is written by some other person. But now I've to change the corordinates of a moving object. So I tried to trace the current value by using trace (); It doesn't show anything. Even if it's an undefined value it should display in the output pannel. I just wonder why this command is not working.
I'm sure that there is a value is being passed on this. Any help will really appreciable.
Trace Is Not Working Anymore
stange, i'm using the trace function, it was working in the begining of my project, and now, nothing to show , is there a limit in the trace actions ? or something like that ? if i'm creating a new project, the trace function is working perfectly..
Trace Command Is Not Working?
hey all I am trying to place a name into a varible on a press command but for some odd reason its not doing it? go any ideas
on (press) {
_root.marker_mc._x = -1277;
_root.running = true;
_root.section = brave;
trace("_root.section");
trace(_root.section);
}
where ever that button is pressed the trace says the varible in undefined. I have the first as an expression so I can track what varible I am tracing. thanks US.
x4design
The heart never speaks but you must listen to it to know it.
Trace() Command Stopped Working
I have noticed every so often the trace() command doesn't work with certain .fla files. Now I have a project where the trace() command was working, but now it does not work. I am talking about work at all. I probably have 100 times that I use trace() in my .fla Any suggestions?
Trace Not Working In Package Class
Hi All
I am new to as3 and wrote my first package/class. It all works great but I am trying to expand the functionality but need the trace to work in the class so I can see if things are happening. However it never trace anything. I know the class works as it draws the square but cant figure out why trace would not work. the class is used via import and not document class.
Trace Statement Not Working In Document Class
Hi,
I am new to actionscript and just like some of you, I would like to start off on the right foot. After several attempts to solve this problem I am now taking a break and reaching out to those in the community. I have created a .as file named Main.as and the code inside main.as is:
package
{
import flash.display.MovieClip;
public class Main extends MovieClip{
public function Main()
{
trace("This code works..");
}
}
}
then i created a new fla file and named it testas. I then typed Main in the Document class under properties.
The code has no errors and when I attempt to test the movie, there is no output to the output panel..
Can anyone please help or explain to me why this is happening??? Thank you...
Trace And Interval Not Working In Prototype Code Of Loaded Movie
I've got a movie that is pausing and then fading-out when the movie ends. This is being done (thanks to the excellent advice from clbeech) by
1) modifying the MovieClips prototype and adding a fade() method
2) calling that method in the last frame (after saying "stop" of course)
It's all working splendidly.
Now, I'm using the MovieClipLoader class to load that standalone movie into a "loader movie". Basically the loader loads a bunch of movies sequentially and relies on the fade-out embedded within the loaded movie to make a nice transition to the next one in line.
The problem I'm having is two-fold:
1) The pause-before-fade-out method works great when the movie is played within the "loader" but fails when the movie is loaded into another via the MovieClipLoader. The fade works but the pause (the interval) seems to be ignored.
2) Trace statements in the fade prototype function work fine in standalone mode, they cease working when the movie is loaded into another via the MovieClipLoader. The function is definitely getting called (the fade begins) but I don't see the trace statements. Trace statements in the other "normal" frame code of the loaded movie appear fine, just not the trace statements in the custom prototype function.
Code is attached...
NOTE: the loader movie isn't actually fully working yet, that part is code-in-progress. But it works well enough to demonstrate the problems above. I still have to figure out how to signal the next movie to start as the fade-out of the last one begins (I'm thinking I'll define a global and call that in the loaded movie when it initiates its fade out). I certainly wouldn't mind advice/guidance on the loader-portion of things, too, particularly if what I'm doing seem really wonky.
Thanks!
- Gary
P.S. Using AS2 and Flash 8 publish settings.
[flash 8]Adapting 'Auto Trace Mouse' Script To Perfom 'Atuo Trace Object'
Hello everyone..
I am new to flash and I am hoping the good people of this forum will help.
I have this sript for auto tracing a mouse position (got from this site) but i would like intead of trcing the mouse...to get it to trace a random moving object from another script!
mouse script:
createEmptyMovieClip("Line",1);
Line.lineStyle(1,0x000000,100);
onMouseDown = function ()
{
Line.moveTo(_xmouse, _ymouse);
onMouseMove = function ()
{ Line.lineTo(_xmouse, _ymouse);}
}
onMouseUp=function()
{
onMouseMove=null;
}
Random moving object:
loops = 0;
_root.target_x = Math.random()*450;
_root.target_y = Math.random()*300;
_root.xdiv = (_root.target_x-_root.circle._x)/20;
_root.ydiv = (_root.target_y-_root.circle._y)/20;
loops++;
_root.circle._x += _root.xdiv;
_root.circle._y += _root.ydiv;
loops++;
_root.circle._x += _root.xdiv;
_root.circle._y += _root.ydiv;
if (loops<20) {
gotoAndPlay(2);
} else {
gotoAndPlay(1);
}
I guess there is a way I can do this or it can be done...? Help will be much appreciated.
Thankz
Input Text Trace Gives All Text Formatting
a friend of mine has this weird problem w/ an input text field box. They type in a number, say 33, then trace the content and they get all the formatting, not just 33.
<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="_sans" SIZE="15"
COLOR="#000000" LETTERSPACING="0" KERNING="1">33</FONT></P></TEXTFORMAT>
I can't repro the issue and I don't have their code.
My question is 2 part:
1 - what are they doing to get all that formatting? Sounds like it could be useful if you wanted to mess w/ it on purpose ...
and
2 - how do they turn it off?
Cannot Trace LoadVariables From Text File
on frame 1: _root.loadVariables("numPics.txt")
on stage: dynamic text with var called "text"
my external text file contains...
text=33
when i publish the dynamic text show 33. good!
but i can't trace it?
trace(total)//i get undefined
trace(parseInt(total))//i get Nan
so how do i trace? because dynamice text does show the correct value from the text file. Thanks
raskol
Redirect Trace() Output To A Text Box
I have a flash app that works fine in local testing, but fails to load dynamic data when live on a site if I use the javascript method to get around the "click to activate issue"
What I would like to do is to direct all the trace output to a textbox so I can test it in situ. Is this possible in AS2? I know there is the import flash.util.trace for AS3, but I use XP64 so AS3 won't install as it tells me I dont have XP.
I am basically looking for an onTrace type event. I know it's a long shot :)
many thanks,
ben.
Trace(_root.dyn_txtbox.text)
Hi!!
I've been working with flash since a long time ago, but I got this stupid problem I never had before.
I want to get the text of a text box, that has been converted into a button. If I put this simple code on another button:
on(release){
trace(button.textbox.text)
}
nothing shows up (undefined does).
of course if i have simply the textbox and i put:
on(release){
trace(textbox.text)
}
it worxx
Do I have to use getProperty() ?? Or what? I really need this.
Thanks in advance
Using Dynamic Text Fields To Trace
I know there is a simple explanation for this, but I don't completely understand the text object yet.
Anyway, how would I use a dynamic text field to monitor the value of a variable. For example, say I wanted to have a dynamic text field that was a readout of _xmouse or something. I guess that there'd be some kind of enterFrame function on the text field or something, but I'm not sure where the instance and variable comes in. Anyone got the solution?
-Aaron
Text Field Only Updates When Trace Is Called?
Hey Guys,
I'm working on project on flash 2004 pro and i have noticed something very weird and this is not the first time it has happened. When i'm using the code below...
Code:
this["slider"+id].rightT.tf.autoSize = "center";
this["slider"+id].rightT.tf.wordWrap = true;
this["slider"+id].rightT.tf.selectable = false;
this["slider"+id].rightT.tf.html = true;
//
this["slider"+id].rightT.tf.htmlText = txt;
//
trace("H:"+this["slider"+id].rightT.tf._height);
The height of the text field does not update unless i call the trace of on the text fields height. Why is that?
Thanks,
Najam D.
Trace Function Output To Text Field?
How do you send the output of a function to a dynamic text field on the stage instead of the output panel?
I have used trace(); but that just sends the value to the output panel.
Any help would be greatly appreciated.
Best Regards.
Edited: 02/26/2007 at 02:18:24 PM by Opaque17
Is 0.48 Restricted In Flash, When We Trace It From Input Text Box?
Hi...
I have a query....
I used a input text box with instance name "a". And i have to compare the value given by the user and proceed to next step.
But when i give "0.48" and compare it, i'm not able to proceed. my answer should be "0.48" only.
but when i declare a variable called "b" and give it the value "0.48" and comparing it, I get positive result.
I want to know why is it not taking from the input text box?
It would be great if any one could help me in this.
Thank you,
Sri...
Trace Function Output To Text Field?
How do you send the output of a function to a dynamic text field on the stage instead of the output panel?
I have used trace(); but that just sends the value to the output panel.
Any help would be greatly appreciated.
Best Regards.
Edited: 02/26/2007 at 02:18:59 PM by Opaque17
Trace(input_pname.text) Doesnt Works
In my button(in a popup) action part I have
on(release)
{
trace(input_pname.text);
}
I am getting output as undefined
I have the textbox by name input_pname
What might be the reason?
Dynamic Text In Custom Component Invisible - And I Can't Check By Using 'Trace'
Hi,
I have made a custom component in Flash MX 2004, and all it has right now is two dynamic text fields whose content is defined by a variable, and a link whose url is defined by a variable also.
I enter the values for these variables in the parameters area of the properties window, but when i preview my movie, the only thing that shows correctly (i.e. has text in it) is one of the two text fields...the other is blank.
I have uploaded my fla at this address:
http://www.lucid-life.com/my_component.fla.zip
Is anyone able to see what I'm doing wrong?
It's weird...that one works and the other doesn't.
Thanks..
Cheska
Also it would seem i can't check to see if the variables are passing because the variables are the same in each instance of the custom component (or I dont know how to target the variables in each is probably more to the point)
Heeeeelp (please!!!)
Trace(""); Not Working?
For some reason my flash will not trace anything. I was wondering if there is a way to turn it on or off becuase i might have turned it off. if not i dono what it is thats going on.
thx in advance,
Flash-matic
Trace(""); Not Working?
For some reason my flash will not trace anything. I was wondering if there is a way to turn it on or off becuase i might have turned it off. if not i dono what it is thats going on.
thx in advance,
Flash-matic
Flash MX TabIndex Only Working With Text Fields, Movies And Buttons Not Working :(
hey, has anyone heard of this, is it a known bug, or am i doing something wrong?
im using the following code to tab index a page, with text fields, buttons and movies that i would like to highlight to the visitor.
arrTabIndex = new Array("butAddress", "movEmail", "txtCC", "txtTelephoneNumber", "txtMobileNumber", "txtSubject", "txtSubject", "txtRealName", "txtBody");
for (var Count = 0; Count < arrTabIndex.length; Count++) {
eval(arrTabIndex[Count]).tabIndex = Count;
//eval(arrTabIndex[Count]).tabEnabled = 1;
//eval(arrTabIndex[Count])._focusrect = 1;
}
my problem is, that if i include movie clips or buttons, the first in the series does focus and show the colored square but the tab key does not move the focus to the next object.
if i only include text fields, the tab key works as normal
is this a bug, or am i doing something wrong?
many thanks, in advance
clive
Fading Text Only Half-working (so It's Not Working At All)
Here's one for ya...I'm making some fading text. I made a movie clip of the text and did the alpha tweening and all that, and when I play the clip on-stage, it works perfectily. However, when I run a movie test, the text does not fade in but rather just suddenly appears. This is also the condition when the graphic is loaded onto a webpage. Has anyone else seen this happen before and can tell me why this is happening? Thanks.
I Can Scroll Text & Trace The Mouse Wheel But Not Move The Text With The Mouse Wheel
Can u help me scroll some loaded text with the mouse wheel?
This code is great but I just cant get the mouse wheel to scroll. I have set up the mouse wheel trace but need help from here on please
Code:
scrollmcMaxY = tmask._height-scrollmc._height;
scrollmc.onRollOver = function() {
this.gotoAndPlay("over");
if (this._y>=22 && this._y<=scrollmcMaxY-22) {
this.arrowup._visible = true;
this.arrowdown._visible = true;
} else if (this._y<22) {
this.arrowup._visible = false;
this.arrowdown._visible = true;
} else {
this.arrowup._visible = true;
this.arrowdown._visible = false;
}
// end else if
};
scrollmc.onRollOut = function() {
this.gotoAndPlay("out");
};
scrollmc.onPress = function() {
this.gotoAndPlay("press");
endy = _ymouse-this._y;
this.onMouseMove = function() {
if (_ymouse>=endy && _ymouse<=scrollmcMaxY+endy) {
this._y = _ymouse-endy;
} else if (_ymouse<endy) {
this._y = 0;
} else {
this._y = scrollmcMaxY;
}
// end else if
ratio = (chpTexteHauteur-tmask._height)/scrollmcMaxY;
this.onEnterFrame = function() {
var _loc2 = -this._y*ratio;
chpTexte._y = chpTexte._y+int(_loc2-chpTexte._y)*2.000000E-001;
};
};
};
scrollmc.onRelease = function() {
delete this.onMouseMove;
delete this.onEnterFrame;
};
scrollmc.onReleaseOutside = function() {
this.gotoAndPlay("out");
delete this.onMouseMove;
delete this.onEnterFrame;
};
var mouseListener:Object = new Object();
mouseListener.onMouseWheel = function(wheelNum:Number)
{
if (wheelNum> 0)
{
trace("towards computer");
}
else if (wheelNum< 0)
{
trace("away from computer");
}
}
Mouse.addListener(mouseListener);
Loading A Html-tagged Text File Into A Text Field...it's Just Not Working For Me...
hi,
i'm trying to load news.txt into a textfield using loadvars.
news.txt:
-----------------------------------
&news=<p font face="Verdana" size="12"><b>Recent Achievements:</b><br>Congratula etc. etc.
the as:
----------------------------------
loadnews = new LoadVars();
loadnews.load("flash/news.txt");
loadnews.onLoad = function(success) {
newstext = loadnews.news;
trace(newstext);
gotoAndStop(2);
}
the trace is showing that newstext is the text out of news.txt ... in the frame 2 that the onLoad function refers to is a textfield (multiline, with the html as true) which is supposed to display the newstext variable.
If i set newstext to something else ... eg: newstext = "some text" then it works fine ...
what's going on???
Cheers,
Ben
Dynamic Text Scroller (text Crawler?) NOT WORKING?
Hi, I am trying to make a movie that gets text from an external text file, and then scrolls it horizontally across the screen. I made a function that takes the object (movie clip with text) and moves it across the screen. it works fine except if the text is more than the width of the text field, i get this nasty trailing effect. it really sucks!
does anyone know a good way to do this? i would also like to be able to have mulitple texts, following eachother, and then looping to start over.
any info would be greatly appriciated!
-matt
Working With Dynamic Text Boxes And Text Files
I have a menu of buttons that load text files into a dynamic text box
I need a script that takes my scroll bar to the top of the page each time a new button is pushed. I am loading text files using the following script bellow.
the only way i can think at this stage of doing this is to have a seporate dynamic text box for each button. Surely there is a better way??
If this doesn't make sense let us know and i will try and reword it.
thanks
____________
loadVarsText = new loadVars();
loadVarsText.load("curriculum.txt");
// assign a function which fires when the data is loaded:
loadVarsText.onLoad = function(success) {
if (success) {
trace("done loading");
// Now that we know the data is loaded,
// set the text content of the Text Field
// with the instance name "scroller" equal to the
// contents of the variable
scroller.html = true;
// scroller the instance name of the text file enabled html true
scroller.htmlText = this.var3;
// assigning the value
} else {
trace("not loaded");
}
};
Selected Text Formation Is Not Working In Dynamic Text Box.
I have 2 textbox in my .fla.
First textbox is input textbox, where user can write text.
The other one is dynamic text box.
In dynamic text box the text comes from input text box.
i.e.:
When user will write text in input text box, this text will also appear in dynamic text box.
Everything is working fine till here.
Now, I need to add text formation buttons which will work on user selected text.
Means:
When user writes text: "This is my text", the text will appear in dynamic text box.
And when user will select text by mouse in dynamic text box and will click ”Bold” button, the selected text must be formatted.
i.e.: Suppose user has selected only "my text" words from dynamic text box and pressed the mouse button, only "my text" words must be bold.
Any one has any Idea?
Grr.. Text Buttons Using Dynamic Text Not Working
I studied this one tute, gaa I'm sorry but I can't recall who's. His suggestion for fuzzy text was to convert to dynamic (non selectable, single line, non-html). So I took the advice and presto! the text is crisp and clean and not too shabby looking. BUT...
Even though all the buttons were created exactly the same only some want to function as buttons. The ones that don't work
(a) won't function as a button period
(b) will flash the "hit" box again again as if it was a movie clip even though its not
(c) repeatedly play the sound clip to be used for the button
Also I had to switch from Verndana to Tahoma because it was cutting off the last letters of the text in the movie. (I dunno if thats relevent but still..)
I'm so annoyed! Then again.. when am I not when I'm fighting with my flash? hehe
Well I want the fonts to look crisp and clean and I still want them to function properly as buttons.
Does anyone have any idea why some of the dynamic text buttons are working and some aren't? Any better ideas?
Oh and one more questions if anyone knows.. IF I'm able to use the dynaminic text options, for clearer text, (assuming I can actually get it to work properly) do I have to use windows fonts much like I would when working with html or can I use my own nonstandard fonts?
Any help, as always, is very much appreciated. If this has already been answered in another forum I apoligize.. if you'd be so kind as to give me the linkage I'd be ever so grateful.. etc. etc.
I swear.. I love some of the things people do with flash, its really amazing, but I've been struggling for so long with simply getting my movies to work correctly.. grr.. I wonder if its all worth it trying to learn this.
Anyways.. much love and thanks..
Working With Text
I want to develop activities for children where they have to type the word that they hear into a box. Is it possible to do that using Flash.If not can anyone give me information about what product I should be using.
Many thanks
Working With Text.
I've seen some sites that were able to put clean and crisp fonts on their site. Even when the font size is small it's readable. I've tried to do the same for my flash content and it always seems to come out blurry. (Yes I have selected the Alias button)
Are there any other procedures people go through to make text visable?
Working With Text
Is there a way in actionscript to search through a block of text and extract certain sentences for example or pieces of information that match a certain criteria.
What im thinking of doing is loading in some data from an XML file and searching through to see if it contains a link and/or an URL
any ideas?
|