Loading Video Into Specific Area?
Mar 18, 2009how 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 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 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 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 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'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 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 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 Repliescutting to the chase, Basically im loading a movie externally using this code...
Code:
on (release) {
if (S_Init == Number(S_Init)) {
loadMovieNum("s_menu.swf", _root.S_Init);
[Code].....
cutting to the chase, Basically im loading a movie externally using this code...
Code:
on (release) {
if (S_Init == Number(S_Init)) {
[code].....
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]....
i am just curious if this kind of technology for flash is available.Can a website flash player able to cut specific part of the video and save it as a new video through php and flash.
View 1 RepliesTo achieve a zoom effect in our 2D flash game, we make the background of the game much bigger than the visible stage. This becomes a problem when the background is complex or when we apply a grayscale filter to the background. Is there a better way to do zoom? Or, is there a way to apply the filter to only a specific area of a movieclip?
View 2 RepliesI am playing a video and created a button which displays video area in fullscreen but video doesn't cover whole screen area, there are blanks left and right of the video. I searched a bit and every flash player i found with full screen option in fact resizes the video the same way, it just doesn't cover whole area. Why is that? Can video in full screen mode be resized to cover whole screen area without those blanks at sides?
View 6 RepliesHow do you create the example like "Ninja unboxed 2". The flash video seems to take over the whole browser window. Or even better as the example above has been removed [URL]
View 1 RepliesNormally we use NetStream.Seek method but it will make the seek after the buffer area crossed the seek time length.(HTTP). Can we seek the video that is beyond the buffered area like youtube in red5. Will it start the buffer from the seek point.
View 1 Replies