IDE :: Alpha Transparency Upon Loading Swf In Movieclip?
Nov 11, 2009
I have a movieclip and I am loading on it an external swf. The mc is just a square box basically...it is set to 69% alpha/transparent in the "Color effect: style: alpha" settings.The problem is, when I load the swf now the swf is also transparent (seems like 69%)...I basically want the mc to be transparent, but the swfs that load w/in it should not be transparent.
example code:
mc.createEmptyMovieClip("newClip", this.getNextHighestDepth());
mc.newClip.loadMovie("some.swf");
View 4 Replies
Similar Posts:
Jan 9, 2010
mc1.mask = mc2
mc2 is a movie clip that is 50% alpha. How can I mask mc1 and keep the alpha transparency? That's about it.
View 3 Replies
Sep 14, 2009
I'm using AS2 with Flash CS4. How can I change the alpha of a ComboBox? I tried:
MyCombo._alpha = 25;
// and
MyCombo.alpha = 25;
But both have no effect on my ComboBox, it just appears to have the alpha set to 100.
View 1 Replies
Aug 28, 2009
I haven't worked with AS3 for a few months, and even when I did I never took the time to learn it to extensively ..
I'm creating an isometric map editor, the bitmap that I'm using to take the tiles from has a transparent background, but when I draw the tiles to the main bitmap it displays as white, so it messes up the overlapping (since they're isometric).. How can I make the background of it transparent?
[Code]...
View 7 Replies
Oct 25, 2011
I have a .PNG image with almost 50% of the image as transparent pixels.I am using this image for a Mouse_Over event but the problem is the Mouse_Over event works even on the transparent area.
View 3 Replies
Jun 17, 2011
I'm currently constructing a scrollbar as part of a website using as3 and png images. I've got loaders for each image inside of an array, and when loading on each image finishes, it's added as a child to a sprite on the stage. I've got a background image with no transparency, which loads fine. On top of that, I've got the actual slider, which loads the RGB data, and appears to be using the alpha as a 1-bit mask. So anywhere that I have partial transparency, it just shows up as black, where it should be showing the background underneath. I can't find any attribute that will change the way loaded images process alpha transparency.
View 2 Replies
Sep 10, 2011
I have a game and the user clicks on a button (a_btn), they are brought to frame 2 and they have to answer a question. If they get the question correct the alpha transparency of the a_btn is set to zero.
What I would like to be able to do is see if a number of buttons have zero alpha transparency then the user gets a complete message. This is what I have so far:
ActionScript Code:
if (c_btn.alpha=0 && h_btn.alpha=0){
infoComplete.text = "WELL DONE, GAME COMPLETE";
}
View 9 Replies
Jun 14, 2010
I have embedded a font type in my application. Its working fine inside a text area. Now i need to add 60% transparency to it. In fact I need multiple transparency levels. Like -
60 % transparency for TextARea
70% for WindowShade Header etc.
How do I add alpha values to it?
View 1 Replies
Sep 21, 2010
What is the best way to create a video with an alpha channel, suitable for flex/flash? Does it need to be FLV, or can it be MP4/MOV as well?
View 1 Replies
Jun 14, 2010
I have embedded a font type in my application. Its working fine inside a text area. Now i need to add 60% transparency to it. In fact I need multiple transparency levels.
-60 % transparency for TextARea
-70% for WindowShade Header etc.
View 2 Replies
Mar 7, 2005
how to create the proper Actionscript code that will control the Alpha Transparency of a MC I want as a preloader. I want the MC to start of at 100% alpha-transparency, and then decrease to 0% alpha-transparency when the whole Scene is loaded. Also, it should show the precentage of the Scene loaded. I have the code that I thought would work to control the alpha transparency of the mc and loading it. But, I get confused with the perloader code to incorporate into the alpha transparency code? Does this make sense; is it possible?In Leaman's Terms, As the scene loads, the mc goes from invisible to visible at completion of the scene load.
Here is the code:
Code:
onClipEvent (enterFrame) {
loading = _parent.getBytesLoaded();
total = _parent.getBytesTotal();
[code]....
Now, I have no idea if and where you'd include the poper code to control the mc's alpha transparency based on the percentage of the scene loaded? Can someome maybe rework the code to make this work. And use a working example, that way I see it working to fully understand the concept? The mc's instance name is "sm_logo". Where would I use the instance name in this code, or better yet the proper code alltogether?
View 2 Replies
Aug 31, 2008
I have a movieclip named holder inside a movieclip named wrapper and a button that loads an external swf into wrapper.holder when it is pressed.I want to be able to fade in the external swf after its loaded by tweening the Wrapper movieClip's alpha property but the external swf just keeps appearing. When I use the same code to load an external jpg everything works fine. I used an onEnterFrame event to trace the _alpha of wrapper and it shows wrapper tweening in in 3 unit intervals.
Code:
myButton.onPress = function() {
loadMovie("projects/aboutBox.swf", wrapper.holder);
wrapper.holder.onEnterFrame = function () {[code]...........
View 1 Replies
Jun 27, 2010
how to grab the transparency (or alpha value) of individual pixels in an embedded or loaded video? We tried copying over a frame of video into a bitmapdata object with transparency enabled. However, even though we can "see through" the video at certain spots (indicating alpha = 0 there), the alpha value comes back as 0xFF for every single pixel in the BitmapData object.Obviously alpha data is being stored inside the embedded video, but how can I actually get that value?
View 0 Replies
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
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
Jun 22, 2009
There's many options for ensuring externally loaded pngs have transparency but incorporating smoothing is a different story. I'm fairly certain I could just use the built in transparency boolean for the bitmapData function and set smoothing to true, however the white that is supposed to be transparent is turquoise.
View 2 Replies
Jan 13, 2005
I'm creating a photo gallery, but my pictures have transparency, that is why I can use the jpg format to load the pictures from a folder. I read the tutorial to make a photo gallery but it works only for jpg files, I also want them to appear and disappear using alpha. I think I must use the attachMovie method and keep the images in png format in the library but I can't get to the correct script.
View 2 Replies
Jan 13, 2005
I'm creating a photo gallery, but my pictures have transparency, that is why I can use the jpg format to load the pictures from a folder. I read the tutorial to make a photo gallery but it works only for jpg files, I also want them to appear and disappear using alpha. I think I must use the attachMovie method and keep the images in png format in the library but I can't get to the correct script.
View 2 Replies
Jun 28, 2010
I have a collection of animated sprites with a brown background and I want to know how to make the brown transparent. Is there some kind of color keying in flash? The brown is #5E4229 by the way.
View 2 Replies
Mar 28, 2010
i've a MovieClip and i would like to change the transparency of this movieclip how can i do?
View 1 Replies
Aug 27, 2010
Here is my code:
var menu = new Menu ();
menu.x = 0;
menu.y = 0;[code]...........
This works, but transparency varies for each element MovieClip separately, but I would like that would have changed the whole MovieClip transparency as a single image.
Menu(); is generated from XML.
View 2 Replies
Mar 9, 2010
I'm an actionscript dude - I'm working on a papervision game.
I have an asset of which is 127 pngs in a sequence for an animation.
I can happily project this onto my papervision plane. Problem is, there is no transparency. I Can't use a BitmapFileMaterial as I have many pngs -
View 3 Replies
May 24, 2007
What I wanna do i s to load external pic 1 on start, after clicking on pic 1, pic 2 is loading with alpha form 0 to 100. Then after clicking pic 2 going back to pic1 also with alpha, and so back and forward.I tried 2 do as follows:
#include "lmc_tween.as"
pic_p._alpha = 0;
loadMovie("pic1.jpg", "pic_1");[code]....
it works all the way until pic 2 is pressed, than i get flashing pic between pic1 and pic2. Here is scheme:
View 1 Replies
Jul 22, 2011
I've got something very strange happening with the alpha of some loaded pictures. I load 27 images dynamically from within a class:
PHP Code:
package{
import flash.display.*;
import flash.net.URLRequest;
import flash.events.*;
public class Portrait extends Sprite{
[Code] .....
However the first 4 portraits won't change alpha to a float number, I can only set the alpha to 1.
Code:
test_portrait = new Portrait(i, 0.8, (film_width/2)-(240), white_bg_square.y);
Results in a blank screen for the first 4 portraits... All the other portraits change transparency fine. There's nothing wrong with the loaded pictures because I swapped 1 for 10 and the problem remained while image 10 in an other position changes alpha just fine.
View 5 Replies
May 17, 2002
I have set up a site I am building...real basic I know.rolling text boxes).So Here's my question...when you use the load movie command...in this case, I am using buttons on my main nav (level 0) to fire the load movie command for subpage swfs located on level 1...is there a script that I can write that would make the level 1 swf fade (dissolve) on using the _alpha command instead of just appearing (from thin air...like a cut in videospeak)???. Is there a way to create a similar transition for unloading the swf as well?
View 2 Replies
Nov 18, 2010
i draw a rectangle, convert it to symbol1 and export for actionscript. after that i edit the rectangle class and inside the constructor i want to change the alpha value by writing this._alpha=44; a error msg popout : 1119: Access of possibly undefined property _alpha through a reference with static type Symbol1.
View 2 Replies
Dec 30, 2008
I'm trying to make a URL-Loader Class to speed up my workflow, but I can't manage to make the images I am loading visible, turning their alpha to 1.
I use the following line to invoke my custom loader:
import com.ab.utils.Load
Load.Image(menuitem.holder_mc, menuitem.image, this)
[Code]....
Notice where I call a Tweener, trying to make my mc (_ITEM)'s alpha turn 1.
I tried thing like loader.content and loader.content.holder_mc, but to no avail.
View 2 Replies
Aug 24, 2009
I posted last week on the topic of getting movieclips to lock into place after you have dragged them in the correct location. Luckily I was able to figure it out by myself, love when that happens.
Anyway, I have a new issue. What I want to do is have a movieclip alpha to 0% when another movieclip is dragged over it. I want to it to happen by 25% each dragOver though. So it starts at 100% then the user drags over and the alpha is at 75% now, then another drag over and 50% etc...
The MC that is being dragged is called ragMC and the one that is alpha'd out is greaseMC.
View 2 Replies
May 28, 2009
I created a symbol (Movie Clip) for my library, and I can manipulate all of its properties except for one—alpha. Here is a sample of the code:
var range:Range = new Range(); // Range is the symbol in my library, and has been exported for ActionScript
range.alpha = .1; // Doesn't seem to work as the symbol is still at 100% opacity.
_buffer.draw(range, range.transform.matrix); // This is where I draw the symbol to the buffer
Everything draws fine, but it is as if the alpha property is not working.
P.S. - If anyone knows, should I use a Graphic for my symbol instead of a Movie Clip if I only have one frame?
View 7 Replies
Jan 15, 2010
Using AS3, how do I create an alpha tween from one movie clip to another?
My thinking is that I can't use the timeline, because the fade is variable and event driven; e.g., the user clicks on one of many pics, and the stage alpha tweens from the current to the clicked.
View 1 Replies