LoadMovie Into A Blend Mode
Hello, I am loading in a picture from an external location via actionscript. It is loading into a MovieClip which has a blend mode set to Multiply via the flash interface.
When it loads in, the picture isnt affected by the blend mode. Why is this?! Is there a way of making the pic take advantage of the multiply blend?!
Thanks to any advice
KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 01-11-2008, 07:56 PM
View Complete Forum Thread with Replies
Sponsored Links:
Is There A Blend Mode For This...?
I want to take my stage, and everything on it, and make all the colors black (or greyscale).
Is there a blend mode that can achieve this easily, like for inverting colors?
(for inverting, just put a big mc on the top layer, and set the blend mode to invert.... easy)
If not, what's the easiest way to do this?
View Replies !
View Related
Blend Mode
Hi,
I am new to Flash. After going over tutorials, I was able to create a swf file and it appear fine in html page. In this flash animation, I have layer with a movie clip. I placed this movie clip with Blend mode: Multiply, so the white background disappear over bitmap image while it moves around. And it works as I intended when it published. However when I place this same swf file in a slide panel in a presentation, Blend mode is not working and unwanted white background appears. Can anyone tell me what I should do? Thank you for your help.
. . . After I post this question, I learned I needed to copy frames from the first flash document, and paste those frames in the presentation document. Yes, now it is working perfectly. ... Thank you for having place to post my question, anyway.
Edited: 12/05/2006 at 11:57:09 PM by rakuenblue
View Replies !
View Related
Blend Mode, Please Help
hi
i have a platform game.
two people putting bomb and trying to blow up each other.
i want that when the bombs explode, it creates a hole in the ground.
how can i do that?
i've heard about blend mode but i'm not sure it will work for that, and i don't know how to use it
anyone can help?
thanks for answers
View Replies !
View Related
Blend Mode
Hello,
I have been modifying the "Carousel" from Lee Brimelow's great tutorial.
I want to set the tooltips blend mode to "add".
I should be able to use this: home.tooltip.blendMode = 8;
But it dosen't look any different. I CAN however, change the mode to multiply, invert, etc... but the add refuses to work.
One other question...
Does anyone know how to change the blend mode on the individual icons in the carousel? (So one is add, one is screen, etc...)
Help!
Thank you!!
Dave
View Replies !
View Related
Blend Mode Weirdness-HELP
Hello,
Hopefully some of you gurus can help me!
I have some icons loading from an XML script. I want to change some of the icons blend mode to additive while others stay normal.
When I simply add this to the script:
blendMode = "add";
Then the additive works properly but all the icons are affected.
But when I single out an icon to be additive, the "add" effect does not work. Other effects however do work such as invert and subtract so I know I am affecting just the one icon.
I am assuming that for some reason, when I single out one icon, it does not recognize the background image so that any blend that interacts with the background does not appear to work..
Anyone know whats going on and how to fix it?
Thank you!
Dave
View Replies !
View Related
Blend Mode Weirdness
Hello,
Hopefully some of you gurus can help me!
I have some icons loading from an XML script. I want to change some of the icons blend mode to additive while others stay normal.
When I simply add this to the script:
blendMode = "add";
Then the additive works properly but all the icons are affected.
But when I single out an icon to be additive, the "add" effect does not work. Other effects however do work such as invert and subtract so I know I am affecting just one icon.
The only thing I can figure is that when I single out one icon, it does not recognize the background image.
Anyone know whats going on and how to fix it?
Thank you!
Dave
View Replies !
View Related
Coded Blend Mode?
I know how to select blend mode when in the flash authoring environment... but what if i want to make a drop down box with the different blend modes and dynamically change the blend mode @ run-time on a movieclip.
to give the user a way to change it.
is that possible?
ty in advance!
View Replies !
View Related
Blend Mode Over Buttons Bug?
I am having a serious bug as i believe it to be.
When i make a button that has a shape that's set to a blend mode above, when hovering over the button it seems to have a serious bug.
When hovering above the blended shape (upper half) it does not select the action script. I have tried separating and moving to different layers with no success.
Please see attached 7kb
Any Ideas?
View Replies !
View Related
Blend Mode Options?
I noticed that the blend mode option is offered only to movieclips, and not BitmapData's...and even then it's extremely slow if you're working with gradient fills, and trying to render 100's of them in real time. My question was if there are other options in doing this, preferably with BitmapData, and not requiring to use a movieclip, fast? Corel Photopaint does the "If Lighter" operation very fast, so why can't Flash?
Thanks,
CL
View Replies !
View Related
What Use Does The Alpha And Erase Blend Mode Have?
I'm not seeing how to use these blend modes. They both just seem to make the clip totally invisible. You can't tween it like you can the Alpha color mode. So what good is it? Why'd they bother to add it? Maybe I'm missing something here. I looked at the explaination in the help docs and got these convoluted description:
Quote:
Alpha applies an alpha mask.
NOTE
Alpha blend mode requires that a Layer blend mode be applied to the parent movie clip. You cannot change the background clip to Alpha and apply it because the object would appear invisible.
Erase removes all base color pixels, including those in the background image.
NOTE
Erase blend mode requires that a Layer blend mode be applied to the parent movie clip. You cannot change the background clip to Erase and apply it because the object would appear invisible.
Can someone maybe show me a quick example of something useful the alpha or erase blend mode can be used for? Or an effect it can do that can't be done with a alpha color mode modification?
View Replies !
View Related
BitmapData Blend Mode Problem
Hello,
I just found this function on gotoandlearn to tile a background image.
ActionScript Code:
import flash.display.BitmapData;
var tile:BitmapData = BitmapData.loadBitmap("tile");
function fillBG() {
this.beginBitmapFill(tile);
this.moveTo(0,0);
this.lineTo(Stage.width,0);
this.lineTo(Stage.width,Stage.height);
this.lineTo(0,Stage.height);
this.lineTo(0,0);
this.endFill();
}
fillBG();
This works great. But my problem is, i want to change this bitmap's blend mode to overlay. I think that i must use draw function but im not really sure.
I hope someone can help out.
K.
View Replies !
View Related
Papervision Blend Mode Method?
I was curious if anyone had knowledge of how to apply a Blend Mode to a 3D object (or it's material) in Papervision. I've attempted to apply a blendMode property to a MovieMaterial and the MovieClip (in the MovieMaterial) but neither works. Any thoughts on this would be highly appreciated.
Thanks,
Jason Villmer
jason@villmer.com
View Replies !
View Related
Alpha Blend Mode Just Won't Work [file Example]
Update: I've solved it, for some reason the mask MUST be bitmaped cached (does anyone know why)? It's weird because Erase doesn't need to be that.
This is driving me nuts, how on earth does the alpha blend mode work?
I have finecombed all of the entire internet after info but I can't find the magic answer.
I have set up a test-scene (attached) where I've set it up EXACTLY like described in the manual, so could someone please open it and:
1) See what I've done wrong, or:
2) See if maybe it's working perfectly for you (without modifications), which in that case means something is wrong with my flash.
It's a movie clip set to Layer blend mode, which has 2 children: one green box (no blendmode) and one smaller box (blendmode Alpha).
When running the movie, that smaller box should work as the mask for the green, but it doesn't!
If I change that into Erase instead, it works perfectly, but I need the alpha blendmode to work as well!
View Replies !
View Related
Blend Mode & Dynamic Loading MC Issue
Greetings,
I don't know if anyone has encountered this before...or if I am doing something incorrectly.
I have an XML file which I have parsed into an array named "imageArr".
I am attempting to load the images into "current_movie" and then have current movie load each image over time while using _alpha property to fade in and out during unload/load movie commands.
During all this...I wanted to use the belndMode multiply for the "current_movie" clip, because I have a simple black and white background I want to show through the white of the images which are loaded into "current_movie".
I have been getting very inconsistent reactions from the use of the current_movie.blendMode = 3. I have placed the code everywhere....even in multiple places, and I still cannot get "current_movie" to retain and consistently apply the blendMode through all the transitions.
If anyone has some suggestions or tips I would greatly appreciate it.
Here is the code I have been using:
Quote:
stop();
var current_movie:MovieClip = this.createEmptyMovieClip( "current_movie" , this.getNextHighestDepth() );
current_movie._alpha = 0;
current_movie.blendMode = 3;
current_movie._x = 41;
current_movie._y = 15;
var index:Number = 0;
var interval_handle:Number = 0;
var fade_level:Number = 0;
function start_load_image()
{
clearInterval( interval_handle );
var url:String = imageArr[index];
current_movie.unloadMovie();
current_movie.loadMovie(url);
current_movie.blendMode = 3;
index += 1;
if( imageArr.length == index )
{
index = 0;
}
interval_handle = setInterval( check_image_loaded , 10 );
}
function check_image_loaded()
{
if( current_movie.getBytesLoaded() == current_movie.getBytesTotal() )
{
clearInterval( interval_handle );
interval_handle = setInterval( fade_in , 10 );
}
}
function fade_in()
{
current_movie._alpha = fade_level;
if( 100 <= fade_level )
{
fade_level = 0;
clearInterval( interval_handle );
interval_handle = setInterval( end_show_image , 3000 );
current_movie.blendMode = 3;
}
else
{
fade_level += 1;
}
}
function end_show_image()
{
clearInterval( interval_handle );
interval_handle = setInterval( fade_out , 10 );
current_movie.blendMode = 3;
}
function fade_out()
{
current_movie._alpha = 100 - fade_level;
current_movie.blendMode = 3;
if( 100 <= fade_level )
{
fade_level = 0;
clearInterval( interval_handle );
interval_handle = setInterval( start_load_image , 1 );
current_movie.blendMode = 3;
}
else
{
fade_level += 1;
current_movie.blendMode = 3;
}
}
interval_handle = setInterval( start_load_image , 1 );
View Replies !
View Related
Apply Blend Mode To Image Loaded From URL?
Right now I have a section of my code that looks like this.
Code:
this.createEmptyMovieClip("two",this.getNextHighestDepth());
two.loadMovie(someURL);
var blend:Array = ["multiply", "screen", "overlay", "hardlight"];
var randblend:Number = Math.round(Math.random()*blend.length);
two.blendMode = blend[randblend];
trace(two.blendMode);
The trace works fine and shows a random blend mode, but the blend mode isn't actually applied visibly. I apply the blend mode in the same way to an image loaded from the library, and it works perfectly. I don't know why this isn't working... Is there any way to have the blend mode actually apply?
I figured out a way around this problem. I just added a movie clip inside of "two" and loaded the image into that, still applying the blend mode to two.
View Replies !
View Related
Bitmapdata + ColorTransform / Blend Mode / Filter Problem
I'm making a worms / leiro type game..
And I'm trying to make the ground change color around the "explosions" so it looks like the ground is burnt.
this is what i have so far:
Code:
public function blastCircle(x:int,y:int,r:uint):void{
//make temp circle to cut hole
var c:Sprite = new Sprite();
c.graphics.beginFill(0x000000);
c.graphics.drawCircle(x, y, r+1);
c.graphics.endFill();
//make a black circle that only affects opaque pixels
draw(c, null, new ColorTransform(1,1,1,0.5,0,0,0,0));
c.graphics.clear();
c.graphics.beginFill(0xFFFFFF);
c.graphics.drawCircle(x, y, r);
c.graphics.endFill();
draw(c, null, null, "erase");
//resetPalette();
}
You can see what i've got so far (without the black ring code).
I cant seem to find the correct blend mode or color transformation etc to make it affect only opaque pixels. so i end up with the burnt area also affecting the "air".
View Replies !
View Related
How To Override Parent Display Properties Such As Brightness Or Blend Mode?
Hi,
I'm building one of my first websites and currently i stumbled into a problem i can't seem to go around..
It should be a very simple solution, but I can't seem to find it.
My problem is that the child always inherit the parent & grandparent properties such as alpha, brightness and blendmode...
And even when i declare the properties for the child, the parent properties override them..
this is my code..
ActionScript Code:
addChild(caixaN);
caixaN.addChild(noticiasBox1);
....
var loadit = new Loader();
noticiasBox1.addChild(loadit);
loadit.name="loadit";
loadit.load(new URLRequest($parsedObject.Noticia[0].img));
loadit.x=-102;
loadit.blendMode = BlendMode.NORMAL;
loadit.alpha=1;
I would like that the loadit var wouldnt have any transparency and neither any brightness properties inherited from its parents and grandparents... but since i couldnt find a code for it, i tried stating the alpha value .. but it doesnt affect it : It seems that the parents properties override whatever properties i set for the loadit var....
can anyone point me out what can i do to get the result i intend, or what am I doing wrong?
View Replies !
View Related
Bug With Erase And Layer Blend Mode And Transparent Background In Windows
I have created a masking effect as follows.
- A layer with the object I want to mask;
- Above it, a layer with a movieclip in ERASE blend mode, which contains the rectangle I use as mask;
- These two layers inside a parent movieclip with LAYER blend mode.
The transparency effect does work fine. But, if I set the movie with a transparent background, it will work correctly on Mac, but not on Windows. Both in Firefox and Explorer 7, it will slightly alter the background color of the html page, showing the rectangle I have used as mask.
Can anybody help me? Thanks a lot
View Replies !
View Related
LoadMovie And Blend Modes
Greetings,
CS3 - action script 2
I have two images that I am loading dynamically into movie clips on the stage using:
_root.zodiac.loadMovie("zodiac.jpg")
_root.backGround.loadMovie("back.jpg")
The image / mc on top of the stack, zodiac.jpg, needs to have the BLEND MODE of multiply.
I have manually tried but it doesn't appear when loaded. I can see the place holder box change blending mode. The image, when loaded, is however un-effected.
Any help would be a life saver.
Thanks!
etherbend
View Replies !
View Related
Bug With The "erase" Blend Mode ?
It seems that the "erase" blend mode doesn't work when applied directely with a BitmapData (it has to be encapsulated into a clip).
Look at this :
PHP Code:
import flash.geom.*;
import flash.filters.*;
import flash.display.*;
var TESTTHEBUG:Boolean=true;
var src:BitmapData=new BitmapData(100,100,true,0xff000000);
var eraser:BitmapData=new BitmapData(50,50,true,0xffffffff);
if(TESTTHEBUG){
src.draw(eraser, new Matrix(), new ColorTransform(), 'erase');
}else{
var eraserClip:MovieClip=createEmptyMovieClip('eraserClip',0);
eraserClip.attachBitmap(eraser,0);
src.draw(eraserClip, new Matrix(), new ColorTransform(), 'erase');
}
attachBitmap(src,1);
If TESTTHEBUG is set to true, nothing happens.
Is it a bug ? If not, could you explain this strange behaviour ?
View Replies !
View Related
LoadMovie In Fullscreen Mode
Hi,
i am loading an external swf with this code
loadMovie("test.swf",1);
My main movie is 1024 x 768 and the external swf is a slideshow created with Flash SlideShow Builder. The screensize of that external swf is less than my main movie so when i load it it looks awful. How can i make the external swf load in fullscreen mode.
i run my main movie with
fscommand("fullscreen","true");
Or can i make the external movie run in the center of the screen??
Please Help.
Thanks in Advance
View Replies !
View Related
Normal Mode Vs. Expert Mode? And Actionscript In General.
If anyone can help, please do because I'm going crazy and I've been losing sleep and going through some mild depression. I know it sounds ridiculous, but actionscript is not my friend right now. I'm a designer, not a programmer and I'm just NOT getting actionscript. I've purchased 3 books on the subject and I'm still confused. One book will tell me to start off using "Normal Mode" so I can just select the actions on the left side of the "actions window". Another book will tell that I should immediately switch to "Expert Mode" because that's the best way to learn actionscript.
I'd rather learn how to type in the code instead of clicking on pre-made actions. I was wondering if you guys actually type all of your code in manually or do you occasionally use the given commands on the left side. I need to know so I can decide on how to approach actionscript.
Another thing, does anyone know a good on-line site where I could get the basics of actionscript. To be honest, what I need actionscript to do for me right now is to build a simple horizontal sliding menu. I've plenty of these on several "tutorial" sites but I want to make my own but I need the basic knowledge to do so. What should I start to learn right off the bat? Variables, properties...? Oh, and when I want to set a variable do I type var = x; or do I type Set variable = x. I'm confused. Please help.
View Replies !
View Related
Action Script - Normal Mode Vs Expert Mode
Hi I am still using flash MX as when I upgraded to flash MX 2004 profesional have found it really difficult to actionscript since I never found the way how to switch to the normal mode available in Flash MX does it exist or has it been completly removed ?
Does flash 8 has the same feature missing ?
silv
View Replies !
View Related
Simple Mode And Advanced Mode In Flash
This is something i've been putting up with so long now, i'm far from fluent in actionscript even the basics I tend to forget if I haven't used flash for a while but in other releases of flash their has always been too modes for actionscripting - advanced mode and simple mode. With flash mx (2004 pro) I have looked and looked and scoured google and i've never been able to find out how to change it to simple mode. I prefer being able to just choose from a dropdown or a list or whatever it is what actions I want rather than typing it all in myself. I'm even thinking of going back a few versions of flash to get this feature back. I haven't used flash for a good 7/8 months now and i'm struggling to do simple things like rollovers leading to different scenes.
this is what it looks like in previous versions of flash:
but in mx it isn't their now and i've looede through all the preferences:
cheers
sam
View Replies !
View Related
Toggling Between Expert Mode And Normal Mode?
toggling between expert mode and normal mode?
I just switched from MX to MX 2004. BIG improvement but as you all know when you switch programs there is a learning curve. Is there a way to switch back and forth between normal mode and expert mode in you r action script panel? It seems to only have expert mode and I by no means am an expert scripter.
Any help?
thanks
View Replies !
View Related
Action Mode In Advanced Mode
Hi!
I got flash mx 2004 and since I am a newbie I want the Action mode in "newbie-mode". this was possible in the earlier version of flash.
so is something like this possible in flas mx 2004?
/thanx for answering, SanTiago_99
View Replies !
View Related
Making The Swf Movie To Play In 100% Mode Rather In "show All" Mode
Hi ...at present i am creating a demo with innumerous bitmaps taken from a screen cam....the quality is really good...my problem is..when i export the movie and play the swf in a flash it plays in the "show all" mode and hence the quality of the images is distorted....
Can there be a way to make all swf's play in the 100 % mode by default....
thank you in advance...and please help as this is an urgent project....
View Replies !
View Related
Making The Swf Movie To Play In 100% Mode Rather In "show All" Mode
Hi ...at present i am creating a demo with innumerous bitmaps taken from a screen cam....the quality is really good...my problem is..when i export the movie and play the swf in a flash it plays in the "show all" mode and hence the quality of the images is distorted....
Can there be a way to make all swf's play in the 100 % mode by default....
thank you in advance...and please help as this is an urgent project....
View Replies !
View Related
Load Ext. Swf - Blend Over
imagine a white page with 3 buttons [red, blue, yellow]. what i need to do is: on whatever button i click, the background changes the color, fading the new color over the current one.
what i did is making 3 swf fading in from alpha 0 to 100 and loaded em into the basic movie by click. this works fine for once. but the next "fade over" starts again with white.
is there an easy way to solve that problem? i'm the hell thankful for each proposal about. of course this was just explaining sample. in fact, we want to fade jpgs over the current one where ever we are in the menu.. around 70 menupoints ...
THANKS
View Replies !
View Related
Blend Layers?
I've created two movies on two layers in a Flash MX scene, and I want them to BLEND and not STACK (see example, below). I want the colors to blend rather than to stack one atop the other. Any ideas?
Ciao, and thanks!
View Replies !
View Related
Blend Colors
I have 2 mc's on stage, - one is draggable and has an alpha of 50 %.
My code in frame 1 is:
// instance of the color object
squareColor = new Color("red_mc");
squareColor.setRGB("0xFF0000");
// events on red_mc
red_mc.onPress = function(){
this.startDrag();
trace("color = "+squareColor.getRGB());
}
red_mc.onRelease = function(){
this.stopDrag();
}
So now I wonder if there's any way I can get the color value for the color I get when I drag red_mc over my 2. mc, - I mean if mc1 is green and mc2 is red, - the result would be a dark red, - but how do I get that value at runtime?
Kind regards
Godowsky
View Replies !
View Related
Help Blend Modes...
Does Flash MX support blend modes similar to blend modes used in Adobe Photoshop layers? (ie: darken, color dodge, color burn) I saw a Flash piece by Quark that appeared to use blend modes. Please check it out at
http://euro.quark.com/en/about/holiday/Quark04_UK.html.
If not, how was this done? My "Flash intuition" tells me that intricate masking or action scripts were used.
View Replies !
View Related
Blend An Image
Hi there years ago I learnt how to both mask a bitmap into a shape while at the same time apply an alpha blend to the image so it fades into the bg at the edges like a cross dissolve.
This wasn't done in code or anything like that - can anyone remind me how?
Also please note this is for a piece of desk top publishing and not a flash movie so runing some code isnt what I want as I just intend to export the design as png for an iterface.
Please advise,
Alex.
View Replies !
View Related
Desaturate Blend?
Hi.
I want to use desaturation blend on Flash CS3, but there is no such ability.
Do you know any other way to create a pseudo-desaturate blend in Flash CS3, using other blends and advanced features values?
Ps. It's a bit sad that Flash CS3 doesn't have desaturate blend while PS and AI have.
View Replies !
View Related
Blend Layer Help
Hi all, I new to Flash and have been following the SAMS 24 hours book. Currently, I stuck at the Colours part. I can't seem to get the Layer effect from Blend to work on symbol instances. Whenever I select Layer, the instances overlaying each other doesn't manifest the effect and remains the same.
Help would be much appreciated
View Replies !
View Related
Blend=0 Problem With Movielclip
i have a movie clip that i press on
the problem is that some parts of the movieclip's bg are transperent=nlend=0%
the prblem is when i try to press on this places it dosnet press thos places!
what 2 do thanks in advance
peleg
View Replies !
View Related
Blend In Image On A Roll Over
I am using flash mx pro 04,
How do I create a simple roll over..
I Have a button, I want a movie to play when I roll-over the button..
seems simple but I have not been able to do it all day..
an then have the movie play in reverse on roll-off
I can use am imaage too if needed..
thank in advance.
View Replies !
View Related
|