Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




I Need 2knowhow2 Set HTML Frame Color



I have a flash / html site, trying to set my scrollbar (html) to diffrent color, been lookin for hours cant find out how to...
i thought it was <frameset color=> but i use a <iframe>
i dunno im lost anyone help plzzz



FlashKit > Flash Help > Flash ActionScript
Posted on: 05-30-2004, 05:37 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Matching HTML Color To Flash Color
How come when I set #336699 to my HTML page background and also #336699 to my flash .swf background. I put the swf into the page and I could see the difference between the two colors!!!! How do I fix this?

Need .swf In One HTML Frame To Tell .swf In A Differnt HTML Frame To Play The Movie
UPDATED:


Need .swf in one HTML frame to tell .swf in a differnt HTML frame to play the movie

How would I do this?

Would I be able to put this in AS code in flash? or something like this?



Button1.....
On (release)
geturl: http://www.jfhs.tk target="fraMain"
javascript:fraTop.document.MovieTOP.GotoFrame(02);

How Do I Connect Flash Menu (top Frame) To HTML Pages (bottom Frame)?
Hi,

I am new to flash/swish...

How do I connect the Flash menu system that I set up in Swish that will be embedded in the TOP frame to the standard HTML pages to be selected in the BOTTOM frame?

FYI: I am using Frontpage 2000 to create the frames and standard HTML pages

I can create the HTML page containing the Swish/Flash menu- no problem there. I just don't see the connection between the two. WHat's glueing them together. Is this accomplished with hyperlinks within FrontPage OR is this done from the Swish side and then seen by FrontPage after it is embedded?

Thanks to all who reply.

All the best.

How To Start Playing A Swf In Another Html Frame From A Particular Frame Number
I wonder how to get a swf located in anothetr html frame so that it starts playing from a particular frame number...
thanks to everyone who can help me... as I have to obtain this effect as soon as possible..

quinnity

Load HTML Page Into HTML Frame On Release [MX04]
I've got a minor glitch here.


Code:
getURL("about.htm", "bottomFrame");
It works, but instead of loading the "about.html" file into the "bottomFrame", it opens it in a new window; regardles of browser.

Funny thing is, this file worked perfectly about 4 months ago, and now its cactus. Anyone?

HTML Code In Flash To Load An HTML Page In A Frame
Hello.

I have an existing website built in html, with three frames. One on the top for the banner, one on the left for navigation, and a larger window to the right of the navigation for the main content. I want to replace the content in my navgation frame with a flash built navgation menu, and when my menu items are selected, it will load a new page in the content frame.

I currently have this working fine in html. I can make my buttons link to a URL no problem in flash, but how do I tell it to load the content into the other frame? I haven't started this process yet, and figured I'd ask first to get any ideas.

Thanks.

Changing Color Of Frame
Please let me know how we can change the color of the frame dynamically.

Changing Color Of Frame
Please let me know how we can change the color of the frame dynamically.

[CS3, AS2]Coding Color Into The Frame
After using some color tutorials, I'm trying to do is create 5 squares of random color to appear in random places on the stage.
So far I have:

myArray = new Array(0xffffff, 0xff0000, 0xff9900, 0xffff00, 0x00ff00, 0x0000ff, 0xff00ff, 0x000000);
myNumber = Math.round(Math.random()*7);

onEnterFrame = function () {
for(i=0;i<5;i++){
_root.attachMovie("Square", "square"+i, 1+i);
_root["square"+i]._x = Math.random()*3*Stage.width/4;
_root["square"+i]._y = Math.random()*3*Stage.height/4;
_root["sqaure"+i]._alpha = 50
_root["square"+i].setRGB(myArray[myNumber])
}
}

...I'm thinking the color code isn't right cuz all my squares are white that show up. Could someone fix it so it works and I'll know what to do next time?

Also, maybe, I'd like to know how to do a setInterval statement so each square refreshes 2x a second (or slower-longer, doesn't matter I'm just doing this for the sake of practice.)

Color Tween/frame Speed
1:how do i tween color

2:whats the deal with the frame speed. i noticed that if i make the speed any more than anout 30fps it just goes back down to 12. i want the smoothest rate, but that will accually work smoothly on anothers computer(assuming it may be slow)

Html NavigationFrame To Content-html-Frame?
Hello,

I have the following problem.
I a frameset with two frames: 1.farme called navigation. 2.frame called content.

'mmkaay, now I have a navigation.swf loaded in the navigationframe. and I a loadtext.swf in the conent-frame.
the loadtext.swf has in keyframe 1 a mc called mcText with an actionscript

loadVariables("texturl", "mcText");

in the mcText there is textfield with the variablename text

now I want change with a buttom in the navigation, the variable of the path of the text-file which contents the text for the mcText.
the style of the txt-file is like this: text="hello poeple....."

so if i press in navigation.swf buttom 1 the path in loadtext should change to the file path of text1.txt.
also the same with buttom 2 the path schould change to text2.txt.
and so on....


I think I schould do it with the ne MX connect comand, but I don't understand how.

Pleaz help!

ASP, HTML Color, And You (OK, Me)
We're building a site where you can design your own bumperstickers (http://www.stickermadness.com). The user selects a bumper sticker, types in custom text for up to two lines, and chooses a custom font and color. This all happens in ASPX. A custom .html page is then built by ASP containing the appropriate movie name, text fields, font and color.

This all works beautifully on my machine, but on the production server the second line of text does not get the color value set correctly -- it stays blue no matter what. The font and custom text DO get set, which is what is confusing me -- why is it only the hex color?

Jeff Hebert
jhebert@texas.net

Frame Printed Takes Background Color
Hi everyone

My main movie has a blue background

it's calling another movie where I print a frame.

the print resulted has a blue background

How can I avoid having any background color on my print?

[MX04] Background Color & Frame Rate
hi,

just wondering if there's a way that I could retrieve the frame rate and background color of an external swf file that i'm loading in.

the main swf file (the one that loads stuff in) will be loading in various swf files out of my control so it's not an option to create a solid background in the external swf files

thanks

Change MC Color Placed In The Up Frame Of A Symbol Button
hi,

very new to Flash (since 2 days ), i'm doing a simple drop down menu to get it work in my Director MX 2004 app. Anyway, here is my problem :
i have 5 buttons (symbols). in each button, i have a clip instance for each frame (up, down, ...) - i used different color tints.

i have to change dynamically the color of the clip instance placed in the up frame of the button.

It's probably trivial, but I don't know how to reach (from _root) the Clip instance object to give it to the Color object.

here is my code placed in a function (_root) :

Code:
colorButton = new Color(_root.Button1.MC_Lib);
colorButton.setRGB (0x600000);
_root.Button1.MC_Lib ... is bad !

Button1 is one of my Button instance
MC_Lib is the MC instance place in frames of Button1 (only the color tint change).

i search many forums, help, etc and can't understand/find what i miss ...
I try with simple graphic symbol instead of MC and didn't manage to get it work. can you help me please ?

HTML Bullet Color
onClipEvent (load){
aptxt = "'P ALIGN="JUSTIFY"> FONT FACE="VERDANA" SIZE="12" COLOR="#FFFFFF"> B>TITLE</B> BR> BR> LI>POINT1</LI> LI>POINT2 /LI> /FONT> /P>" ;
}

(I've removed '<' to show whole script)

My question: why bullet is black??? How can I change it to white???

Help With Html --> Font Color
Hi

I have a shoutbox (it's a dynamical textfield) and it displace, the time when it had been sent, the name of the user, and the messeges. And all this saves in a textfile.
I want to chance the color of "the messege" to for example: red

I have 3 textfields.

The shoutbox textfield that displace all the text.

A user name textfield

A messege textfield <---- whant text color red in shoutbox textfield

The script y have tride with:

shoutbox="<font color=#ff0000""+message+"">"+"</font>+name";
and
shoutbox=<font color=#ff0000>message</font>+name;

but nothing is working. Im a Flash Newbie

Change HTML Color
Hi,

I am trying to change the html page color from flash - I use the "getURL" method - It works fine within GoLive but when I display it in any browser I get: "javascript:document.body.bgColor='#773707'" in the address bar and the color does not change - What am I doing wrong?
Thank you for any help







Attach Code

onRelease = function () {
getURL ("JavaScript:document.bgColor='#773707'");

};

HTML Works On Frame 1 But Not Frame 3
Hi,
When I copy HTML, from BEBO web site and paste it into my HTML page, it works fine. But I want it on Frame 3 not frame 1. When I use Actionscript on frame 3 of Flash, only some of the link becomes visible. I am loading the link into a Textarea on frame 3. The link when pressed, brings the user to a different web site. The code I have is:

What am I doing wrong ?

Thanks,
Paul







Attach Code

bebo_txtArea.html = true;
bebo_txtArea.text = "<div style='overflow: hidden; background-image: url(http://s.bebo.com/img/bebobadge_1_orange.gif); background-repeat: no-repeat; width: 300px; height: 175px;'><span style='width:90px; height:90px;'><a href='http://www.bebo.com/badge/4380594425'><img src='http://www.bebo.com/profilephoto/4380594425a3091632808borange.jpg' style='border: 0pt none ; margin: 10px 0pt 27px 10px; width: 90px; height: 90px;'></a></span><br><a href='http://www.bebo.com/badge/4380594425' style='padding: 0pt 0pt 0pt 10px; overflow: hidden; display: block; color: white; font-weight: bold; font-size: 16px; width: 300px;'>Clare</a><a href='http://www.bebo.com/badge/4380594425' style='padding: 0pt 0pt 0pt 10px; display: block; color: white; font-weight: bold; font-size: 12px;'>http://clare.bebo.com/</a><br></div>";

Controling The BG Color On The Html Page
HI
is ther a wey to control the BG color on the html page
from the swf movie???

thank's

che

Textarea Formatting - Color And Html
This is in MX 2004:

I've been baffled all day on this one. I'm trying to set up a textarea in a flash movie that will show content that is loaded from an external file. This external file should be able to include paragraph breaks, links, etc.

I've set up my textarea and to test, assigned this code to it:

main.scrolltext.html = true;
main.scrolltext.depthChild0._alpha = 0; //makes textarea transparent;
main.scrolltext.color = 0xFFFFFF;
main.scrolltext.fontSize = 14;
main.scrolltext.fontFamily = "_sans";
main.scrolltext.text = "test test < br >test";

With the above code, i'm seeing the third "test" wrap down to the next line, so the html code is being obeyed - but the color, size, and font specifications are ignored.

If I modify the first line to read:
main.scrolltext.html = false;
The color, size, and font are right, but the < br > prints out as is.

Also, I've noticed that paragraph tags don't seem to work. Why wouldn't they? I know I've used them in MX.

Thanks in advance.

Change HTML Background Color?
Hello!

I have a flash movie embedded in an HTML file (see rough example : http://www.studio209.com/color.html )

When you click on the links ("movie 1", "movie 2", "movie 3") the background color of the flash movie changes.

is there a way to change the background color of the HTML to match the background color of the Flash file?

Thanks!

Changing Html Bg Color From Flash
I search the website for codings and found two ways but none work out correctly on my computer.

code 1
on (press) {
getURL("javascript:changeBgColor('#666699')");
}

code2
on (press) {
fscommand("newBgColor", "#666699");
}

can any explain to me how to use them correctly.

Control Html Bg Color With Actionscript?
I posted this yesterday in the adobe forums, but got no response- Any ideas?

I've never had to do this before- but I'm trying to change the background color of the html page that holds my master.swf on load of an external swf... I'm not even sure as to where to begin to look-- if anyone has any suggestions- that would be lovely... most of the google search results are just giving me flash 4 tutorials on how to change a movie clips color... ughhh.

Thanks!

Change The Bg Color Of Html From Flash
hi guys
this is just a general question.

can i change the bgColor of html page from the flash at run time. The html where the flash is embed.

If yes than how.

any idea

Can't Change Html Text Color
I'm not able to change text color by setting textColor or using TextFormat when I assign htmlText rather than text. E.g.,

// Doesn't work
hello.textColor = 0xff0000;
hello.htmlText = "Hello, world";

// Works
hello.textColor = 0xff0000;
hello.text = "Hello, world";

Any ideas why and any workarounds? If I set the color *after* assigning the htmlText value, it works also (but this doesn't help me). I.e.,

// Works
hello.htmlText = "Hello, world";
hello.textColor = 0xff0000;

Background Color Different From Flash To HTML
Hi,

I've just published my first flash page on the web. It appears to behave a little bit different depending on which computer I use to view it. On other computers than the one I created the files on I can clearly see a difference between the background color that's in the swf-file and the background color in the HTML document that the swf-file is pasted into. I tried to use a safe background color as #cccccc in the flash file and in the HTML document that surronds it but they do not look the same.

On one particular computer I find some problems with pixelfonts in a dropdown menu becoming blurry and when a swf-file is about to load some jpegs into a MC nothing happens. These problems doesn't appear on any other computer. They all have Flash Player 6 or better.

You can see the demo on www.thiberg.com

Many thanks

Any Ideas How To Control The Html Color?
I've never had to do this before- but I'm trying to change the background color of the html page that holds my master.swf on load of an external swf... I'm not even sure as to where to begin to look-- if anyone has any suggestions- that would be lovely... most of the google search results are just giving me flash 4 tutorials on how to change a movie clips color... ughhh.

Thanks!

Post AS In HTML And Keep Color Coding
Hi All,

I was wondering if there is a way to paste actionscript code into an html page and it be able to keep the actionscript color coding for ease of reading. It seems like I was able to just put the .as file on my webserver and read it great in the past, but for some reason it is not working now.

AS3 HTML Color Code To Flash (# To 0x)
Question:
Is there a simple way to change a string hexadecimal color value... eg.

Code:
var fillColor: String = "#ff0000";
I want to be able to change it to the flash equivalent (which can still be a string, not necessarily a uint)

Code:
var fillColor: String = "0xff0000";
I tried fillColor.replace(); but I'm not quite sure how to do it. Any tips welcome, as I'm not very familiar with string manipulation in AS3.

Thanks,
Saxplayer13

Post AS In HTML And Keep Color Coding
Hi All,

I was wondering if there is a way to paste actionscript code into an html page and it be able to keep the actionscript color coding for ease of reading. It seems like I was able to just put the .as file on my webserver and read it great in the past, but for some reason it is not working now.

How Do I Change The Color Of The Html Page ?
I want to have my flash centered, but I want to be able to change the color of the surrounding html page it's within. HOw do I do this? What is the default?

Thanks.

JavaScript Change HTML Background Color
Can anybody help me... I'm really bad in JavaScript... I would like to place an action on button to change a background color of current webpage...

Diferent Html Background Color With Swf No Refresh
I have one swf file for whole site with differently colored sections. Any ideas how to change html background color without refreshing page.

Thanks

How To Change Html Background Color From Flash
heres an easy one(not for me)
how can i change the html bg color from a button or key frame in flash5.

thanks

Changing The Bgd Color Of The HTML Page From Flash
I have my flash SWF in the middle of the html page. I want four little buttons inside flash that will change the background color outside of flash in the HTML page.

I think it has something to do with the "fscommand".

How exactly can I do this?

How Do I Change The Color Of The Surrounding Html Page.?
I want to have my flash centered, but I want to be able to change the color of the surrounding html page it's within. HOw do I do this? What is the default?

Thanks.

Can The Color Of HTML Created Bullets Be Changed?
I'm loading some html text and I want to know if there's a way to change the color of the bullets since they are black and my background is also black.

Background Color Change From Swf To HTML-image
I've been having problems with some color changes.

The background picture in the flash movie has a color which is similar to that of a picture that lies in a scaleable HTML-table beside the swf in the indexpage.

The problem is that on lowres/low color monitors, you can see the transition from swf to the HTML table. There's a slight color change that is only visible on low color monitors.

How can I avoid that? Does anybody know that...

HTML Help..center My Movie And Keep Background Color
I'm trying to create an html index page that will both center my site and maintain color throughout the whole page.

Regarding the color thing, when you first open the site, which has a black background, you momentarily see a blank white space until the movie/site loads. I want to get rid of this white space by designating it to be "#000000" but I"m not sure how to do this.

look at www.larettedesign.com to see what I mean.

Any suggestions?
Thanks
Furpants

Change Html Page Background Color
Is there any way from Flash to change the background color of the HTML page it is embedded in?

Basically I want the html page background color to be white whilst my preloading animation displays and then change to brown once the site has loaded.

Currently the preloading animation and associated code is contained within the main movie.

Any help or tips much appreciated

P

Matching Color In Flash To HTML Of Page
I posted about this awhile back in the newbies forum but i thought i'd also post here as well...

I'm having color matching issues-

For example,this flash piece looks like the of the flash piece fits seamlessly on my web browser (safari- I'm on a mac running 10.3.3) and on a number of machines and browsers that i tested it on. But sometimes i show this page to someone and the colors don't match (the flash piece looks darker) and it looks amateurish. The hex dec codes are the same and the photos and all graphics done in photoshop and imported are sRGB and match the parts of the page where it's just blank page.

My question is: how do i get it so that the flash will match the html and graphics that aren't contained in the flash file. I have read many books and asked a lot of people and no one seems to be able to say with certainty on how to do it.

Any help would be appreciated

Problems With Color In Imported Html Text
I am using FLASH MX Professional 7.0

I found a tutorial that showed me how to import text from an external .txt file into a scrollable window within my flash file.

I was able to make it work but there is one problem. . . . although the html text links in the .txt file work when they are imported into flash, neither the color of the link nor the underline shows up.

I added extra html code to the .txt file to try to incorporate the color of the text links and underline effect of the text. It seems like the underline and bold functions do transfer into the flash file but the color doesn't.

The color seems to be affected by whatever I chose as the attributes for the text box I had created in flash for the imported text to flow into. If I choose the text box and then go to the options palate and choose red, ALL the text is red. If I choose black, ALL the text is black. It is as if Flash is overriding the color coding I had put into the .txt file.

Is there any way to fix this or to work around it?

peace,
cc

Bullet Color In Dynamic HTML Text
How do I change the bullet color in a dynamic text field. I've tried several methods, all ending up w/ a black bullet.

I'm using the <li>mytext</li> method...

Can Flash Control HTML Background Color?
Does anyone know if Flash can control the background color in the HTML page it sits in without the visitor refreshing the browser?

I'd like to allow the visitor to adjust the color scheme for my site, which will include the background color as well as the Flash elements.

Thanks!

Detect Background Color Of Html Page
Is it possible to detect the background color of the html page the flash file will be put on?

I am creating a web page that will randomly choose the background color. I would then like the flash animation to choose from several animations based on the background color.

Any help is greatly appreciated!

How Do I Change The Color Of The Surrounding Html Page?
I want to have my flash centered, but I want to be able to change the color of the surrounding html page it's within. HOw do I do this? What is the default?

Thanks.

Is It Possible To Change Html Text Color From Flash?
I have a flash movie and it lives on the same page as some html text. I was wondering if it were possible to change the color of the html text from my flash movie when i click on a button. Any help would be appreciated. thanks.

Copyright © 2005-08 www.BigResource.com, All rights reserved