Moving Text Vertically
Hi, it's possible to hate some text moving vertically, and stoping at the top of the site for x seconds ?
Thanks
Ultrashock Forums > Flash > Flash Newbie
Posted on: 2004-11-01
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Moving Text Vertically
Hi, it's possible to have some text moving vertically, and stoping at the top of the site for x seconds ?
How can I do it in flash
Thanks
Moving Vertically
Hi, it's possible to have some text moving(scrolling) vertically, and stoping at the top of the site for x seconds ?
How can I do it in flash
Thanks
Moving Elastic Menu Vertically
hey all
I got this menu off of flashkit, and was wondering how i could move it vertically. At the moment manually moving the menu to a particular location only moves the menu horizontally. I checked the code but couldn't figure out what was fixing the menu's y position at 0. I also tried loading the menu into a main movie, but it wouldn't load. the menu is attached for you to check out
much love
P
Vertically Scrolling Text Box
Hi I would like to create a vertically scrolling text box in a flash movie, to be used for credits at the end. I searched through all the tutorials and I couldn't find one which helped.
If anyone can help me it would be greatly appreciated.
Vertically Aligning Text?
is there any possible way to vertically align text dyanamically? i have a text box that changes per frame using setInterval, and the text varies from frame to frame. i want to verticaly align the text within the bounds of the clip? any suggestions?!?!?!??
thx!
Display Text Vertically
Hii,
i am new to flash and i only know the very basic. i need some ideas please as i need to show a process in three phases vertically on a web page. Each phase has a lot of text and i need to show all the three phases in one page.i manage to do one page and each phase is define in a text box with a scroll bar. Any more ideas please how to display it?? Thanks a lot in advance
Centering Text Vertically
I did a search on this and found a couple of good posts, but I'm just not getting something. Take the following code for instance, it should create a text field and populate it with giberish, which it does;
Code:
this.createTextField("my_textbox", 0, 100, 0, 200, 0);
// numbers = ?,horizontal placement,vert placement, width,?
my_textbox.text = "asdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkssasdksdkss"
my_textbox.autoSize = "center";
my_textbox.multiline = true;
my_textbox.wordWrap = true;
my_textbox.html = true;
my_textbox._y = Stage.height / 2 - (my_textbox.textHeight / 2);
Shouldn't it also place this text field centered on the stage? The my_textbox._y (it's vertical positioning) is set to be equal to one half of the stage height, minus one half of the text box's text height. As near as I can figure this should center the text vertically... but instead it lines it up with the top line in the vertical center of the page. It seems that my my_textbox.textHeight / 2 part isn't doing much.
Any idea what I'm missing here?
datter
Centering Text Vertically
is is possible to vertically center text within a dynamic text box. if so, how on earth do you do it?
thanks in advance
andrew
Vertically Aligning Dynamic Text
I've successfully set up a dynamic text box to load variables from a text file. The only thing left to do is vertically align the text within the text area. Flash allows me to align it horizontally, but I don't see how I would align it vertically. Does someone know a trick?
Thanks
Center Vertically Dynamic Text ?
Hi,
I have this thing that LOOKS so easy ....
I have a button (quiz game) on which I want to add a dynamic text (the answer) loaded at game time. This text that may take one line or 2 depending on the length of the text loaded.
How can I deduce the number of lines that the dynamic text will do (or even better, the real Height of the dynamic text) so that I can center the text VERTICALLY on the button ? Indeed, depending on the variable width of chars, the same nb of chars may take one line or 2 and will not be centered vertically at each time.
HELP, I have spent 10 hours on this and am now ready to make myself a Monk
Pedro
Dynamic Text Box Centering Vertically
Is there any way, either through ActionScript or not, that I can vertically center text in a Dynamic Text Box? I know I can center horizontally, but what about vertically?
Thanks,
zip
Center Align Text - Vertically
Hello all,
Does anyone know how you would center the registration point of a dynamic text field?
I have a dynamic text field that the user can choose the font size of, and also rotate. I need the rotation point to be the centre of the text box, which I can do, until the text is resized, as it resizes the vertical axis 'down' only - i.e: the text 'moves down on the screen and the registration point stays where it is, and therefore the registration point is off centre, vertically.
Is there a way to have the registration point move to the centre of the text field when it is resized?
Thanks - any ideas appreciated,
DrGonzo.
Center Dynamic Text Vertically
Has anyone figured out a way to dynamically center their dynamic text? I have 100s of lines of text that are loaded into a textbox. To create conformity I would like these texts to be aligned both horizontally and VERTICALLY. Anyone?
danke.
vs
Vertically Centering Dynamic Text
I am trying to get the text I am loading into a dynamic text box vertically aligned. There are from 3 to 8 lines of text that load into the dynamic text box via an array. I haven't found anything to do this. Can I get a coordinate that tells me the height of the loaded in text? Thanks for any help...
Vertically Aligning Text Fields Using AS
I am trying to read data from a XML and then create a match-them kind of game where one set of choices are listed one on top of other and another set is on a row above them one after the other with the text aligned vertically. Umm something like this:
-|--[_] [_] [_]
[_]
[_]
[_]
(All the boxes are movieclips containing some text)
I have the whole thing working out perfectly but the only problem is that I am not able to display the text vertically. I did some searching and turns out that Dynamic and Input Text boxes can not display vertically oriented texts. I thought about creating static textfields at run time but couldn't find an option to vertically orient the text in the formatting options.
Oh and one more thing. I tried rotating the movieclips after the textfields have been created but as soon as the clips are rotated, the text disappears.
Can someone please help me out here.
Thanks.
Vertically Centering Dynamic Text
Hey there!
I have a dynamic text field that is pulling random quotes from a text field. They are populating over a graphic of a customized playing card. Everything works fine, and the text horizontally centers fine.... but it vertically centers to the top of the text box I have drawn.
Is there a way to make the textvertically align in the center? I am just learning actionscript... or re-learing it rather.
Here is the code I am using for the random text:
Code:
ranQuote = new LoadVars();
ranQuote.onLoad = function(success) {
if (success) {
RanNum = Math.ceil(Math.random()*24);
ran = this["quote"+RanNum];
quote_txt.text = ran;
}
else {
quote_txt.text = "The text failed to load due to an error";
}
}
ranQuote.load("questions.txt");
What is the code to align the text vertically? Also, would I put the code in the code above or would I put it elsewhere? Where would I put it?
Thanks!
Text Vertically Fliped Will Not Display Upon Publishing?
I'm working on a prject where I have some text that I'd like to simulate a reflection.
Ovbviously I need to flip it vertically to reverse the text into a mirror like reflection. Regardless of whether I free transform it, or manually drag it into a reversed state it will not show up when I publish.
I've tried making it a seperate symbol.
I've created the reflection from scratch, ala not using the original header symbol, and fliping it that way....no matter what I do it's not showing up when published. I know I can just use a jpg or something, but that wont come out as nice and at some point I'd like to include some interactivity with this particular header.
Anyone else ever had this issue....is there a patch or something I need to get? I'm running FlashMX 2004 7.2
Please help me before I toss my monitor out a window.
Thanks in advance.
Vertically Expanding Text Boxes/movies
hi all,
i want to dynamically load info into message boxes on the home page of my website. the messages that i will be loading will be loads of different sizes and therefore i will need the text boxes (and also the movie clips they are contained in) to resize vertically depending on how much text there is.
I looked at the dynamic text boxes and found that you could make boxes which resize themselves automatically but it doesn't seem to work for me.
can anyone offer advice on this subject?
cheers
Grow Dynamic Text Field Vertically
I know you can expand the width of a text field horizontally with the .autosize property but i need to a text box's height to expand based on XML loaded text length. Is there a way to do this. I am loading a vertical list of components, each of which has a thumbnail photo and a brief description below it. The description is variable length and I want each component to be right under the next. If I give it the same amount of space for the description, the will sometimes be a gap and sometimes the text will be cut off. Any clues?
Center Dynamic Text VERTICALLY On Clip ?
Hi,
I have this thing that LOOKS so easy ....
I have a button (quiz game) on which I want to add a dynamic text loaded at game time. This text that may take one line or 2 depending on the length of the text loaded.
How can I deduce the number of lines that the dynamic text will do (or even better, the real Height of the dynamic text) so that I can center the text vertically on the button ? Indeed, depending on the variable width of chars, the same nb of chars may take one line or 2.
HELP, I have spent 10 hours on this and am now ready to make myself a Monk
Pedro
Fade In And Out Images With Text Scrooling Vertically
I wanted the several images fade in and fade out contineously with text scrllong vertically on the left side
of it like www.openworld.co.uk.
I did it but the images are not as smmoth when change to the second image likewise.I insert keyframes in 15th,30th,45th,60th,75th,90th.and imported the three images to the 1st,31st,61st key frames and set alpha to 0% and motion tween. And I wrote actionscripts to 30th,60th and 90th as GO to and Play{frame31}
GO to and Play{frame61}
GO to and Play{frame1}
In a seperate layer I put textbolock and converted to asymbol,behavior as graphic. I insert a keyframe and motion tweened but it dissapeares annd comes back. I want that vertical text to be scrolled contineously.I am novice to the flash anyone would helpme.Thanks.
Flex Displaying Labels/Text Vertically In Flex 3
Hi All,
I have a chart in Flex 3 and am currently displaying the axis names using <mx:Label! I want to display the vertical axis name vertically, that is
p
r
i
c
e
instead of
price
I was wondering if anyone knew how I might be able to do this? Any help really would be greatly appreciated!
Thanks,
Derm
How To Keep Text Field Text Values After Moving In Time Line?
I'm trying to to make flash application that requires the user to input data on several keyframes in the time line. I have buttons that take the user back and forth between the different keyframes so a user can input the needed data in what ever order they wish and/or go back and change it if they want.
My problems is, that as soon as the user clicks the button to go to another point in the timeline, and they come back, those input textfields that they entered data in are now empty again.
I hope that all makes sense. It seems that there must be an easy way (or even a hard way) to prevent this, and get these fields to retain the input data.
Any help would be GREATLY Appreciated!!!!!
Thanks in Advance!
Centering .swf Vertically?
is it possible to center a .swf vertically in an html file?
so when the window is stretched vertically the .swf automatically recenters itself. if so, could someone please instruct me.
thanks,
diabolicalbutter
MC Following Mouse Vertically
I'd like to know how to makea movie clip follow the mouse movement only in one direction. I would also like it to have enertia. In my case I want it vertical. I only know how to do this radially. I can't find any movies/tutorials that show this. Here are two sites that do what I'm talking about.
http://www.shadyville.biz/sv_main.html
http://kanyewest.com/index1.asp
Centering Vertically..
I've been looking for a solution now for quite a while. In firefox everything works ok. In IE he doesn't center vertically. I use the latest update of flash 8 with ActiveContent Update. Why does the centering vertically and horizontally works in FF and not in IE I don't know but it would be greatly appreciated if someone could help me. I've been looking and asking for days. Tried out hundreds of tips but still nothing. I have attached my full html code. The site is www.x2o.be.
Thanks..
Attach Code
<!-- saved from url=(0013)about:internet -->
<html lang="en">
<head>
<center>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>X²O Sanitair</title>
<META name="description" content="X2O Sanitair, de betere badkamer specialist.">
<meta name="keywords" content="balmani, blaufoss, grohe, hansgrohe, bad, badmeubel, badkamer, kraan, douche, stoomcabine, toilet, hangtoilet, sanitair, X20, X2o, Brugge, Kuurne, Mechelen, Wilsele, Geel, Hasselt, Ninove, Sint-Martens-Latem, Schoten, Kontich">
<META NAME="X2O Sanitair" CONTENT="de betere badkamer specialist. Met een brede & trendy waaier aan badkamers en toebehoren">
<META NAME="X²O Sanitair" CONTENT="de betere badkamer specialist. Met een brede & trendy waaier aan badkamers en toebehoren">
<SCRIPT LANGUAGE=JavaScript>
function openNewWindow(URLtoOpen,windowName,windowFeatures) {
newWindow=window.open(URLtoOpen,windowName,windowFeatures);
}
</SCRIPT>
<script language="javascript"> AC_FL_RunContent = 0; </script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
<script language="JavaScript" type="text/javascript">
<!--
// -----------------------------------------------------------------------------
// Globals
// Major version of Flash required
var requiredMajorVersion = 8;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Revision of Flash required
var requiredRevision = 0;
// -----------------------------------------------------------------------------
// -->
</script>
<script language="VBScript" type="text/vbscript">
<!-- // Visual basic helper required to detect Flash Player ActiveX control version information
Function VBGetSwfVer(i)
on error resume next
Dim swControl, swVersion
swVersion = 0
set swControl = CreateObject("ShockwaveFlash.ShockwaveFlash." + CStr(i))
if (IsObject(swControl)) then
swVersion = swControl.GetVariable("$version")
end if
VBGetSwfVer = swVersion
End Function
// -->
</script>
<script language="JavaScript1.1" type="text/javascript">
<!--
// Detect Client Browser type
var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
// JavaScript helper required to detect Flash Player PlugIn version information
function JSGetSwfVer(i){
// NS/Opera version >= 3 check for Flash plugin in plugin array
var flashVer = -1;
if (navigator.plugins != null && navigator.plugins.length > 0) {
if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
var descArray = flashDescription.split(" ");
var tempArrayMajor = descArray[2].split(".");
var versionMajor = tempArrayMajor[0];
var versionMinor = tempArrayMajor[1];
if ( descArray[3] != "" ) {
tempArrayMinor = descArray[3].split("r");
} else {
tempArrayMinor = descArray[4].split("r");
}
var versionRevision = tempArrayMinor[1] > 0 ? tempArrayMinor[1] : 0;
var flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
}
}
// MSN/WebTV 2.6 supports Flash 4
else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
// WebTV 2.5 supports Flash 3
else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
// older WebTV supports Flash 2
else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
return flashVer;
}
// When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available
function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)
{
reqVer = parseFloat(reqMajorVer + "." + reqRevision);
// loop backwards through the versions until we find the newest version
for (i=25;i>0;i--) {
if (isIE && isWin && !isOpera) {
versionStr = VBGetSwfVer(i);
} else {
versionStr = JSGetSwfVer(i);
}
if (versionStr == -1 ) {
return false;
} else if (versionStr != 0) {
if(isIE && isWin && !isOpera) {
tempArray = versionStr.split(" ");
tempString = tempArray[1];
versionArray = tempString .split(",");
} else {
versionArray = versionStr.split(".");
}
var versionMajor = versionArray[0];
var versionMinor = versionArray[1];
var versionRevision = versionArray[2];
var versionString = versionMajor + "." + versionRevision; // 7.0r24 == 7.24
var versionNum = parseFloat(versionString);
// is the major.revision >= requested major.revision AND the minor version >= requested minor
if (versionMajor > reqMajorVer) {
return true;
} else if (versionMajor == reqMajorVer) {
if (versionMinor > reqMinorVer)
return true;
else if (versionMinor == reqMinorVer) {
if (versionRevision >= reqRevision)
return true;
}
}
return false;
}
}
}
// -->
</script>
</head>
<body bgcolor="#ffffff">
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0" height="100%" valign="middle">
<TR>
<TD valign="middle" align="center">
<!--url's used in the movie-->
<!--text used in the movie-->
<!--
loading
....
<p align="center"></p>
<p align="center"></p>
<p align="center"><font face="Arial" size="11" color="#4467a9" letterSpacing="0.000000" kerning="0">.</font></p>
<p align="center"></p>
<p align="center"><font face="Arial" size="11" color="#4467a9" letterSpacing="0.000000" kerning="0">.</font></p>
<p align="center"><font face="Arial" size="11" color="#4467a9" letterSpacing="0.000000" kerning="0">..</font></p>
<p align="center"><font face="Arial" size="11" color="#4467a9" letterSpacing="0.000000" kerning="0">i</font></p><p align="center"></p>
<p align="center"></p>
c
Aalst
Kapiteintjesstraat 23
Tel 0498/170395
9300 Aalst
achter de vroegere Keizershallen
-->
<script language="JavaScript" type="text/javascript">
<!--
var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasRightVersion) { // if we've detected an acceptable version
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js. In Flash, run "Apply Active Content Update" in the Commands menu to copy AC_RunActiveContent.js to the HTML output folder.");
} else {
// embed the flash movie
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
'width', '85%',
'height', '85%',
'src', 'website',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'website',
'bgcolor', '#ffffff',
'name', 'website',
'menu', 'false',
'allowScriptAccess','sameDomain',
'movie', 'website',
'salign', ''
); //end AC code
}
} else { // flash is too old or we can't detect the plugin
var alternateContent = 'Alternate HTML content should be placed here.'
+ 'This content requires the Macromedia Flash Player.'
+ '<a href=http://www.macromedia.com/go/getflash/>Get Flash</a>';
document.write(alternateContent); // insert non-flash content
}
// -->
</script>
<noscript>
// Provide alternate content for browsers that do not support scripting
// or for those that have scripting disabled.
Alternate HTML content should be placed here. This content requires the Macromedia Flash Player.
<a href="http://www.macromedia.com/go/getflash/">Get Flash</a>
</noscript>
</TD>
</TR>
</TABLE>
<A HREF=javascript:openNewWindow('http://www.mappy.com/BtoB/X2O/map?map.id=1;map.provider=X2O;xml.state.wanted_lang=nl','X2O','height=600,width=550,toolbar=no,scrollbars=yes') ></A>
<A HREF=javascript:openNewWindow('http://www.mappy.com/BtoB/X2O/map?map.id=2;map.provider=X2O;xml.state.wanted_lang=nl','X2O','height=600,width=550,toolbar=no,scrollbars=yes') ></A>
<A HREF=javascript:openNewWindow('http://www.mappy.com/BtoB/X2O/map?map.id=3;map.provider=X2O;xml.state.wanted_lang=nl','X2O','height=600,width=550,toolbar=no,scrollbars=yes') ></A>
<A HREF=javascript:openNewWindow('http://www.mappy.com/BtoB/X2O/map?map.id=4;map.provider=X2O;xml.state.wanted_lang=nl','X2O','height=600,width=550,toolbar=no,scrollbars=yes') ></A>
<A HREF=javascript:openNewWindow('http://www.mappy.com/BtoB/X2O/map?map.id=5;map.provider=X2O;xml.state.wanted_lang=nl','X2O','height=600,width=550,toolbar=no,scrollbars=yes') ></A>
<A HREF=javascript:openNewWindow('http://www.mappy.com/BtoB/X2O/map?map.id=6;map.provider=X2O;xml.state.wanted_lang=nl','X2O','height=600,width=550,toolbar=no,scrollbars=yes') ></A>
<A HREF=javascript:openNewWindow('http://www.mappy.com/BtoB/X2O/map?map.id=7;map.provider=X2O;xml.state.wanted_lang=nl','X2O','height=600,width=550,toolbar=no,scrollbars=yes') ></A>
<A HREF=javascript:openNewWindow('http://www.mappy.com/BtoB/X2O/map?map.id=8;map.provider=X2O;xml.state.wanted_lang=nl','X2O','height=600,width=550,toolbar=no,scrollbars=yes') ></A>
<A HREF=javascript:openNewWindow('http://www.mappy.com/BtoB/X2O/map?map.id=9;map.provider=X2O;xml.state.wanted_lang=nl','X2O','height=600,width=550,toolbar=no,scrollbars=yes') ></A>
<A HREF=javascript:openNewWindow('http://www.mappy.com/BtoB/X2O/map?map.id=10;map.provider=X2O;xml.state.wanted_lang=nl','X2O','height=600,width=550,toolbar=no,scrollbars=yes') ></A>
</body>
Fitting.... Horizontally - But Not Vertically
okay, I get the exactfitting stuff, but what if I wanted the Flash movie to fit the browser window's width.. but not height (leaving the excess swf outside the depth of the browser window) clicking on the thumbnails here will give you an idea of what I'm trying to dohttp://www.randpc.com/marketing/onClick/clicktest.htm
Dragging A Movieclip Vertically Only
Hi! I want to restrain a movieclip to only be dragable vertically within an 800 x 600 size flash document. How do I do this? )Please don't tell me to use the "restrain to rectangle" function, I wouldn't know where to begin... help me from scratch?
Movie Not Aligning Vertically
I have a movie embedded in a page with a background image. The background image and the movie are both the exact same size. Here is my code. Why don't they line up? This happens every single time I embed a Flash movie in an html page, where it must line up with other image(s) on the page. Is this some sort of bug? I'm getting so sick of always wasting hours doing somethin that should only take a few minutes to do! Someone please help.
PHP Code:
<BODY background="./header.jpg" bgcolor="#000000" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
<table width="100%" align="left" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="770" HEIGHT="140" id="navigation" ALIGN="">
<PARAM NAME=movie VALUE="navigation.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#000000> <EMBED src="navigation.swf" quality=high bgcolor=#000000 WIDTH="770" HEIGHT="140" NAME="navigation" ALIGN=""
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT></td>
</tr>
</table>
</BODY>
Centre SWF Vertically And Horizontally
I know the answer to this must be so easy, but how in the world do you centre your swf file on an html page vertically and horizontally? Just smack in the middle, regardless of the user's screen resolution.
Vertically Scrolling Menu/MC HELP PLEASE
I tried this post in the Actionscript room with no luck but maybe someone in here would know? (where's Old Newbie when ya need him?)
Can someone please tell me how to set the up and down boundaries for a vertically scrolling MC?
I have the up/down buttons working fine - the mc scrolls both ways vertically but doesn't stop in either direction.
Here's what I have for AS now:
up_btn.onRelease = function(){
buttons._y -=57;
};
down_btn.onRelease = function(){
buttons._y +=57;
};
Is it a onClipEvent that sets the top and bottom coordinates or is there anything I use within the button functions (above)?
If anyone has the entire actionscript I need it'd be GREATLY appreciated!!
Just as an FYI, there are 13 buttons, 55 px in height (2 px between them), with probably 5 showing at one time (masked). Need the menu to stop at the top most button and stop when scrolling to the bottom. I know this has got to be simple though..
HELP PLEASE!! thanks in advance!
Vertically Scrolling Gallery
Hi All,
I found this XML-generated scrolling gallery on Flash Kit, which is perfect for the project I'm currently working on. However, I need it to scroll vertically and I would be very grateful if someone could take a look at the AS and tell me what I need to change to make this happen.
Any help would be greatly appreciated - tight deadline.
Many Thanks
[CS3] Help Centering Swf Vertically In Browser
I have a swf file that is 1015 x 600 pixels. It looks beautiful at 1024 x 768 but at 1280 x 1024 it floats. Is there a way that I can use HTML of JavaScript to center the swf vertically?
Thanks
Vertically Align Textfield?
Hi gang,
Just wondering if anybody is aware of a method of vertically aligning text in a dynamic text field? I tried using the <p> tag with valign, but I don't believe Flash supports that.
'Preciate any insight. You will forever be titled uber by me!
Vertically And Horizontal Centering
I wasn't sure which forum to post this question in, so I gave this one a shot.
I have my flash movie and am trying to make it centered horizontally and vertically on every screen resolution (that is large enough to view the whole stage) without scrolling.
I have tried to make a table with 3 rows and 3 columns. I put the flash movie in the centered cell and made the others 50% for width and height. This should work, but I'm still getting a scrollbar. Is there a bette way to do this, or maybe to turn the scrollbars off?
Vertically Scrolling Menu/MC HELP PLEASE
Can someone please tell me how to set the up and down boundaries for a vertically scrolling MC?
I have the up/down buttons working fine - the mc scrolls both ways vertically but doesn't stop in either direction.
Here's what I have for AS now:
up_btn.onRelease = function(){
buttons._y -=57;
};
down_btn.onRelease = function(){
buttons._y +=57;
};
Is it a onClipEvent that sets the top and bottom coordinates or is there anything I use within the button functions (above)?
If anyone has the entire actionscript I need it'd be GREATLY appreciated!!
Just as an FYI, there are 13 buttons, 55 px in height (2 px between them), with probably 5 showing at one time (masked). Need the menu to stop at the top most button and stop when scrolling to the bottom. I know this has got to be simple though..
HELP PLEASE!! thanks in advance!
Vertically Filling-in Preloader
Okay after much trauma i have drawn an aum sign, which i will be using as my preloader. I wish to have the vertically filling in effect.
Can someone help?
I think that if i animate it from frame 1 to 100 filling in vertically, then AS can be added to say that if 1& is loaded then show frame 1, 45% then frame 45.
I have that AS somewhere, but i dont know how to achieve the effect that the aum "fills" in black, or any colour.
Can any super-flash person help
Thumbnails Sliding Vertically?
Hi!
I am creating a photo gallery with thumbnails with the help of a tutorial in 'kirupa'. The tutorial has just been a great help!! However, I would like my thumbnails to slide vertically instead of horizontally. How do I do it? I did change some x and y values but have not managed to get the result.....totally new with programming!! Please help!!
Thanks a lot!
Flipping Objects Vertically
In my intializeChar function i've got it so that when you move left it turns your char left by doing _root.grid.char._xscale *= -1;
But that makes it so that every frame that your going left it will switch from looking left to looking right. What I want is to have the char face left while moving left and afterwards keep it looking left. And when going right it's the opposite, how do I do that?
function initializeChar() {
game.speed = 3;
game.path.char.swapDepths(10000);
game.char = {startx:1, starty:1, clip:game.path.char};
var x = (game.char.startx-1)*game.spacing+game.spacing/2;
var y = (game.char.starty-1)*game.spacing+game.spacing/2;
game.char.clip._x = x;
game.char.clip._y = y;
game.char.x = x;
game.char.y = y;
game.char.radius = game.char.clip._width/2;
}
function moveChar(dir) {
ob = game.char;
if (dir == "right") {
var tempx = ob.x+ob.radius+game.speed;
var tempy = ob.y;
var cellx = Math.ceil(tempx/game.spacing);
var celly = Math.ceil(tempy/game.spacing);
var tempCell = game["cell"+cellx+"_"+celly];
if (tempCell.type != 1) {
return;
} else {
_root.grid.char.gotoAndPlay(2);
ob.x += game.speed;
ob.clip._x = ob.x;
}
} else if (dir == "left") {
var tempx = ob.x-ob.radius-game.speed;
var tempy = ob.y;
var cellx = Math.ceil(tempx/game.spacing);
var celly = Math.ceil(tempy/game.spacing);
var tempCell = game["cell"+cellx+"_"+celly];
if (tempCell.type != 1) {
return;
} else {
_root.grid.char.gotoAndPlay(2);
_root.grid.char._xscale *= -1;
ob.x -= game.speed;
ob.clip._x = ob.x;
}
} else if (dir == "up") {
var tempx = ob.x;
var tempy = ob.y-ob.radius-game.speed;
var cellx = Math.ceil(tempx/game.spacing);
var celly = Math.ceil(tempy/game.spacing);
var tempCell = game["cell"+cellx+"_"+celly];
if (tempCell.type != 1) {
return;
} else {
_root.grid.char.gotoAndPlay(2);
ob.y -= game.speed;
ob.clip._y = ob.y;
}
} else if (dir == "down") {
var tempx = ob.x;
var tempy = ob.y+ob.radius+game.speed;
var cellx = Math.ceil(tempx/game.spacing);
var celly = Math.ceil(tempy/game.spacing);
var tempCell = game["cell"+cellx+"_"+celly];
if (tempCell.type != 1) {
return;
} else {
_root.grid.char.gotoAndPlay(2);
ob.y += game.speed;
ob.clip._y = ob.y;
}
}
}
Continuous Movement But Then Vertically?
Hey there everybody....
I've seen a lot of threads regarding the tutorial "Continuous movement" from Kirupa.
But nobody seems to have the same problem that i'm having.
I would like to know how to get the continuous movement to scroll vertically.
I'm still an amateur when it comes to action script. So could someone please help me???
Thnx for your time again
Vertically Align Textfield?
Hi gang,
Just wondering if anybody is aware of a method of vertically aligning text in a dynamic text field? I tried using the <p> tag with valign, but I don't believe Flash supports that.
'Preciate any insight. You will forever be titled uber by me!
TextField, Autosize Vertically ?
hi guys!
is there a way to create a textField using acitonscript and then when i add information to it can autosize vertically ?
for example has a fixed 300 horizontally and then it can autosize vertically when has a lot of information
thx for any help!
Scroll Mc Vertically On Mouseover
i have two arrows, up and down. when you mouse over them i need them to scroll a movieclip menu i have up and down, this clip contains buttons inside of it. i have this mc already masked.
i've tried this tutorial on actionscript.org:
continous movement
i don't need it to be continous, just to stop at the bottom of my mc.
got any ideas?
Spin An Image Vertically ?
Hi,
I was wondering is it possible to rotate or spin an image vertically. By which i mean, if you put a coin on the floor straight vertically and then spin it. Is it possible to move an image like that?
thanks
|