Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Auto Height On Embedded Swf


Hi. I am building a dynamic flash form, with lots of dropdowns.

The number of dropdowns come from the database. It could be 2. It could be 20.

Is there a way that the embedded flash movie is whatever height it needs to be.

So the scroll bar on the brower would keep getting bigger, rather than needing to make it a fixed size and have a scroll bar in the flash movie?

M@)




Ultrashock Forums > Flash > Flash Professional
Posted on: 2005-03-04


View Complete Forum Thread with Replies

Sponsored Links:

Auto Height On Embedded Swf
Hi. I am building a dynamic flash form, with lots of dropdowns.

The number of dropdowns come from the database. It could be 2. It could be 20.

Is there a way that the embedded flash movie is whatever height it needs to be.

So the scroll bar on the brower would keep getting bigger, rather than needing to make it a fixed size and have a scroll bar in the flash movie?

M@)

View Replies !    View Related
Auto Height A Text Box
I am after knowing where I can add or how I can add an auto height to a dynamic text box.

Can any one help me on this

View Replies !    View Related
Text Box Auto Expand Height - HELP
I am trying to get a dynamic text box, with a fixed width, to automatically expand its height to accomodate the amount of content being loaded. Is this possible. It seems like it should be a really simple thing.

Please help
Thank you

View Replies !    View Related
Auto Stretch Dynamic TextBox Height
Hi,
How can I make a dynamic test box stretch in height to the ammount of copy that gets sucked in from the database?

Currently it just cuts of at the bottom of the box that I've manually pulled down.

This is probably something stupid, but I just can't find a sollution yet.

Thanks in advance

View Replies !    View Related
Auto Height On Dynamic Text Field
Hi all

I have a small SWF file which loads text for an associated loaded movie clips. The text length can vary and at the minute I am duplicating the FLA's so that each movie has its 'own' text loader file mc. The reason why I am doing it this way is because I need the scrollbar to appear or not based on the amount of text that is loaded and I am currently disabling/enabling the scrollbar manually and then savin/publishing the SWF's file.

How can I get my text loader file to display/adjust the height of the dynamic text box/scrollbar automatically?

I have posted some code below in the hop ethat it is easy enough for some guru out there to provide a solution.









Attach Code

// This is the code that is executed when the text loader swf is called
function textLoader() {
myData = new LoadVars();
myData.onLoad = function() {
scrollpane_mc.txt.myText_txt.html = true;
scrollpane_mc.txt.myText_txt.htmlText = this.details;;
};
myData.load("text/amec.txt");
}


var myCSS = new TextField.StyleSheet();
myCSS.load("css/myStyle.css");
myCSS.onLoad = function() {
scrollpane_mc.txt.myText_txt.styleSheet = myCSS;
textLoader();
};

// this is my scrolling code
txt.setMask(mask);
scrollbar.onMouseDown = function() {
if (this.hitTest(_root._xmouse, _root._ymouse) && txt._height>mask._height) {
this.startDrag(false, scrollbarBG._x, scrollbarBG._y, scrollbarBG._x, scrollbarBG._height-this._height)
txt.onEnterFrame = scrollThumbs;
dragging = true
}
};

scrollbar.onMouseUp = function() {
stopDrag();
dragging = false;
delete this.onEnterFrame;
};

function scrollThumbs() {
var funkyVar = -this._parent.scrollbar._y*(((this._height-this._parent.scrollbar._height)/(this._parent.scrollbarBG._height-this._parent.scrollbar._height))-1)
this.Y = (funkyVar-this._y)*.2;
this._y += this.Y;
if(Math.abs(funkyVar-this._y)<1 && !dragging){
delete this.onEnterFrame
}
}

View Replies !    View Related
Using Blixt Scrollbar With Auto Height Textfield
Can anyone help me figure out what I'm doing wrong here? I want to use a Blixt's scrollbar to scroll a dynamic textfield that's is set to a autosizing height....

And I'm having problems. I though I had finally found my perfect scrollbar.... it's so close!

sorry about the filename, I was really frustrated...

If you've used Blixt's scrollbar before...help me out!

View Replies !    View Related
Dynamic Text - Auto Sizing The Height?
Dear All
I have several dynamic text fields that are going to be in a column. I am going to use these fields with xml files for the user to update. Hence I don't really know how long the text is going to be. I can set a max size by creating a dynmaic text box that has several lines. However, if the user only inserts a few words I am gonig to be left with a lot of empty space a the bottom of the text box.
HOw do I set the text box so that its size automatically adjusts up and down to the size of the text that's going into it.
Many thanks
Edward

View Replies !    View Related
Auto Height A Dynamic Text Field
I have a dynmaic text field with a set width. How do I make with an auto heigh to when I load any amount of text into it, its height chages to fit the text (without adding a scroller)

thx in advance

View Replies !    View Related
[F8] Height And Width Of Embedded MC In Text Field
I have an MC with buttons inside it embedded into a text field.
The problem is that the text field isn't giving me a scroll bar in the .swf when I publish it (even though it's really there in the .FLA).

I'm quite sure it's how I've got the size written in the Actionscript.

Here is how I have it written:


PHP Code:



textField_txt.htmlText = "<img src='symbol_ID' height='703'>";




Can someone help me out with my syntax?

Thanks in advance

View Replies !    View Related
Auto Thumbnailing Embedded Flash Videos
I searched around but was unable to find anything. I'm not sure if it's because I'm not searching the right thing or people haven't been setting this up.

Is there a way to automatically capture screenshots from embedded videos?

Like when you embed a YouTube, Google Video video on your site, are you able to somehow auto grab the screenshot from video you just embedded. I know there are APIs that Youtube and other services offered. We're looking for something we can build locally and cap while still embedding the videos.

Not sure if that makes sense. Any info would be great.

View Replies !    View Related
Height Of DisplayObject Doesn't Equal Sum Height Of Child Objects
Ok, I create a new object like so:

ActionScript Code:
_container = _target.addChild(new Sprite()) as Sprite;

I then run a loop to add children to it, then do this:

ActionScript Code:
var lastChild:DisplayObject = _container.getChildAt(_container.numChildren-1);
trace("container height: " + _container.height);
trace("lastChild: y=" + lastChild.y + " height=" + lastChild.height);

And I get the following output:
container height: 237.5
lastChild: y=200 height=50

Now, the child is top-left aligned, so if it's at y 200 and has a height of 50, surely the height of the container must be at least 250. So why does it say 237.5? Can anyone offer an explanation?

View Replies !    View Related
Controlling Actions Window Height In Cs3: Less Height Plz
hey there,

ive recently switched to flash cs3, but there is one seemingly little quirk that is driving me nuts, and hopefully its fixable.

in flash 8, you could have the actions window the same height as the properties window and group them. In cs3, the actions window always takes up about half my screen with its height whenever it is opened (the shortest i can get it is still more than double the height the properties window is). In cs3 you can still obviously group them, but the box keeps on changing size depending on which tab you choose (properties vs actions).

Maybe its just me, but i find it annoying to my work flow. Is there some sort of preference i can set for this (customizable min height for actions window?), be cause i certainly have not found it:S Would be greatly appreciated!thanks!

View Replies !    View Related
Dynamic Textfield - Embedded Font - Embedded Characters Problem
Hi everyone,
In AS in flash 8, i'm doing the following : a font "Garamond" in my library,creating a textfielda textformat that is used on my textfieldi define the characters that should be embedded...
This last point doesn't seem to work...
This is my code (you can also check my fla) :

--
var myFormat = new TextFormat();
myFormat.font = "Garamond";
myFormat.size = 20;
myFormat.color = "0xFFFFFF";

createEmptyMovieClip("myContainer",10);

myContainer.createTextField("myText", 11, 0,0,400,500);
myContainer.myText.border=true;
myContainer.myText.autoSize = true;
myContainer.myText.html = true;

_root.myContainer.myText.embeddedCharacters = "ęąłńśźćóĘĄŁŃŚĆŻÓ";
myContainer.myText.htmlText = "test characters : : ęąłńśźćóĘĄŁŃŚĆŻÓ" ;

myContainer.myText.selectable = false;
myContainer.myText.wordWrap = true;
myContainer.myText.embedFonts = true;
myContainer.myText.setTextFormat(myFormat) ;

--
I was also trying with the following :

myContainer.myText.useDeviceFonts = true;

But without problem (otherwise I wouldn't email here, huh?)

Can someone tell me what i'm doing wrong that my embeddedCharacters don't seem to work?

Thanks in advance!
Greetz,
Dzjoepke

View Replies !    View Related
How Do You Define Which Character Set Gets Embedded With A Font Embedded In The Library (i.e. Korean)?
I have project that uses a shared fonts. The fonts are all contained in a single swf ("fonts.swf"), are embedded in that swf's library and are set to export for actionscript and runtime sharing.

The text in the project is dynamic and is loaded in from external XML files. The text is formatted via styles contained in a CSS object.

This project needs to be localized into 20 or so different languages.

Everything works great with one exception: I can’t figure out how to set which character set gets exported for runtime sharing. i.e. I want to create a fonts.swf that contains Korean characters, change the XML based text to Korean and have the text display correctly.

I’ve tried changing the language of my OS (WinXP) and re-exporting but that doesn’t work correctly. I’ve also tried adding substitute font keys to the registry (at: HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionFontSubstitutes) as outlined here:
http://www.quasimondo.com/archives/000211.php
but the fonts I added did not show up in Flash's font menue.

I’ve also tried the method outlined here:
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_16275
to no avail.

I know there must be a simple solution that will allow me to embed language specific character sets for the fonts embedded in the library but I have yet to discover what it is.

Any insight would be greatly appreciated.

http://www.quasimondo.com/archives/000211.php

http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_16275

View Replies !    View Related
How To Resize The Swf Height According To The Image Height
hi,

I need to resize the swf hieght and width according to the height and width of the image in run time
is it possible in flash??

~~
SK

View Replies !    View Related
Auto Pop Up Window With Auto Close.
Hi Guys.

Im trying to open a html file.

When double clicked I need it to open the html file (open.html), then automatically open another centered pop up window, then automatically close open.html.

I have got it working but it asked me if I want to close down the window. yes/no.


script
.................................................. ............

<html>
<head>
<title>Untitled Document</title>

<SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT">



function newWindow() {
newWindow = window.open('http://www.yahoo.com', 'newWin', 'width=400,height=525')
}
setTimeout("self.close()", 1000)


</SCRIPT>

</head>


<body onload="javascript:newWindow()" bgcolor="#FFFFFF" text="#000000">


</body>
</html>

.................................................. .............

Can anyone advance on this for me.

Cheers,
Shaun

View Replies !    View Related
[CS3] Auto-play/Auto-resume: Is It Possible?
Hi,

I'm making an interactive film. At certain points within the film, the viewer has the ability to select from a few options that will direct them to an external video clip (they are flashback scenes). The main story pauses when the user selects a flashback scene and I'm clear on how to achieve this.

However, my issue is that once the flashback scene ends and the external video closes, I'm not sure how the main story will resume. Is it possible for it to auto-play (resume) in some way? My last resort would be to have the viewer select a play button - this is only because I do not want a break in the narrative and want to limit the amount of clicks the viewer has to make.

Basically, I really just want to know if what I want to achieve is realistic without making the viewer initiate the action. Any suggestions and comments would be greatly appreciated.

Thanks!

View Replies !    View Related
Auto Submit/auto Counter
Hi, I know this is possible but I can't seem to find a script on how to do it.

I want it to have a counter for everyone who submits and at the end, it shows how many people did the flash game.

http://neebit.com/s?ab39540f21.swf (not totally done yet)

View Replies !    View Related
Have A Flv Not Auto-play But Still Auto-buffer?
I know in the flash video player component's parameters you can set autoplay to true or false, but can you make it so the video will buffer even if autoplay is set to false, and without the user hitting play?

I wan't no delay once they hit play, but they don't have to watch the video.

View Replies !    View Related
Have A Flv Not Auto-play But Still Auto-buffer?
SORRY, I double posted!

how do I delete a post?





























Edited: 11/04/2008 at 12:46:38 PM by WACOMalt

View Replies !    View Related
Auto-play/auto-resume: Is It Possible?
Hi,

I'm making an interactive film. At certain points within the film, the viewer has the ability to select from a few options that will direct them to an external video clip (they are flashback scenes). The main story pauses when the user selects a flashback scene and I'm clear on how to achieve this.

However, my issue is that once the flashback scene ends and the external video closes, I'm not sure how the main story will resume. Is it possible for it to auto-play (resume) in some way? My last resort would be to have the viewer select a play button - this is only because I do not want a break in the narrative and want to limit the amount of clicks the viewer has to make.

Basically, I really just want to know if what I want to achieve is realistic without making the viewer initiate the action. Any suggestions and comments would be greatly appreciated.

Thanks!

View Replies !    View Related
Difference Embedded And Not Embedded Font
Hi all,
I was wondering if anyone had the same problem I did.. I'm using a font called DS-Digital (free font) in one of my movies and well if I don't embed the font and use the textFormatter to determine my dynamic text width then everything is find, however if I use the embed font feature and determine it's with the same way then it's about 5-10 pixels smaller, which causes the text to display incorrectly..

Is there a way to fix it easily. Right now I just add 25 pixels to the textFormatter width just to be sure the font is displayed properly, but I hope there will be a different solution for this problem..

Thanks for any help..

View Replies !    View Related
Embedded Video + Embedded Cuepoints
I am using embedded video with embedded cuepoints.

When i put setBufferTime on 0 the cuepoints of the flvmovie will be readed good, the right moment.

If i put setBufferTime on 10 or 20 than the cuepoints will be readed 10 or 20 secs faster.

Somebody known of this problem?
And have a workaround for this?

I am using Netstream connection.
(not the flvPlayback or mediaPlayback component)

View Replies !    View Related
Auto-updater/auto-news Updater/journal..ect Whatever You Want 2 Call It..
i was wondering if anyone had an already premade auto-news/auto-updater/journal esque thing for flash?
Similair to these here:
http://www.pleistoscene.com/theatre.htm
skip the intro stuff [unless u want 2c it]
goto 1:00 and 11:00 i believe it is where the news &journal are..something like that..all they use is a flash document with a TXT file they simply upload.
I know you find stuff like this for News tickes, but im not looking for a ticker..something for my news portion of my site and a journal iam creating..this is the only site i knew of that had them.


any support is appreciated..thanks
.worm

View Replies !    View Related
Embedded Fonts Vs Non Embedded
I am in the process of learning flash inside and out. During the testing phase of my design site I noticed that some of the text appeared very thin and hardly legible while other text was bold and vibrant. I checked the settings of the fonts to see if it was a Bold character setting issue but the fonts that were vibrant and thick had no Bold character setting at all. After many hours of comparing the different text boxes on the screen I realized that some of the text box had the embed font option on. This makes text less vibrant. Atleast it did with the particular font I used. Is it possible to cut down on memory while embedding the fonts and still have vibrant looking text? Try making several white text boxes on a black background with some of them being embedded and others not and you will see what I mean.

Best Regards,
Sam

P.S. THIS FREAKIN SITE ROCKS!

View Replies !    View Related
Why Do Embedded Fonts Blur When Non-embedded Fonts Dont?
If someone could offer a suggestion here I'd be much obliged. I'm trying to build a web site using pixel fonts but since very few people have this particular font, I'm trying to embed the font. The problem is that when I don't embed it looks perfectly sharp, but as soon as I embed it blurs them (as if it tries to anti-alias a pixel font.. which I don't want it to do)... any ideas?

View Replies !    View Related
Flash Embedded In Flex Embedded In Flash
I have a flash 9 as3 movie that contains a flex flv player that uses an embedded flash flv player. All works great, except the main timeline of the top level flash movie, I need to unload the embedded flex/flash when someone exits the video player. Currently the player is unloaded from the stage, but the movie continues to play (still hear audio).

The flex application & flash flv player (as2) communicate via local connection. Works great standalone.

The wrapper flash movie is dynamically loading the flex application via Loader.
The main timeline contains a flvPlayer:MovieClip instance of "movieClip".

movieClip contains the actionscript to load & display the flv player via myLoader:Loader.

So... root->movieClip->myLoader

I have another movie that contains animated navigation... I need to check & see if the moviePlayer is loaded when any navigation button is clicked... if it is, unload it.

Currently I have...


ActionScript Code:
if(MovieClip(this.root).moviePlayer)
  if(MovieClip(this.root).moviePlayer.parent ) {
    trace("Deleting");
    var c:MovieClip = MovieClip(this.root).moviePlayer.myLoader.content as MovieClip;
    c.myLoader().unload();
    c.removeChildAt(0);
}
...which doesn't work.

I have a feeling that I just need to stop playback of the actual movie first? If that's true, then I need to be able to access the Local Connection (toFlash_lc:LocalConnection) of the Flex Application to fire the setPath of the flex-embedded flv player. toFlash_lc is in the swf loaded via myLoader.

So I need to be able to call a function (local to Flex) that contains...

ActionScript Code:
toFlash_lc.send('lc_from_flex', 'setPath',String(event.currentTarget.mediasource))
... or call this directly.

I'm out of things to try. Can anyone help?

Kevin

View Replies !    View Related
Height Of A Mc At A Certain X Pos
Please take a look at the following:

Alien

What I want to do is make the alien walk over the red line.
So I guess,.. I need the height of that redline movieClip at a certain x position.

I need some code like this in the alien_mc ( but than working):

ActionScript:
onClipEvent (enterFrame) {
this._y = "height of the redline_mc at the same _x position";
}




Is something like that possible? How can it be done?
Thanx in advance

View Replies !    View Related
Get Max/Min Height
Hey,

this is prob a real simple answer but how do I stop one movieclip from going outside the boundry of another?

I'm guessing i need to assign maxHeight and minHeight according to the other movieclips dimensions.

What i have is on the main time line a movieclip load which i'm using as a spaceship in my game. But i dont want it to be able to go "off"" the screen so need to set a boundry.

I think i need to set a onClipEvent on the spacesip movie clip to assignthe max/min height.

Any help?

Sean

View Replies !    View Related
100% Height
Hello

i want to my swf will bt 100% for heigth
i try this in html

PHP Code:



  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="100%" height="100%">
    <param name="movie" value="diaporama.swf" />
    <param name="quality" value="high" />
    <embed src="diaporama.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100%" height="100%"></embed>
  </object> 




for width its ok but for height is not working

thanks

View Replies !    View Related
Font Height
Is there anyway to determine the height of an font using flash actionscript? The font name and font size may change via Actionscript and html formatting.

View Replies !    View Related
Height Of MovieClip
Hi,
Any idea on how can I get the height of the movieclip

View Replies !    View Related
Get Height And Width
I have a instance of a button into a flash swf file.
This button have next instruction:

on(release){
getURL("javascript:window.open('http://www.xxxx.com/site/photo.jpg,'name_your_window','height=200,width=200 ');void(0);");
}

Every jpg file have diferent sizes. How can i get the height and the width of the jpg files to open the new window with the original sizes of the jpg photo.

View Replies !    View Related
Camera With Height Or Something....
Hi, big question.
I have a 3d-man and I want the camera, with the camera I mean the view that everybody sees if they are watching the movie, to start above the man and then go down. I think it's something with height or something but could someone please help me?
Maybe I'll explain it with an image:
X = the 3D model
* = the camera

First:
*
X

Then :
X*

And at last :
X
*

Could someone please help me?
Thanks

View Replies !    View Related
Getting Height And Width Of An MC
How do you get the height and width of an MC using actionscript ??

Thx in advance

View Replies !    View Related
Height Of Text?
Hi all,

I have a multi-line dynamic text field and need to place an object immediately below the bottom line of text.

The problem is that I don´t know how to access this value (the bottom position). I can't use TextField._y and TextField._height since TextField._height refers to the the height of the textField object and not the actual text.

Any help would be appreciated.

Regards,

Makac

View Replies !    View Related
Increase Height By 1 Px Up To 100 Px
how to Increase height by 1 px up to 100 px using actionscript.

thanx

View Replies !    View Related
Dynamic Height Of Mc
ive got an mc that has 4 text boxes. one of the text boxes will sometimes hold a large amount of text. i was wondering how i can increase the height of the mc as well as the text bos to ensure that all teh text is visible in the clip.

View Replies !    View Related
Width And Height
Are all the screen resolutions proportional to each other? You see, I need to make a full screen SWF, and I am wondering if it will look the same in different resolutions.

View Replies !    View Related
Layer Height
I have seen some FLA's whose layers are much shorter in height than the Flash default.

How is this done?

In the 'Layer Properties" window, there is a 'Layer Height' field, but the lowest choice is 100% (flash default).

View Replies !    View Related
Height Of A Mc At A Certain _x Position
Please take a look at the following:

Alien

What I want to do is make the alien walk over the red line.
So I guess,.. I need the height of that redline movieClip at a certain x position.

I need some code like this in the alien_mc ( but than working):

ActionScript:
onClipEvent (enterFrame) {
this._y = "height of the redline_mc at the same _x position";
}




Is something like that possible? How can it be done?
Thanx in advance

View Replies !    View Related
Height And Angle
how would i match the angle of a mc to the height of a mc like if its coming down then its facinf down and if its goin up hen its facing up, ect

View Replies !    View Related
Set Combobox Height?
Howdy,

Does anyone know how to set the height of a combobox? It automatically sets its size according to the font used. I know how to set the length.

Thanks

View Replies !    View Related
Getting Image Height
my script creates an empty movieclip in the stage and loads an image targeted to it

i want to know the script to trace the height of the loaded image

so that i can place another emptymovieclip below it to load another image

View Replies !    View Related
Width And Height?
So i have this picture, that loads into 2 movie clips, movie clip A is on screen and is reduced in size, movie clip B loads off screen and is full size. I have 2 text boxes that take the height and width of picture B, and load them into the text boxes. Now, movie Clip A the code for it is this:

onClipEvent (data) {
this._height = 300;
this._width = 400;
}

But i want something like this:

onClipEvent (data) {
this._height = text from the dynamic text box divided by 2;
this._width = text from the dynamic text box divided by 2;
}


so...i tried this._height = this.height/2 but that just kept shrinking the pictures by 50% as i kept scrolling...

View Replies !    View Related
Getting Height Of Loaded SWF
I'm using Flash MX 2004 and I'm trying to get the height of a movie I loaded into an empty movie clip. When I use trace to find out the height, it only displays the original height (0), and not the current height with the content loaded into the empty.

I have this attached to a button on the main timeline:
Code:
on (release){
loadMovie("clip_content.swf", "empty_clip");
trace(empty_height);
}
and this variable initialization is on a "scripts" layer on the main timeline:
Code:
empty_height = empty_clip._height;

View Replies !    View Related
Max Width, Height
Dunno why but when i load images into a movieclip....the max width the mc can have is 2880 so larger images are not completely visible...is this fixable? i mean what if i want it to be till 4000 for example....

View Replies !    View Related
Set Height Of Mc Same As Textfield
Hi all,

I'm working on a dynamic menu that automaticly generate the items and is easy to customize.

Now i've got a little problem and i don't see why it won't work?!

This is my code:

Code:
//Stylesheet
css_button = new TextFormat();
css_button.bold = bold;
css_button.font = "Cottingley";
css_button.size = 12;
css_button.color = "0xFF0000";

//menu items
total = 7;
text1 = "Werken bij United Restart";
text2 = "Persberichten";
text3 = "Aanvraag financieel jaarverslag USG";
text4 = "United Service Group";
text5 = "Plaatsings-percentage en doorlooptijden";
text6 = "Downloads";
text7 = "Privacy regelement";
stop();

//initialize main menu
for (i=1; i<=_root.total; ++i) {

//duplicate movie clip
menuMC.duplicateMovieClip("menuMC"+i, i);

//create a dynamic textfield
this["menuMC"+i].createTextField("txtf", 1, 15, 0, 128, 19.6);

//Add stylesheet to button texts
this["menuMC"+i].txtf.setNewTextFormat (_root.css_button);

this["menuMC"+i].txtf.text = eval("_root.text" + i);

//Textfield specs
this["menuMC"+i].txtf.autoSize = true;
this["menuMC"+i].txtf.wordWrap = true;
this["menuMC"+i].txtf.multiline = true;

//Change Depths so hitarea is on top of the generated textField
this["menuMC"+i].hitarea.swapDepths(2);

//set Height Menu items same as height of the item's texts
this["menuMC"+i].bg_button._height = this["menuMC"+i].txtf._height;

//set Height hitarea same as height of the item's texts
this["menuMC"+i].hitarea._height = this["menuMC"+i].txtf._height;

//set new position
this["menuMC"+i]._y = this["menuMC"+(i-1)]._y + this["menuMC"+(i-1)]._height+2;
this["menuMC"+i].choice = i;
}
The bold part is what is causing me a headache. I want to set the height of the hitarea (like i did with the background of the menu items) the same as the textfield height, but somehow this doen't work?!?

I've traced it and then the output gives just all 0's (zero's).

Anybody can help me out here, because i've no idea why this is causing a problem.

Thanx in advance!

View Replies !    View Related
Text Height
Hello I am trying to create a navigation where each button has a set width but can have a changeable height... My problem is flash doesnt seem to be able to change the height of a text field dynamically anymore...

If i make the text field a set height the I dont seem to be able to read how high the text is in the text field... and so size the button background accordingly...

If i make the text field too small for the text it wont expand downwards to accomodate the new text (iwas thinking if i could do this i could measure the height of the text field it was in?

any ideas?

View Replies !    View Related
Stage.height
Sorry to bother you all but I'm wondering if you know whether I can alter the stage size directly from within actionscript? Can I just use

Stage.height = 500;

I've tried this as a frame action but to no effect. Do you know if you can alter stage height directly like this?

Regards,

5leander5

View Replies !    View Related
Stage.height = 0?
I'm making a 728x90 banner in Flash MX 2004 - publishing as Flash 6 AS 1.0

trace(Stage.width) yields an output of 728 at all times

I put trace(Stage.height) in an onEnterFrame function - the first iteration yeilds 0, the second and all following yield 90

Any way I can fix this or do I just have to work with the fact that Stage.height isn't defined before my actionscript starts?

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved