Actionscript :: Retriving Alpha Value Of Canvas Background?

Oct 19, 2011

Can we fetch the alpha value from a canvas( i have a canvas in flex, setting background color with alpha, can i read the alpha from the canvas directly again later ? ) for example we can read the background color like canvasId.getStyle(backgroundColor) same way, any method for alpha as well?

View 1 Replies


Similar Posts:


Actionscript 3 :: Set Bitmap Image In Canvas Background?

Nov 18, 2010

I have image as Bitmap:

var bitmapImage:Bitmap=getDefaultImage();

I need to set this bitmap as canvas backgroundImage.

I find method myCanvas.setStyle("backgroundImage",url); But i dont need url. Whent i do this:

myCanvas.setStyle("backgroundImage",bitmapImage); I have an error.

How to set bitmap image in canvas background?

View 1 Replies

Flex :: How To Set Bitmap Grid As Background For Canvas

Jun 12, 2009

I've got a canvas in my app which I want to be backgrounded with a grid. I suppose, I need to create a DisplayObject with a single grid cell drawn on it and set it as a repeated bitmap fill for the canvas, but I can't figure out how to do that.

View 2 Replies

ActionScript 3.0 :: Choosing Background Image From File On Server As Canvas

Nov 28, 2010

I need the exact simple application but the ability to choose a background image from a file on the server as the canvas and I want to save the created image on a server file instead of on the client machine. The ability to change the pencil drawing size would be an additional plus. I work with php and mysql so I would like to use them to store the file parameters, even as a blob in mysql, along with some additional user (server) defined variables (I can do the php/mysql side if I can get the file there, I understand there is an swf to png ByteArray class that might be able to save on server. The project is for an opensource group so the final product would need to remain as such, I would be able to pay for the modifications mentioned above. The source files are available at the links below. [URL]

View 1 Replies

Flex :: Why Do DragOver / Enter Events Require A Background On Canvas

Dec 10, 2009

I have a canvas which I want to accept drags on. I have added a dragOver and dragEnter event listeners to the canvas, but they only work if I drag over something inside the canvas (another child element). I realised that if I set the canvas' background colour to black it works. So I have set it's background transparency to 0, which works... buy is there a better way to work around this apparent need for the canvas to have something inside it to accept dragEvents.

View 1 Replies

Retriving Data From Another Flash Program?

Feb 11, 2011

Currently learning flash and what I would like to do is capture information from another flash program if thats possible?Basically im playing a persistent browser based game written in flash and on mouseover of a tile in the world map it displays some information, specifically in game co-ordinates and details of whats there.Is it possible to capture that with a flash program? Or is that beyond the bounds of flash? I know it can be done in other languages but its been years since I've done any programming.

View 2 Replies

Set The Background (o% Alpha) Of A Component?

Sep 26, 2009

I've bought a component on flashden. This is a text component that makes it possible to load CSS & Html on your flash project. Check the included zip for the source. What I want is that the background of the component is transparant. Now it has a linear gradient. I've tried to set the drawing in the component to zero alpha but that didn't do the trick. How to edit the background (if nescessary by actionscript)?

View 2 Replies

IDE :: Set The Background (o% Alpha) Of A Component?

Sep 24, 2009

I've bought a component on flashden. This is a text component that makes it possible to load CSS & Html on your flash project. Check the included zip for the source.What I want is that the background of the component is transparant. Now it has a linear gradient. I've tried to set the drawing in the component to zero alpha but that didn't do the trick.The file is to big so I've uploaded to http:[url...

View 1 Replies

ActionScript 2.0 :: Textfield Background Alpha?

Apr 25, 2005

i just wanna know what do i have to do to make the text field i have on my movie to be transparent instead of white with black borders...

its a dynamic textfield, on flash mx 2004 pro

View 2 Replies

ActionScript 2.0 :: Change Alpha When Background Appears?

Sep 2, 2010

I made a form and i want it to be invisible until the background's alpha is 100% and dissappear when the backgrounds alpha is anything other than 100.

reserv_form is the form reservations_box is the background

this is what i have but it dosent work:

Code:
reserv_form._alpha = 0;
if (reservations_box._alpha = 100){
reserv_form._alpha = 100;

[Code]....

View 0 Replies

Fadein A Background With A Alpha Tween After It's Loaded In By An UILoader

Apr 14, 2010

I want to fade in a background with a alpha tween after it's loaded in by an UILoader. Everything seems to be working great when I do a Test Movie (in Flash) or view it in IE. However, I encounter a problem when viewing in Firefox. Somehow the alpha does'nt come up to 1(100%). Sometimes my background image is barely visable and sometimes it's at ~90%. It seems to be completely random.

Quote:

//load random background (1 to 10)
var randomNumber:Number=Math.ceil(Math.random()*10);
trace(randomNumber);

[code]....

I've tried increasing the final value (Regular.easeOut,0,1,2,true) and this will change something but doesn't solve the problem. I've also tried instead of fading in the background to fade out a overlaying vectorshape, but same result.Is it possible it has something to do with other script/my background img size/??.

View 2 Replies

Flash :: Flex Spark Link Bar Background Color / Alpha

Nov 15, 2010

I am trying to change the background color and alpha of a link bar in a Flex/Flash 4 application. No matter what properties I define, the background of said link bar is always white.[code]

View 1 Replies

ActionScript 3.0 :: Make A Dynamic Textfield's Background Color Alpha Set To .5?

Sep 27, 2009

Is it possible to make a dynamic textfield's background color alpha set to .5 and not affect the alpha of the text?

View 3 Replies

Actionscript 3.0 :: Augmented Reality - Export A Mov With The Alpha Channel To Let The Background Go Away?

Oct 23, 2010

I tried to playing around with the augmented reality. Therefore I watched the tutorial (http:url....) and all works like a charme to me. I replaced the kramer.m4v with my own video. It works perfectly.But I want to have my own video on a transparent layer.So that I can see myself not within the background of my video.Therefore I did a video on a greenscreen and keyed the background. All seems to be ok!I exported the video in an .mov with the alpha channel. It works so far, but the black background is still there if i hold the marker to the camera.so my question is: Is it not possible to export a mov with the alpha channel to let the background go away?

Any hints or workaround? I just want to have a video with me speaking on a transparent background and not with teh black background. I changed the kramer.m4v in the HELLOFlar.as to kramer.mov (its with my own video, just the name is the same) but the background isnīt gone

View 11 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 :: "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 :: Setting The Alpha Of MovieClip With Objects Changes The Alpha Separately For Each Object

Oct 23, 2010

[URL] i want the object to fade out but in the object there's a lot of overlapping pictures and each becomes half transparent. how to make the movieclip to change the alpha as it was without objects?

[Code]....

View 2 Replies

ActionScript 3.0 :: Curious Tip: Flipping Sprite.alpha=0 To Alpha=1 Back And Forth With No Logic?

Dec 15, 2011

just spotted this curious trick. If you want to flip something to go invisible on a click, and then reappear on another click (etc etc), try this:

create the sprite, setting alpha to either to 1 OR -1
mySprite.alpha=1; //OR
mySprite.aplha=-1;

[code]....

View 9 Replies

ActionScript 2.0 :: Loading A Movie A Solid Shape Is There With Alpha At 100% Then Over A Period Of 5 Secs Its Alpha Is Reduced To 0?

Jun 27, 2003

using AS, on loading a movie a solid shape is there with alpha at 100% then over a period of 5 secs its alpha is reduced to 0.

i'm new to this......please help if you want to if you don't have a good weekend but think of me struggling onwards and upwards...

View 14 Replies

Set Alpha For Whole Stage Down But Have 1 Mc Full Alpha?

Aug 2, 2011

I want to do aplpha = .5 for the whole app, but then have a MC display at full alpha, is there any way to do this?

View 6 Replies

Javascript :: Video With Transparent Background On Page Above Image Background?

May 2, 2010

I want to embed some video into my HTML page. As background I want to use big picture. And above it I want to insert loop video with (i.e.) walking man.So, can I embed video (without flash and any player controls) in page?Can I decode video with transparent background? Is there any codecs which support transparent background (alpha-channel)?

View 1 Replies

Flex :: After Importing A PNG With Transparent Background It Shows Up With White Background

Dec 28, 2010

As the title already states i have a (big) problem importing a PNG in a Flex 4 application.Created a PNG file in Photoshop with transparent background. Loaded in Flex application using this code:[code]So when the complete event fires the data has been loaded and it is possible to assign the data loaded to the image component named Thumbnail:[code]Unitls now everything works as expected!But when i try to send the Thumbnail component's data to a WCF service i receive a photo with white background:[code]

View 2 Replies

CS3 - Make Background Flash Background Transparent In Dreamweaver?

Apr 10, 2009

I've designed a Flash site in CS3 using Action Script 2.0 that has a main flash movie sorta floating in space over a gradient background. I want the gradient background to re-size with the browser, so I thought that the easiest way to do this would be to delete the gradient background in Flash and instead recreate the background in Dreamweaver using the repeat background option and then make the Flash movie's background transparent. (I hope I'm making some amount of sense here).

I've found a few tutorials on how to do this, but so far I just get a white background instead of transparent. I've tried choosing "Transparent - Windowless" under Window Mode on the HTML tab in Publish Settings. And I've tried selecting the movie from within DW and clicking the parameter button and adding a "wmode" parameter with "transparent" as its value.

View 2 Replies

ActionScript 3.0 :: Printing A MC With White Background, Not Stage Background?

Dec 10, 2008

trying to print a movieclip with a white backgroundwhile keeping the stage background black.The movieclip,printResults_mc has a white rectangle in the bottom layer, 850pixels x 1100 pixels. The following function scales printResults_mcto the printers printable area but because isimpossible to predict the aspect ratio of the printable area someblack background always leaks out. I tried making the whitebackground 20 pixels larger than I need (870 x 1120) and thensetting a crop rectangle in addPage of (10,10,850,1100), no luck,the black stage background just fills in the area outside the crop.A simple solution would be to temporarily set the stage backgroundcolor property to white, print, then set it back to black, but I

View 1 Replies

ActionScript 3.0 :: Background Caches And Flashes On New Uploaded SWF As Background

Aug 2, 2010

When I click on the next button that loads a another swf the background from the previous swf flicks on the screen.click on the attached link URL..[code]I would like the "current_ plan.swf" to load so that the over lays (no so much on the views but more in the LIVING MASTER.We are creating this for both touchscreen and web(the link is the working touchscreen version hence the files being large).[code]

View 7 Replies

Professional :: Background Scrolling - Attach The Trees To The Background?

Nov 19, 2010

I have converted a large background image (much larger than the stage) into a Movie Clip.  I did this so I can make it scroll as the player traverses to the edge of the scene.This appears to make the player free to roam the entire background image.I have a tree symbol with a class attached to it that blocks player movement.Here is my problem:

When I drag and drop instances of the tree symbol onto the background, the trees are stationary and do not scroll with the background.I do not want to have to implement code to make the trees scroll when the background does.I was wondering if there was a way to simply attach the trees to the background so that if the background moves, the trees move with it and appear to be part of the background as if they were drawn into it.It is convenient for me to be able to drag and drop as many trees as i need to block certain routes on the background from the player.I tried writing code to make the trees move but it was only working for the very last tree that I added to the scene.

View 8 Replies

ActionScript 2.0 :: Dynamic Text Alpha - Find A Component That Allows Alpha Control With A Dynamic Text Box?

Feb 26, 2005

As far as I know theres in no way to cahnge the alpha of a dynamic text box. I put one in a movie clip and when i try to change the alpha of it everything else in it changes its alpha but the not the DT box. Could someone plz verify for me that u can't change alpha and help me find a component that allows alpha control with a dynamic text box. thx in advance.

View 5 Replies

Scaling Background / Whole SWF Object Without Tiling Background

May 15, 2009

I really don't know much about flash or swf files but in updating my portfolio I came across Polaroid gallery. I have managed to update the background jpeg with my own picture and remove the fade effect. However in the original program the background was tileable so when seen in a full screen browser looked fine. As my picture is not tileable I would like to know if it is possible to scale the background or the whole swf object without tiling the background.

View 1 Replies

Image As Background / Resizing / Scalable Background

Jul 24, 2009

I am relatively new to Flash CS3 and i have been learning Action-script 3 over the past week. I have come quite a long way and i have made a site in flash but i just have a question.I have been using an image as my background and i am happy with the way flash automatically scales all the objects in my file but the background image does not scale. Is there a way to do this? I have found out things online which show me how to add auto-resizing to the background but this knocks off the flash auto scaling/resizing for everything else.

View 4 Replies







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