How Can You Change Stage Height
I've seen this site:http://www.ultimatepc.com/#profiles/ilovedustHow can you chage the swf size form 670 pixels to X depending of your content and affecting to the HTML?I've never seen this before... any clues?Thanks
Actionscript 3.0
Posted on: Mon Oct 06, 2008 11:57 am
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
MC Size Change With Height On Stage
Here is a vauge question perhaps, as I have no action script to show as an example.
I need to know how to have an MC's height and width propotionate to it's y possition on stage. For example... I launch a red circle from the bottom of the stage, the higher it goes the larger the head, and as it falls the head shrinks back down
CHANGE STAGE HEIGHT ON CLICK
Hi guys...
I have a question, I hope someone can give me a push to create this:
I'm creating site with a large movie on the header:
http://www.mlsvallarta.net/index.cfm
this movie is inside a table with height="200"
IS THERE A WAY TO PLACE A BUTTON INSIDE THE MOVIE AND WHEN I CLICK ON IT, THE STAGE OF THE MOVIE GETS LARGER with out geting any distortion inside the movie (content)?... if this can be done what happen with the table height, when I click again to set the movie back to 200 height?
Any ideas?... or any action script tips?
Felipe Serrano
Stage.height Doesn't Change When Mozilla Add Tab ?
Hi,
I'm trying to detect the change of Stage.height size. it works well until I tested it on FireFox.
Detail :
- open firefox, brand new condition (there's no tab bar yet).
- add new tab (firefox will add a new bar (tab bar)) --> there's change of height.
- Flash doesn't realize Stage.height had been changed.
I've tried to check the Stage.height via onEnterFrame (so it keep on reading). But the result is the same.
This doesn't happen when I publised it with wmode=transparent in embed tag. .....BUT.... the side effect is..... my onMouseWheel doesn' fire.
Any suggestion ???
Thank you very much.
Change Stage And/or Browser Height Dynamically
hi, folks,
I have this website. There are 3 pages with different heights. I am loading external swf in a main movie to save loading time.
But i ran into a issue. One page has the height of 1900px and the other 2 have 650px (give-or-take), in other words, 3 times the size of the first one.
I read in Flash/ActionScript specs that we cannot set the height of the stage thru AS or alike. So i had to set the main stage height based on the bigger which gives me a massive scroll bar on the other ones.
Does anyone know how to solve this? I heard you could do it with JavaScript, but how? Any tutorials, comments, light, insight? Anything?
thanks for your time and help,
mr_n00
Change Stage Height Based On XML Content
Hey everybody.
I have a flash file that basically pulls the 5 most recent podcast episodes from a podcast xml file and displays them on a website. Now the text of the descriptions of each episode is always different, so if the descriptions are particularly short there is a lot of empty space at the bottom of the flash stage. Conversely, if they are long, the bottom gets clipped off. Is there a way to change the stage size based on the bottom of the text box?
If you want to see exactly what I'm talking about, go to http://www.agriculture.com and scroll down to the red bar that says "On the air" .
Thanks!
Dynamically Change Stage Size Depending On Content Height
Hi guys
I'm asking myself how I resize (or tween-resize) the size of a flash movie depending on its content.
Take a look at: http://www.pierinc.com
When you click on a new page, the stage size resizes depending on how large the page is.
Do I have to use javascript to do this (because I can't find the javascript on the pier website to take a look at it).
Or can I do this with actionscript?
Thanks in advance
Arcko Drazen
Stage.width And Stage.height Not Matching Document Settings?
Ok, so I have no idea why this would be happening and its driving me nuts. I have my Flash movie size set to 960x650. However, when I trace stage.width and stage.height, I get:
950.05x630
Why in the world would this be happening? It's screwing up all the work I'm trying to put into positioning elements relative to the stage size. Thanks for any help!
Stage.height And Stage.width Erratic Values?
Hey folks,
I was wondering if it happens in all Flash everywhere, or just in mine:
When I trace Stage.height and Stage.width, I always get erratic values:
Stage.height gets me always 4 pixels less than real
Stage.height gets me always 104 pixels less than real
This, way if my stage has 760 x 400, it will return values 756 x 296.
Anybody knows why?
Thanks!
Stage.width, Stage.height, Add.Listeners Problem
Hi
i found the way yesterday to ensure my mc stays full screen. now i want to animate the same mc if i can in reaction to a button click.
not sure how this next step goes. do i need another addlistener to the background mc that im tweening ?
kindly check the .fla. to see what i mean.
its very rough cut but hopefully you can get the gist of it.
when the text button is clicked, the bg reverts to the top left of the screen.
thanks
-dj
MX2004 -- Stage.height And Stage.width Different From Mac To Windows
I have a really strange problem that is ruining my movie. I have set the size of the stage to 450px by 400px in the properties dialog. In my actionscript, I've got all kinds of things that rely on Stage.width. So, I developed everything in MX2004 on Mac, and everything worked swimmingly. So, I opened up the exact same file in MX2004 and everything is placed wrong on the stage. So when I did a trace of Stage.width, I got 940px, and a trace of Stage.height gave me a figure of 763 pixels. If I do the same traces on the Mac, I get what I expect, 450px for width and 400px for height. Does anybody have any ideas as to what might cause this kind of discrepancy?
Thanks,
John
Stage.width & Stage.height Problems
Why is it when I use this script attached to an empty movie clip the box seems to always be short on the height side? The width is fine. See attached FLV.
frame.fla.zip
Thanks in advance for any feedback.
Code:
onClipEvent (load) {
this._x = 0;
this._y = 0;
this.moveTo(0, 0);
this.lineStyle(1, 0x000000, 100);
this.beginFill(0x000000, 0);
this.lineTo(Stage.width-1, 0);
this.lineTo(Stage.width-1, Stage.height-1);
this.lineTo(0, Stage.height-1);
this.lineTo(0, 0);
this.endFill();
}
Stage.height & Stage.width Return 0
First, hey there, cool forum. This is my first post...anyways...
I'm having what, I want to assume, is a common issue and there's something I'm missing here...I have a flash movie that works fine (that is Stage.height and Stage.width) return their proper values when the actual SWF is played in the flash player, however, when I put the movie into an HTML page and set it's height and width to 100%, Stage.width and Stage.height are 0 and my neato script breaks.
I realize I'm scaling the movie, but it seems to me that Stage.width and Stage.height should work regardless...and the fact it gives me 0 is even more odd, as though it's not working at all.
Stage.width, Stage.height
Does anyone know why the stage dimensions are coming out wrong. I have a movie set at 800 x 600. I do trace(Stage.width);
trace(Stage.height); and get 796 and 596. What's going on here? I have seen at least one other post with the same issue, but there were no responses.
Best regards...
Lance
Stage Width Vs. Stage Height
hello.
still looking how to maintain max. stage width and height. i have managed to achieve it on the width, but for some reason have been unable to do it for the height. that is, i have managed to make a line go from one side to the other (almost) but cant figure out how to do it on the vertical.
zbot is the horiz line at the botton
ztop for the one above
the problem, is for xleft (the vertical lineon the left)
i have included what i think to be the nearest code yet, and a fla.
any help, thanks a lot.
Code:
Stage.align = "LT";
Stage.scaleMode = "noScale";
bg._width = System.capabilities.screenResolutionX-20;
bg._height = System.capabilities.screenResolutionY-70;
bg.onResize = function() {
this._x = (Stage.width-this._width)/2;
this._y = (Stage.height-this._height)/2;
};
Stage.addListener(bg);
zbot._x = 62;
zbot.onResize = function() {
this._width = Stage.width;
};
Stage.addListener(zbot);
////
xleft._x = 270;
xleft.onResize = function() {
this._height = Stage.height;
};
Stage.addListener(zbot);
////
ztop._x = 62;
ztop.onResize = function() {
this._width = Stage.width;
};
Stage.addListener(ztop);
// get the content clip to stay fixed horizontally centred
content.onResize = function() {
this._x = (Stage.width-this._width)/2;
};
Stage.addListener(content);
// manually invoke the onResize events for the clips to start things off
bg.onResize();
zbot.onResize();
ztop.onResize();
xleft.onResize();
content.onResize();
Stage.width Stage.height Help
I have the main swf(main) which loads in another swf(loaded). The loaded swf looks at the main swf for the Stage.width and height.
Is there a way for the loaded swf to look at its own Stage.width and height and not main?
[AS] Stage.width & Stage.height
Is it possible to dynamically adjust the Stage.width / Stage.height properties. As an example, my author time stage settings are at 700 by 500. Based on what I pulled from database, is it possible to resize the dimensions of the root swf based on the content which is tabulated into the data ?
Stage.width & Stage.height
Can someone please look at my code and point out the obvious where I cannot see?
Everything seems to be working correctly with the exception of the Stage.width and Stage.height properties the pictures float off the stage.
Code:
import mx.transitions.Tween;
var photoScale = 30;
var photoAlpha = 60;
var clipWidth = 380;
var clipHeight = 300;
var flyerInit:Object = Object();
randomize = function (min:Number, max:Number):Number
{
var range = max - min;
var resultRandom = Math.random() * range;
resultRandom += min;
return resultRandom;
};
flyerInit.onEnterFrame = function()
{
this._x += this.speedX;
this._y += this.speedY;
this._rotation += this.speedR;
if (this._x < 0 || this._x > clipWidth)
{
this.speedX *= -1;
this.speedR *= -1;
}
};
if (this._y < 0 || this._y > clipHeight)
{
newFlyer.speedY *= -1;
newFlyer.speedR *= -1;
}
flyerInit.onRelease = function()
{
if (!this.select)
{
this.speedX = 0;
this.speedY = 0;
this.speedR = 0;
var locxTween:Tween = new Tween(this, "_x", non, this._x, clipWidth / 2, 1, true);
var locyTween:Tween = new Tween(this, "_y", non, this._y, clipHeight / 2, 1, true);
var rotateTween:Tween = new Tween(this, "_rotation", non, this._rotation, 0, 1, true);
var scalexTween:Tween = new Tween(this, "_xscale", non, this._xscale, 100, 1, true);
var scaleyTween:Tween = new Tween(this, "_yscale", non, this._yscale, 100, 1, true);
var alphaTween:Tween = new Tween(this, "_alpha", non, this._alpha, 100, 1, true);
var newDepth = this._parent.getNextHighestDepth();
this.swapDepths(newDepth);
this.select = true;
}else {
this.speedX = randomize(-2, 2);
this.speedY = randomize(-2, 2);
this.speedR = randomize(-2, 2);
var scalexTween:Tween = new Tween(this, "_xscale", non, this._xscale, photoScale, 1, true);
var scaleyTween:Tween = new Tween(this, "_yscale", non, this._yscale, photoScale, 1, true);
var alphaTween:Tween = new Tween(this, "_alpha", non, 100, photoAlpha, 1, true);
this.select = false;
}
};
for (var i:Number = 1; i < 9; i++)
{
var newPhoto:String = "p" + String(i);
var newName:String = "flyer" + String(i);
var newDepth:Number = this.getNextHighestDepth();
var newFlyer = this.attachMovie(newPhoto, newName, newDepth, flyerInit);
newFlyer._xscale = photoScale;
newFlyer._yscale = photoScale;
newFlyer._alpha = photoAlpha;
newFlyer._x = Math.random() * clipWidth;
newFlyer._y = Math.random() * clipHeight;
newFlyer.speedX = randomize(-2, 2);
newFlyer.speedY = randomize(-2, 2);
newFlyer.speedR = randomize(-2, 2);
newFlyer.select = false;
}
please help
thanks,
tmo
F8 Movieclip Change On Stage Causes The Entire Stage To Dissapear
I have my stage with a background picture.
On stage left are buttons, and on stage right I have a movieclip (mc_Preview).
When the user puts his mouse over each button I would like the movieclip to move to a different frame.
the problem is when the mouse moves over a button, i see the movieclip move but then the entire stage dissappears and turns a few shades of gray.
Does this sound familiar to anyone?
Any help would be greatly appreciated!
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
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?
Stage.height
I am embedding my flash movie with a height of 700px.
How would I be able to detect if the clients browser is displaying over 700px in height? I will be collecting this information in realtime with use of a stage listener.
Stage.height would not help in this instance as there will always be a render of 700. (because of the embedded parameter) I’m also trying to stick to actionscript as apposed to javascript on this one.
Does anybody know how I may solve this problem?
Thanks in advance..
Stage.height
quick little bug I haven't been able to figure out.
Or something of the sort, at least.
Stage.height has been reporting 100 pixels less than the actual stage's height lately. Of course, I could just add 100 and move on my way, but I was wondering if anyone could actually point me in the direction of what is actually going on.
Get Stage Height
I'm building a component in MX 2004 (although it applies to MX as well) and I'm having difficulties retrieving the stage height and width of the movie. Within a movieclip I've placed this code:
ActionScript Code:
trace (_parent.Stage.width)
The trace command outputs a variable of 'undefined'. Why is this?
Stage Height
when I preview my movie, the stage height is always returned 100 pixels less than the actual height. This doesn't happen when the movie is previewed in a browser.
Does anyone have an answer to why this is happening? I've seen the problen addressed elsewhere, but with no reason/solution....
Stage Height
I am new at this so hopefully this won't be too complicated. I have a home page that loads a .swf file when it opens. The buttons on the home page load a new .swf file using LoadMovieNum. My problem is that each of these files is a different height. If I make the home page long enough to scroll the .html file then those that are shorter have a lot of white space at the end. An example is the height of the home page is 1200. The other .swf files being loaded vary from 650 to 1200. The one that is 650 has a lot of extra white space to scroll through. Thanks in advance for helping.
Stage.height Bug?
There seems to be a Stage.height bug in Flash CS3?
My movie is 800x600.
However while testing my movie in Flash CS3 it returns 800 x 500!
When running SWF in Player it returns 800 x 600.
Has anyone else experienced the same issue?
David D.
Stage Height
Hi guys,
Is there a bug with stage height in Flash? Every time I use that and run a trace statement, it's wrong.
Stage.height Problem
Having some trouble with the Stage class. I know about the "bug" with stage.height but i still cant get it to work right. Ive got a stage height set manually to 400 px but when i run this loop: code:
this.onEnterFrame=function() {
count++;
trace(count+ " "+Stage.height);
}
//it returns:
//1 300
//2 300
//3 586
//4 586
//5 586
//...etc
programming in flash 7 as2.0, but published in 6 and 1.0 does the same thing. what a head scratcher. anybody?
Stage.height Returning 0
Hi all,
Has anyone else found that the Stage object sometimes returns a height of 0 for the first 5-10 frames of a movie loading?
I have a swf that's resizing content according to what size the stage is set to, I need to get this set up on the first frame, which is impossible when Stage.height is lying about it's value!
Has anyone else experianced anything similar, or found a workaround?
Cheers,
Tom
Stage.height Read-only ?
Is the Stage.height property read-only ? Is there any way I can modify it while the movie is playing ?
Browsed the web and the only thing that I found was a post in which someone was saying that it might be possible with JS but didn't gave any details on how to do it.
Stage Height Problem... Please Help
I have some code that I put together and am having problems with it now. It is originally was intended for fullscreen but I want to now restrict it to the size of a container I will load it into. Say it will be 900 x 617.5. Can someone take a look and talk with me about it.
PHP Code:
//SOME SETTINGS
fscommand(showmenu, false);
fscommand("fullscreen", true);
Stage.scaleMode = "noScale"
// these variable you can play with, set them to your preferences
mousescrollSens = 6;//sensitivity of the scroll button of your mouse
contentEase = 3;// the ease of the contentif you dont want no ease, set the var to 1;
// LISTENER TODO FUNCTION
// This function is executed by the listener you will see more down
// and once directly when the file is opened.
// It basicly sets all items present on the stage to its position and size
function toDoListerner() {
scrollBack._height = Stage.height;
backg._height = Stage.height;
scrollBack._y = 0;
scrollButton._y = 0;
}
// SET THE VISIBILITY ANH LENG OFF THE SCROLLBUTTON
// This on enter frame function tells the scrollbutten what size it should have, i calculates the browser height and the lengt of the content
// Just like the real browser scrollbar!!
scrollButton.onEnterFrame = function():Void {
devider = container._height/Stage.height;
scrollButHeight = Stage.height/devider;
mover = (scrollButHeight-this._height)/5;
this._height += mover;
// if the scrollbar is not needed it disapears
if (container._height<Stage.height) {
mover = (0-this._alpha)/5;
this._alpha += mover;
this._y = 0;
} else {
// it apears when it is needed!
mover = (100-this._alpha)/5;
this._alpha += mover;
}
};
// SCROLL BY DRAGGING THE BUTTON
// These are the four states of the scrollbutton:
// RollOver playes the the animation inside the button to make in turn white
scrollButton.onRollOver = function():Void {
this.gotoAndPlay("up");
};
// RollOvut playes the the animation inside the button to make in turn blue again
scrollButton.onRollOut = function():Void {
this.gotoAndPlay("down");
};
// onPress starts the drag, the paramaters are there so it dont drag over the whole screen but only on the side of the browser
scrollButton.onPress = function():Void {
this.startDrag(lockCenter,300,0,300,Stage.height-this._height);
};
// onRealease stops the drag
scrollButton.onRelease = scrollButton.onReleaseOutside = function():Void {
this.stopDrag();
trace(container._height);
};
// SCROLL BY MOUSEWHEEL
// This mouse listtener object tells when the mouse wheel is scrolled
// the if statements are there to keep the scollbutton on his track
scrollMouse = new Object();
scrollMouse.onMouseWheel = function(delta) {
scrollButton._y -= delta*mousescrollSens;
if (scrollButton._y<0) {
scrollButton._y = 0;
}
if (scrollButton._y+scrollButton._height>Stage.height) {
scrollButton._y = Stage.height-scrollButton._height;
}
};
Mouse.addListener(scrollMouse);
// SCROLL BY CLICKING SCROLLBAR
// This inline function tells the scrollbutton to move to the mouse position when clicked.
// so you can click on the scrollbar as well (just like in a normal browser!)
scrollBack.onPress = function():Void {
maxPos = Stage.height-scrollButton._height/2;
if (_root._ymouse>maxPos) {
scrollButton._y = Stage.height-scrollButton._height;
} else if (_root._ymouse<scrollButton._height/2) {
scrollButton._y = 0;
} else {
scrollButton._y = _root._ymouse-scrollButton._height/2;
}
};
// SETTING THE STAGE LISTENER
// Here I created a listener which listes if the browser is resized.
// each time the browser resizes, the toDoListener function is executed, (see whats in therr!)
var myListener:Object = new Object();
myListener.onResize = function() {
toDoListerner();
};
Stage.addListener(myListener);
// I execute the toDoListeren function als once directly when the movie is openend
// to set everything on position :-)
//toDoListerner();
toDoListerner();
// SETTING THE CONTENT POSITION
// This inline function tells the content to move to the position according to the position of the scrollbutton
// it only does so when the content is longer than the stage.
// When the content fits on the steg it just centers the content X and Y position
// I'll brake it down a little:
container.onEnterFrame = function() {
// the x and y position when content is smaller than the browser height
yPos = 50;
// always moves the content to the right y position when it fits though
if (this._height<Stage.height) {
if (yPos != Math.round(this._y)) {
mover = (yPos-this._y)/contentEase;
this._y += mover;
if (yPos == Math.round(this._y)) {
this._y = yPos;
}
}
} else {
// moves the content to the position according to the scrollbutton
// everything between this 'else' statement is only executed when content is longer than the browser
// and the scollbar is needed
contentScroll = this._height-Stage.height;
dragScroll = Stage.height-scrollButton._height-50;
scrollTo = 50-(contentScroll*(scrollButton._y))/dragScroll;
mover = (scrollTo-this._y)/5;
this._y += mover;
}
};
// IMPORTING FUSE KIT
import com.mosesSupposes.fuse.*;
ZigoEngine.register(Fuse,PennerEasing,FuseFMP);
// SETTING FUSE FUNCTION PROTOTYPE
MovieClip.prototype.sizer = function(param2, dL) {
var fObject:Fuse = new Fuse();
fObject.push({target:this, _height:param2, seconds:1, delay:dL, ease:"easeInOutCubic"});
fObject.start();
};
MovieClip.prototype.mover = function(param1, dL) {
var fObject:Fuse = new Fuse();
fObject.push({target:this, _y:param1, seconds:1, delay:dL, ease:"easeInOutCubic", func:whenDone, scope:this});
fObject.start();
};
MovieClip.prototype.fader = function(param1, dL) {
var fObject:Fuse = new Fuse();
fObject.push({target:this, _alpha:param1, seconds:1, delay:dL, ease:"easeInOutCubic"});
fObject.start();
};
// FUNCTION CALLED WHEN DONE
function whenDone():Void {
movingProgress = false;
}
// LOADING THE XML INTO A ARRAY
var rubrieken:Array = new Array();
var acticBut:Array = new Array();
var myXML:XML = new XML();
myXML.ignoreWhite = true;
myXML.onLoad = function(success) {
if (success) {
menuItems = this.firstChild;
for (i=0; i<menuItems.childNodes.length; i++) {
rubriek = menuItems.childNodes[i];
rubrieken.push(rubriek);
}
}
// As sson as the data is loaded int the array the function below will be executed
attachMenu();
};
myXML.load("xml/rubrieken.xml");
// ATTACHING THE MENU
function attachMenu() {
for (i=0; i<rubrieken.length; i++) {
var menuItems = _root.container.attachMovie("button", "button"+i, 10000+i);
menuItems._y = menuItems._y+(50)*i;
menuItems._href = rubrieken[i].attributes.href;
menuItems.contentT = rubrieken[i].attributes.naam;
menuItems.theTitle.text = rubrieken[i].attributes.naam;
menuItems.theDate.text = rubrieken[i].attributes.newsdate;
menuItems.pasi = i;
// The events when you roll over the button
menuItems.onRollOver = function():Void {
}
// The events when you roll off the button
menuItems.onRollOut = function():Void {
}
// The events when you click the button
menuItems.onRelease = function():Void {
setMenu(this, this.pasi);
}
}
}
// OPEN OR CLOSE ITEM FUNCTION
function setMenu(theItem, pasi) {
if (!movingProgress) {
for(i=0; i<acticBut.length; i++) {
if(pasi == acticBut[i]) {
goCheck = true;
}
}
if (!goCheck) {
if (theItem != _root.activItem) {
_root.activItem = theItem;
acticBut.push(pasi);
theItem.contentHolder.contentText.text = rubrieken[pasi].attributes.desc;
theItem.contentHolder.contentText.autoSize = "left";
theItem.contentHolder.fader(100, 1);
theItem.masker._height = theItem._height;
theItem.masker.sizer(theItem._height);
for (i=0; i<rubrieken.length; i++) {
if (i>pasi) {
movingProgress = true;
_root.container["button"+i].mover(_root.container["button"+i]._y+(theItem._height-30));
}
}
}
}
else {
goCheck = false;
_root.activItem = false;
theItem.contentHolder.contentText.text = "";
theItem.contentHolder.contentText.autoSize = "left";
acticBut = remItem(acticBut, pasi);
theItem.contentHolder.fader(0);
theItem.masker.sizer(50);
for (i=0; i<rubrieken.length; i++) {
if (i>pasi) {
movingProgress = true;
_root.container["button"+i].mover(_root.container["button"+i]._y-(theItem._height-35));
}
}
}
}
}
function remItem(arr, item){
tempArray = [];
for (i=arr.length-1; i>=0; i--) {
if (arr[i] != item) {
tempArray.push(arr[i]);
}
}
tempArray.reverse();
arr = tempArray;
return(arr);
}
This is the final touch to my project and I really desparately NEED help!
Move To The Stage Height
When I tell an object to move to the 'Stage.height' it moves to the bottom edge. How do I get it to move to the opposite end (the top) while taking everyones screen resolution into consideration?
Scrollbar-(Stage Height)
Was wondering if anyone could help me find a tut. or open source for a scrollbar for a movie clip that adjusts to the stage height although its full screen vertically but the width and its horizontal position are not.
also hide the scrollbar when content fits.
thank you,
Dynamic Stage.height
Hi,
would like to know if i can script in such a way that my stage.height will change according to the height i give??
Stage Height On Loading Swf Into Another
Hi,
I am sure this is a common issue and hopefully there is a solution:
If I load an swf into another swf is there a way of getting the stage height of the child moviclip.
I know the loaded movieclip stage will be the same as the parents (i.e. I know there is only one stage)
So what I need is a way of setting a variable in the child swf when it is published based on the height of the childs stage that can be accessed but will not be changed by the parent.
Does this make sense? I am looking for the most simple solution possible - I am aware I could make transparent MCs and get the height but this means I would have to resize this mc every time I need to adjust the childs stage height.
Any help/ideas appreciated.
pw
Stage Height/Width
I have searched, and for some reason, I cannot get this.
I want to get the width and height of the stage, and set one of my objects to that height and width...
I currently have this:
ActionScript Code:
videoP.height = Stage.stageHeight;
videoP.width = Stage.stageWidth;
Stage Height And Width
can I define some properties of the Stage, like width, height or the background color, by actionscript?
How Get Stage.height 100% In Mozilla?
Problem: Mozilla doesn't recognize Stage.height as other browsers do. I like to place a object relative to the height the users like their windows to be. Say I want to place a mc_ 30px above the bottom of the stage. In most browsers this is not a problem.
Like this:
mc_._x = Stage.height-30;
But, in Mozilla, no go. Can anyone help me with this? I've searched the web for a couple of hours, but found no solution yet ... Also, when I trace the value in Mozilla, I always get "Height:200", but the Width works fine (!?)
Stage.height And Width
Code:
this._x = 0 - (Stage.width - 780)/2 + 20;
this._y = 0 - (Stage.height - 570)/2 + 20;
This will give me top and left site 20px away..
How do i fix this for bottom and right side.
And the 2nd Question is.
Is there a solution to call for example 5 swf's and give him
something like width = 20%
Hope you know what i mean.
Greetz://
Stage.height Problems
Hi everyone: I have been having this really weird issue.
Flash is not measuring the height of my stage correctly: it cuts off 100 pixels. I have no idea what is the deal. I tried with brand new documents, and without fail, when I trace Stage.height, I get the wrong value...so it is obviously impossible to center anything without specifying pixel values.
Anyone else had the same problem, and possibly fixed it???
By the way, I am using an Intel iMac, Flash Professional 8 and Flash player 9, if any of this matters.
Thank you all: any help would be appreciated.
Stage.width And Height
I've set the stage to 640x400 and when i call Stage.width it returns 636...weird.
Has anyone encountered the same problem?
jtax
Stage.height & Width
i have built a site that launches a full screen flash site (no scale) and positions a bunch of mc in relation to the full screen.
everything works fine until you reload the page in IE 6 on the PC. the file forgets what the stage.height and stage.width are and loads the movie to the size of the main.sfw size. this only happens (as far as i can tell on IE on the PC). other browsers and platform work as they should.
any fixes?
How Get Stage.height 100% In Mozilla?
Problem: Mozilla doesn't recognize Stage.height as other browsers do. I like to place a object relative to the height the users like their windows to be. Say I want to place a mc_ 30px above the bottom of the stage. In most browsers this is not a problem.
Like this:
mc_._x = Stage.height-30;
But, in Mozilla, no go. Can anyone help me with this? I've searched the web for a couple of hours, but found no solution yet ... Also, when I trace the value in Mozilla, I always get "Height:200", but the Width works fine (!?)
Changing Stage Height
Hi,
I have a main movieclip that contains many instances of another type movie clip(say B). teh main mc is dropped on the main timline.
I want to increase stage height thru actionscript dynamically if i have more number f type B mclps..
If i use _height on main timleine it widens teh type B mclips too.
how do i increase only the stage height?
I tried _xscale property also, but no way.
I'd appreciate any help..
thanks,
shilps
|