ActionScript 2.0 :: Allow Visitor To Select <body Bgcolor>?
Oct 28, 2004
How do I make it so a visitor to a Flash site can change the background, maybe from entering color codes or selecting colored buttons? I mean the entire background of the screen, the one defined in the <body> tag.
View 2 Replies
Similar Posts:
Jul 25, 2011
The following doesn't work: But if you change setAttribute to ("width", "800"), it works with no problem! What am I missing? Is there an alternative to setAttribute method?
View 4 Replies
Jul 22, 2011
The following doesn't work:
<!DOCTYPE HTML>
<title>Test</title>
<embed id="foo" src="http://www.w3schools.com/media/bookmark.swf" width="400" height="40" type="application/x-shockwave-flash" />
[Code]....
But if you change setAttribute to ("width", "800"), it works with no problem! What am I missing?
View 3 Replies
May 21, 2010
I have a .SWF email submit form. The background color is set via:
`<param name="bgcolor" value="#000000" />`
and in the embed:
`<embed src="FILE.swf" flashvars="STUFF" quality="high" **bgcolor="#000000"** width="260" height="32" name="WidgetMailBlack" align="middle" swLiveConnect="true" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />`
Is it possible either on mouse over of the Object or a containing div to change those values? i.e.
View 3 Replies
Aug 15, 2011
I want to change the bgColor of a button using as3. How can i do this?
View 1 Replies
Jun 8, 2010
how to add a bgcolor param to a dynamic SWFObject?
I am thinking that by adding a bgcolor to my SWF or making the wmode transparent, that it will get rid of the ugly "white box" that happens when my SWF first loads before the animation starts. Do not think it is necessary to have a preloader. Previously the animation was embedded using Object Embed code and no flash happened.
View 1 Replies
Jun 23, 2010
I have a comboBox and values like basic and advanced. And viewstack container conatains 2 grids.When i select the base option in Combobox, the first grid has to be selected. select the advanced value in comboBox, the second grid has to be selected.
<mx:ViewStack id="viewstack1" width="95%" height="85%" x="0" y="63" >
<tables:KeyMetricsBasicTable basicArrayDataProvider="{basicArrayResult1}" width="100%" height="100%"/>
<tables:KeyMetricsAdvTable advArrayDataProvider="{advArrayResult1}" width="100%" height="100%"/>
</mx:ViewStack>
View 1 Replies
Dec 6, 2011
Flex 4 Combobox is extended with a Text Input that helps in getting to the item that is searched for.I have created a Check Box as an itemrenderer for this Flex 4 Combobox. I would like to Add a Select All and Select None options in the drop down of the Combobox. I know that i could accomplish by editing the dropdownfactory in case of a Flex 3 Combobox. But in Flex 4 the dropdownfactory doesnt exist.
View 2 Replies
Jun 4, 2009
Is it possible to make a visitor hits counter using just AS2 ?
Or what is the other way to do this ?
The site is totally in flash only.
View 4 Replies
Feb 2, 2009
I have a html link that display the city of the person viewing the site. How can I display that information into a swf dynamic text field, using that html link?
So far I got this script half working because it display the information in the output window. How can I get it to display it on a dynamic text field?
var lv:LoadVars = new LoadVars();
lv.onLoad = function(success:Boolean) {
if (success)
[Code]...
View 9 Replies
Dec 29, 2006
I want to record to a XML document everytime a user loads a .swf. Simply just increase the number in the XML document by 1. The issue tho is i'm limited to the server side scripting thats available. No asp, no php, only JSP. Client side scripting(javascript,etc) would be perfectly acceptable as well.Is actionscript capable of writing to a xml file and producing the results i'm aiming for?
View 9 Replies
Oct 8, 2009
how to make visitor can't save/download the swf while they save page the web? i keep searching and is using swf object can prevent from downloading?
View 5 Replies
May 10, 2009
Instead of installing flash I would like my visitors to be redirected to a html version of my page if they have no flash detected.
View 2 Replies
Nov 29, 2010
I am new to CS5 and i'm wondering how to make a flash banner play only once for the visitor. My home page has a search engine and every time the search the result will display with the banner playing again. this is the same for navigating through pages. I want the banner to stay on the last frame. its not looping, its just replaying everytime i navigate.
View 1 Replies
Apr 7, 2011
I'm currently working on a portfolio-website in Flash CS5. Everything is good so far,but my only problem is the image gallary. My idea is that when the visitor moves the mouse over one of the images, a hover effect will activate - which is does. The only problem now is that I can't get the images to show in a big format when you click on each of them, for a better view of the image.[URL]..
View 28 Replies
Aug 5, 2005
Is there any way to check visitor's screen colors (32/16) with AS or JavaScript?
View 5 Replies
Feb 9, 2011
I need to remove any ability for the visitor to rewind the video, I need a button that will only come up at the end of the video that will be a link to another page.Is this something I would build from scratch? Does anyone know of a way I can satisfy these requirements with an existing player?
View 3 Replies
May 22, 2003
Could anyone get me to a tutorial that will show me how to detect if a visitor has Flash when they visit your site?
View 6 Replies
Mar 3, 2011
I have an intro in flash to go to an html/css site. What I have right now is when the image is clicked on it jumps to a scene and plays the animation and that's it. What I don't know is the scripting afterward. I need to know what the script is to allow it automatically forward the visitor to the html site after the animation plays. The intro page is on its own page.Right now my code is on frame 1 and this is it:
Code:
stop();
import flash.events.MouseEvent;
[code]......
View 3 Replies
Feb 2, 2011
I am trying to build an online teach tool that shows a presentation/slideshow. It needs to have the ability to track and make sure users are staying through the whole process. The client used this example to show me what they were looking for visually:[URL] Now, I let them know that with a flash video, there would really be no way to do any sort of tracking. What I envision is creating a multi page slideshow which has you click next for the next page. This "next" button would use some sort of javascript to enable the next button after a specified amount of time. A person would be logged in during this, so every-time the person moves on to next slide, I would track their process in the database. My question is, is there any better ways to do this tracking. Also, doing simple animations like cursor movements etc, can really only be accomplished well by using flash I assume? They mentioned using voice over etc.
View 1 Replies
Oct 3, 2006
Is there any way I can fade in/fade out a custom cursor when a visitor rolls into/out of an active area?
View 2 Replies
Jan 24, 2012
I am trying to create the code for a navigation in Actionscript 3, but I get the error "Function has no body". And the test just plays over and over without stopping?
// Navigational code
stop();
import flash.display.*;
import flash.events.Event;
function myReceiver(event:MouseEvent):void{
[Code] .....
View 2 Replies
Jul 15, 2006
Ive been advised to do the this to get rid of borders within my HTML page [code]Im new to flash so im unsure where the body line of My HTML.is and where to paste the command
View 3 Replies
Apr 14, 2011
I have a Box2D world with a mixture of static and dynamic bodies. On collisions, I can only get the positions of the dynamic ones.
Is it possible to get the positions of static objects?
N.b., this is a development of a previous question, Box2D: How to get the position of a sensor?
View 1 Replies
Jan 27, 2009
I want to send an email with the image through URLRequest.
How can I add the image to the email body ?
Something like this:
var request:URLRequest = new URLRequest("mailto:"+to.text+"?subject="+subject.t ext+"&body="+body.text+"&Attachment="+myBmp);
View 1 Replies
Jun 21, 2009
I m using URLLoader to send a post request. The server returns HTTP code 404 in case the parameters are wrong, and puts the error message in the response body.Get resoinse body when URLLoader gets 404
The problem is that if the response has code 404, the IOError listener is called and I can't see the body of the response.
Is there a way to tell the URLLoader to ignore HTTP codes and always call the Completed listener?
Or maybe there is a way to get the response body in the IOError listener throw the IOErrorEvent? I couldn't find such a way.
View 2 Replies
Aug 1, 2005
I've got a fun problem for ya'll. I've got an XML flash menu with sub menus and all. When you click and menu item with a sub menu, the menu expands nicely. When you click to navigate to a new page the menu "closes" to its basic appearance...
What I'm trying to do is have the menu expanded at the appropriate point automatically if you're on a sub menu page. I've been thinking how to do this and I'm guessing CSS would be the key. Could the flash menu detect a BODY ID and expand appropriately should it detect the right body id.Check out the ZIP file for source files HTML/CSS/FLASH/XML.
View 1 Replies
Aug 2, 2010
This clients site has a flash menu, but the content of the page is in html. I know how to write the actionscript so that each menu button links to a different html page. However, I would also like the flash menu to show each page buttons link as "Active" when its on that certain page.For example, I'm on the home page. The "home" link in the flash menu is hilited. I click "products", and the products.html loads. I'm not sure how to write the actionscript so that the "products" link in the flash menu is now hilited. The only way I know to do it, would be to create a different menu.swf for each page. But I'm sure there's a way to do it using only one menu.swf.
Also, I'm doing the menu.swf on a timeline in the fla. I'm not sure how to do it otherwise or if what I need can be done on a timeline.
View 4 Replies
Aug 18, 2009
How do you post code within the body of a message, so that it is formatted and set apart from regular text. I haven't seen where this is listed in FAQ.
View 5 Replies
Aug 24, 2011
I have a problem running this program. An error "function does not have a body" pops up.
stop();
import flash.events.MouseEvent
start_.addEventListener(MouseEvent.CLICK, onClick);
function onClick(event:MouseEvent):void
gotoAndStop(1,"Scene 247");
gotoAndStop(1,"Menu");
View 2 Replies