Flash :: Determine How Much Space Is Left On A Drawing Application
Feb 19, 2010I have a drawing application likewhere the user can select a brush size to draw.I need a way to determine that all the surface has been drawn.
View 2 RepliesI have a drawing application likewhere the user can select a brush size to draw.I need a way to determine that all the surface has been drawn.
View 2 RepliesHow to determine if an application (e.g. Adobe AIR) is running on a 64-bit OS? What function could one use to check this?
View 2 RepliesIf you use FMS 3.5 as a DVR to record the live streams, whether it can determine that the hard disk has 100 megabytes? It is necessary that I live streams redirected to another server.
View 10 RepliesHow can I find out what the current application type is? i.e. whether it's running on a mobile device or as a desktop Air application?[code]...
View 4 RepliesI m new to actionscript 2.0 and flash cs3 (on which the team was working before). I have managed to learn basics (though not completely) of flash and AS2. Our project is about creating an e-learning tool that will enable the students to improve their english grammar skills through different lessons e.g noun, adjective verb etc.
i m trying to write a generic code that, after completion, should work for around 40 lessons in the entire tool. making 1 main.fla that should work for all lessons, seems interesting but a challenging job. i can not find any thread or blog that wud tell me CAN I COUNT THE NUMBER OF SCREENS IN MY LESSON AND THEN AT RUN TIME MY main.fla SHOULD HAVE THAT MANY FRAMES. i will try to explain this through an example: in noun.xml, i calculated 30 screens, so i need 30 frames for noun.xml....whereas if in adjective.xml, i have 50 screens, i should have 50 frames......therefore, i need to calculate the number of screens in my lesson, and then dynamically insert that many frams in my application, can i do that...
I have a font - 'Saginaw' that when renders has some portion of the glyph to the 'left' of the starting position/box: [Picture here] [URL] The above snip is of the font in Photoshop.. I did a 'select all' to show the black box.. I'm trying to figure out what that offset/value is [portion of the W rendered on the left outside the box]
[Code]...
I have a line within a rectangle.The line can draw outwards 360 degrees.I need to determine which of the rectangle's 4 sides the line is drawing out of.
View 1 RepliesThere are several flashbased painting/sketching online apps that allow multiple users to paint simultaneously. Some examples: [URL]For a project, we want to implement something similar. The question is, whether we need to start from scratch or whether there are any libraries available that could facilitate development (especially the networking part).
View 1 RepliesI'm trying to make a drawing program in Flash 9 (AS3 ) which will allow the user to make their own caravan decking design. I'm having trouble getting it finished as I have only been working in Flash for about a week. Please see attached files.I think I'm on the right track, but heres 4 things I need to complete the work:
Add Object Focus: When the user moves the mouse over one of the decks I would like the decks border colour to change (0xFF0000) and to activate focus.
Add Object/Clone Copy: When the user starts to drag the deck and the deck has focus I would like the program to instantly clone that object to simulate the decks having an unlimited number.
Add Rotation: When the deck has focus I would like the registration point to be reset to the middle of the sprite. Currently I only have it working on one.
Add Collision Detection: I will have a basic drawing of a caravan in the middle of the screen and I wish for the deck to never go over the border of the caravan. When the user let's go of the mouse I would then like the collision detection to include both the attached deck and the caravan.
i make good Online Mulit Drawing example for you herethere is a Socket Server that i made, and swf to.
View 2 RepliesI wanted to use the well known method for turning your vector graphic into bitmaps.Ie, something like:
Code:
var bmd:BitmapData = new BitmapData(src.width, src.height)
bmd.draw(src);
[code].....
I have a comic book style game where you have to complete the story by dragging the right frame to the right place, but when I drag the frames pieces of the frames left behind and sucked on the screen. The frames are loaded swf files.
View 2 RepliesWe are recording live streams on a Flash Media Interactive Server 3.5.3 r824. In general, everything works fine, so there are no appliaction-issues. But sometimes (it is not reproducable yet) a stream stops recording without any notice or event in the application. All we can find is such a message in our core.log: 2010-03-05 03:30:00 4747 (e)2611178 Error from libmp4.so: No Space left in the stsd box. - 2010-03-05 03:30:00 4747 (e)2611423 Failed to record [...]16891_14351_RGtBCODxPR4cM8QfML9CuxqhHqutMwWX.f4v (Unknown Error). where i could start searching for the cause of this error? These streams are in general sent by Adobe Media Live Encoder.
View 4 Repliesthis is insanely annoying problem: AS3 full screen application based on ADOBE FLEX 4, text field. User types something in text field, and then starts clicking backspace many many times to remove what he just wrote, and for some reason, instead of removing characters from text field it tells browser to GO BACK and user navigates away.
View 2 Repliesi've created a simple drawing application with colors, a clear button, and a save function, but my problem is i want what people draw to become the head of a character in my animation.I would LOVE a transparent backround too to whatever they draw,
View 3 Replieshow can i do export the image that drawing in the application (swf file) ontime . i 'm design the flash application that you are drawing , switching the brush style and font and .. but i don't know how can i save the image that draw in .
View 1 RepliesI wonder which component to extend in Flex 3 in order to make a drawing stage.
View 1 RepliesI found this code on a forum which allows for an undo and erase button for a drawing application (and is perfect for what I need) but it's in AS2 and I can barely make sense of it:
Code:
_root.attachMovie("canvas", "canvas", 0);
d = 0;
[code].....
How to make multi user drawing application in as 3.0
View 8 RepliesSo i have a project i am working on that is a drawing application. I am trying to put a brush size slider into the application but i have no idea where to even begin.I am very new to flash/actionscript so i dont know where to start.
View 9 RepliesI have this: [URL]. And would like to be able to stop drawing when dragging the added picture. The thing is, the drawing App is inside the fla. The Drag and Drop is an external class. What I think myself is I probably have to change the entire drawing code to an external class also, but then I'd still not know how to have those 2 classes communicate with each other.
Fla file:
PHP Code:
Draw API Marius Posthumus
import com.adobe.images.JPGEncoder;
Importsimport flash.display.Shape;
import flash.events.MouseEvent;
import flash.display.BitmapData;
[Code] .....
How do I create a simple live drawing board/whiteboard functionality using flash as3, and flash media server 3.5.
View 1 RepliesI am using a custom Flex skin to create an active blur/frosted glass effect on the background of floating Panels, TitleWindows, and other containers (similar to http:url....). There is a background image in the Application skin, and potentially any number of other components above and below the active blur component. Here's some relevant code within the skin:
public static const BLUR_FILTER :BlurFilter = new BlurFilter(16, 16, BitmapFilterQuality.HIGH);
private var _bitmapFill :BitmapFill = new BitmapFill;
private var _matrix :Matrix = new Matrix;[code]....
Unfortunately, the performance of this when the component is being resized, and especially when moved, is poor. There is noticeable drag delay and overall slowdown, and this is with only one popped-up TitleWindow in the test application. There is especially poor performance when components inside the TitleWindow are changed (button hover states, etc.)I've attempted to optimized a little bit by avoiding reinstantiation of the blur filter, bitmap fill, and matrix, but this has had little or no effect. I removed the blur at one point, just drawing the Application to a bitmap, and the performance is still poor, so it's clear that it's mostly the BitmapData.draw() call.
I've read about using scrollRect and cacheAsBitmap, but I'm not sure where to apply these properties (or other optimizations I'm not aware of) within the Application or its components.
My vision is to have a colored square at the top of the site Im working on which should span across the entire browser window. I have created a square 1280 x 100 pixels in size and imported it to the stage, alignment is set to x=0, y=0 ad alignment. The scene is the same size as the square I 've imported. When I view my Flash creation its displayed 8 pixels from the top left corner of the browser window. The flash file only contains the square and nothing else. take a look at the 3 files I've attached: issue-scrreen1-3.jpg. The first 2 screens are my Flash, properties and library screen shots. The third screen shot is my browser window.
View 2 Repliesi hav a left right moving thumbnail gallery from xml, i need that on the last image image come on focus from the left side so automatically the left button will be disable or opacity goes 0 anything and same thing from right side also.
View 14 RepliesI have a series of thumbnails that should scroll from left to right & right to left when you roll over the movie clip buttons on either side. IT was working in another flash movie, but I moved it to a different flash file and now it's not working. The hit buttons within the movie clip buttons have this action script:
[Code]....
looking to create an image/mc slider that moves form right to left via user clicks of a left and right button.I would assume I would create an array to hold a series of mc's in (my images) and then tell the left and right buttons CLICK events to move linearly through the array (displaying next in line and previous etc.
View 1 RepliesI've some components with dynamic heights. They have to be aligned with respect to the bottom of my canvas container, so I cannot set the same y for all components.
I could compute their heights and successively set the y but I was wondering if there was an easier way to do it.
I have an Image called "PanoramaImage" (which is very long in width). I want this image to move from right to left & from left to right automatically.
I am using flash as3. I am loading this image from the same folder where the .fla file exist. my image to move by using Up & Down arrow keys.
The following is the sample code i found on web.
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.CO MPLETE, completeHandler);
loader.load(new URLRequest("panorama.jpg"));
[Code]......
I have an Image called "PanoramaImage" (which is very long in width). I want this image to move from right to left & from left to right automatically.I am using flash as3. I am loading this image from the same folder where the .fla file exist. Right now I have the code which will help my image to move by using Up & Down arrow keys.The following is the sample code i found on web.
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.CO MPLETE, completeHandler);
loader.load(new URLRequest("panorama.jpg"));
var content_mc:Sprite = new Sprite();
[code]....