Center/Resize Question
In a fullscreen application, I'm trying to keep a logo centered. Right now, with the code below, it first displays completely off centered to the right, then, once I resize the window, it centers itself...How can I make it centered right off the bat? Code: private function Header():void { rq = new URLRequest("assets/logo.png"); loader = new Loader(); loader.load(rq); header = new MovieClip(); addChild(header); header.addChild(loader); stage.addEventListener(Event.RESIZE, headerResize); stage.dispatchEvent(new Event(Event.RESIZE)); header.x = (header.stage.stageWidth / 2) - (header.width / 2); header.y = 20; } private function headerResize(e:Event):void { header.x = (header.stage.stageWidth / 2) - (header.width / 2); header.y = 20; }
KirupaForum > Flash > ActionScript 3.0
Posted on: 12-16-2008, 01:15 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Dynamic Resize Issue: Resize From Corner, Not Center
Okay. So I just got this little slide show I'm doing to load the next image (i'm still working on making it loop, so if anyone wants to help me with that, too feel free!)
As each new picture is loaded in the slideshow, I have a border that automatically resizes to fit it. Right now it's resizing from the center, is there any way to make it expand out from the top right corner instead of the center (since the orientation of the pictures are different, it looks a bit unnatural for what I'm doing)
Here is the code for my actions layer and if anyone can take a look and tell me what I need to change/add to make this work, I appreciate it!!
Code:
#include "mc_tween2.as"
space = 10;
photo_mc._alpha = 0;
MovieClip.prototype.loadPhoto = function(photo){
photo_mc._alpha = 0;
this.loadMovie(photo);
_level0.onEnterFrame = function(){
// modified the total and loaded so as to round it up
// to smaller number.
var total = Math.round(photo_mc.getBytesTotal()/1024);
var loaded = Math.round(photo_mc.getBytesLoaded()/1024);
if (total != 0 && loaded>=total){
var w = photo_mc._width + space;
var h = photo_mc._height + space;
border.resize(w, h);
delete this.onEnterFrame;
}
}
};
MovieClip.prototype.resize = function(w, h){
//the higher the slower the resize of the border
var speed = 6;
this.onEnterFrame = function(){
this._width += (w - this._width)/speed;
this._height += (h - this._height)/speed;
if( Math.abs(this._width-w)<1 && Math.abs(this._height-h)<1){
this._width = w;
this._height = h;
photo_mc._x = this._x - this._width/2 + space/2;
photo_mc._y = this._y - this._height/2 + space/2;
photo_mc.alphaTo (100, 0.5, "linear")
delete this.onEnterFrame;
}
}
};
image_mc.onLoad = setInterval( nextImage, 7*1000 )
;
-SD
Center And Resize
Hi.
I am trying to use a script that makes the background movie of a website resize to the size of the screen, the script work on explorer, when I resize the width but not when I resize the height; and it scale the background clip un proportionally on firefox
Here is the script: [originally posted here on flash kit]
// noScale prevents content in the movie resizing (unless we tell it to!)
Stage.scaleMode = "noScale";
// LT means all positions measured from the top left hand corner
Stage.align = "LT";
// a function to be called when the movie resizes
// this will resize the background clip to fill the stage
bg.onResize = function() {
this._width = Stage.width;
this._height = Stage.height;
};
// get the bg clip to listen for events (onResize)
// broadcast by the stage object
Stage.addListener(bg);
bg._x = bg._y = 0;
bg.onResize();
// this function will position the content clip in the centre
// when the movie resizes
content.onResize = function() {
this._x = (Stage.width - this._width) / 2;
this._y = (Stage.height - this._height) / 2;
};
Stage.addListener(content);
content.onResize();
I was trying to add the following code that fix the full screen command on firefox to the HTML file, but it still didnt work??
<style type="text/css">
html, body {
margin: 0; padding: 0;
width: 100%; hieght: 100%;
}
</style>
Dose anyone have any idea?
This is a nice use of something almost similar:
http://www.miamitrumptowers.com/
just that they are not resizing the background clip, but it still centering it dynamically
thanks
-A
[f8] Resize MC To Center
The code below is the beginings of and idea based on some code i have found!
basically i want to resize the textBlock on button press, but i want the new size to center on the stage. I'm not clear on how the var blockListener:Object = new Object();
works though?
function reSize(x, y)
{
extendTween = new TweenExtended(textBlock, ["_width", "_height"],
easingType3, [textBlock._width, textBlock._height], [x, y], 2, true);
textBlock._x = (Stage.width - textBlock._width) / 2;
textBlock._y = (Stage.height - textBlock._height) / 2;
}
var blockListener:Object = new Object();
blockListener.onLoadInit = function(textBlock:MovieClip):Void {
textBlock._x = (Stage.width - textBlock._width) / 2;
textBlock._y = (Stage.height - textBlock._height) / 2;
}
subNav.onPress = function ()
{
reSize(100, 100);
};
cheers
Rat
Resize MC With Easing From Center
Hi
I have been creating an XML gallery now got to showing the big images part. I want to create a resizing background (like at http://www.bearfootfilms.com/). I can create the effect but it always resizes from the top left not center.
Any one got any ideas?
I'm using the code:
var VTween = new Tween(picbg, "_width", Strong.easeInOut, 100, currentImage.largepicholder._width+20, 1, true);
var HTween = new Tween(picbg, "_height", Strong.easeInOut, 100, currentImage.largepicholder._height+20, 1, true);
Pop Up Window Center Or Resize.
Umm can some one help me on this one? I was wonder how i could resize a window in flash (MX) ? I have some script here
ActionScript Code:
on (release) {
getURL ("javascript:24-7studios=window.open('http://www.24-7studios.net/main.html','+++24-7STUDIOS+++','width=550,height=450,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No'); 24-7studios.focus(); void(0);");
}
That is for a pop up center. Iv tried it in flash mx but it didnt work. I know it will in flash 5. Can some one help me with this? I only have mx (i might have it at my moms ) but i doubt it. Can some one help me out? This is going to be for my splash page. I have 2 ideas, 1st ( I just open the main page in a pop up window) or 2nd (Resize the main one (index.html) to the size of the main page once clicked on.) I also have the script for the resize.
ActionScript Code:
on (release) {
getURL ("javascript:24-7studios=window.open('http://www.24-7studios.net/main.html','+++24-7STUDIOS+++','width=550,height=450,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No'); 24-7studios.focus(); setTimeout('24-7studios.resizeTo(500,500)',1000); void(0);");
}
If any one can tell me whats wrong or if i need to use flash 5 it would be greatly helpfull. Also if their a nother way to do it in flash (MX) that would be help full to.
How Do I Center Movieclips In Browser Resize?
I have just completed my first flash website and I have been testing it out in FireFox and it is aligned just right.But when I test it in IE and Safari its always aligned wrong. So how do I make to where no matter what browser I use all my movieclips are centered on stage? Thanks alot.
FLVPlayback - Resize,center, Fullscreen
Hi All,
I figure this has to be easy, but I cannot find how... All I want to do is put my video in fullscreen mode in the center and change its size. I get close but no cookie.. This is what I have:
--------------------------------------------------------------------
stage.addEventListener(FullScreenEvent.FULL_SCREEN, fullscreenEvt);
function fullscreenEvt(e:FullScreenEvent) : void
{
flvControl.scaleMode = VideoScaleMode.EXACT_FIT;
flvControl.registrationX = 100 ;
flvControl.registrationY = 100 ;
flvControl.registrationWidth = 600 ;
flvControl.registrationHeight = 400 ;
flvControl.align = VideoAlign.CENTER ;
}
---------------------------------------------------------------------
When I play with these settings I get various outcomes... center with no resize.... resize without center.... the above works but the black bg is chopped in the top left...
What am i doing wrong please?
thank-you
Easing A Movie Clip To The Center Of The Stage On Resize
hey guys!
Im trying to get a movie clip to ease to the center of the stage on window resize:
onClipEvent(load)
{
targetX = Stage.width / 2;
targetY = Stage.height / 2;
}
onClipEvent(enterFrame)
{
targetX = Stage.width / 2;
targetY = Stage.height / 2;
speed = 5;
this._x = this._x + (this.targetX - this._x) / speed;
this._y = this._y + (this.targetY - this._y) / speed;
For some reason it doesnt center properly???
any ideas?
}
BG Scale/Content NoScale And Center On Browser Resize In AS3
Ok the client is demanding this and it's driving me crazy. In AS3 how do I make a bg image scale to fit the browser 100% width & height, but the main content movieclip doesn't scale, it just recenters itself on browser resize? It needs to work exactly like the Enviga web site: http://www.enviga.com
Anyone know how/if this can be done in AS3? If you do please let me in on the secret. TIA
Keeping The Center Of The Stage In The Center Of A Web Browser
Hey,
I have a really wide flash page, but the main portion of it is in the center
of the .swf. My question is how do I make the center of my .swf in the center
of a web browser so that when the user resizes the browser, the center of the stage stays in the center of the browser? Right now it has the left side of the .swf aligned with the
left edge of the browser so the center of my .swf is usually being cut off by
the right edge of the browser and users have to scroll to the right to see the
main portion of the site...I'm sorry if that's somewhat confusing, but any help
at all would be appreciated. Thanks!
Dave
How Do I Center An External File In The Center On The Stage
I followed the tutorial for preloading external swf files, now that I have done so and it works, I notice that the swf file does not center after I preview it after it loads the external file.
I have centered the holder on the stage but after I preview the file or test movie, the loaded file is not centered and I have to play around with it for it to be centered. Is there a way to set the x and Y in the actions so this won't happen or do I have to know the size of the file that I am preloading off my server?
How Do I Scale From Center Of Stage, Not Center Of MC?
I'm building a Flash map that I'd like to be able to scale in and out of. I've added a + and - button and linked them to a 5% + or - of the main MC's x and y scale. But, on press I'd like it to scale from the center of the stage, not the center of the movie clip, so that when I zoom further into LA the whole image doesn't go shooting off to the left, since LA is on the far left of my enlarging MC. How do I do this? Am I on the right track here?:
//onPress increase x and y scale 5%. no prob.
//move the map by combining an understanding of the center point of the MC, the centerpoint of the Stage (half the width, maybe), and then maybe multiplying it by some factor of my current %scale, since a 5% increase is a varying number, depending on my current scale.
Seems like this would work, but I'm not sure what that math would be.
...or is there a better way like a built in method that deals with MC centerpoints?
Thanks,
Greg
Resize Flash Movie, Make HTML Page Also Resize?
Hi All Flashkitters
I'm trying to do something that I believe is probably pretty simple and I'm guessing it involves some Javascript along with the Actionscript.
It's like on Fantasy Interactive's website, when you click on different sections of the site, the Flash container movie resizes, and makes the HTML page also resize vertically, to be able to scroll the content. Does anyone know how to acheive this? Its a handy function, I'd love to master it. It opens a big door for building flash sites that can hold real content.
So, anyone can point me in the right direction, I am greatful to.
SWF Resize On Browser Resize Causes Nav Buttons To No Longer Work.
Hello. I have a full browser width/height resizing swf. I can't figure out why, but the navigation rollover states no longer work after resizing the browser. My rollovers are handled by a button class linked to each nav button movie clip within the library. Other things of note. I am using the 3 frame AS3 preloading technique which holds all my assets in its own movie clip on frame 3.
My document class only really handles preloading. And a class for all my assets, acting as the "real" doc class is linked to that MC on frame 3.
Here is the URL to the problem:
http://spiritservices.mindgrabmedia.com/stmary/
Thanks in advance.
On Stage Resize, Resize Multiple Copies Of An Object Help
Hey everyone, I'm having some troubles figuring out the code for this. I have 12 button objects that are being created evenly across the stage, and I would like to have them resize on a stage resize event.
Here is my code so far:
Code:
//--------------------------------------
// CONSTRUCTOR
//--------------------------------------
public function BasicFullScreen(){
initVideo();
createButtons();
stage.addEventListener(Event.RESIZE, resizeHandler);
}
//Create Buttons
private function createButtons():void{
for(i==0;i<12;i++){
//trace(i);
button = new MovieClip();
button.graphics.beginFill(000000);
button.graphics.drawRect(0,0,(stage.stageWidth/30),(stage.stageHeight));
button.graphics.endFill();
button.x = (stage.stageWidth/12)*i+(stage.stageWidth/40);
button.y = 0;
button.alpha = .5;
addChild(button);
}
}
private function resizeHandler(event:Event):void {
//What to put in here?
}
I'm not sure what to put in the resizeHandler function to resize all the button objects.
Thanks for any help,
Matt
Resize Bg On Browser Resize While Maintaining Image Proporti
im using the following code to resize background images on browser resize:
Code:
var listener:Object = new Object()
bg_mc.width = Stage.width;
bg_mc.height = Stage.height;
listener.onResize = function(){
bg_mc.width = Stage.width;
bg_mc.height = Stage.height;
}
Stage.addListener(listener);
the problem i'm having is that my background image does not maintain proportion on resize. so, when i resize my browser to a width of 100px, the entire width of my background image is compressed into the 100px area.
is there some additional code i can add to the snippet above to maintain the proportions of my background image on resize?
thanks,
brandon
How Can You Resize A Stage And Have Flash Resize The Objects As Well?
Is there any way you can resize your stage in Flash and either have it keep the objects all cenetered or have it compensate for the objects and adjust them accordingly?
This tends to be a problem when I start a new file and then forget I want the stage to be much bigger.
Any help is appreciated...
How To Dynamically Resize Clips With Resize Handles
Hi Guys
was wondering if someone could help me figure out a way how to free transform objects on stage. I saw it in action at
http://www.myholidaysweater.com/
Objects can be uniform scaled, rotated with the handle when you click on the objects.
its a very cool feature.
Any tip greatly appreciated
adrian
Q: Resize Textfield Width And Height On Resize
Does anyone know if it is possible to resize a text field dynamically when I change the size of my Flash? I want the text to do what html does on a page when you resize it. Would this be possible? Any help would be appreciated. Thanks!
I Cant Resize Windows And Stop Resize.
I'm going mad here! - I know this is probably really simple but i have a flash movie and i want the links to pop up in a new window of a defined size - i also want to turn off resize and get rid of the toolbar and scrollbar.
If anyone can help me Id be really grateful! :-)
Thanks - Dan (dan@introspection.f2s.com)
Resize Movieclip BG Per Stage Resize
I'd like to have a movieclip that scales in the background per the resize of the browser. I'd also like to have menu 200 pixels to the left of the stage width. How would I set it up in AS3? Thanks
ReSize Doesnīt Resize Automatic But Why?
Hey.
Iīm kinda stuck.
have a look: reSizse sucks right now
my problem is that you canīt see the hole background untill u manually resize the browser window. i just canīt figure out why it doesnīt work.
maybe itīs beacuse itīs late, maybe beacuse iīm getting sick or maybe beacuse I just suck at this.
please help anyone?
u can download fla file n everything right HERE
tnx in adv
//Mo
Resize Mc On Stage Resize
Hi,
I'd like to resize a movie clip via a percentage of the available screen size, so that when the stage is scaled, the movie clip responds accordingly. - Any help greatly appreciated.
Ben
Help Me Its Possible Way I Can Resize My Swf? Its 14mb, I Want To Resize To 5mb
I created a series of animation of pics with backgound music on it. It has also
buttons which they could change the background music. It works well but it was 14 mb,
The purpose of this animation was to embed it to my webpage. Uploading it to my site is already a pain in the ***, but my concern is for the viewer that they could easily view this animation of mine.
Now my question is. Can I possibly resize my swf considering its 14 MB, resizing it to atleast 5 MB without changing the quality? Help me masters, coz I'm still a newbie in flash
Stop Resize In A RESIZE
hey...there's a open source running around somewhere...
with a resize setup for loading a JPG into a empty MC...
and there's a border that resizes to that image once it's loaded..
it's even tweened to scale smoothly... (below)
problem 1:
it's a bit hefty for the eye... but it works sweet...
but i'd like to manage to work some Zigo tweens into it...
i was wondering if anyone has the super powers to
figure out how to recode it so the resizing is done through
those easing classes and tween and them through fuse...
problem 2:
i modded the resize... inside the border...this little crop box i created...
i added movie clips that are looping through a doTween setup...
so instead of lines defining the border (which will be resized according to which jpg or png is loaded) ... i have movie clips running up and down each of the total 4 sides...
but when they resize....it stretchs the in a very ugly way...
it's like in design class when the type teacher said...
don't stretch the type...i was reaffirmed why...cuz it looks like crap.
is there a way to resize a movie clip...
and have the movie clips running inside that movie clip stay constrained? ; to remove unproportional scaling?
Code:
spacing = 50;
containerMC._alpha = 0;
MovieClip.prototype.loadPic = function(pic){
_root.containerMC._alpha = 0;
this.loadMovie(pic);
_root.onEnterFrame = function(){
var t = containerMC.getBytesTotal(), l = containerMC.getBytesLoaded();
if (t != 0 && Math.round(l/t) == 1){
var w = containerMC._width + spacing, h = containerMC._height + spacing;
border.resizeMe(w, h);
delete _root.onEnterFrame;
}
}
};
MovieClip.prototype.resizeMe = function(w, h){
var speed = 5;
this.onEnterFrame = function(){
this._width += (w - this._width)/speed;
this._height += (h - this._height)/speed;
if( Math.abs(this._width-w)<1){
this._width = w;
this._height = h;
_root.containerMC._x = this._x - this._width/2 + spacing/2;
_root.containerMC._y = this._y - this._height/2 + spacing/2;
_root.containerMC._alpha = 100;
delete this.onEnterFrame;
}
}
};
can someone take a crack at this? it's giving me allergies...
thanks in advance!
anybody run into any flash chat rooms where people can have live feedback and pass some flash nerdtalk? cuz i'm way down for that.
22/m/actionscript,tokyo
Center Swf?
I know this is a stupid question, but I'm getting crazy searching without getting the answer. When I publish my swf, how can I achieve that the movie is centered vertically and horizontally (right now it's in the upper left of the screen and looks horrible)? And is there a way to center it, so it would be always displayed according to the screen resolution of the user?
THanks for your help and sorry for asking!
How To Center A Swf.?
Hi Guys,
Running a FS movie with buttons, the buttons loads a 240/180 swf. to level 1. By default it loads to the 0,0, coordinates, I need to load the swf.to 249,92 coordinates.
any help is appreciated.
thanks,
Center
I've made a flash movie (main.swf) that is 1600x1280 and inside that movie I load another move (logo.swf). But I want that movie (logo.swf) to load in the center of (main.swf). Say that the visitor has 1024x768 screen resolution. It must load in the center of 1024x768. And if the visitor has 800x600. Then it must load in the center of 800x600. Does anyone know how to do that?
Center
is there an action to get the center of a movieclip...or the origin of the x and y axis?
-2
How Do I Center This?
I have a question. You know how different people have different settings on their computer when it comes to screen area? Well when people with a larger screen area (or different resolution?) view sites, they see a large blank space on the right hand side, or a repetitive picture.
How do you make a site that will allow you to view it centered on the screen no matter what settings you have on your computer?
Is this possible?
Thanks for the help!
Katie
How Do I Center This?
I have a question. You know how different people have different settings on their computer when it comes to screen area? Well when people with a larger screen area (or different resolution?) view sites, they see a large blank space on the right hand side, or a repetitive picture.
How do you make a site that will allow you to view it centered on the screen no matter what settings you have on your computer?
Is this possible?
Thanks for the help!
Katie
<center MC>
I am loading movies into an empty MC. I was wondering how to go about dynamically centering this emptyMC on the stage once it is loaded. Does any know of an efficent way to do this? Thanks in advance.
Where Is Center Of Mc
Hi, I have some code that i want to use to have the mouse be able to push a circle around. I have an MC called "particle" that consists of a few layers, one of which has a mc "circle" in it. In that circle mc, i use _x and _y to get the current position of the circle.
I'm not sure how this works but when i test the code, but the center point of "circle" (the point which the mouse has to push at to move the circle) is at the top left corner of the screen. How do i get that point to be at the center of the circle i drew?
_x Center And _y
How can I make a movie clip center into the middle of my movie?
Instead of the cordinates being in 0 and !=0 at the top left?
I would like this (script) to aplly, when my move center is 0, in the middle of the screen.
And does this calculate the things I wish as right asd I planned=? The Sin O and hyp-lenght?
onClipEvent(enterFrame) {
opps=(_root._xmouse * _root._xmouse);
sins=(_root._ymouse * _root._ymouse);
Uhyp=opps+sins;
Chyp=Math.sqrt(Uhyp);
_root.output=Chyp;
sinO=opps / Chyp;
_root.outputSin=sinO;
}
Why Is My Swf Not Center In MC
loadMovie("pic0.swf","pics1");
this works fine, but when the swf is loaded in to the blank mc its not centered.
The MC is just a border with no fill. What am I doing wrong???
I Can't Seem To Center This, Please Help
Hi,
I can't get the white box to fit in the center of the interface.
http://img.photobucket.com/albums/v1...minico/box.jpg
The code is this:
Code:
_root.createEmptyMovieClip("empty", 1);
photoGallery(_root.empty/*path*/, "thumbnails/DCP_"/*target*/, 1/*seed*/, 15/*maxSeed*/, ".jpg"/*format*/, 10/*fIn*/, 254/*thumbX*/, Stage.height-150/*thumbY*/, false/*thumbOutline*/, 80/*maskHeight*/, 15/*arrowSize*/, 10/*scrollSpeed*/, 50/*w*/, 10/*h*/, 3/*lBh*/, 5/*dist*/, jpgCount/*jpgLoadTxt*/, 0/*txtXPos*/, -20/*txtYPos*/, 2/*txtStyle*/, "Arial"/*fontName*/, 11/*txtSize*/, 999999/*txtClr*/, false/*html*/, false/*bold*/, false/*italic*/, 350/*boxWidth*/, 450/*boxHeight*/, 0/*imageX*/, 50/*imageY*/, true/*boxCentred*/, true/*imageCentred*/, "images/DCP_"/*trgtImage*/);
Center
Hi, i want to create a flash movie size 2000x1000 with in the center of it the content. this should be 700x500. how can i center this content on my screen/browser I know i can create a background movie, and load movies on top of it that are centered, but is it also possible to create just one movie and just center the content.
like here: http://www.parque.nl/
Center Tag
Hi I just did the whole "internet explorer" thing... and normally I center the flash swf. with html tables. However the new code in my html document over rides any tables...
I think that there has to be a way to center a flash movie in the html page with
with some sort of tag???? Can anyone help me?
Thanks so much, M
Center It
Ok, I still don't understand the best way to center your swf vertically AND horizontally in the html window.
I know you can choose "100%", and "no scale" in the publish settings and that DOES center it. BUT it also shows all the stuff around the sides of my document that should be concealed.
Another way is to put it in a table, but I don't know how to do a table (NO html knowledge here)
Help?
Center Me Where I Want
I need help assigning the center viewing point (spot) of my over sized flash window. I have a huge map - but when the show opens: I always want the viewer to always start at the bottom center... this is easy!
just cant figure out the script --- any helpers out there? Thx
Always Center Swf
Does anybody knows how to keep center a big SWF (ej:1024x768) so in smaller screens (800x600) or just when I change the size of the explorer window the SWFīs center keeps in the center.
Just like in www.britneyspears.com
Iīve tried puting the SWF in a 100%x100% center table in the html. But doing that the center of the SWF donīt stay in the center of the windows when I resize it.
thanks!
Ivan
Can't Center
I'll start off and say I am a total NOOB too flash, but I'm learning. I have just switched over to Flash CS3 and CAN'T for the life of me get the website centered within the browser. What am I doing wrong?
Here is the index.html file...
<html xmlns="
How Center Swf?
How do I make my flash swf object center on my html page? Here's the link:
http://distance.uaf.edu/mockup/FERPA-mockup-1.html
thanks!
Center Swf In IE
simple question i hope, can some one tell me how to center an swf in ie, also is there a way with out using frames to scale the swf so that it's always centered.
thanx 4 info.
swift
How Do I Center It?
I have embedded my main swf file in dreamweaver. On the properties window, I selected align to absolute center. The file though plays in the upper right hand corner. How do I get the embedded swf to center in the index html file?
Center Pop-up HELP
cant get to work on windows xp works fine on mac, I also tried putting javascript in my dreamweaver page & nothing happens.(i'm using flash mx2004pro for mac)
http://www.kirupa.com/developer/mx/centered_popup.htm
http://www.kirupa.com/developer/flash5/newwindow.htm
Help With Center
I'm trying to make a movie-clip symbol rotate with Action Script.
It uses the top-left corner as center of rotation (cross hairs) - how do i change this? I want it to rotate around its center.
When i make the same object rotate using a motion-tween, it rotates around its center, the round thingy. And i can drag its center to whereever i want it.
I'm confused, can somebody help me?
thanks
CENTER OF THE NET
Good day everybody i want to find out how i can center my flash site when been viewed in a browser i have tried to edit the html code that comes with the published swf i have tried to use the <DIV STYLE="position: absolute; left: 220px; top: 300px"> ok that woks but when i view the site on a bigger screen it is absolutly out of place please go here to see what i mean www.geocities.com/krizinxgren/
please how can i center the site so it loads and stays in the center on any screen size is that to do wit AS am pretty sure i can sort this out by editing the html code that contains the flash site this is my html code that contains the swf flash site please someone tell me were am going wrong......................................
<body bgcolor="#000000">
<DIV STYLE="position: absolute; left: 220px; top: 300px"> ((HEY dis is the code i meant))
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/s...ersion=7,0,0,0" width="770" height="257" id="KRIANGULI" align="center">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="KRIANGULI.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#2F4F4F" />
<embed src="KRIANGULI.swf" quality="high" bgcolor="#2F4F4F" width="770" height="257" name="KRIANGULI" align="center" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</DIV>
</body>
</html>
if not how can i get my flash site to load in its own window with the resizing and movie controls disabled mind you some flash sites when you right click you can rewind-play-zoom-forward etc me i want to know how to disable those function cause sometimes it will spoil the look and feel of the flash site.
bless yall
KRNG
How Can I Center This?
(pls. download the file first)
i wanted to put the matrix effect exactly in the center box, i have tried to modify the command but i can't seem to figure it out so pls. somebody help me.
|