ActionScript 2.0 :: Change Background Of Page From Flash?
Mar 13, 2003This may sound stupid, but does anyone know if is possible to change the background of an html page in which the flash movie resides via a script in the movie?
View 3 RepliesThis may sound stupid, but does anyone know if is possible to change the background of an html page in which the flash movie resides via a script in the movie?
View 3 RepliesI have a flash file that I'm trying to change backgrounds for each page. The background itself changes nicely but I'm having a problem getting the background to scale to the stage size. I'm using Greensock's Liquid Area to try and handle it and it does well with a single background but as soon as I introduced more my code choked..
package com.picturesite.pages {
import com.gaiaframework.api.*;
import com.gaiaframework.debug.*;
import com.gaiaframework.events.*;
import com.gaiaframework.templates.AbstractPage;
[Code] .....
it's possible to dynamically change the background of the holding HTML page from Flash?I thought it would be possible through making a Javascript call from Flash?
View 1 RepliesI'm trying to create a flash website where when you click on one page the background becomes darker and as you're about to click on another page the background becomes lighter again but if you want to go back to the previous page the background goes back to being darker. I hope this is clear. I've been trying to find a tutorial on this but I'm not sure if I'm using the correct terms, which is why I'm having no luck.
View 6 RepliesI want to embed some video into my HTML page. As background I want to use big picture. And above it I want to insert loop video with (i.e.) walking man.So, can I embed video (without flash and any player controls) in page?Can I decode video with transparent background? Is there any codecs which support transparent background (alpha-channel)?
View 1 RepliesI am just wondering how u make a movieclip the background to a flash page using coding from as3? Also, how would u get that movieclip, to be the perfect scale? For example, the movieclip does not stretch, distort, but yet fills the screen of a computer no matter wat the computer's set resolution is. Lastly, how do u get a pixelated / halftonish effect on ur movie clips? (the "experiences" page has an example of what I am talking about.) The site below has an example of everything I am describing: [URL]
View 2 RepliesI had published the Flash project which resulted in the creation of a HTML file. I previewed what the web page would look like by opening the HTML file in a browser. The first obvious issue was that the page was not centered, but left-justified. I think that I know how to satisfy that issue by reading the HTML file into Dreamweaver and adding a <center> tag just below the <body> tag. The issue that I cannot figure out is that my page is a bit smaller than my monitor size, so there is naturally the white "fill" areas to the margins. Is there a way to change this color to black? Is that the bgcolor variable that is in the <body> tag?
View 1 RepliesI'm trying to make an mp3 player that passes javascript events to a flash file. I'm not very saavy in flash so this may be a simple question.. but how do you make a "movie-less" flash file? Is it possible to just embed an actionscript file? Because that is really all I need to run. Side note: What is the easiest (and fastest) way to pass params to actionscript using javascript?
View 2 RepliesSince there is no way that you can make the flash object transparent, there needs to be some other means by which you can match the background. I thought of maybe creating a ActionScript/Javascript bridge, but I wonder if this is the route to take.
View 3 RepliesI currently am working on a site with a full-screen flash video background - [URL]It is working in most browsers, except apparently IE (I am working on a mac).Apparently the only problem is the flash video is not playing.I put this in the body:
<div class="zone-home">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="100%" height="100%" id="background-vid" align="middle">
<param name="LOOP" value="true" />
[code]....
how u make a movieclip the background to a flash page using coding from as3? also, how would u get that movieclip, to be the perfect scale? for example, the movieclip does not stretch, distort, but yet fills the screen of a computer no matter wat the computer's set resolution is.lastly, how do u get a pixelated / halftonish effect on ur movie clips? (the "experiences" page has an example of what i am talking about.)the site below has an example of everything i am describing:
View 1 RepliesI have a background image that I inserted into flash movie. How to make the background works as fluid page? As I reduce the size of the window, there are white borders on top and bottom. Attached is the FLA.
View 2 RepliesI am attempting to change the background of a pre-developed slide show a client sent over. In the attachment the original background is gray (called "back"). I want to change it to the background called "bluebg". It works (somewhat) when I import it to the same layer that the gray background is on and convert it to a movie clip, but it covers up the navigational buttons on the top right side of the movie. It appears that these pieces are a part of the background and not on their own layer, but they are clearly flash elements required to make the show work properly, so I am unable to replace the background with the blue and keep those navigational items. Can someone take a look and tell me what I could be doing wrong? Or better yet what I can do to achieve the feat of apply the new blue background?
View 2 RepliesI have a flash swf file which is published as adobe air file because im using the FileStream libraries. It seems that when i remove the FileStream code the flash swf file works on the HTML page but when i revert back to add the FileStream libraries and code the flash flickers in IE 8 and Mozilla displays a Blank screen. Why is this?Here is the code:
import flash.filesystem.*;
var url:String = "C:/New Folder/image.mp3";
var file:File = new File(url);
var fs:FileStream = new FileStream();
fs.openAsync(file, FileMode.APPEND);
I am using pure AS3 to build my project. I was wondering if there are anyways to change the stage background color through AS3...
View 5 RepliesA standard Flash CS5 document with one layer called background. The document is associated with a class called 'Game' which extends MovieClip.
I am executing some logic in the 'Game' class after calling an 'Initialize' method.
I want to change the background color of the document at runtime to something else (e.g., a different color, a gradient, or a picture).
Is it possible to change the stage's background through actionscript?
View 4 RepliesI have a TabNavigator with custom skins on the buttons and inside the content. I want to put an image behind the individual Tabs. One long bar of about 20px high that runs the width of the control. The buttons and the navigator content are both spark components while the actual tab navigator control group is of type mx. The only property I can change is the background color. Is there a way I can just tell the background to position itself as top="-10" or something similar or do I need to go the CSS route?
View 1 Repliesis there a script that alows you to change the backgroundimage you use in your html from within flash?
View 14 Replieshow do make it so no matter how big my stage is, my background will tile on the stage AND off the stage forever and ever and ever and ever?
View 3 RepliesI used a theme to change the colors of my code and background, but all the other panels are still white on background. I would like to set a dark background on all my panels/windows, is that possible?
View 1 RepliesTrying to code my graphic design portfolio and wish to to have embedded flash movie with thumbnails, change the html background to the specific clicked image.
Have been searching and read there is a way to have the flash button talk to javascript to change the current background image.
there is a way to change movie bacground color with action script in flash MX.
View 5 RepliesIm using this code to change the HTML background color from Flash:
In Flash:
Code:
on (release) {
getURL ("javascript:changeBgColor('#ff00ff')");
}
[Code].....
It does work when i publish flash till Flash Player 7- for 8 or 9 it does not work. What else i can do to make it work for Flash Player 9..
how to change the background colour of a flash slide-show. I am trying to post a slide-show on a website, but some of the pictures do not fit the box well and, as a result, there are black bars surround them. Is there a way that I can change the background colour so that it blends with the background colour of the website?
View 1 RepliesI'm trying to change the background color of a TextArea Component.Does anyone know how to do this?
function processXML(e:Event):void { var strTextBox:String; myText.visible=true; myText.setStyle("contentBackgroundColor", 0x000000); //Does not work..nor does myText.setStyle("backgroundColor",0x000000); myXML = new XML(e.target.data); strTextBox = "<a href='" + myXML.Branch[0].linkURL + "'> More Info...</a>"; myText.htmlText=strTextBox;}
I'm looking for a very specific tutorial, Basically I want to create a flash 'rollover, image background change type thing' which I will display photos on. A very good example of what I mean can be found here:[URL]. You will see 6 small thumbnails which, when you mouse over them, change the background image to match. My design, I want to be a lot simpler. If you look at the following image you should see what I'm after: [URL]. 5 small thumbnails on the left, when you hover over them, they animate and the big 'red' rectangle changes to display the image.
View 0 RepliesThere are a few posts around this topic but not on exactly what I'm trying to do. At various points in my flash app I want to try to affect a change in the containing html. basically I want to be able to change the background colour of a div. I understand i will probably have to use external interface to call a javascript function, but I'm strugging to get the js right, I'm imagining something like this[code]...
View 2 RepliesI've seen a tutorial for changing the background inside of flash based on buttons to click. However, these colors were palettes and not of backgrounds such as jpeg. What I'd like to do is to create 3 buttons and place them on my flash website. These three buttons allow the user to click on them thus changing the background. So if you're visiting the about page and click one of these buttons, I don't want the user to go back to the home page after clicking.
View 1 RepliesI have an swf loaded in a browswer (fire fox) and i use log on console using [code]I have initialized my swf in the document class on the Event.Added to stage.and i have a clean up function performing all the clean up/exit process in the code on the event [code]Now Doubt that this is being called/ activated/trigered as i am not able to log the start and end of the function to the console.The console log is of firebug.What exactly am i missing here? I would like to call the cleanup function on reload of page or relode of swf or change of page.How do i trigger and log it properly
View 1 Replies