ActionScript 2.0 :: Export A Specific Area Of The Stage?
Aug 30, 2009I would like to export a specific area of the stage. So, for example. My stage is 400 x 400 and I would like to export only 100 x 100 of the stage at xy 0 pos.
View 6 RepliesI would like to export a specific area of the stage. So, for example. My stage is 400 x 400 and I would like to export only 100 x 100 of the stage at xy 0 pos.
View 6 RepliesI have a custom cursor in my Flash document. Now that it is all set up, I want to specify an area that it can be in and nowhere else. Basically, I want to keep it in my navigation area on the top of the stage and not be able to go below it to the rest of the stage.I don't know if it will help or not, but I have the following as my custom cursor code:[code]
View 3 RepliesI just want to do not allow editing at some area of text area in flex. How it can be done?let suppose text length in text area is 50 characters, i want to allow editing if cursor position is less than 15, and if cursor position in text area is greater than 15 it should not allow user to add more text in text area.If user press any key it should not add any character in text area.[code]
View 1 Replieshow do i export specific frames not all frame. ex: if flash has 1 to 200 frames. here i want to export 51 to 150 frames as a movie. if there is any command or plugin to export movie like this.
View 0 RepliesI am doing an animation. Before I start I draw a scheme of the final presentation. When I test I have the scheme layer always showing. Can I stop a specific layer to be exported to SWF?
I'm trying to make a paper doll sort of program. I've got a bunch of PNGs of clothes cut out and I'd like to dynamically load them in with attachMovie.So I imported the PNGs into my project, but when I try to export them for ActionScript, the checkbox to do so is greyed out.Does anybody know what the specific requirements are to be able to Export a symbol to ActionScript?
View 1 Replieshow do I load video into the movie area like in the pic? where I can click on a box on bottom and the video for that will load in movie area?
View 1 RepliesI have created and added my enemyHolder class with
width:800
height:262
to this class I am adding a bunch of squares using this method
ActionScript Code:
for (var i:int = 0; i < enemyNum; i++)
{
enemy = new Enemy();
[Code]....
I thought this would only add the child within the dimensions of my enemyHolder, but they are being spawned everywhere! I'm sure it's just something with my x and y placements, but I can't figure it out.
Does anyone know how in the world to make the menuItems that appear on right-click be different depending on where the user's mouse is over?
View 2 RepliesI have a flash cs3 file where I want a mask to move on the y axis (up and down) when the user is scrolling over the navigation area.
In my code, I have:
maskMC.startdrag();
How do I limit the area where the mask will move, then make it return it back to it's original position when the user moves away from the specific area (in this case the navigation).
I'd like to be able to use a pencil image (custom cursor?) to draw in a defined area - its the 'ol pencil drawing a line idea on a pad. I don't know how to define the area? I've tried creating either a btn or mc instance called pad_mc & trying rollOver/Out which confines the pen but not the line. This is what I have so far, which works (ie it draws the line) but obviously it goes everywhere, not just over the mc of the pad.
Code:
createEmptyMovieClip("Line",1);
Line.lineStyle(1, 0x666666, 65);
onMouseDown = function () {
Mouse.hide();
pen_mc.startDrag(true);
[Code] .....
Also, I've got an onClipEvent on my pen_mc to try & define where its allowed to be dragged.
Is possible to add an EventListener to a specific area of a picture ?
View 1 RepliesI've created a widget that that, on roll over, starts an animation and allows the user to jump to a url on clicking the widget. It all works well, except that the whole stage area (209x204 pixels) is sensitive to the roll, and I want to somehow make a specific target area start the animation on roll over.
I've tried putting it into another button and adding a hit state to the button, which did create the specific area I was aiming for, but prevented the movie from playing, creating a weird 'stutter' of the cursor.
So I've recently started working with ActionScript 2.0 at my internship. I am now working on a game, that already had all its graphic interface designed and I am doing all the programming. Basically what I have to do is get some movie clips (randomly) from a different scene and print them on another scene in a designated area (but also randomly). I am not sure the best way to explain my problem, so I made a sketch of how the scene should look. [URL] So basically I want to print the movie clips on the black space, as if they were the red squares. But the movie clips are stored in a different scene in the same project. So I want to know two things: how do I get the movie clips from the different scene? And how do I print those movie clips on the specific area?
View 1 RepliesIs there any way of applying a ColorMatrixFilter to one rectangular area of a DisplayObject, leaving the rest untouched? The DO is a container, and the user interacts with objects in it, so taking snapshots to change its appearance isn't an option.
View 2 RepliesIs there actionscript to enable a screenshot of a specific area of the screen? And possibly display this screenshot at a different stage?
View 1 RepliesI'm making a game where targets popout from behind walls. I have 3 walls, each wall needs to have his own target. I'd like to make the game spawn the targets randomly behind each wall. I'll tween them to make them go up.
I assume I have to link the targets to their own class and delete them from the stage and have the script spawn them instead, right?
I've been using the code below to save the image in my panel.
ActionScript Code:
var bd:BitmapData = new BitmapData(vgrpBottleArea.width, vgrpBottleArea.height);
bd.draw(previewPan);
[code]......
I've never used the drawing function on Flash and I followed the fairly simple tute on it just recently. Is there any way to confine the drawing area to a specific shape. Mine's a rectangluar shape that's rotated. You can download my FLA with the background image here > [URL]. I'd like to try and keep it confined to the notepad area. I think it might be a hitTest thing with if/else. My other thing would be to just rotate the notepad so that it's straight. Even still I'd like it confined to the area beginning with the corner of the notepad, not the corner of my movie.
View 2 RepliesI'm making a mockup for a client and I need to Load the .swf with the exact stage size so the graphic elements do not float outside the loaded movies stage area. [URL]Basic load code I'm using...
Actionscript Code:
import flash.display.*;var adLoader1:Loader = new Loader();adLoader1.load(new URLRequest("100828_budlight_texas_fight_728x90_jn.swf"));adLoader1.x = 313;adLoader1.y = 162;addChild(adLoader1);var adLoader3:Loader = new Loader();adLoader3.load(new URLRequest("100828_budlight_texas_fight_300x615_jn.swf"));adLoader3.x = 738;adLoader3.y = 0;addChild(adLoader3);
I'm developing a web app using Flex. This app allows to draw forms in a Canvas (like MSPaint in Windows).Now, I want a new feature on it: an infinite canvas. The user should be able to drag the main Canvas and this should be infinite in X and Y axis. Consecuently, this Canvas should be resized in real time.
Obviously, I don't want to create a Canvas of 1k x 1k pixels with zoom in an specific area to give the feeling of an infinite drawing area.
EDIT:I just read that Flash/Flex Flash/Air supports canvases up to 4056x4056 px, not infinite.
The center top of this webpage has a navigation menu that I'm trying to create [URL]. Basically, depending on where the mouseover is, the image and hence the button/link below changes. How to have multiple hit areas overlapping in the same place, and to have only one specific hit area active depending on where the mouseover is at the time.
View 1 RepliesCan I do this in flash? which is the best way to do it? I have a main mc and I want to duplicate it and then move it in specific area..
View 12 RepliesI have a movie with one frame, and movieclips which can be filled with color are attached. The drawings can be printed with color, but the whole stage is printed and the #b thingy doesn't seem to work. (I've got a box with the wanted print size on a separate layer named #b). If I create a keyframe on frame 2 and move the boundary box there, the print size is adjusted to the box, BUT... the colors are not printed, and all the movieclips which have _visible = 0 are also printed. So it seems I have to choose between printing the whole stage and printing the wanted area without color and with hidden lines...
View 2 Repliescan i do this in flash?i have a main mc and i want to duplicate it and then move it in specific area.
View 12 RepliesI have a random motion script that I need to remove when the object in random motion hovers over a specific area in the background. I need the object to just keep moving in the direction it was going in and not randomly switch directions or bounce.This is my script for the random motion which is on the object:[code]
View 1 RepliesBy the way i want to make a visualization about a math process to show partial function graph.
I think i can make a scene which in 1000x1000 pixels. I'll start from top of scene and when i press a button i'll move camera to second section which i want to do sketch. I want to make a sketchpad which can draw in a 2 part movieclip. First part is -X section of XY Axis Graph. Second part is +X section of XY Axis Graph. I'll put image of XY Axis Graph to -X and +X section of XY Axis Graph. So it'll be seem like one part. And i'll draw to -X section. After that i'll skip to second sketchpad with camera. And i'll make same thing. But for now i'll draw to +X. And when i press conclusion button camera will skip to bottom of scene and move -X of figure1 and +X of figure2 to bottom. So i can see figure1's -X section and figure2's +X section as merged in bottom. So it'll show to me partial function graph.
But problem is sketchpad is drawing to _root. So i'm unable to move sketch or shapes on XY Axis Graph. But if i can draw that to movie clip i can move it like an object with drawing and merge it like i want.
So i want to make a sketchpad which make drawing in limits of movieclip.
how i can do it ? Also i'm using following code:
Code:
import mx.controls.Loader;
// 1. SETTING THINGS
// ----------------
_root.createEmptyMovieClip("line",1);
[Code]....
would like to export a specific area of the stage. for example. My stage is 400 x 400 and I would like to export only 100 x 100 of the stage at xy 0 pos.
View 3 Replieswas wondering if someone could tell me how to modify this code so i can export the stage at its dimensions in pixels. Right now the script saves the stage without bounds, unconstrained. I need it to draw the stage at its default 1280x720 stage size and whatever is within the stage bounds, not whats off the stage bounds
function createJPG(m:MovieClip, q:Number, fileName:String)
{
var jpgSource:BitmapData = new BitmapData (m.width, m.height);
jpgSource.draw(m);
[Code]....
I have my flash doc. and I used a mask to give it rounded corners but you can still see the stage color. I am new to flash so I can use the help. How do I get rid of this or can you even do this?
View 2 Replies