ActionScript 3.0 :: Graphics.drawRect Not Working - Get A Blank White Canvas?

Feb 11, 2009

I'm trying to draw a shape but am having a weird issue. I'm not getting any errors, but no shape will show up. I get a blank white canvas when I run the .swf with the following class:

[Code]...

View 4 Replies


Similar Posts:


Actionscript 3 :: Passing A Rectangle To Sprite.graphics.drawRect( )

Mar 5, 2011

Is there a neat minimal way of doing this? (this produces an error):

var freeSpace = shape.freeSpace() // returns Rectangle
var s:Sprite = new Sprite();
s.graphics.drawRect(freeSpace);

Just looking for a more cleaner way other than something like .drawRect(freeSpace.x, freeSpace.y, freeSpace.w, freeSpace.h) I know you can do it with bitmapData.fillRect(rectangle), but need sprites in this case.

View 1 Replies

Professional :: Get A Blank White Screen In Chrome

Jan 10, 2011

Should bring up a login when you go to that site. However in Chrome It seems to be loading something and then I just get a blank white screen. Sometimes it loads but if you then hit refresh it will bring you to a blank white screen instead of reloading. Also interestingly if you are staring at the white screen, if you double click, click drag click around alot on the page it will come up kind of like its there but not being displayed. this problem only displayed in Chrome -- IE, Firefox, safarii etc. Perhaps my HTML is bad? I can't believe that because when I use the raw-HTML output from a publish in CS5 It is still giving me this behavior? Also others have had this problem with my site so it isn't just my browser/computer combo.

View 3 Replies

ActionScript 2.0 :: Blank White Screen For Maybe A Minute?

Sep 7, 2008

I am working on a website right now and when I go to the html version of it, all it does is just sit there. A blank white screen for maybe a minute and hwen it finally loads the preloader only comes up for a half a second.

View 1 Replies

ActionScript 3.0 :: Loader Loads A Blank White Space

Jun 30, 2009

What I'm trying to do is using a loader to load some videos. If the video is not found, I just want to display a white space in the loader. [code]...

View 3 Replies

Professional :: Test Movie Generates Blank White Screen

Jun 14, 2010

Not sure why this is happening but everytime I test a movie (CTRL+ENTER) in Flash movie it produces a blank white screen. I even created a new Flash file with a simple Shape but it still gives me that blank white screen when I run test movie. It does, however, run correctly when I click the *.swf that got generated. I'm not sure if my work recently upgraded me to a newer version of Flash Player.

[Code]...

View 1 Replies

Remove White Space And Blank Sides In Flash Movies?

Dec 5, 2010

I am new in Flash and Currently, I use Flash Pro CS5 to create new movies and modify old movies.

When I publish the movie I developed it comes with two white blank sides and i tried to change the Publish settings like Dimensions and Scale and publish the flash movie but the white blank sides did not disappear ?

I want that the flash movie has all the space of the dispaly window so that no white space appears when I view it in normal or maximized or full-screen view modes ?

View 1 Replies

FLASH :: Http Headers - Cannot See Component On The Page Instead There's A Blank White Region

Jul 4, 2011

from time to time I get feedback from my web portal customers that they cannot see Flash component on the page - instead there's a blank white region. When it happens I instruct them to clear browser cache, and it solves the issue. Is there any way to handle this differently, using HTTP headers etc.

View 1 Replies

Actionscript 3 :: Run QNX Project On Desktop Flash Player - Swf Appears Blank White View?

Mar 28, 2012

I am trying to run QNX Actionscript project on desktop Flash player, but when I run the swf, the player appears blank white view I tried to set the QNX libraries "Merged in code", but the app doesn't run Is there any way to run the project swf on flash player Note: I am using Flash Builder 4.5

View 1 Replies

ActionScript 3.0 :: Communication - Short Gap (blank White Page) Before The Actual HTML Site Loads

Aug 3, 2010

I have a little Flash intro SWF i prepared and handed off to a friend who is implementing my intro animation into an HTML site.... The problem is that once the SWF (intro) finishes, there is a short gap (blank white page) before the actual HTML site loads. Is there a way around this? Is this something i need to code on my side (AS3) or is this a problem for my HTML/javascript buddy to figure out......or both.

View 3 Replies

Flash :: Erase A Part Of Flash.display.Graphics Canvas?

Sep 9, 2011

Is there any way to erase a part of flash.display.Graphics canvas? Like

[cODE]....

This produces just a red square (the last 3 calls are noop), and what i need is a transparent square hole in it.

View 1 Replies

ActionScript 3.0 :: Working With Graphics From .as File?

Feb 2, 2010

I copied code from one site and saved as Test3D1.as. The code is:

Code:
package
{
import flash.display.*;
public class Test3D1 extends Sprite

[code]....

and tested it again. I got message "test" in output window, but still no graphics.

Code:
import flash.display.*;
var ellipse1:Sprite = new Sprite();
ellipse1.graphics.beginFill(0xff0000);

[code]....

View 3 Replies

Actionscript 3 :: Preloader Not Working With Exported For AS Graphics

Sep 12, 2011

I have a lot of graphics and sounds in my library that are exported for Actionscript in Frame 1. I believe that because of the exported graphics, my preloader will not work. All I get is a white frame while the movie loads. How can you preload graphics that are exported for Actionscript?

View 2 Replies

Actionscript 3 :: Using Graphics.clear Not Working As Expected?

Mar 12, 2012

Would anyone know why using graphics.clear(); in this example is preventing the graphics from being drawn?

e.g. the following code works and the lines are drawn.

var my_shape:Shape = new Shape();
my_shape.graphics.lineStyle(2, 0x00FF00, 1);
addChild(my_shape);

[Code]....

I'm wanting to animate the line moving so would like to clear the previous drawing before redrawing the lines.

View 1 Replies

ActionScript 3.0 :: Get Square Linestyle For DrawRect?

Jan 20, 2010

Normally when we draw a rectangle with linewidth 1 no problem.But if we apply a linewidth more than 10, the corners of rectangle seems rounded shape.[code]

View 2 Replies

ActionScript 3.0 :: DrawRect Not Drawing Correctly

Jul 7, 2010

I normally use flash, so this normally wouldn't be an issue, but now I'm using Flex (I'm not a different computer). I wrote a very simple program to draw a rectangle. Here is it:

[Code]....

View 3 Replies

ActionScript 3.0 :: Interesting Way Of Defining DrawRect

Sep 10, 2009

I'm currently working my way through Joey Lott and Danny Patterson's Actionscript 3 with Design Patterns book and ran into this code:[code]

View 3 Replies

Flex :: Dynamically Add Different Items To ThumbContent Canvas And Use Scroller Canvas To Scroll

Jun 5, 2009

I have the following code in my flex project.

[Code]...

I want to dynamically add different items to thumbContent canvas and use scroller canvas to scroll. I see than the height of thumbContent bigger than 7977 it truncate from scrolling. So - I see the scroller canvas with empty space on top. Then I scroll to bottom - I see the content of thumbContent and at bottom scrolling I see empty space too.

View 1 Replies

Flex :: Skin A Canvas With Image And Scale It To Size Of Canvas In It?

Apr 9, 2011

I'm trying to skin a canvas with an image (which is essentially a custom border for the canvas). I've been trying the backgroundImage style as well as the borderSkin style. I can't get the image to scale to the full size of the canvas though. I was wondering what the best way to go about this is.[code]...

View 2 Replies

ActionScript 3.0 :: Overlapping DrawRect() Regions 'exclude'?

May 7, 2009

Using Flash CS3 If I draw two overlapping rectangles with two different fill colors, I get the expected results.If I draw two overlapping rectangles with the same fill color, the overlapping region appears white, almost as if there were an exclusion blend applied. 

View 9 Replies

ActionScript 2.0 :: Attach Graphics Instead Of MC Cause A Graphics File Size Is Relatively Small Than That Of A Graphic?

Apr 9, 2005

I was wondering about MC and hey can help to lag a game out. I set up an advanced class system so i don't have to use MC to simulate walls, all i use isthe x,y,width and height. Well anyway since i don't need MC anymore I was wondering if there is a way to attach Graphics instead of MC cause a Graphics file size is relatively small than that of a graphic, I think. If anyone could tell me thats true and show me a way to attach graphics that would be nice. I haven't tried it yet but maybe if I exported the graphic from the library imihgt be able to call its name, but it doesn't have an instance name so im stuck.

View 2 Replies

ActionScript 3.0 :: "mouse Off Canvas" - Go To Frame2 When The Cursor Leaves The Canvas

Feb 24, 2011

Basically I want to go to frame2 when the cursor leaves the canvas. The code below contains no errors when tested but it still does not work.

[Code]...

We know that the function gotoAndStop(frame2); works in multiple situations which means the first 3 line is fine. I don't know if the problem is the MOUSE_LEAVE event or this.stage which i suppose is the identifier for the canvas. I sure that there must be an alternative code for the identifier this.stage or the whole code. Any solution on how to fire the given function in the event when the cursor leaves the canvas?

View 2 Replies

ActionScript 3.0 :: 1119: Access Of Possibly Undefined Property Graphics Through A Reference With Static Type Flash.display:Graphics.

Oct 8, 2009

i am trying to receive in my function as a parameter either a shape or a sprite and then access their graphics property, but this gives me an error:

Code:
public static function makeRect( obj:DisplayObject, ...
var g:Graphics;
if(obj is Sprite){

[code]...

//1119: Access of possibly undefined property graphics through a reference with static type flash.display:Graphics.

View 1 Replies

ActionScript 1/2 :: Change The Background Color To White And Should Also Display The Text ''white'' In The Dynamic Text Box

May 20, 2009

I'd like to be able to click on each of the buttons and have the background color change and also have its color name loaded in the dynamic text field. E.g. Clicking the white square would change the background color to white and should also display the text ''white'' in the dynamic text box. I've sorted out the colour changing part with the following code:

[Code]...

View 4 Replies

ActionScript 3.0 :: Divinding Vector Graphics Into Vector Graphics

Jul 28, 2009

I have a large vector drawing (imagine 5000x5000) that i want to break up into separate pieces. I know that I can convert this vector drawing into a bitmap and then use the copyPixels method to create many separate bitmaps of the different regions of the original vector drawing, but is there any way to subdivide it into movieclips that just contain vector graphics instead of a bitmap?The reason im dividing a big chunk of vector graphics into smaller pieces is for performance reasons, so flash would only render a small part of this big chunk at a time (only certain regions/voxels/subdivisions are rendered at a time). But bitmaps apparently take up a lot of memory and the system im using would take much less memory if these subdivisions could be preserved in their original vector graphics form.

I imagine I could use masks somehow to achieve this effect (for each subdivision, duplicate the huge image and mask only the region that the subdivision represents), but I dont know the performance costs of masking or if this will create other problems.So is there anyway to split up a movieclip of vector graphics into smaller movieclips of vector graphics the same way copyPixels can with bitmaps?

View 1 Replies

Flex Get Canvas Id?

Jan 20, 2010

I'm developing an engine to generate components.I been wanting to get my xml script that read and create a component to be load into 'content' canvas. I not sure how do I get the addChild work correctly as in 'content'.addChild instead of the one shown below:[code]

View 1 Replies

Hiding Images Outside The Canvas?

Jul 9, 2009

whenever I publish a FLA file I have, and load it onto a website, I see elements which aren't suppose to be within the frame sitting outside the frame.These elements are outside the canvas in flash and come in for brieft flashy moments but then fly back out again.How do I hide all files outside the canvas? I tried masking the top layer and adding everything underneath it and locking it but that never worked.

View 3 Replies

Saving Image Of Canvas?

Jul 19, 2009

I am trying to make a flash application that can save (to the user's local hard drive) a screen shot of the canvas (or more accurately part of it).I've dabbled with Quasimondo's Bitmap Exporter which did some funky stuff to render an image, ship it to a php script on the server, and bounce it back to the client. But not only is that inefficient it also has two other major flaws:

1) it's written in actionscript 2 so I can't use any actionscript 3 abilities.

2) it breaks as soon as one of the images on the stage is defined as a variable brought in through $_GET rather than hard coded. (the image comes in fine but then the rendered finished product is a blank white image)

View 6 Replies

Flex :: Scroll A Canvas Up?

Dec 27, 2009

The basis for the chat window is a canvas. I've got that showing, but how do I make it scroll up? I want to clip the window so only the last 15 lines are shown.[code]...

View 1 Replies

Aligning The Canvas To The Right In Flex?

Dec 8, 2010

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Canvas width="100%" height="100%">
<mx:Canvas backgroundColor="#A8A8A8" height="100%" right="0" top="0" width="100">
</mx:Canvas>

[Code]...

My code above works absolutely fine, until i resize my browser window to a size below 800px width. When the browser window is make of lesser width than 800px, the canvas with background color #A8A8A8 is on the right of the window, but the problem is, when I move the scroll bar, the canvas should remain on the right of the window. Which does not happen, and that is what my problem is.

How can I solve this issue. What should I do to keep my canvas be on the right=0 all the time.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved