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








Mc Resize Button In As


hi! I have a little problem!
I'm trying to create something like the transform tool in macromedia flash editor!
For example I want to resize a mc by moving a button!

And now my problem:

nume.sq1._x does not have the same coord like _xmouse; Can anyone fix that?

see the file:




FlashKit > Flash Help > Flash ActionScript
Posted on: 01-19-2006, 12:59 PM


View Complete Forum Thread with Replies

Sponsored Links:

Resize Button
I need to put a resize button on my skin. if i open a skin and save it as my own custom skin I can modify it to my needs and make it work in my video player but I'm not sure how to add a resize button and make that work.

When I select the fullscreen button I can't even see how it is doing the full screen function??

could someone point me in the right direction to get started ?

thanks

mm
mcgrailm is online now Report Post Edit/Delete Message

View Replies !    View Related
Resize Button
I need to put a resize button on my skin. if i open a skin and save it as my own custom skin I can modify it to my needs and make it work in my video player but I'm not sure how to add a resize button and make that work.

When I select the fullscreen button I can't even see how it is doing the full screen function??

could someone point me in the right direction to get started ?

thanks

mm

View Replies !    View Related
Resize A Mc With Button[AS2]
How do i make so a button will make a mc height longer?
Example:

Base Height = 20
After pressed button, it is 40.

thanks

View Replies !    View Related
AS Button Resize
Hi,

I have a menu which uses invisible buttons. However items in the menu are of variable widths. I want to be able to resize the button to fill the mc it is in.

I have tried the this, but no joy:

invisButton._width = mc._width;

any ideas?

thanks in advance.

ash

View Replies !    View Related
Resize A Mc With Button[AS2]
How do i make so a button will make a mc height longer?
Example:

Base Height = 20
After pressed button, it is 40.

thanks

View Replies !    View Related
REsize Window Button
I am working on an online seminar project, and it breaks down like this:

Basically it is a slideshow seminar that is timed with a voice narration. Now my boss wants me to place a button that will allow the flash to resize to a larger window. I have the link to the movie set up on a webpage, and there is a javascript in there to make the flash fill a pop-up html page. Can anyone tell me how to make a button double the size of the window the swf is displayed in?

Thanks all

View Replies !    View Related
[F8] Resize Screen Button
How do I make an option in a flash document to chose the screen size? Like 640x480, 800x600, 1024x768, 1280x1024, 1600x1200 options. What command would I use to resize the window with a button?

View Replies !    View Related
Resize A Button On Rollover
Hello!
I'm new to Flash 8 and I need your help.

on rollover event : I want to be able to resize the button and make it bigger.

on rollout event : the button size must be like before.

I will put here a sample without code.

Thank You !

View Replies !    View Related
Text Button Resize
Hello

I have a simple text button which I would like to resize on mouse-over event.

The button should expand on mouse-over (animate).

What would be the proper way of doign this?

Should I change the .size of the TextFormat object or something else?

I tried googling for tutorial for this but I couldnt find anything.

Many thanks for help!

View Replies !    View Related
Video Component, Resize Button
hey, i have a custom video componet with "theVideo" as it's instance name. my controllers are custom also. i wanted to add like a resize button so when the flv file is playing the video will go to fullscreen, or 100%, 200%

can anyone tell me how this is done?

http://www.subydude.com/video/index_flash.php

^ thats where the video player is, as you can see i need a button for the picky people to make the video bigger and smallers. please help!

View Replies !    View Related
Resize Text In A Action Button?
I have created a action button in my movie which when clicked it opens up a weblink in the page it should do, but the text is really small in this button, how do i change the size of the actually text, i can scale the size of the box, but the text stays the same size.

Thanks in advance for your help.

View Replies !    View Related
Resize Text In A Action Button?
I have created a action button in my movie which when clicked it opens up a weblink in the page it should do, but the text is really small in this button, how do i change the size of the actually text, i can scale the size of the box, but the text stays the same size.

Thanks in advance for your help.

View Replies !    View Related
Resize A Frame To Image Size With A Button?
I am creating an image gallery and I have created a white frame with a drop shadow that is suppose to represent a mattboard for my images. I have some images that are horizonal and some that are vertical and I'm trying to animate the frame so that if you click on (ex.) image 1 that is horizonal and then you click on image 5 that is vertical the frame sizes to the image with a border like a mattboard. I have 10 images and 10 buttons. I tried to create a movie resizing the frame and just did a gotoAndPlay(_root.frame.gotoAndPlay(2)); but it does not seamlessly resize. If the image I'm looking at is already horizonal and I click on another horizonal picture the frame should remain the same and it doesn't. It should only resize when going from vertical to horizonal and visa versa. I'm just stuck!!!
Thank you in advance for any help you can give.

Oh...and the images fade in after the frame reshapes...but the fade in isn't the problem.

View Replies !    View Related
Resize Hit Area For Radio Button Component?
Does anyone know how to enlarge the clickable area surrounding the Radio Button UIcomponent? I'm not having success using setSize.

Thanks much.

Ed

View Replies !    View Related
Smoothly Resize MC Relevant To Button Press
Hi all,

An example of what I want to do is:

I have MC on the stage. I have three buttons also on the stage.
When I click any of the buttons I would like the MC to smoothly resize to a specific size i.e.

when I click button 1 I would like the MC to resize to 100 x 100
when I click button 2 I would like the MC to resize to 300 x 300
when I click button 3 I would like the MC to resize to 500 x 500

I am using Flash MX.

A website which shows this is:

http://www.twelve20.co.uk

thanks in advance!

View Replies !    View Related
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.

View Replies !    View Related
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

View Replies !    View Related
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.

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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...

View Replies !    View Related
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

View Replies !    View Related
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!

View Replies !    View Related
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)

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
Resize?
i'd realy like to know how, once i have set-up my movie to run full screen (no browser visible), i can give the user the option of then viewing the browser if they choose...
..after all it does seem a bit, well, rude.
any ideas???

View Replies !    View Related
Resize HELP
I designed a movie....on a stage are of 700x350.....I opened up tje .fla again...and now decided that I want the whole thing bigger. Like an area of 775x425..or something..
This .fla has many layers...in main time line...as well as MANY individual MC's in it. Is there a way to resize everything so it will all be proportionate if I mae the movie dimensions 775x425?....There ha sto be a way to do this no?..Thanks -whispers-

View Replies !    View Related
No Resize, Please.
I have just finished my first Flash splash page and I really don't want it to resize to fit the window (although that is a cool feature--just not for this one). When I play the .swf file alone, it doesn't resize. When I drag .html file to a browser window, it doesn't resize. But after both are uploaded and on the site, it resizes. What's the problem here? I have the width and height set to 800x600 in the code and in the .fla file. Please, I beg of you gurus, help me.

Thanks!

View Replies !    View Related
Not Resize
hey guys,

I have a .swf file that users can run in the flash player or out of their browser. I would like it to not resize to the window...so I'd like 100% to be the default instead of "Show All". Does anyone remember the command for this in actionscript? Or would I have to do it through an html page?

Thanks!
dege

View Replies !    View Related
Resize Swf From Another Swf..?
umm ok...im still looking in forums about this but thought id ask too

im trying to resize a loadMovie swf from another swf..how do i do that??

View Replies !    View Related
REsIZe <<<>>>>
Is there anyway to resize an MC using _xmouse and _ymouse??
Thanks!!!

View Replies !    View Related
Resize All
Hi
I have a Flashmovie, with about 540 frames. Now I would like to resize all. That means I would like to resize each graphic and each Textfield in every frame (to get 50% smaller)
Is there a way to handle that, without doing it in every single frame?

View Replies !    View Related
Resize
Ok, I know how to resize my canvas,

However, I already have the movie made, and I need to resize for a different use. Problem is when I resize the movie all the content stays in the upper left corner.

Q: How can I resize a movie content and all to keep everything centered? (Similar to when resizing in photoshop)

View Replies !    View Related
Resize Mc
Hi , ive to do this, how can i resize a mc like this?
http://www.softbimage.com/sbpics

thanks.

View Replies !    View Related
No Resize?
This may be silly...

You know how I can tell my exe file not to resize when the viewer puts it in full screen or even resizes the window?

Can I tell my swf the same thing? I know I can do that by telling the html file that holds it not to resize the movie, but my problem here is I'm not using an html. The swf is supposed to run by itself... is there a way for me to prevent it from being scaled like that?

Thanks!

View Replies !    View Related
Resize ?
I have a document which is 350px by 350px. then I have an image which get smaller and larger depending on what value it is sent.

currently, here:
http://www.vaude.com/temp/query/imgC...gt=400&wdt=400

the image resizes proportionally by values passed to the HTML page fine.

What I need to do is resize DISproportionally (100 x 700)

I did it thru actionscript which worked, but then when it got larger the movie size of 300 x 300, the sides would get cut off.

is there anyway to do this so you can resize proportionally?

View Replies !    View Related
Resize SWF
Can i resize swf file in new fla file. Like in dreamweaver we grap the handles to resize swf, same i want to do it in flash.

View Replies !    View Related
Resize
My movie is complete and has a stage of 800 x 450. Is there a way to resize the stage "including" all to the graphics at the same time?

View Replies !    View Related
Cannot Resize Jpg
I'm still very new to Flash & actionscript, so please bear with me. I've written the following script thats supposed to display a resized jpg.


Code:
loadMovie("images/gallary/image3.jpg", _root.photo);
_root.photo._x = 12;
_root.photo._y = 12;
_root.photo._height = 445;
_root.photo._width = 626;
It shows the jpg just fine, except that it won't resize it. Any suggestions?

View Replies !    View Related
Resize Or Not ?
Hey there.
Anybody have an idea for displaying 2 swf on a browser window and having one of them resized to fit the window and the other one keep a fixed size, like on www.hi-res.com ( the bg picture gets resized but not the menu) ?
Thanks a lot.

Romain.

View Replies !    View Related
Resize......
Hello... i have a problem:
I have an intro which open a fullscreen home.swf,
inside i should create a button to resize the window, someone know the code??
Infact now i must close the window to return at the browser...
i would like not to close it....


sorry for my english....

View Replies !    View Related
Resize
Can somebody please tell me how to make my flash file automatically resize itself to fite to the viewers screen? Thanks
-Woodlit

View Replies !    View Related
Swf At 100% But Not Resize
Look this site:
http://www.stylesucks.com/main.html

I need to publish a swf with a central part that doesn't resize, and two black bands up and down that fill the rest of browser.

Only html or need i actionscript too?

View Replies !    View Related
Resize R E S I Z E R E S I Z E
Hey Yalls-

check this out!

http://www.brianmccutcheon.com/

nice huh?! go ahead and click throught the images.....

can someone help me figure out how the flash shell resizes to fit the image...

very new to actionscript...any help would be much much appreciated!!

View Replies !    View Related
Resize With Var
here is the thing

please download the attached file, to understand what i sayinī please

ok here is the thing i whant to change the last value, at the

setproperty action, with a number placed at one of the text boxes
i dont think is to hard, but i can find the way to do this

thnx...

View Replies !    View Related
Resize Box
hi, i have a little problem, with something im sure is realle easy

Please download the attached file, so i can explain u my situation

Now that u have open the ".fla", heresīs the thing

check out the script at the green button
ist something like this


on(release) {
setProperty("star", _width, "50");
setProperty("star", _height, "50");
}
{

what i whant to do is that the last value at the "setProperty" line
setProperty("star", _width, "50"); reads the number that i type at the textbox, instead of that fixed number.


if u have any doubt about what i qhant to do please ask me....

View Replies !    View Related
Swf Resize On The Fly?
Hi could somebody tell me how this site resizes its swf half way through (if indeed it does)

notice - once fnished loading - the page lengthens and a scrollbar appears BUT the pages doesnt (appear to) repload!

http://www.constructiondurable.com/

thanks

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