Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0

Reply
 
Thread Tools Rate Thread Display Modes
Old 11-05-2009, 12:38 AM   #1
wither
Registered User
 
Join Date: Nov 2009
Posts: 5
Default Getting text onto the next line

Hi,
Im pretty much a noob when it comes to flash. I am doing a webpage for my family's xmas lists, which I am using a flash template I found a year or so ago, and editing. Since finding the script, there is a new addition, and I need to fit another name into one of the circles on the page, which needs it to go under the other two names already there, but I cant figure out how to do this.

I would be very grateful if anyone might be able to help me out with this. Here is the actionscript code...
Quote:
stop();
import mx.transitions.Tween;
import mx.transitions.easing.*;
flashmo_logo._visible = false;
flashmo_logo._y = 300;
menu_item_group.menu_item._visible = false;
var menu_label:Array = new Array("Mum, Dad", "Paul, Allison", "Tony, Michelle", "Lachie, Jayden",
"Mikey, Nathan, Cam", "Luke, Matty", "Mon, Tony", "Rosie, Craig");
// *** menu label array length must be equal to number of
// *** total frames inside "menu button bg" Movie Clip in the library.
var total:Number = menu_label.length;
var tween_duration:Number = 1.4;// in seconds
var radius:Number = 200;
var angle:Number;
var i:Number = 0;
function create_menu():Void
{
angle = (i - 2) * Math.PI * 2 / total;
position_x = Math.cos(angle) * radius;
position_y = Math.sin(angle) * radius;

var fm = menu_item_group.menu_item.duplicateMovieClip("menu _item" + i, i);
fm.stop();
fm.bg.gotoAndStop(i + 1);
fm.over = true;
fm.item_label = menu_label[i];
fm.item_no = i;

fm.flashmo_button._visible = false;
fm.over = true;
fm.flashmo_button.onRollOver = function()
{
this._parent.over = false;
};
fm.flashmo_button.onRollOut = fm.flashmo_button.onDragOut = function ()
{
this._parent.over = true;
};
fm.flashmo_button.onRelease = function()
{
_root.page = this._parent.item_no + 1;
_root.play();
};
fm.onEnterFrame = function()
{
if (this.over == true)
{
this.prevFrame();
}
else
{
this.nextFrame();
}
};
new Tween(fm, "_xscale", Strong.easeOut, 0, 100, tween_duration, true);
new Tween(fm, "_yscale", Strong.easeOut, 0, 100, tween_duration, true);
new Tween(fm, "_rotation", Strong.easeOut, 360, 0, tween_duration, true);
new Tween(fm, "_x", Bounce.easeOut, 0, position_x, tween_duration, true);
fm_tween = new Tween(fm, "_y", Bounce.easeOut, 0, position_y, tween_duration, true);
fm_tween.onMotionFinished = function()
{
fm.flashmo_button._visible = true;
}
if (i == total - 1)
{
fm_tween.onMotionFinished = function()
{
fm.flashmo_button._visible = true;
flashmo_logo._visible = true;
new Tween(flashmo_logo, "_alpha", Strong.easeOut, 0, 100, tween_duration, true);
}
clearInterval(interval_id);
}
i++;
}
var interval_id = setInterval(create_menu, 200);
Youll see near the top, there is one entry of "Mikey, Nathan, Cam", basically I just need Cam to show under Mikey, Nathan.
wither is offline   Reply With Quote
Old 11-05-2009, 01:47 AM   #2
loadlearn
Flash Nerd
 
loadlearn's Avatar
 
Join Date: Apr 2009
Posts: 1,268
Default

Attach or provide a link to your .fla.
__________________
“Nothing that is worth knowing can be taught.” - Oscar Wilde
loadlearn is offline   Reply With Quote
Old 11-05-2009, 02:48 AM   #3
wither
Registered User
 
Join Date: Nov 2009
Posts: 5
Default

I think its now attached

EDIT: Im not sure if that attached, it said it uploaded successfully. Do I need a certain number of posts before I can post attachments?
wither is offline   Reply With Quote
Old 11-05-2009, 02:53 AM   #4
wither
Registered User
 
Join Date: Nov 2009
Posts: 5
Default

K, I up'd it to here instead
wither is offline   Reply With Quote
Old 11-05-2009, 09:13 PM   #5
wither
Registered User
 
Join Date: Nov 2009
Posts: 5
Default

So no one able to help with this by any chance?
wither is offline   Reply With Quote
Old 11-07-2009, 11:26 AM   #6
wither
Registered User
 
Join Date: Nov 2009
Posts: 5
Default

Shamelessly bumping again, still desperate for help if anyone can.
wither is offline   Reply With Quote
Old 11-07-2009, 05:50 PM   #7
loadlearn
Flash Nerd
 
loadlearn's Avatar
 
Join Date: Apr 2009
Posts: 1,268
Default

I've PMed you a link to a corrected and working .fla.
__________________
“Nothing that is worth knowing can be taught.” - Oscar Wilde
loadlearn is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:50 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.