ActionScript 3.0 :: Put On The Stage A Png File With Some Transparent Areas?

Dec 24, 2011

I wanted to put on the stage a png file with some transparent areas, unfortunately it weight too much.So instead I thought I'll create a shape object and use jpeg image as it's mask...

This is my code:

Code:
package {
import flash.display.Bitmap;
import flash.display.Shape;

[code]....

And it doesn't work, can I use jpeg images to mask the shape at all?

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Saving Areas Of The Stage To A File?

May 10, 2006

i have a dynamic site that allows users to create their own layout compositions. is there a way that i can implement a way for them to save their compositions to a file on their computer?

View 2 Replies

Ignore Mouse Actions On Transparent Areas Of A PNG Using Flex Image?

Jan 5, 2012

I made a simple test Air application to try different approaches to masking or using hitArea to ignore mouse events over transparent areas of a PNG. Can't seem to find the right mix of things to make it work, nor could I find a succinct example on the web.Clicking on the transparent areas of any of these methods don't result in the click getting handled by the background.Here's the code I have:

<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark" [code].......

View 2 Replies

ActionScript 3.0 :: Getting Display Object Dimensions Including Transparent Areas

Dec 20, 2010

I'm having troubles getting the dimensions I'm looking for for a given display object. This display object has some transparent area to the top-left of the opaque content but to the bottom-right of 0,0. As such, the display object's reported width ONLY includes the opaque area, not the transparent area. For example:

Code:
var myChild:Sprite = new Sprite();
myChild.graphics.beginFill(0xff0000);
myChild.graphics.drawRect(100, 100, 100, 100);
myChild.graphics.endFill();
trace(myChild.width);

This reports 100 as the width and height. I need to somehow retrieve 200 as the width and height.

I'm trying to take a bitmapdata snapshot of the display object, but when I do new BitmapData(myChild.width, myChild.height) and then draw into it I don't get the full opaque content of myChild drawn because the dimensions are too small.

View 3 Replies

IDE :: Drag-and-drop Recognize Transparent Areas Of External PNGs?

Jan 21, 2009

I have a simple Flash movie which loads several external PNG-24 images into movie clipsEach movie clip is partially transparent (using alpha transparency), and made drag-and-droppable. Everything works properly except that for each movie clip, I am able to drag and drop the clip using the transparent space around the image. I want the "grab-able" area of each clip to correpond to only the non-transparent areas of the PNG, not a rectangular box around each movie clip.

View 2 Replies

ActionScript 2.0 :: Transparent Areas Of Movie Clips -- Clicking Buttons Underneath?

Jan 23, 2004

I've got a movie clip with masked-out areas. It's placed on top of various buttons.The idea is, the user rotates the top movie clip to reveal stationary buttons beneath it. Where there's a hole in the top movie clip, i'd like the user to be able to click the button revealed below.

It's looking like that's not possible. The buttons underneath cannot be activated, because the top movie clip is in the way, despite the transparency from the mask.

I'll begin thinking of a Plan B workaround, but first I wanted to ask if there's a way I'm not thinking of to do my Plan A.

View 2 Replies

ActionScript 2.0 :: Transparent Areas Of Movie Clips - Clicking Buttons Underneath

Jan 23, 2004

I've got a movie clip with masked-out areas. It's placed on top of various buttons. The idea is, the user rotates the top movie clip to reveal stationary buttons beneath it. Where there's a hole in the top movie clip, i'd like the user to be able to click the button revealed below.

It's looking like that's not possible. The buttons underneath cannot be activated, because the top movie clip is in the way, despite the transparency from the mask. I'll begin thinking of a Plan B workaround, but first I wanted to ask if there's a way I'm not thinking of to do my Plan A.

View 2 Replies

Dragging The Stage From Left To Right To Reveal Hidden Areas Off The Edge Of The Stage - Part 2

Dec 10, 2009

I have created an animation (see attached) where the stage can be dragged from left to right to reveal hidden areas off the edge of the stage. Unfortunately I need to add buttons containing links to websites within the dragable movie symbol and I can't work out how to do it.

View 2 Replies

Professional :: Make The Stage Transparent For SWF File Being Used In Dreamweaver?

Feb 23, 2011

I have a SWF file in my Dreamweaver site, that plays correctly. The problem is that the stage is white and we would like it to be transparent. Searching the archives the following advice was given:
 
in your html embedding code you need to set the wmode parameter to be "transparent" I'm wondering if this is the code in Dreamweaver or is this done in Flash. I'm working with CS5. Below is the code that matches the SWF file in Dreamweaver. I did change the wmode value from "opaque" to "transparent" and it didn't work.

[Code]...

View 2 Replies

ActionScript 3.0 :: Any Way To Target Different Areas Of Text File?

Jun 2, 2009

I want to know of if it possible to target different areas of 1 text file. So I would have one file that could populate multiple text fields with different info. I know this is what XML does, but I wanted to know if I could do the same with a .txt doc as well.

View 1 Replies

ActionScript 3.0 :: Load Different Areas Of Text File

Dec 10, 2009

I've been looking for a tutorial that loads different variables in a text file to different textfield/textbox in flash using AS3. So my text file would look like this:

myVariable1=<p class='header'>Headline1</p><br>Subtext content 1
myVariable2=<p class='header'>Headline2</p><br>Subtext content 2
myVariable3=<p class='header'>Headline2</p><br>Subtext content 3
And "myVariable1" would load in textbox "myText_txt_1" in flash and "myVariable2" would load in textbox "myText_txt_2" and so on...

I think this is possible in AS2 but is this even possible in AS3?

View 1 Replies

Transparent Stage In CS4?

Aug 9, 2009

Id like to create a transparent stage for my site hosted here... [URL]so i can change the background in html to a pattern and it will look like the flash bit is sitting on top of it.

View 2 Replies

Professional :: Transparent Stage - Flash CS5?

Nov 17, 2010

there is only one or two threads that come up post 2006 regarding this.I have a flash banner that I am using for a website, and I'd like the stage and background to be transparent so it shows the background (webpage background) gradient.

I know about the WMODE transparency, however, I'm not actually using an HTML file, rather and going to embed this SWF at the top of a wordpress site in the header, so I don't think that the WMODE really matters anyway.I can't believe that even in 2010 (ok almost 2011!) that Flash doesn't support transparency yet, but I've been proven wrong beforeThis is a super simple SWF.....not even any real navigation in it.

View 2 Replies

Professional :: Make The Stage Transparent When Published?

Jan 14, 2011

I want to take a simple published animation and put it into SONY VEGAS. However, I only want the character (I've created a symbol for it) and not the big white stage. My goal is to get the animated character on top of all my sony vegas layers, but the stage is blocking all the other layers. Is there some kind of setting that can make the stage transparent when publishing as a SWF?

View 3 Replies

Professional :: Transparent Background Instead Of Color For Stage?

Mar 4, 2012

Is there a way to set the background color for the stage to transparent instead of a color? I only see color as options when clicking in property manager for the background.

View 6 Replies

ActionScript 3.0 :: Make The Input Text Box On The Stage To Be Transparent

Mar 29, 2010

I'm trying to make the input text box on the stage to be transparent (not the text, the background).

View 1 Replies

ActionScript 2.0 :: Make The Stage Background Color Transparent?

Sep 9, 2004

I am trying to make the stage background color transparent.I am working with breeze, and I want to import a .swf into the powerpoint. However, I don't want to interrupt the powerpoints slide design.Therefore, I would like to make the .swf's background transparent.Is there a script for setting the stage background alpha to 0?

View 1 Replies

ActionScript 3.0 :: PNG Imported To Flash 5 Stage Is Transparent, Prints Out With A White Box?

Sep 20, 2011

I've got an application which gives the viewer the capability to create a design then further customize it with their own art, i.e. a logo, which can be a .jpg, .gif or .png. I may narrow the file options down, but right now I'm finding when one prints this design (I have a "print" button as well) any transparent .png file that's in this design prints out with a white "box" that is obviously the canvas on which said .png was designed.

View 2 Replies

Flash File With Transparent Background

Jul 26, 2009

Is it possible to make flash file with transparent background. I want to make animated buttons on transparent background, so you can see background image in wordpress under the buttons.

View 5 Replies

Professional :: Transparent Background In A A Swf File?

Mar 12, 2010

I've read a Flash tutorial which states in order for your published swf. to have no background you have to:

File - Publish Settings - HTML tab - Windows Mode: Transparent Windowless - Publish

I have then exported the file as a swf. and mounted it in a HTML container expecting the Flash movie to have no background.This did not happen, there was a plain white background in the container instead.

View 11 Replies

ActionScript 3.0 :: SWFLoader With A Transparent Swf File?

Jul 19, 2011

I am loading an embeded swf file with SWFLoader using actionscript 3 in Flash Builder 4.5. When I load this swf and set "wmode" to "transparent" in HTML, it works as expected and you can see the background color through the swf object in HTML.
 
However, when I load the swf in Air with the following code:
 
[Embed(source="swf/data.swf")] var data:Class;
swfLoader = new SWFLoader();
swfLoader.percentWidth = 100;

[Code]....

It always has a white background.
 
What can I do to make the background transparent?
 
Note: This is for a mobile android device.

View 1 Replies

Professional :: Create An Swf File With A Transparent Background?

May 7, 2007

Is it possible to create an swf file with a transparent background? If so, how? If not, why not?

View 2 Replies

Create A Flash File With A Transparent Background?

Jun 5, 2009

I was wondering if anyone knows if you can create a flash file with a transparent background. Ultimately i would like to insert my flash file (which is a website) into dreamweaver but i want it to interact with my background image in dreamweaver (which fills the whole browser page edge to egde) so it shows through my flash file which will have an opaque backgorund?

View 3 Replies

Import A Transparent Video File Into Flash?

Jul 19, 2009

can i have a transparent vedio file ( for example avi ) or any other accepted formats into flash ??? I'm using 3d studio to make some antimations and i need to add them on my flash movie and of course they should be transparent. if there is any way other than using a sequence of png image files (( which is a too stupid way because of the large number of frames )).

View 2 Replies

Professional :: White Box Around Image In Transparent .swf File?

Feb 3, 2010

I created a .swf file for a header of a website using a logo that tweens in.  I tested the .swf with the transparent properties and it works but the logo I imported from photoshop has a white box around it, how can I remove this?  Do I need to import a transparent .png file instead of a .jpg?

View 3 Replies

Html :: Display A Transparent Mov File On A Webpage

Aug 17, 2011

I bought this flying birds MOV file from istockphotos and now I'm stuck trying to implement it into my webpage, I want it to run like a flash file, every few seconds but I can't seem to be able to import it into Adobe Flash, I tried using the code below but it does not allow me to do much and is not transparent:

[Code]...

View 1 Replies

Flash - Dealing With A Transparent Png File Symbol?

Oct 5, 2011

In my project, there is a frame(png files) placed on the top of all symbols. After that, I apply mouse click event to the symbols that place underneath the frame symbol, but when I run the the game, I cannot click to the below symbols but only the frame symbol, although the frame is transparent.

The problem is, although the png picture has some transparent area, the mouse click cannot pass through it. Is there solution? Is there anyway I can disable a symbol from being clicked and mouse click event can recognize the symbol placed under it?

View 1 Replies

ActionScript 3.0 :: Saving Transparent PNG - File Dimensions

Apr 27, 2009

I've got a movieclip called img_container that holds a draggable image (img_mc) and a mask over img_mc. I can save my img_container out as a transparent png which works great but the issue I have is that the png dimensions are still the size of the original img_mc. I fairly new to AS3 so I'm at a stand still. What I would like to do is save out the bitmap as only the visible area of the masked img_mc. The mask (called myMask) is also draggable and resizable so I'm not sure how to go about saving that specific area only.

View 2 Replies

ActionScript 3.0 :: .swf File Loaded After The First One Comes In Partially Transparent?

Nov 22, 2009

I have a flash site (portfolio), and it uses buttons to load/remove different .swf file (it is an XML gallery that I did not write.) It works perfectly - the FIRST time I load/unload a .swf . . . however, every .swf file loaded after the first one comes in partially transparent (it normally fades in), but otherwise the .swf is fully functional. Each .swf has it's own unique name/images, but is otherwise identical to the original gallery. It doesn't matter which one I open first - the first one is always correct, the rest, not. Also, the degree of transparency varies randomly, but generally seems to hover somewhere around 1/2 way.

[code]...

I know that something in the XML gallery is causing this (switch to a completely different .swf and the transparency issues go away), but I also think that I am likely not unloading the .swf correctly and that some part of it is remaining in the memory and creating issues when it is used more than once.

View 2 Replies

Professional :: Transparent Background Is Not Working With Vmode Transparent?

Oct 17, 2010

I imported a video into flash and have a transparent photoshop layer to create an iPod skin. The video works fine, but I cannot get the "stage" to be transparent so that you do not see the flash background color behind the iPod skin.
 
I've read in the forums and have followed the instructions here from Adobe. If you look at my code, I have

[Code]...

View 6 Replies







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