Professional :: Swfobject.embedSWF Transparency?
Jan 19, 2005Here is the code :-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
[code]....
Here is the code :-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
[code]....
How can I call an ActionScript function from a SWF file that is embedded in an HTML file using "swfobject.embedSWF" ?
View 4 RepliesI have to call an ActionScript method via Javascript, but I have a problem accessing the flash object itself. I embed the flash file via the help of swfobject.
Previously, when I use the static publishing approach, I could easily get the flash object by calling these methods:
swfobject.registerObject("flash_object", "9", "expressInstall.swf");
var flash_object = swfobject.getObjectById("flash_object");
For some technical reasons, now I have to use the dynamic publishing approach (using swfobject.embedSWF). But, as mentioned in the documentation, the method getObjectById can only be used if you use static publishing approach.
Now, how can I access the flash object?
I'd made a flv video player. It's get variables from flashvars. Display wijth swfobject.embedswf in the browser. Sometime something wrong the player. I think, the AS is not runnung. I can see just the player graphics objects.
View 1 RepliesI have a flash SWFObject on a pafge and i want to make the background transparent so that the base HTML background shows through. This is my code:
var so = new SWFObject("images/topnav.swf", "flash", "100%", "100%", "6","#000000");
so.addVariable("xml", "data.xml?time="+new Date().getTime())
so.write("flashcontent");
[code].....
With swfobject 2.2, how do you specify the desired version of flash you require? I need flash 10, but swfobject won't perform an upgrade install with the provided expressInstall. swf in the swfobject 2.2 distributable. How do I get an upgrade install to occur for flash 10?
View 1 RepliesI've made a flash image with the gif extention with Adobe Flash CS4 Pro. I have set the WMODE to tranparent and i've set the Transparency at the giv tab to transparent to. But now comes the difficult part. Each time when I export the image the background is still white.
What did I do wrong? and how can I fix it?
Overlay blending mode in flash on trasnaprent, imported images, doesn't work properly! It leaves dimmed black background instead of transparency. Same thing is in CS4 and in CS5. What is even more weird is that in Flash preview stage window everything is fine, and it works, but after publishing the SWF, you can see black background.I looked for workaround that...no success. No one answeres to this question.
-I tried with 24png, 8png, gif with different settings. No success.
-Tried also with After Effects, and then export to SWF, it works surprisingly.
I have used a loader to play a swf, and I've managed to scale it like I want it - now I would like for it to fade in and out. How do i do that? Below is the as3 script I am using:
var loader:Loader=new Loader();loader.contentLoaderInfo.addEventListener(Event.COMPLETE,f);loader.load(new URLRequest("BldgBanner_r3an.swf"));addChild(loader); function f(e:Event):void{loader.scaleX=.80;loader.scaleY=.80;}
flash mask working - transparency (wmode) is not
[Code].....
Long time lurker who can't find an answer thatfits this specific problem. I apologize if it has been answered. In the pic below,notice the edges. They look great on the stage, but I can't get the rendered .swfto look the same.
View 1 RepliesSo I am working on an interactive piece that requires the use of pre rendered 3D animation clips with transparency. what I was curious about is... Would it be better to export the video as a series of PNGs (the longest is about 600 frames long) and import those into my movie clip or should I export the video as an FLV that is close to 400 Mb in size? Or am I completely missing a a better way to get this pre-rendered animation into my piece as a clickable movie cllip with transparency?
View 2 Repliesi want to collapse a complex scene with all different layers and different transparency into a single layer (or as few as possible) to optimize the flash file for online (were experince proformance issues). I have tried the combine and manually copying pasting into one layer but it cuts the fill below and replace with transparent fill. I want to have a end file that is 100% solid.
View 1 RepliesI have built a Flash site and also set it up with alternate content so it can be viewed on iPhone and iPad as well as other mobile devices. It works great everywhere but in FireFox the site's swf loads on the page twice.Has anyone else experienced this issue and if so, what have you done to work around this FireFox bug?
View 1 RepliesI have tried this and it doesn't seem to work. In the example below the movie on the right (boy in the hat) is embedded using this procedure but the two on the left (paws moving on order button and dog animation) had to be installed using Dreamweaver's swf installation methodology. and, consequently the dog animation does not show up in Explorer 8 and some other browsers.
[URL]
I currently embed a swf video on an html page with this script:
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
window.onload = function() {
if (swfobject.hasFlashPlayerVersion("9")) {
var att = { data:"player_3982x260_fv4.swf", width:"640", height:"323" };
var par = { menu:"false", allowfullscreen:"true" };
[Code]...
I've attempted a few different ways to embed two SWFs in the html but havent had any luck. Here's the test page I'm working on: [URL]... How would the window.onload = function() be changed to refference two different swfs?
I have a flash slideshow on my homepage which displays news by a xml file underand I am using slideshowpro for it. That slideshow xml file path must be set within adobe flash program.What I need in here, when a language is changed from language selector at header, News must be set as selected language respectively. My question is how to get querystring value and pass it to adobe flash so it is changed and set according to the selected language.
var flashvars = { var params = { bgcolor: "#000000", allowfullscreen: "true", wmode:"transparent", var attributes = {} swfobject.embedSWF("swf/slideshowpro.swf", "flashcontent", "550", "400", "10.0.0", false,
[code]......
The images that cycle through on the top of this page: [URL]..There is a transparency "curtain" that is used to transition between the images. Does anyone have any suggestions on how this can be replicated?
View 1 RepliesI'm creating a DressUp kind of game using only external .png files for items (such as dresses, hair styles, bags etc).Some of my image files have transparent space left/right of the drawing itself. What I want to do, is set the hitArea of that certain movieclip (which contains the .png file) only to the visible area (to the actual drawing). This would be a fairly easy job if all the items had have the same size, but sizes are different from item to another.Taking the attached image, the grey area should not respond to mouse events.
View 1 Repliess there any way to make PNG 24Bit transparent Image from MovieClip? I tried google a lot, but didn't found any transparent Method.
View 6 RepliesI created an image in Photoshop that included a gradient layer fading from transparency to a foreground color (in this case, black). I saved this image as a PNG file and imported the file onto my Flash stage. The gradient appears on the image as expected when viewing the stage in the Flash editor, however, when I test the movie, the gradient no longer appears.
View 2 RepliesI have created a swf for the header of my website. On the top layer I have an image that stays static while the rest of the header changes images. I am trying to get the static image to be fairly transparent but am not having much luck. I created the image in PS I saved it with transparency but it doesn't look right in the swf.
View 2 RepliesFor anyway having that problem in Actionscript 3 clicking through the transparent parts of a PNG file. I finally figured it out:
var hitTestPoint1:Boolean = false;
var myHitTest1:Boolean = false;
var objects:Array;
clip.addEventListener(MouseEvent.MOUSE_DOWN, doHitTest);
clip.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
clip.buttonMode = true;
[Code]...
URL..they rocky frame you see is a PNG and it's converted in MovieClip to be able to change it's index so it's always in front of the other objects.Problem: once I get what I want (MC+png is in front of everything) I'm not able to interact with anything under the MC anymore.I know the problem it's that the png extends for all the MC space but I really need to make those object under the frame interactable.
View 2 Repliesim using the pngEncoder from adobe, its working great. But all my .PNG's are saved with a whit bg, how to export with transparent?
ActionScript Code:
function eventPostPictureToServer(e:TimerEvent):void
{
var urlLoader:URLLoader = new URLLoader();
[code]....
I have a PSD with about 30 layered transparencies. I exported each individual layer as a PNG 24 with the transparent background in tact. I then made identical layers in Flash just like I had in Photoshop, and imported each PNG to it's corresponding layer at which point I converted the graphic to a movie clip for future scripting animations. Once I got to the 24th layer Flash quit recognizing my transparencies and my first Flash layer masked anything else I brought in from layer 24 on....but the layers above remained OK!! I checked and double checked my Photoshop exports and had several Flash "gurus" check my work. Nobody can figure out what is wrong! Is there a limit to the number of PNG tranparencies allowed on seperate layers in a Flash document?
View 7 RepliesI'm working on a project where I want to use a transparent png, and when authoring in Flash CS3 (using actionscript 2.0) the png image appears transparent just as it should. However when I test it the .swf file loses the transparency entirely. The png image was saved for web from photoshop as png-24.
View 1 RepliesI found FlashObject script easy to understand and apply ... in part due to good instructions and the handy 'Generator.'
It validated W3C too!
One problem. My background color turned to white. How do I specify a background color, or transparency?
With CS3, when I entered a movieclip, I could see the other movieclips/stage in the background. But now when I enter a movieclip with CS4, I get the stage color as the background. If I try to test that "scene", the objects are in the top left corner.
It makes positioning from within a movieclip very very difficult.
Is there a way to turn off the transparent appearance of the toolbars when you drag them in Flash CS3. For example, when I drag the actionscript toolbar, it turns transparent and it's really lagging on my system
View 2 Replies