ActionScript 3.0 :: Masking External Loaded Image?

May 24, 2009

I'm loading an external image to use as part of the background for each section (other section, new external image). But that image needs to be animated in, in a certain shape (I have created a kind of spatter animation).I always use an Movieclip container to place my external images. So on one layer I have this container clip. I mask this layer with a layer on top of that one, which has the splatter animation (this splatter animation is not a movieclip, just some keyframes with the animation).Everything works, except that the image is not loaded. I checked everything, maybe I put the wrong url or something. But nothing.

So I tried unchecking the mask option. Ok... now my image did load. But as soon as I check the masking of that layer, again I'm left without image.It seems to me that it has problems with loading images that are begin masked. How can I fix this? I tried google'ing, but few solutions were found. And I'm nog programer-guru. I use flash semi-design/semi-program.

View 2 Replies


Similar Posts:


ActionScript 1/2 :: Masking - Load A Colour Image And Then It Is Changed To Black And White Image

Oct 14, 2009

I am trying to load a colour image and then it is changed to black and white image. Here I am using a mask. But it is not getting worked. The code that i am using for this purpose is attached following: import

[Code]...

View 7 Replies

ActionScript 3.0 :: Replace Some Code Which Loaded An External Image And Triggered And Function Once Completed With Code That Uses And Embedded Image?

Jun 10, 2009

I am trying to replace some code which loaded an external image and triggered and function once completed with code that uses and embedded image. The relevant code looks like this.

Code:

[Embed(source='globe.png')]
public function Globe()
{
var imageLoader:Loader = new Loader();

[code]....

The commented out section is where it used to take the loaded image and apply it to a texturemap.I need to replace the lines of code in the first function with something that calls the second function correctly.

I have tried using function imageLoadComplete (e:Event = null)and calling it with imageLoadComplete(); in the first function but although it compile and runs without error, the program does not work properly. I suspect this is to do with the dispatchEvent(); line which I do not understand.

View 4 Replies

ActionScript 3.0 :: Masking Lost When Images Loaded

Apr 16, 2010

I have a Sprite name - thumbnailContainer which consist of following Sprites :
maskSprite @ level2
thumbnailPane @ level1
thumbnailBg @ leve0

The thing is that, I have masked the thumbnailPane with maskSprite. The issues is, whenever the external images are loaded into the thumnailPane, the mask is lost - revealing the entire horizontal stripe of the thumbnails. As well as the thumbnailBg in thumbnailContainer gets blurred even though, I have not applied any kind of filters on any sprite ! I am using TweenLite for transitions.

View 2 Replies

ActionScript 3.0 :: Masking Out Off-stage Content Of Loaded .swf?

Aug 28, 2009

I'm just starting out with AS3 and this is what I'm trying to do:

1. I have an external .swf banner which is 900x250 pixels

2. I want to load this .swf into my main project, using this code:

var myLoader:Loader = new Loader();
addChild(myLoader);
var myRequest:URLRequest = new URLRequest("ptp.swf");
myLoader.load(myRequest);

3. The problem is that the .swf banner that is being loaded has content 'outside the stage' so instead of just showing the 900x250 area I see all the off-stage content as well.

How do I 'mask out' the off-stage content of the loaded .swf so that it will be only the 900x250 that I want?

View 2 Replies

ActionScript 3.0 :: External Image Loaded On Roll Over?

Apr 6, 2011

I want to load an external file when I roll over a movie clip (I have several image icons that I want to expand when someone rolls over each one). I would also like the image to unload after the user rolls off of the image, and for the image to be in the center of the stage.

View 1 Replies

ActionScript 3.0 :: Masking Dynamically Loaded Images With Movieclip?

Dec 10, 2011

I wonder whether anyone could give me an idea of where I am going wrong with this.I am loading images into a sliding menu which will act as a thumbnail viewer, the structure of which is: "thumbsContainer" (movieclip) nested inside "galleryPane" (movieclip). The images are loaded into movieclips named "all_thumbs", which are added to the thumbsContainer stage.

I would like to mask the content of the thumbsContainer, so that only the images physically within the thumbsContainer border will be viewable. I have tried adding my coded mask to the thumbsContainer stage, and tying it to the thumbsContainer; and have separately tried the same with the all_thumbs movieclip - but no matter how I organise my code, I can't get this to work. If the mask is tied to the thumbsContainer mc - that element disappears; if the mask is tied to the all_thumbs mc, only the background to the thumbsContainer is visible. Either way, I cannot get thumbnails to display through the mask. No thumbnails at all will display on stage.

I've had a good look through the books I have and online, but with no joy so far.

I'd be really grateful if someone could give me a steer with this.

[Code]...

View 6 Replies

ActionScript 2.0 :: Alpha Fading In/out Loaded External Image?

Jan 4, 2009

i will like to create an alpha in effect when i load my external jpg, and alpha out when i close it..on this?below are my script

PHP Code:
this.createEmptyMovieClip("container_mc",this.getNextHighestDepth());
var mclListener:Object = new Object();

[code].....

View 5 Replies

ActionScript :: Making A Loaded External Image Into A Button?

Jun 15, 2009

My name is Steve Oatman I am a student atAIO for a Web Design Diplomaclass: Interactive Telecommunications IMD412 XAProfessors to bussyI have a flash web site that I am putting together. I am using AS to load some images from an external source. These images are being loaded into a movieclip. These images need to become buttons once they are loadedThe images will link to the particular menu category pages beef, chicken, etc.The images are loading fine they just are not responding like a button or link.I am getting two error referencing the buttonMode and usehandCursor. Below is just one image that I am working on till I get it to work.I am getting these two Compiler error code:1119: Access of possibly undefined property buttonMode through a reference with static type flash.display:Loader.1119: Access of possibly undefined property useHandCursor through a reference with static type flash.display:Loader.This is what I have.

var myLoader01:Loader = new Loader();
myLoader01.load(new URLRequest("entrees_images/beef/beef01.gif"));addChild(myLoader01);myLoader01.x =

[code].....

View 3 Replies

ActionScript 3.0 :: Loaded External Image And Bitmap Properties

Dec 28, 2010

I am still wrapping my head around AS3 and have been building out functionality that loads external images (PNG) from XML and putting them into MovieClips that have interactive events assigned.[code]What I'm trying to do is smooth the images when they are loaded and then adding them to the container "imageClick". What is happening is that the "image" is returning null. A lot of the code above is snippets I've been finding and I guess I'm confused with how some of these things work together.If I remove all the "image" functionality and change the line:[code]The images load fine and show up, but they aren't smooth when scaled.I guess what I'm asking, is how come my "image" object is returning null every time?

View 2 Replies

AS3 :: IDE - Masking The Image For A Transition

Apr 14, 2009

I'm extending a tutorial from Flashtuts by Michael Chen. My goal is to have the grid fill in random, masking the image for a transition, as the famed Mask Effect transition from Flash-filter. This is what i got so far: URL]

[Code]...

View 2 Replies

IDE :: Masking An Image Loader?

Jun 10, 2009

I'm coming from AS3 and I'm trying to mask a SWF file that's being imported in but it's doing something pretty funky. The SWF file is coming in fine, but when I'm masking it, it shows the shape I'm masking with, but it's also masking because nothing is going beyond its' edges.

{
var mask_mc:Shape = new Shape();
mask_mc.graphics.beginFill(0x000000);

[Code]....

View 6 Replies

ActionScript 3.0 :: Flash Masking Dynamically Loaded Images Within A Movieclip

Dec 10, 2011

I am loading images into a sliding menu which will act as a thumbnail viewer, the structure of which is: "thumbsContainer" (movieclip) nested inside "galleryPane" (movieclip). The images are loaded into movieclips named "all_thumbs", which are added to the thumbsContainer stage.

I would like to mask the content of the thumbsContainer, so that only the images physically within the thumbsContainer border will be viewable.

I have tried adding my coded mask to the thumbsContainer stage, and tying it to the thumbsContainer; and have separately tried the same with the all_thumbs movieclip - but no matter how I organise my code, I can't get this to work. If the mask is tied to the thumbsContainer mc - that element disappears; if the mask is tied to the all_thumbs mc, only the background to the thumbsContainer is visible. Either way, I cannot get thumbnails to display through the mask. No thumbnails at all will display on stage.

Code:

all_thumbs.addChildAt( thumbLoader, 0 );
c = c + 1;
if ( c < totalPics ) {
all_thumbs.alpha = 0;

[Code]....

View 3 Replies

ActionScript 3.0 :: Masking Image While Using Transitions

Jun 6, 2009

I've just created a sliding transition, see code below, which masks an image however when I run the swf it doesn't work and just displays the whole image without a mask.

[Code]...

View 3 Replies

ActionScript 3.0 :: Masking An Image With Drawing Api?

Jun 3, 2010

I would like to reveal an image by drawing over it with the mouse. The drawing part is not a problem but I don't succeede with masking the image with the drawing. Here is my code:

Code:
var myImage:theImage = new theImage(); //linked image from the library
var canvas_mc:MovieClip = new MovieClip();

[code].....

View 3 Replies

ActionScript 1/2 :: Masking An Image Inside A Dynamic Mc?

Mar 9, 2009

I have a 8x 10 array of mcs on stage each which contains a small image. So, there are 8 parent clips (columns) each containing 6 child clips containing the thumbnail images. If the movie clip arrays are created dynamcally (therefore loaded into the top layer) how can I mask them? I'd like to be able to mask 1 vertical (parent) column at a time (so only 1 of the 8 columns (6 images) is visible.

View 14 Replies

Professional :: Mask / Masking Using An Image With Transparent Bg?

May 30, 2010

Flash CS4 AS2 Okay -I have a flash movie, and I want to apply a mask to it.  The mask I want to apply, or rather, the "shape" of the mask I want to apply is an external image that was made in photoshop.  The shape is an irregular one with a bunch of jagged edges.  the shape itself is solid, with a transparent background.  I've tried saving it as a PNG with transparent b/g, and I've tried importing the PSD file directly into Flash - however  - when I go to use this shape for a mask, the mask that is applied is an entire rectangle bounding the imported image - rather than along the edges.Hopefully you can see what I'm trying to do here, and perhaps offer some insight on how I can get this image into flash (let's stick with the idea that the jagged edged manner of the image is too difficult to recreate inside of flash).

View 13 Replies

ActionScript 2.0 :: Dynamically Cropping (masking) An Image

Aug 24, 2009

I made an xml loaded dynamic image gallery and I cannot figure out how to crop the image should it be too big. Masking appears to work only with a movieclip created outside of actionscript (which cannot be created dynamically).

View 2 Replies

ActionScript 2.0 :: Loading External SWF And Masking Stage.width

Aug 10, 2006

I am loading a swf into another swf. The swf I am loading has objects off the stage, and when i load the swf into the other it shows the objects off the stage and screws up my positioning logic. Is there any way to load the swf and hide all the objects that arent on the stage?

View 1 Replies

ActionScript 3.0 :: Masking Some Dynamic Content That Is Brought In Through An External Swf?

Mar 25, 2009

it is masking some dynamic content that is brought in through an external swf. there is a dynamic text field and also a picture loader. whenever either one of these changes, the mask gets all distorted with holes/lighter areas in it.

View 1 Replies

ActionScript 2.0 :: Interactive Image Panning & Alpha Channel Masking

Sep 15, 2007

i have a problem with Interactive Image Panning & Alpha Channel Masking. without panning codes masking is working but with panning i can't see my masked area. code is below and icant find where i am wrong or what i am missing

[Code]...

View 2 Replies

ActionScript 3.0 :: External XML Works Loaded Offline Not Loaded Online?

Apr 15, 2009

Code:
var slideNo:Number;
slideNo = 0;
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, showXML);

[code]....

View 3 Replies

ActionScript 2.0 :: Resize LoadClip Image - Return 0 When The Image Loaded Is Obviously Much Larger Then 0 Pixels

Dec 13, 2007

Some images I load dynamically are too big so I would like to scale them to fit the stage.

[Code]...

this returns 0. Why does it return 0 when the image loaded is obviously much larger then 0 pixels. How do I change the width and height of imgCont to a specified dimension.

View 1 Replies

ActionScript 3.0 :: Unloading A Loaded External SWF With A Close Button On The External SWF To Unload?

Aug 15, 2011

[URL]I have: main.swf (a menu) and I have module.swf (content)If you navigate to Subsea Wellhead Systems/SS-15 BigBore II and click on that I have it load an external swf which covers most of the parent. So far so good. My problem is unloading the loaded 'Child' swf with the button provided on the loaded 'Child' swf.below is the code I used to load the file but I cant, for the life of me, find a way to unload it. 
 
var bigboreLoader:Loader = new Loader();btnbb2.addEventListener(MouseEvent.MOUSE_UP, bigborecontent);
function bigborecontent(event:MouseEvent):void{var bigboreRequest:URLRequest = new URLRequest("moduletemplate.swf"); bigboreLoader.load(bigboreRequest); stage.addChild(bigboreLoader);
 
I am certain it requires the Child to communicate with the parent somehow but I am at a loss. If I could get a bit of advice or a link to something deal with this, it would be a big help. I just need to have my links load my modules and the remove them when the close buttong is hit on the loaded swf. I promise I have done searches and I admit I have found asnwers but still they are not working. I found the code below:
 
Main FLA: 
function removeF() {
removeChild(bigboreLoader);
}

[code]....

View 10 Replies

Flash :: Loading / Unloading External SWF Using Buttons From Loaded External Files

Feb 23, 2011

I spent almost a week trying to figure out how to unload a currently loaded swf using its button and loading a new swf... I have three files, a main.fla, file1.fla and file2.fla. In my main.fla, I have a code which loads the other two files. If i will click the "unload" button in the file1.swf, I would like the main.fla to unload the file1.swf and load the other file, file2.swf. Here is the code to load the file1.swf:

[Code]....

View 1 Replies

ActionScript 3.0 :: Aligning An Image That Was Loaded By A Loaded Swf

Jul 28, 2011

I have my main swf (swf1), that loads another swf(swf2). At some point, swf2 loads an external image. What's the best way for swf1 to align the loaded image from swf2??

View 2 Replies

ActionScript 3.0 :: Duplicating An Image Loaded - Clone Image?

Oct 2, 2009

How should I go about cloning an image loaded form the server and adding it to the end of the first image loaded? Would I use bitmap clone? My attempts with this failed[URL]

Code:
//Creates new image loader
var imageLoader:Loader;

[code].....

View 1 Replies

ActionScript 3.0 :: Particle System And Masking - Particle System Movieclips To Display An Image?

Dec 29, 2010

Is it possible to make this a mask? The system contains one movieclip of a circle called ball, also a class called ball and a class called particle. I want the particle system movieclips to display an image...I'm sure this is possible...just have not been able to find a way. A little backround, I'm a completely selftaught n00b when it comes to AS3, but I'm grasping it fairly well... the tutorial is on this website, called A Simple Particle System Using Actionscript 3.

View 0 Replies

Image :: Get The Loaded Image Path In Flex?

Feb 29, 2012

want to get the loaded image path location,how to get the path

<mx:Image source="@Embed('assets/image001.png')" x="240" y="41" width="148" height="118" id="img"/>

i need to get this address source="@Embed('assets/image001.png')" how?

View 1 Replies

ActionScript 1/2 :: Load An External Xml In An External Loaded .swf

Jul 24, 2009

I've got a small (more than 100 hours of thinkwork up till now!) problem I can't seem to solve:

I want to populate an external loaded swf with an dynamicly loaded xml fil (loaded from my config.xml).

[Code].....

how do I get the external xml into the external swf as a variable for the actionscript in the external loaded swf (So I just want to put the path in the script in my external swf...).

View 5 Replies







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