ActionScript 2.0 :: Site Borders Resize As Butt Is Pressed?
Jan 30, 2005does n e 1 know how to achieve this effect what i want to achieve is, the way that the borders fit to size depending on the content.
View 4 Repliesdoes n e 1 know how to achieve this effect what i want to achieve is, the way that the borders fit to size depending on the content.
View 4 Replies{URL] Here I have a movieclip that I want the clip size to change when pressed a button, and change into another size when another button is pressed. but all these, with actionscript movement. How do I...? Here is the fla: [URL]
View 3 RepliesI'm having a lot of trouble with a website a friend asked me to make her.For the longest time, I couldn't figure out how to make the site resize according to the browser. (Any help with how to have the background/stage expand while keeping the movieclip containing the content centered and the same size would be a great bonus.)Now, with the code I found after weeks of searching, I'm recieving error 1046. What is this, and how do I fix it? Or, how do I implement the changes to resize background/keep movieclip constant?
[Code]...
Does anyone know how to resize all content on the site scales relative to the browser size of the viewer. Whether it is on a Netbook or a 30 inch screen all contents to fit on? I'm not talking about the basic center resize of stage.with and stage.heigh.
Basically I'm loading a content.swf in a main.swf and from the Main.swf, I want to be able to apply the resize all content method.
people i am having a problem to adjust my site to different resolutions. i have tryed severral options like putting 100% to with and eight but what i really want is something like is told in this tutorial (see image)
the problem is that my site is done is as2.0 and the tutorial is done is as3.0, and it refers to a rectangle with a background, and i want to addapt it to my site and dont know how.
I made a website in flash with a fullscreen button. Now when i click on the fullscreen button the function fullscreen works but the webpage has the same size like in normal mode. How can I realize it to resize the webpage automatically in fullscreen ? Is there any code-snippet for this function ?
View 1 RepliesI'm trying to create a full stage site. I do use this code:
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
stage.addEventListener(Event.RESIZE, resizeListener);
function resizeListener (e:Event):void {
trace("stageWidth: " + stage.stageWidth + " stageHeight: " + stage.stageHeight);
bG.width = stage.stageWidth;
//mc which contains the bg image bG.height = stage.stageHeight;
But it doesn't work. No error, no warnings. So I don't know what is the problem. It works only in the flash player (Ctrl+Enter), maybe the HTML is wrong?
I noticed that website[URL]Does anyone know how they apply resized method on thumbnail pictures that fit for any browsers?
View 0 RepliesI'm creating my first website. I've managed to create a homepage. On the homepage is a enter site button, which once it is pressed starts thetimeline... I have an actions/labels layer which I am writing my code in. On frame number 'one' is my code below.
stop ();
enter_site_btn.addEventListener (MouseEvent.CLICK, buttonClicked)
function buttonClicked (event:MouseEvent): void
[code].....
am not much a coder but am learning i just wana know how i can center my flash site/content/background on browser resize
i found a tutorials about that exactly the only problem was am using AS2 and the tutorials is for damn AS3 so please if you know one for AS2 then direct me or if you got som code u wana share dont hesitate 2 post it 4 me
I have a function on root:
_root.fadeBox_mc.onEnterFrame = function (){
if (fade){
this.nextFrame();[code]....
This causes a mc to fade in and out on rollover/rollout. But what I wanna make is a box that fades in when pressed on the button and fade out when pressed for the second time. But if I say
on (press){
_root.fade = true;
}
the mc fades in, but I cant do another on (press) to fade out. Is this too confusing?
How do i make site resize to a persons screen so that it fills their screen.
View 2 RepliesIs there a way to put borders around the (MXML) elements of a Flex application? I'm picturing something similar to what Firebug does for HTML with the Inspect button (url...)
View 4 Replieshow do i make some movie clip positioned lets say 10 pixels from border while im using fullscreen swf?
I have tryied:
Code:
bobek._x = (Stage.width)-60;
bobek._y = (Stage.height)- 60;
(test movie clip have 50x50px)
but it just put it once and takes the width and height of the .fla settings insetad of real dimensions of fullscreened .swf
How to make it position the mc all the time whenever someone resize the window/open it in fullscreen?
Im using those commands for full screen:
Code:
fscommand("allowscale","false");
fscommand("fullscreen","true");
fscommand("showmenu","false");
[Code].....
I have created an array of Input Textfields with their borders visible. All is fine when I play the swf directly in the Flash player. But when I try to view it in the browser, certain horizontal and verticallines in the grid appear darker than the rest.
View 1 RepliesI need to make a small swf box. But I want that when I go over with the mouse the box enlarges over everything, not just in its configured swf space but also over the page ?
View 4 RepliesI'm not much of a web/flash designer, but I need to showcase my print work online - so I apologize foremost for the noob-ness. I tried to search for this, but came up empty. I am loading external swf movies via loadMovie, into my "base" (main) flash file which will essentially be my website. Everything is loading fine.
I have an swf file that when I load (with loadMovie) objects are extending beyond the set stage size of the swf and onto the "main" flash file. This only occurs with objects that are "off" of the stage. For example, I have a background which is larger than the set stage size, when I load the swf, the movie loads up, but it allows the background to extend beyond the stage size. Is there a way to "crop" the flash file? All I need to do is load a movie without "hidden" objects appearing. (I also have checked that in publishing preferences.)
I can't see a way to get rid of certain borders within a DataGrid. I'd like to eliminate a side border on 2 of my columns so that they appear to look like a single column.I'm trying to implement a "clear value" button on each of my DataGrid rows. I was able to have a button show on a custom ItemRenderer from a separate ActionScript file, but I was unsure how to have the button click event propagate to the mxml file where the DataGrid is located. It would be much easier for me to have an extra unresizable column with a 'clear' button.
So, to reiterate: Is there any way to change the border style or eliminate certain borders of a DataGridColumn?
I'm making my own website on flash cs4 and I really like websites with backgrounds that don't have borders, they just have an image or a design or both that fit the whole inside of the browser window like this website, [URL] is there a way to accomplish this in flash cs4? I know that you can edit the borders in the html embed code for the .swf but even if you put 0px for all the borders, if I go on another computer with different resolution settings or a computer with a bigger monitor and a bigger browser window, borders are still present around the .swf.
View 9 RepliesI was browsing the net and came upon this site, which has a really cool blob-like borders effect. I really wanted to learn how to accomplish this effect, here's what I know as of now:
1. I must have an array of points, connect them using curveTo and fill it. For this I have to use this methods:
createMovieClip, lineStyle, beginFill, moveTo, curveTo, endFill
2. Then I must have a proximity detector for each point, more or less like:
dx = point._x - _xmouse;
dy = point._y - _ymouse;
distance = Math.sqrt(dx*dx + dy*dy);
And if the mouse is too close to the point make it move away with a certain velocity (but only if the mouse is moving, if it is still, just make the blob wobble for a while, using an elasticity effect).
point._vx += point._ax;
point._x += point._vx;
Where the acceleration must be a fraction of the distance we calculated before:
k = .2; // example
point._ax = distance * k;
But we must also have damping so we can have the elastic movement, so:
damp = .9; // example
point._vx += point._ax;
point._vx *= damp;
point._x += point._vx;
3. Finally when the mouse is clicked on a blob we must communicate with the others and make them all wobble, by using LocalConnection. How do I make the array with all the points and access them?; how do I impose the proximity detector into each point and make the curveTo's change?
Is this possible? It's a hassle to have the extra step of keep a seperate movieclip behind the one with the image to get a border. Can I load an image into a movieclip that has a border, or give it a border afterword? Same with shadows.
View 4 RepliesI have some textfields generated from code, and if I apply a drop shadow filter on them, sometimes the right or the bottom part of the textfields' border just disappear.
Code:
_passwordField.filters = [new DropShadowFilter(1, 45, 0, .75, 3, 3, 1, BitmapFilterQuality.HIGH)];
this is the line of code, which is responsible for this bug (is it a bug?) because if I comment it out, the borders render correctly.
I have simple file 550 x 450, in it there is one container 400x300, x:75, y:78. In the container I am loading images and there is drag and drop function for them. I also have added mask with size that matches the size of the container because when i load larger images i could move them. Everything is working fine, but If I set scaleX and scaleY to the container image, the drag and drop functionality is not working fine - I can't reach the edges of the picture.
Code:
with ( m_mask.graphics )
{
beginFill( 0x000000 );
[Code].....
It behaves like there is not enough space to move the image right, left, top or down.
I've made a site with small draggable "popup" windows (not actual windows since they are objects in flash..) I can drag em off the scene outside the edge. I've attempted many things.. A adaptation of the collision script found through search.. (on collision it stopped dragging) Worked nice, until you move the mouse real fast, then it can pass right through or partly through and the fact that it's stopdrag. It takes effort to get it from the edge. It's stuck basically.
I fixed it by making the on (press) change frame in a moveclip containing the border.. had a side effect though.. You can now drag the window out from the scene if you repetitively drag it towards the edge. Is there a way to limit a movieclips possible X & Y positions? (in both + & - range to make it a 4 cornered block). I also want the moveclip to keep moving up/down if if hits the right/left edge if you continue dragging it up/down (same with left/right edge also)
I tried the scrip from the "dynamic mask":
onClipEvent (enterFrame) {
getlimits = _root.normalpic.getBounds(_root);
if (_root._xmouse>=getlimits.xMin && _root._xmouse<=getlimits.xMax && root._ymouse>=getlimits.yMin && _root._ymouse<=getlimits.yMax) {
this._x = _root._xmouse;
this._y = _root._ymouse;
}}
I changed the size of the "normal pic" and it works lovely.. but it's on enterFrame... and I need to react on on press and on release.. : tried to adapt it but cant figure out how.. and besides the script don't allow movement along the edges (like I described above) and if you move the mouse fast enough the window stops short of the edge..
If you have two textareas, one has a rotation value besides 0 and the other has no rotation value or a value of 0 and you 'tab' focus from the one w/rotation to the one w/out. The border around the textArea w/out rotation will be rotated. If you set the rotation value of the non-rotated text field to a non-zero number, even 0.01, it fixes the problem, this causes tons of other problems in text rendering though so its not a solution.
I found setting the focusThickness style to 0 removes the border, which is a good solution but not a great one, anybody got a better one? Here is some sample code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:VBox width="100%" height="100%">
<mx:TextArea id="source" width="100%" fontWeight="bold" fontSize="20" height="50" rotation="5" />
<mx:TextArea id="dest" width="100%" height="50" />
</mx:VBox>
migrating some of my code snippets over from AS2.I tried reproducing one of my most used bit of code - the dynamic border - in AS3, but I have run into a small problem.
PHP Code:
var sw:int = stage.stageWidth -1;
var sh:int = stage.stageHeight -1;[code].....
So this code works great in Firefox but fails miserably in IE6, Flash Player 9. So my question is does anybody have a workaround that works on IE6, Player 9?
I am struggling a bit with keys on the keyboards controlling a movieclip to happen.Ive got a person moving when pressing right and left, and a movieclip with three frames: First frame is a movieclip with the person standing still, looking bored. The second frame is the person moving right, and the third frame is the person moving left.This is the code that Ive inserted into the persons actions on scene1:
if (Key.isDown(Key.RIGHT)) {_x += speed;this.gotoAndStop(2);_xscale = +scale;}
if (Key.isDown(Key.LEFT)) {_x -= speed;this.gotoAndStop(3);_xscale = -scale;}
this code works alright accept that when the keys are not pressed it doesnt stand still, the legs are still moving, so I tried to include this code aswell:
if (!Key.isDown(KEY.RIGHT)) [code]....this makes the person standing still when not pressed but not moving the legs when turning right and left.
I am working on image and i like to scale or resize the image by dragging and resize option.same working as "free transform tool" in flash (design part); i need same functionality in application.
View 7 RepliesI'm having a bit of a problem here. As per the title, my flash swf file works fine when tested from the IDE, but when I publish it and open it through the browser, the stage doesn't seem to resize along with the window.I post below a bare-bones example. The "back" movie clip should resize, only it remains at the starting dimensions
Code:
import flash.events.Event;
import flash.display.MovieClip;
[code].....
I have Buttons which I have rotated vertically within a Canvas, that is working fine. The problem occurs, when the user resizes the window to a small size a vertical scroll bar appears, I would rather have each button squashed upto a smaller size.
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="40" maxWidth="40" xmlns:myComponents="myComponents.*"
horizontalScrollPolicy="off"
[code].....