Continuously Display (refreshing) The X,y Positions Of The Mouse In A Textfield
Jun 5, 2003I want to be able to continuously display (refreshing) the x,y positions of the mouse in a textfield.
View 9 RepliesI want to be able to continuously display (refreshing) the x,y positions of the mouse in a textfield.
View 9 RepliesI'm looking for something similar to the click to display a textfield in the code snippet menu. I want the textfield to appear when i hover over the box and for the textfield to go away when the mouse is no longer on the box. How do I do this?
View 5 RepliesI'm using JQuery to create a button that (when clicked), removes a flash video from the page. Unfortunately, I can't simply use hide(). I must remove() because hiding doesn't stop the video in ie8 and the sound continues to play. After the video is removed I would like it to reappear when a "show video" button is clicked. I tried to accomplish this with clone() and detach()... The video appears but does not play and has missing controls in IE only. Other browsers work fine.
The video is initially added to the page using the AC_FL_RunContent() function. The issue is that when I try to add the "removed" video back to the page by calling AC_FL_RunContent( 'codebase'... The page refreshes and shows only the video. Everything else has disappeared. How can I prevent that from happening?
I have an input field with a variable that needs to be displayed within a dynamic text field. I have noticed that when I publish in Flash 8, there is a line break after the variable and I need to sentence to be continuous. This displays without the line break when I set the dynamic text field to "single line;" however, there is about a paragraph of text to be displayed so I need the text to be set to "multiline." For some odd reason, multiline displays a line break after the variable, whereas "single line" does not.
Here are my variable names -------------->>
Input Field variable name is "userName".
Dynamic text field variable name is "outputText".
The sentence to be displayed:
outputText = ""+userName+", and the sentence continues here for a paragraph and so on..."
How can I have the dynamic text field display continuously, without a line break?
I have made a colouring application. The mouse changes to a brush when the user enters a page, but I dont know how to change the brush back to a mouse when the mouse is outside the colouring canvas,so the user can click on the navigation buttons.
View 1 RepliesI need to parse and display the value for variable VALUE in xml to the screen but read from the file continuously instead of
once. The XML file is being created dynamically so its getting larger but flash only displays first value for variabel VALUE.
I'm trying to create an area that causes a menu to fade in, similar to the toolbar in Mac OSX. So when the mouse nears that area the menu pops up, I've been trying it with some code, not sure if I'm heading in the right direction.
onClipEvent (enterFrame) {
_root.top = 8;
_root.bottom = 104;
[Code]....
I'm trying to create an area that causes a menu to fade in, similar to the toolbar in Mac OSX. So when the mouse nears that area the menu pops up, I've been trying it with some code, not sure if I'm heading in the right direction.
[Code]....
A slider recognises both mouse position and also the buttons (left and right and also the buttons at the bottom) and glides/sides to the correct position area on click of the button.
View 8 Repliesmy intention: creating a sketchpad that records mouse movements so the drawing can be played back.
problem: _xmouse and _ymouse are not being saved in the array. i get an 'undefined' error when trying to read a position that should exist somewhere in the array.
code:
history = new Array();
history[0] = new Array();
history[0][0] = new Array();[code].....
my intention: creating a sketchpad that records mouse movements so the drawing can be played back. problem: _xmouse and _ymouse are not being saved in the array. i get an 'undefined' error when trying to read a position that should exist somewhere in the array.
[Code]....
I have a MC with an instance name MovieClip_1 and I create another like this:[code]So basically, what I want to know is how to nest MovieClips using code, display them, and change their positions reletive to their parent MovieClip, and not the root/stage.
View 1 Repliesis it possible for flash to detect off-stage mouse coordinates in order to continuously drag an object within its bounds while the mouse is moving outside of the stage? for example: i have a draggable red square on my stage. the stage is the bounds of the drag. if i drag the red square to the bottom of the stage and continue to drag outside of and around the stage, i'd like the red square to continue moving within it's bounds, following the mouse coordinates. currently, dragging halts as soon as i leave the stage and the red square only begins to move with the mouse coordinates if i reenter the stage bounds.
View 2 RepliesDo you ever have a question that has been asked all over the Internet...with nothing but shitty answers? This seems to be one of those questions: What's the best way to continuously scroll text while a user holds the mouse button down? (By the way, I'm not using the timeline, so don't waste your time telling me to use EVENT.ENTER_FRAME.)
View 1 RepliesI have thumbs placed on the stage. I create an empty mc to load swf. But my thumbs disappear from the stage when I test the movie ( html or swf) if I settle the _ and _y position of the empty mc.why the emptymovieclip positions affect the positions of my thumbnails?
View 2 Repliesi have a scroller developed in as2. it basically scrolls continuously in a direction until the direction of the mouse is changed. the images of course loop in the continuous scroll. now the problem is that for 10-15 photos its ok. but when i feed it with 180 photos, it seems to show only 11. why would this be? any restriction on flash ??
View 1 Repliesfound that code to display html format text to dynamic textfield in as3:
var url:String = "http://edeejay.dyndns.org:8000/currentsong?sid=1";
var loadit:URLLoader = new URLLoader();
loadit.addEventListener(Event.COMPLETE, completeHandler);
[code].....
i have this code (from another thread), which was got through the support of fellow geniuses on this forum but they showed how to put this into a textfield, which is what i want to do, but they showed how to do it before I made it display just the news feeds. So when i tryed to add what they taught me to this code BAM FAIL! So im asking one more/THE LAST TIME for the support from the forum to display this.
[Code]...
Im making a swf that makes a Tween of 3 textFields, when i export it for flash Player 10 it works right. But as soon as i export it for Flash Player 9 or play it on a machine with Flash Player 9, everything works right except the TextField, it just doesn't display but doesn't throw any error. Even the TweenEvent gets dispatched like if it had worked right.I've been debugging it and all the variables are present and with correct values. Is there an issue of TextField or Tween compatibility with Flash Player 9??, NOTE: Currently Working with CS4
ActionScript Code:
var titulos:Array=new Array();
for (var i:Number=0; i<imagenes.imagenes.length; i++)
[code]......
Does anyone know of an XML utility Class that will "auto-format" XML to display within a textField? Just looking for a down-n-dirty solution to display the entire XML tree (via xml.toXMLString()) within a textBox, but would love to find a utility that would format the XML so that it's easier to read within a textField.
Something like:
Code:
<forecast
segment="A"
day_segment="Afternoon"
day_of_week="4"
[Code]....
Is this at all possible? I'm trying to write raw XML (tags, attributes, indents and all) in a text field. The problem is that the text field is using .htmlText, for text coloring, so I cannot simply use the .text property instead. The result is that the XML tags are interpreted as HTML and subsequently only their contents are shown.
View 6 RepliesI want to display some variables(cat1, cat2 and cat3) in a textfield(content_txt).I'm using a external AS-file.
I now have this:
code: //vars instellen
//titels
[code]....
I have two 3 files - 2 files are .as and one is .fla
Animal.as
package {
import flash.text.TextField;
[code]....
I have drawn a textfield (instance name - my_Text) onto the stage. In my actions I have a variable (called 'myFrame') which is an 'int' and the value is a number drawn from an xml feed. Now when I trace the variable 'trace(myFrame)' the correct number displays into the output window. However, when I try to display this variable, using 'myText.text = myFrame', an error occurs. How do I display this integer into a textfield?
View 2 RepliesI'm using loop to create 4 textfields, and push an string array with 4 items. I can trace the correct result in output but show on the stage. [code]...
View 3 RepliesI tried to display HTML content in a text field using its htmlText property.But it is not displaying correctly.I have attached here my current output (incorrect.jpg) and how it should looks like(correct.jpg).
Here is html data
Code:
<html>
<head>
<title>CISnet - Errormessage</title>
[code]....
I have a textfield (the one that shows ammo) that doesent display all numbers. U have uploaded the swf. The code that I used to make the textfiled display some text is:
ActionScript Code:
function checkAmmo(e:Event){
var percentAmmo:Number = curAmmoInClipFirst/clipSizeWep1*100;
if (curAmmoInClipFirst >= 0){
trace(curAmmoInClipFirst);
ammoLeftBar.bar.scaleY = percentAmmo/100
} else {
Char.reloadGun();
} ammoLeftBar.ammoLeftNumber.text = curAmmoInClipFirst.toString() + " / " + clipSizeWep1.toString();
}}}
Which is triggered onEnterFrame.
I am trying to display a text field that has text inside it, and display the flashing Caret at the end of the text. I have tried the following:
Code:
// ti_title is my textField
stage.focus = ti_title;
ti_title.setSelection( ti_title.length, ti_title.length );
[code]....
The field is focused because I can type into it, but I do not see a Caret until I have started typing. This is not very good for usability.
I have even tried removing text then re-adding it and then setting the selection again, but still not working.
Is possible to display all the information in the Output folder into a textField on the stage ?
I need to debug after publishing and I can't replace each single "trace" functon.
I am putting together some revision questions for my students in algebra. If an answer to a question has an exponent (e.g. 2x^2) is there a way using a button where students can display the exponent in its correct position when they type it in.
I imagine that it may be possible to create create a button that when pressed inputs the value "2" into the correct position.