ActionScript 3.0 :: Lock The Size Of A Nested Mc's?
Sep 16, 2009
i have my stage with StageScaleMode.NO_SCALE, i resize my movieclips with an eventllistener for the stage resize event and tweener. this works great, but if i have videos nested in my resized movieclip, they are looking so horrible choppy (becouse there is no smoothing property for them like you have it for bitmaps). so i wonna tell them to keep there size forever, even if the parent movieclip gets resized.
I created a swf animation in Flash.The size is 1024x768.When playing the SWF file, if I change the size of the window, it doesn't keep the artwork size.As result when increasing or decreading window size, it shows what it is outside the 1024x768 and I don't want.Ex. The footer line that goes from left border to right border is now foating in the middle, not touching the border anymore.Is there a way to freeze it. So when I increasing or decreading window size, I see the artwork size only?
(searching this forum doesn't seem to work for me any more I get no result)how do I lock the window size with AS? the obvious thing is html, but its suppose to be a hand out.I have an exe, which loads in swfs as a cheap cover for those without the plugin.
I just created my first flash drop down menu guided from various tutorials online. Looks great and works fine when viewing it alone. However, now I place it with the rest of my site, nested in a table, only the top menu show and the drop downs don't show. It'll only show if I make the size of the flash document large enough to cover the entire menu with the drop down. The drop down will also be dropping over other html content on a table below.
I am designing a webpage with a password (yes, I know it can be hacked)I want to be able have an alert appear in the textbox "mess" when the Caps Lock key is activated. (not just being held down). I have already tried this and it comes out as staying on until you leave the page or mess changes.[code]What can I put to make the "CAPS LOCK IS ON" go away when the capslock is off?
I'm wondering if there is an effective way to insure a .swf file uploaded to "Website A" will refuse to run on any website outside of "Website A". I recall years back that AS2 could compare the .swf file's URL location to a URL String, something like:
ActionScript Code: if (_root._url != "http://www.mywebsite.com/content.swf") { //block access
I'm using a preloader on my website. The preloader works fine on Internet Explorer, however when I tested it in Mozilla and on a Mac (running Netscape) there is a lockup on the preloader. The screen will just sit there and the website doesn't load. Both were running Flash Player 6 which is the version I'm aiming for. I found that if I refreshed the page the site would begin to work, but I doubt visitors to my site would do this and I don't want it to be required to get my site to work.
Heres the action script - from the first frame of my launch movie
As you can see I call the loadSWF function to load menu.swf into the holder1_mc movieclip. That function then sets an interval with the loadChecker function that acts as the preloader. This is where nothing happens on some browsers (yet it works fine in IE).
I've created a slider control (using the excellent tute on kirupa) and am using two instances of it on my stage. I also have a lock that sets the variable locked to true or false. What I want to do is if locked == true have both sliders move simultaneously to the same values if either one of them is dragged...
This is for a fretboard type game, I want six dots (fingers) to lock on to any of the 6 targets. This code doesn't seem to work, instead of locking on to each target, the fingers lock on to the last one (target6_mc) and whenever they are droped over the other targets, they just locks on to target6 again. any suggestions? Excuse the noobness
I'm doing a website for me, with flash... I want that the site is "full browser screen" but, I need that only the background is stretched for the size of the browser window, all the other elements (like nav bar, logo etc) will be in the same position, and MUST NOT be stretchet like the background...
How can I lock the position and dimension of the element of the website, but let the background stretch?
I would like to create geo locking module which would react per-file/stream. This means that one particular file which will be streamed via FMS can be geolocked to one country (e.g. Lost can be viewed only by USA viewers (IPs)).Flash video player connects with nc.connect() and plays file with ns.play() method. Geolocking would happend on ns.play() since some files/live streams are locked to some countries (not everything is geolocked and once they are, are not geolocked to same countries so everything happend on per file basis).
Can this module be done in Actionscript or is it necessary to use C++ module?
I have a flash gallery which works fine, the images for the gallery are determined by .xml files. Problem is when the image is not exactly the same size as the area defined in the .fla it defaults against the top and left, not the center of the space.
Like shared objects we have lock, but what If I want to implement lock on the particular script. For example at onConnect of any user to FMS,I have script which is doing 8-9 different tasks before or after accept the user for that FMS application session (including remoting calls).Now if 20 users came at the same time in the same room, how will FMS execute them and process the 8-9 task, which user will be executed first and who would be next.In short, how FMS will execute the piece of code or process for multiple user at the same timeSo locking system can fix this problem I think.
Is there a way to lock the mouse X and Y position?, I mean, I want to move my mouse but I want that the mouse position to be locked on.. let say, the center of the screen. Btw, I need to do this using Flash.
iam planning to make a flashgame that requires the player to aim with his mouse. so there will be a crosshair. now i have the problem that whenever the mouse leaves the embedded flash stage and clicks outside this frame.. the player has to click in the flash field again to be able to play again. that sucks. is it possible in flash to lock the mouse in the gamewindow?
way to lock the width and height ratio? I'm trying to set the width of the mc equal to the stage but have the height keep in relation to the original ratio also. So the wider I open my stage the taller the mc gets also.
sizeXListener = new Object(); sizeXListener.onResize = resizerX; Stage.addListener(sizeXListener);
I am makinIve got a clock and ive made it so that they can drag and drop in the required place, but i need the hour hand to lock on to the "1" on the clock or the "5".What I also want, is when you put the minute hand on the "20 mins" and the hour hand on the "5 hours", i want it to play a sound or say "5 past 20",etc
I have a full size page and want a graphic to stay locked to the right so when resizeing the broswer window the right side of the graphic stays on the right and the left side disapears into the left or shows more if the page is resized more, without scaleing the page size. I know how to do this in CSS but not actionscript yet?
I am trying to get two movies to lock together when they collide. Does anyone have any suggestions on this? I will list my details below.I am trying to simulate the bonding of antigens and antibodies. To do this I have two movieclips named antigen and antibody respectively. These are duplicated as the user clicks on one of two buttons with the following:
on (release) { duplicateMovieClip ("_root.antibody", "antibody"+i, i++); }
what I have are pieces of a truck and the user needs to be able to drag and drop the pieces to the correct locations. I can get the pieces to drag, but I need help locking them into place once they get within a certain area. So for example if they drag and drop the wheels of the truck towards the back, but not in the exact location, then the movieclip will move and lock into place and then the movieclip becomes disabled.
var dragMC = finalMC.graphicMC; /////////////////////////////////////// onMouseMove = function () { updateAfterEvent();
i want to make electronic lock for my flash game (like in sci fi movies).whole game is written in AS2.it should look like this At top thers dynamic text box, under it there are 10 buttons labeled from 0 to 9 and at bottom there is button labeled ENTER.when you press any of the buttons it should write numeric value at dynamic text box( 6 digits code), and when enter is pressed it should check if code is ok.First part of the problem is how to make buttons to write series of numbers into dynamic textbox.Second is to write if loop which will on enter button press check dynamic textbox content and trigger some action if correct or clear textbox and allow another try.
I have made a resizeable box that you can resize using handles on all four cornersI have tl (top left handle), tr (top right handle), bl (bottom left handle) and br (bottom right handle)Its rather difficult to explain. See the picture attached, the blue arrows are where the mouse could move and the green arrows are where the boxes should goor now let's concentrate on moving the tl handle so that when it is moved left or downwards it gets smaller, towards the br handle
I am creating animations in Flash 5.5 for use in Captivate 5.5. I have created a drag-and-drop animation for a horizontal line and a vertical line, to act as moveable "straight edges" for use on complicated charts. How do I lock the horizontal line to just move along the Y axis, and the Vertical line to just move along the X axis? (I'm a relative newbir working in Flash.)