Dynamic Text Rotation
Hey guys,
I have my dynamic text boxes all lined up horizontally and the XML info. updates perfectly.
PROBLEM - I have been asked to rotate the entire presentation on to it's side. When I do this the dynamic text fields don't show anything anymore...aaarrrghhh!
How can I get the info. to keep updating but tranform the entire presentation 90 degrees clockwise?
Ultrashock Forums > Flash > Flash Professional
Posted on: 2004-08-10
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Can Set Rotation To A Dynamic Text Box In A Mc?
Well , i've an mc with a dynamic text box. It works fine normally. But if i wanted the movie clip to rotate and set some rotation to the mc the text box doesnt appears.
Can i not set rotation to an mc with text box?
suggestions thankfully welcome.
david
Dynamic Text Rotation
How I can I rotate a dynamic or input textbox? Whenever I try to do it, the textfield doesn't show up.
Am I missing something incredibly obvious?
Thanks in advance,
Dave
Dynamic Text Rotation...
I have a problem. I have a movie clip with a dynamic text box which reads out the _xmouse of the main stage. That works fine but, I want to also have another movie clip of the _ymouse which is rotated at 90 degrees. Whenever I try to rotate a dynamic text field, the text will not show up. Is there a way to do this? Anyone?
Dynamic Text Rotation
hi there.
i've got a problem... it must be some beginner thing.
i am wondering why i just can't (dynamic) rotate text by a few degrees...
actual, i can. but when i publish it, it just dissapears.... :-s
Why is did?? and is there a way to avoid the dissapearing?
many thanx for the answer.
grz.
Dynamic Text Rotation Plz Help
Hi for a new site of mine I have made a watch in flash the problem which I am facing is as follows:
for displaying the system date I have written the following code
onEnterFrame=function(){
timer = new Date();//timer is the object of the date class
date = timer.getDate();
}
now u make a dynamic text box on the stage and name its varriable as date it
will start displaying the system date now comes the problem if I try to rotate
it even a little ,infact I need a rotation of 90 degrees it simply
disappears....
Can anyone tell me why???
Dynamic Text Rotation
Is it possible to Rotate a dynamic text field and still have it show text?
Whenever ive tried it the text disappears, is this my font, or just the limitations of the field itself?
If so, are there any alternatives to have a dynamic text property on a rotation, perhaps some possibility of making it static after assigning its text property?
Rotation Of Dynamic Text
HI,
is there any solution we have for rotation of dynamic text which have device font.?.
I don't want embed font..
Thanks in advance..
- Smita.
Flash 5: Dynamic Text Rotation
Greets,
I find if I rotate a dynamic text box, it displays blank. I'm still able to store or receive the variable data, but I'm getting no visual.
What am I missing?
Rotation Of Dynamic Text Field
Is there any way to have a dynamic text field on the stage rotated at an angle (45 for example) and then populate it with text from an xml document?
Thanks.
Dynamic Text Field And Rotation
I have a dynamic text field that is contained within a movie clip. It displays fine when my movie clip has a rotation of 0. However, when I chage the rotation of the movieclip the textfield dissappears from view.
Anybody seen this before?
Dynamic Text Field & Rotation
Anyone know why when one rotates a dynamic text field say 90 degrees it ceases to display values. Seems rather peculiar.
Dynamic Text Boxes Not Showing Up When You Use .rotation?
Hi,
For one of my movie clips I'm using...
mc.rotation +=90;
...then reverting to...
mc.rotation -=90;
However, for some reason when I do this whatever content I had in the dynamic text boxes within "mc" doesn't show up. I can still do mc.scaleX and mc.scaleY transformations and the contents of the dynamic text boxes show up, but once I throw rotation in there they disappear.
Anyone know why this is happening?
Dynamic Text Rotation (Multiple Fonts)
I have a dynamic text box within a movie clip.
A combo box controls the fonts for the text using textFormat.font
I have buttons which rotate the text but the text dissappears.
It works when i embed the original font in the textbox.. but when i change the font it dissappears again.
Can somebody help me please??
Thanks
Rav
Dynamic Rotation
What I am have trouble with is rotating the the labels so that the 0 is where the 1000 (counter clockwise) is if you publish this file as is. The issue is the objects reg point is in the top left and when I rotate it it goes off the screen. The registration point needs to be in the center. I tried loading the labels in a empty movie clip from the libary with the registration point in the center but I could not get it to work. I know it needs to be centered and I can take it from there. Any help with this is greatly apperciated.
The file name is MyGauge.as
The Document Class name is MyGauge
Here is the code:
package {
import flash.display.*;
import flash.text.*;
import flash.events.*;
public class MyGauge extends Sprite {
public function MyGauge(){
drawOutterLabels();
}
public function drawOutterLabels():void {
for (var i:Number=0; i <= 10; i++) {
// Creates a new TextField showing the Psi number
var outterLabel:TextField=new TextField;
var textLabel:Number=0;
textLabel=i*100;
//innerLabel.text=i.toString();
outterLabel.text=textLabel.toString();
// Places PSI labels around the gauge face.
// The sin() and cos() functions both operate on angles in radians.
var angleInRadians:Number=i * 26 * Math.PI / 180;
// Place the label using the sin() and cos() functions to get the x,y coordinates.
// The multiplier value of 0.9 puts the labels inside the outline of the gauge face.
// The integer value at the end of the equation adjusts the label position,
// since the x,y coordinate is in the upper left corner.
outterLabel.x=178 + 0.9 * 180 * Math.sin(angleInRadians) - 5;
outterLabel.y=295 - 0.9 * 180 * Math.cos(angleInRadians) - 9;
// Formats the label text.
var tf:TextFormat=new TextFormat;
tf.font="Arial";
tf.bold="true";
tf.size=12;
outterLabel.setTextFormat(tf);
// Adds the label to the gauge face display list.
addChild(outterLabel);
}
}
}
}
3D Dynamic Rotation
I am trying to figure out the best way to approach making a simple 3D rotating panel as shown here http://www.hyundaigenesis.com/#/performance/
(see the bottom-middle panel that says 'features' and click through the numbers).
I am proficient in as2 but can work in as3 if that's the only way.
How should I approach this with AS? Any help is appreciated. Thank you!
No Dynamic Txt Rotation?
i can get a dynamic text box to appear with text in it if i rotate it at any angle, it will only show up if it is on the normal angle, is there any reason this is happening, or will it not work any other way?
[F8] Add Rotation To Dynamic Movieclips
I'm trying to create draggable, duplicate movieclips that can also be rotated. I have worked out the duplicating and the swapDepths. But, I can't seem to get the rotation to work. The selected object should rotate when the rotate button is clicked. There are currently three interactive items on the stage. Two of them can drag and swap depths. The other one can drag and can be rotated. I'm trying to get the other two to be able to rotate like the third. The difference is that the 2 are mc's and the third is a button. Check out the attached file.
peace
Rotation Of Dynamic Texts
Hello...
I included a file here called bingoball1.fla. In this file there are two bingo balls displaying numbers. They look extacly the same except one of them has static text (right side). and the other has a dynamic text (rotated). Why isn't the dynamic text displayed when I test the movie?
Thank you.
ps.. Why isn't .fla file allowed for upload in this forum, only .zip?
Dynamic Rotation Point
Is there a way to control the registration point of a movieclip with actionscript?
Or another way to rotate a movieclip with dynamic text around it center?
KD
Dynamic TextField Rotation
Hello
I have a dynamic textfield in which I am displaying the contents when a user clicks a button. Now everything is working fine and the text is being diplayed inside the textfield but If I rotate the textfield then the text does not appear at all. Any suggestions?
Dynamic Object & 3D Rotation
I'm creating a sprite dynamically and want to rotate it (using rotationY[3D]) around the center of the object.
I know you cant change the registration point of an object dynamically so is this even possible? Maybe using Matrix3D?
Dynamic Rotation Loop
I am trying to loop through a conditional and rotate movie clips dynamically. My code (that doesn't work) is the following :
function getData_Result(result) {
_root.relations_ds.dataProvider = result;
angelDiv = Number(360/_root.relations_ds.dataProvider.length);
for (g=0; g<_root.relations_ds.length; g++) {
toRotate = String(Number(angelDiv * g));
eval("_root.stem"+g+"_mc._rotation = '120'");
}
}
The problem is with the eval function.. doesn't rotate anything. I'm sure this is just a syntax error, but I can't figure out how to get it to work.
Dynamic Movie Clip Rotation
ok, say i have a movie clip of a logo of some sort, and i have a bunch of buttons
now
when the person hovers over the button, it pops up and a little line is drawn to the movie clip (might be hard to visualize)
now say there is a point on the movie clip, like this > and the lines that come from the buttons get higher and higher, so
logo
|-------| ----------- line that will appear when button hovered
|-------| -----------
|-------| -----------
|-------|> -----------
|-------| -----------
ok, so say i want the logo to rotate correctly, so that the arrow is touching the line (or almost, the logo is actually a circle)
i can't just have the logo rotate in one frame, i want it to animate, but i want it to be dynamic (it can go from any button to any other button) without making tons of labels in the movie clip (ie. one for going from button one to two, button one to three, etc)
does this make sense?
can anyone tell me how to have it rotate(and show the animation) to each of the lines?
Dynamic Image Animation/Rotation Problem
Hi,
On my homepage, www.markisr.com I have a dynamically loaded image that zooms into the page.
If you will notice the axis of rotation occurs at the top left of the image. I have had hours of work wasted trying to get the image to rotate from it's center.
My actionscript could probably be better, but after the image is loaded, it's enterframe event is called to continually make it animate until it has rotated over 720 degrees.
ActionScript Code:
onClipEvent (enterFrame)
{
i = i+20;
if (i < 721)
{
this._x = 209;
this._y = 720/i +192;
this._xscale = i/720 *100;
this._yscale = this._xscale;
this._rotation = i;
this._alpha = i/720 * 100;
}
else
{
this._x = 9;
this._y = 92;
}
}
http://www.markisr.com/frontpage/story_maker.fla ---->Here is the .fla code.... if it would be helpful to look at. If anyone has any ideas on how to make it rotate from the center, it would be greatly appreciated!!!
Text Rotation Q
Hello again, people. Just wondering if anyone could give me a formula or direct me to a resource to help me come up with a formula for calculating the per-character rotation for text on a curve.
I'm guessing I need to find the angle in this illustration I've prepared:
Text Rotation
Hi,
Just wonder how can you make text rotation.
error seem to be appear as shown in the fla file
please help
360 Text Rotation
Okay, all I want to do is have an image do a 360 spin. I've tried some stuff but it always reverses spin direction halfway through. Help?
Rotation Of Text Field With AS
I am trying to (unsuccessfully) a text field object with AS.
I have tried ._rotation but this does not seem to work.
targ.createTextField("bar_"+i, i+2, 0, 0, 0, 0);
var thisText=targ["bar_"+i];
thisText.autoSize=true;
thisText.text=_root.datastore[dataset][i][0]
thisText.setTextFormat(_root.myFormat);
thisText._y = 0;
thisText._x=w+(i*1.5*w) - thisText._width/2;//w=width of Bar
this["bar_"+i]._rotation= 90;
Any Ideas?
Thanks Matt
3D Text Rotation Hyperlink
Hi everyone,
i have created a 3D text rotation and i want to put a hyperlink to it.
There is only one catch. It is not to a url.
I have created a website with a iframe. How do i get it to open in the iframe?
Thanks for your help.
Text 90 Degrees Rotation
I want to take a letter and have it rotate 90 degrees on the horizontal axis. I don't want it to move up/down or left/right... I just want it to spin 90 degrees on its axis. I've tried the vertical and horizontal skew but that seems to move the letter and I just want it to rotate. Could you please tell me how to do it? I've turned it into a symbol already.
Much thanks
Sara
Input Text Field Rotation ?
I have a movie clip holding a form, but whenever I apply a rotation to the movie clip, all "input text" fields just don't show up in the form.. i remove the rotation and they are there... can this be solved? I don't actually need this rotation, but would be interested to see if it can be done in someway.
Blur Tween Of Text Vanishes Upon Rotation
I have a movieclip with a text property inside it ( as a child ). I applied normal blur tween to the text. It works fine. But when I try to rotate the movieclip, the result vanishes. Can someone please explain why?
Thanks in advance.
Banner Rotation And HeadLab Text Scroller Probs
Hello,
I've had a problem with a flash banner (that uses the Headlab text scroller) that has been placed on a java based rotation script.
Problem is the banner freezes. Anyone got any experience of this or know how to correct this.
I profess I know very little about java so any help would be much appreciated.
The java script is attached.
Combine Random Image Xml Rotation With Text Message
This has turned out to be easier said than done - for me at least.
I have an xml file of images I want to load on the stage in a slideshow. After every 3 random slides, I need to stop the slideshow and display a message a message on a black background, then start the slideshow again.
I have seen lots of scripts, but I don't really know how to add the message. I created this in in after effects but the file size is huge and I trying to figure out another way.
Here is the mockup:http://www.smith.edu/sandbox/flash/race2.php
It is really easy for me to do this in AE, but there is no randomness and like I said the file size is large.
I am a timeline guy, so doing this in actionscript gives me a brainfreeze despite all the tutorials I have gone thru.
Rotation Script - Smooth Rotation
I have created a speedometer and on clicking a speed, I can get the needle to rotate around to the speed clicked, using _rotation.
However, the movement is very 'jumpy' and I would like to make it smoother, or better still accelerate/decelerate.
I have tried the following
Quote:
on (release) {
rotation_speed = 0.1;
if (speedo._rotation > -40)
{
do {
rotation_speed = rotation_speed * 1.1;
speedo._rotation = speedo._rotation - rotation_speed;
} while (speedo._rotation > -40);
}
else {
do {
rotation_speed = rotation_speed * 1.1;
speedo._rotation = speedo._rotation + rotation_speed;
} while (speedo._rotation < -40);
}
}
I want to get the needle round to -40, so whilst it is greater rotate is backwards, otherwise rotate forwards, starting with a small rotation and increasing (accelerate).
I found that this was still jumpy. Trying a negative causes Flash warning about script running for too long.
Rotating forwards (else) also overshoots the end position of -40
Any ideas on how to get the needle moving smoothly and finishing on the correct spot??
Jumping To Areas Of Dynamic Text, Printing Dynamic Text
hello,
I have a movie clip that loads a .txt file into a dynamic text field. Due to the amount of content in the file a scroller bar is needed in order to view all of it. I want to create buttons that jump to different areas of the dynamic text for easier navigation so the user can go directly to various sections instead of having to use the scroller all the time. What kind of coding would I need to put on the buttons and within the .txt file at the areas I want to jump to?
Also, I would like to give the user the option to print everything within the dynamic text field only, not the surrounding elements in my movie clip. Is that possible?
thanks!
Dynamic Text Not Loading On Server . . . Other Dynamic Text Issues
ok - here's the url
http://www.rongilcreast.com/Test_Site/main.html
when I 'test movie' in Flash, the text comes in. But not now that it's online . . .
2nd problem. I want to add a scrollbar to the textbox, but when I drag the scrollbar onto the textbox, it doesn't snap-to the text box and resize itself.
all the files are here:
http://www.rongilcreast.com/Test_Site/main.fla
http://www.rongilcreast.com/Test_Site/main.swf
http://www.rongilcreast.com/Test_Site/Index.txt
whatamIdoin'wrong?
tia . . .
[AS2] Changing Text In Dynamic Text Field With Dynamic Instance Name
I dont know what I am missing here but what I want to do is change the text inside a dynamic text field via actionscript. the code I am using runs in a loop within a function. Trace is outputting the correct values.
PHP Code:
for(i=0; i<=4; i++) {
if(_root["order_"+ q][i] == 0) {
["order_"+ i]text = "First";
trace("first");
} else if (_root["order_"+ q][i] == 1) {
["order_"+ i]text = "Second";
trace("Second");
} else if (_root["order_"+ q][i] == 2) {
["order_"+ i]text = "Third";
trace("Third");
} else if (_root["order_"+ q][i] == 3) {
["order_"+ i]text = "Fourth";
trace("Fourth");
} else if (_root["order_"+ q][i] == 4) {
["order_"+ i]text = "Fifth";
trace("Fifth");
}
}
basically I want to do this -
PHP Code:
order_0.text = "First";
So how can I change this line to work as expected?
PHP Code:
["order_"+ i]text = "First";
EDIT- The instance names for the dynamic text fields are set
Thanks
Trying To Take The Text From One Dynamic Text Field And Populate Another Dynamic Text
I'm trying to take the text from one dynamic text field and populate another dynamic text field with its contents.
I want to display the text that is in the text field _root.MC_Control.tab_title in another text field called _root.video_title.
I have tried this:
_root.video_title.text = _root.MC_Control.tab_title.text;
and this:
_root.video_title.text == _root.MC_Control.tab_title.text;
neither one seems work....am I missing something?
Asfunction - How To Load Dynamic Text With Dynamic Text? [F8]
Hello dear helpers !!!
I'm trying to get external, dynamically loaded text to load different text files into a text box. I've figured out that I need asfunction to do it through calling a function in the movie and passing it variables, although i haven't been able to write this function at all... would anyone mind giving me a hand???
thanks sooo much!!
p.s. I've managed to get this working by creating a toggle function, so at the moment I have 25 text boxes and a show/ hide function, but that's very buggy.
Loaded Text File Wont Show All Of The Text In Dynamic Text Field
When I load an external text file into flash and display the string in a dynamic text box, not all of the text will show in the text box; and using scroll button to scroll the text doesnt help.
The text that is in the text file is as follows, and as far as I can see there is no reason why all this text shouldnt show in the dynamic text field; by the way all my targets are correct, I know that for fact.
message=Code: Cheat:
BEEPSAGONER Deactivate the censor beeps
DRACULASTEABAGS 50 lives
DUTCHOVENS Frying pan mode
XFYHIJERPWAL IELWZS Debug mode
BOVRILBULLETHOLE Shoot all objects
EASY Easy mode
VERYEASY Very easy mode
SPUNKJOCKEY New death animation
SEXYMANN Birdy & Squirrel scene
Code: Unlock chapter:
PRINCEALBERT Barn Boys
CLAMPIRATE Bats Tower
ANCHOVYBAY Slopranos
MONKEYSCHIN Uga Buga
SPANIELSEARS Spooky
BEELZEBUBSBUM It's War
CHOCOLATESTARFISH The Heist
WELDERSBENCH All chapters and scenes
Code: Unlock Multiplayer character:
WELLYTOP Conker
EASTEREGGSRUS Neo Conker
BILLYMILLROUNDABOUT Gregg the Grim Reaper
CHINDITVICTORY Weasel Henchmen
EATBOX Cavemen
RUSTYSHERIFFSBADGE Sergeant and Tediz Leader
BEEFCURTAINS Zombies and Villagers
Rotation At A Given Rotation Point In AS
Hey ya'll.
I was wondering on exactly how would you make an MC rotate with a given rotation center, using AS, obviously. I'd like to know the math behind it, please.
Using _rotation would make it rotate around the mc's center... i'd like to make it rotate around another center, one defined...
Trasfering Text From One Dynamic Text Box To A Input Text Box On A Differnt Page?
Ok so I have a text box set up which receives the date on a callendar which you click on. On another page (a seperate html file) I have an input text box for receiveing this text.
I've been trying to do this using various methods using getURL, but, I can't get it to work. This is becoming tedious especially as I'm not able to test it without having to reupload the files.
If someone could please inform me on how I should do this I'd be vary greatful.
If you need any further information I'll reply as soon as possible.
Load Text From A Text File Into A Dynamic Text Field
I'm trying to load text from a text file into a dynamic text field. The text field is on the "blog" page of the website. When I test my movie, the first time I go to the blog page, the text from the external text file (AND the CSS styles) show up fine. But when I click from the blog page to go to the "profit calculator" or "contact" pages and THEN click to go BACK to the blog page, the blog page animates back in, and right as the animation ends, the text on the blog page suddenly disappears and won't come back. PLEASE help me figure this out!
Dynamic Text Box / Xml Content - Text Is Too Close To Border Of Text Box
Hi,
If you take a look at my flash movie you will see that I have draggable movie clips, which contain dynamic text fields. These text fields contain text drawn in from a simple xml document.
The problem I have is that the text in the text fields is hedged right next to the border of the autosized text box. This makes them look untidy and in the worst case difficult to read. I wonder how I can add some margin to the left and right of the text to fill in some space.
http://www.nottingham.ac.uk/home/ccz...AndDrop3.1.swf
http://www.nottingham.ac.uk/home/ccz...AndDrop3.1.fla
(you also need the xml doc at : http://www.nottingham.ac.uk/home/ccz...scriptions.xml )
The code which formats the text boxes is:
with (main["dragAct"+i].dragActText) {
text = actText[i+1];
background = true;
backgroundColor = "0xe2e2e2";
setTextFormat(myFormat);
autoSize = "center";
border = true;
borderColor = "0x666699";
}
my text formatting looks like this, and you can see that I have tried to use leftMargin / rightMargin but these properties don't seem to work:
var myFormat:TextFormat = new TextFormat("Tahoma", 12);
myFormat.leftMargin = 20;
myFormat.rightMargin = 20;
myFormat.bold = true;
Any suggestions most welcome.
Thanks
|