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




[[[[Loading HTML Files In A Scrollable Movie Clip]]]]



Hi, I realized that I am looking for a way to load HTML files in a movie clip. I would be very greatful if anyone could help me out, becasue I have been attempting to finish this project for over a week. Again thanks, and any information could be helpful.



FlashKit > Flash Help > Flash MX
Posted on: 08-04-2005, 05:03 PM


View Complete Forum Thread with Replies

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

[F8]Loading A .swf File Into A Scrollable Movie Clip.
Ever used the scroll pane componant built into flash?

I was to do EXACTLY what that does, but make it myself so I can customise the appearance of the scrollbar and border. (unless these are customisable already through some technique I'm unfamiliar with?)

If you don't know what that does, it is able to load a seperate .swf file into a size limited area and make said movie clip scrollable.

Loading .swf Files While Main Movie Clip Is Loading
Hello,

I know How to do a Loadmovie command, but I can only get it to work when I goto the Movie Clip that I have that command in. For ex:

In movie clip B I have a command: loadMovie ("Submovie.swf", "_root.MovieClipB");
Which works fine.

What I want to do is while movie clip A is playing I what a command to Start the Load movie function into MovieClip B.

I have tryed many diff. commands and Cannot get it to work
Any help?
Thanks

Loading External .swf Files. But My Buttons Are In A Movie Clip
Hey guys,


i need some help with my flash website. I'm not very experienced and i know this is a frequently asked question but how do i go about in loading a external .swf file with a preloader.
i've got it to work using _root.

But my problem is when i use it with buttons that are located within a movie clip (my animated menu is a movie clip) it doesnt want to work any more. I'm using Flash 6.

Any help would be appreciated...with comments =)

Thanks!!

Loading External Swf Files Into Blank Movie Clip
Im having some troubles getting this to work... ive done it before but i cant remember how i did it and i no longer have work to look back on.

I set up a button with the following action script


Code:
on (release) {
movieContainer.loadMovie ("peacenews.swf",".swf")
}
The file im trying to load is peacenews.swf and the instance name of the empty movie clip is movieContainer Am i doing this wrong... this seemed like it would work logically to me but then again... im a flash trainee

Yogi

Loading External Files Into A Container Movie Clip
I have some buttons that load an external flash file into the container movie clip with this code:

btn_about.onRelease = function() {
if (_root.currMovie == undefined) {
_root.currMovie = "about";
container.loadMovie("about.swf");
} else if (_root.currMovie != "about") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "about";
container.play();
}
}
}
So it plays the tweening out animation of the file that's already loaded, then loads the new file, playing the tweening in animation. However, currently the container movie clip is empty when the flash movie is played. I want to be able to have some content already loaded in it, but when I use the
container.loadMovie("start.swf") code, it just keeps loading start.swf into it when any of the other buttons are clicked. Is there a way I can have content load when the flash movie is started, but when any of the buttons are clicked, for it to tween out, and basically, never reappear?

Thanks

Loading External Swf Files Into Blank Movie Clip
Im having some troubles getting this to work... ive done it before but i cant remember how i did it and i no longer have work to look back on.

I set up a button with the following action script


Code:
on (release) {
movieContainer.loadMovie ("peacenews.swf",".swf")
}
The file im trying to load is peacenews.swf and the instance name of the empty movie clip is movieContainer Am i doing this wrong... this seemed like it would work logically to me but then again... im a flash trainee

Yogi

Scrollable Movie Clip
hail again flashkit community,

I am trying to replicate an html page which has embedded picture inside a text field..am i clear ?..

ok again..as we see in a normal html web page, we can see pictures inside a paragraph and even they are scrollable...

So i want to create a scrollable content which has both text and other movieclips..yet MX scrollpane solution fails because when it comes to text, even dynamic texts, scroll bar works VERY SLOWLY.."Why Macromedia why *whines" First, my question is "why is it soooooo slow?" is my poor Celeron 400 processor responsible for it?

Second, i would welcome any idea for a smoothly scrollable content which has both movie clip and dynamic text..i tried loading external SWF files with loadMovie method..noo again soo sloww..

Scrollable Movie Clip
I am making a movie clip in Flash 5 with buttons. I would like to be able to scroll this clip on my main scene, so I could minimize the screen area that this navigation takes up.
Does any one know of a good tutorial.
any help would be greatly appreciated.
thanks
Craig

Scrollable Movie Clip?
is there a way to make a movie clip scrollable, instead of including an external swf?

Scrollable Movie Clip?
Hello,
I am looking for a way to create a scrollable movie clip. Similar to a scrollable text box. In fact a scrollable text box would work perfectly if I could insert images within the text.

I am hoping to find a way to have a series of areas within a single stage that can scroll independent of each other. Each area within the stage must be able to have a combination of text and images.

Is there a way to make this possible. I have a cursory knowledge of action script.

Thanks in advance for any help...

Scrollable Movie Clip
Hi, Im creating a pretty short in height site for a mate, i want the content on each page to be scrollable.. The content will include text and images.

Is it possible to put all of the content in to a movie clip and then make that scrollable??

Can someone point me to a tutorial on how to make a scrollable movie clip.

Cheers.

- J

Loading .html File Into A Movie Clip
Can an html file be loaded into a movie clip? I'm using the getURL command from an MC that will be the source content for a scrollbox. When I test this, the url is loaded into its own window and not within the MC. How can I do this? Any help would be greatly appreciated!

Loading And HTML As A Movie Clip? - Not Sure How To Explain It...
Hi All,

First off, I want to thank you all for all of your prompt and effective suggestions to my previous question.

Today I have another one:

I have a project which entails a box in the middle of an existing website. The box will be 480 X 480 pixels in total. However, the box will consist of 2 parts (which could also be frames). The first part (top) will be 480 X 100 and the bottom part will be 480 X 380. I need the top part (or frame) to call an html that has changing images (the html will fit into the same top dimensions 480 X 100). I also need the bottom part to call a seperate html that will also have different changing images and/or text (which is being called via javascript). I have URLs for both html pages which are being called from the company server.

My questions are:

Can this be done as frames in flash and if so how?

Also, I've tried getURL in the actionscript of the flash file (which I called topPanel.fla) but when I published to both SWF and HTML - the html didn't work, but the swf only worked by opening a new window and playing for only 5 seconds (the amount of frames that I had designated).

The deal is this: I need to have the htmls for top panel and bottom panel show continuously... I don't know how to do any of this - (I am such a newbie, it's not funny). Realistically, I can't put an eternal amount of frames in the .fla.

How can I get the htmls to load into each frame when the page is visited and to have it keep playing whatever changes that the top and bottom panels are calling). Am I making sense??? If not, just let me know - I'll be happy to explain further.

Thanks in advance.

AC

[CS3] Loading An HTML As A Movie Clip? - Not Sure How To Explain It...
--------------------------------------------------------------------------------

Hi All,

First off, I want to thank you all for all of your prompt and effective suggestions to my previous question.

Today I have another one:

I have a project which entails a box in the middle of an existing website. The box will be 480 X 480 pixels in total. However, the box will consist of 2 parts (which could also be frames). The first part (top) will be 480 X 100 and the bottom part will be 480 X 380. I need the top part (or frame) to call an html that has changing images (the html will fit into the same top dimensions 480 X 100). I also need the bottom part to call a seperate html that will also have different changing images and/or text (which is being called via javascript). I have URLs for both html pages which are being called from the company server.

My questions are:

Can this be done as frames in flash and if so how?

Also, I've tried getURL in the actionscript of the flash file (which I called topPanel.fla) but when I published to both SWF and HTML - the html didn't work, but the swf only worked by opening a new window and playing for only 5 seconds (the amount of frames that I had designated).

The deal is this: I need to have the htmls for top panel and bottom panel show continuously... I don't know how to do any of this - (I am such a newbie, it's not funny). Realistically, I can't put an eternal amount of frames in the .fla.

How can I get the htmls to load into each frame when the page is visited and to have it keep playing whatever changes that the top and bottom panels are calling). Am I making sense??? If not, just let me know - I'll be happy to explain further.

Thanks in advance.

AC

How Can You Make A Scrollable Movie Clip?
I'm converting my old HTML website to a "flashier" flash website and I'm having trouble with the content. I want to make a scrollable text for the content, but I have links in the text. Obviously these links will have to be buttons, but how can I make the links in the text scroll up and down with the text? The only way I'd know to do this would be to put the entire mess of buttons and text into a movie clip. However, I don't know of any way to make a movie clip scrollable. I only know how to add an "UIScrollbar" to Dymanic Text to get a scrollable textbox. Is there a way I can make a scrollable movie clip?

Masking Scrollable Movie Clip
I've recreated text boxes"movie clips" that use a mask for scrolling. I found the tutorial online. The scroll boxes work perfectly but the mask is not working. When I unmask the box within my text movie clip and test you can see the text that is outside of the "mask" and watch it scroll. When I mask that layer (it looks like it's suppost to in my .fla file) and go to test you can't see any text at all? I appreciate any feedback:)
I don't think that it is anything in the existing code but I'm attaching all the action script just in case.
Thankx
Attach Code

up button scene1:
on (rollOver) {
tellTarget ("control") {
gotoAndPlay(2);
}
}
on (rollOut, dragOut) {
tellTarget ("control") {
gotoAndStop(1);
}
}
down button scene 1:
on (rollOver) {
tellTarget ("control") {
gotoAndPlay(5);
}
}
on (rollOut, dragOut) {
tellTarget ("control") {
gotoAndStop(4);
}
}
control:
-down frame 4: stop();
frame 5: y = getProperty("_root.text.content", _y);
if (y<-120) {
gotoAndPlay(4);
} else {
setProperty("_root.text.content", _y, y-6);
}
frame 6: gotoAndPlay(5);

up frame 1: stop();
frame 2: y = getProperty("_root.text.content", _y);
if (y>70) {
gotoAndStop(1);
} else {
setProperty("_root.text.content", _y, y+6);
}
frame 3: gotoAndPlay(2);

Masking Scrollable Movie Clip
I've recreated text boxes"movie clips" that use a mask for scrolling. I found the tutorial online. The scroll boxes work perfectly but the mask is not working. When I unmask the box within my text movie clip and test you can see the text that is outside of the "mask" and watch it scroll. When I mask that layer (it looks like it's suppost to in my .fla file) and go to test you can't see any text at all? I appreciate any feedback:)
I don't think that it is anything in the existing code but I'm attaching all the action script just in case.
Thankx







Attach Code

up button scene1:
on (rollOver) {
tellTarget ("control") {
gotoAndPlay(2);
}
}
on (rollOut, dragOut) {
tellTarget ("control") {
gotoAndStop(1);
}
}
down button scene 1:
on (rollOver) {
tellTarget ("control") {
gotoAndPlay(5);
}
}
on (rollOut, dragOut) {
tellTarget ("control") {
gotoAndStop(4);
}
}
control:
-down frame 4: stop();
frame 5: y = getProperty("_root.text.content", _y);
if (y<-120) {
gotoAndPlay(4);
} else {
setProperty("_root.text.content", _y, y-6);
}
frame 6: gotoAndPlay(5);

up frame 1: stop();
frame 2: y = getProperty("_root.text.content", _y);
if (y>70) {
gotoAndStop(1);
} else {
setProperty("_root.text.content", _y, y+6);
}
frame 3: gotoAndPlay(2);

Scrollable Area, Needs Movie Clip?
If I want to have an area that scrolls when you put your mouse over a left or right button.

I think I can do this by making a movie of the scrolling, and then using action script to play the move backwards or forwards when there is a mouse-hover over the buttons.

Is this the only way to do this or is there an action-script only way which makes an area scrollable without having to make a movie first?
thanks

Loading A Html Page Into A Flash Movie Clip
lets say that I have an account on a site that generate a page with some informations like this
http://www.thissite.com/index.php?us.................
Can I load this page in a flash movie clip
If I use a projector I am able to load this page in my projector
so I want to know if I can make this on my flash site
->to load this web page in in my main swf
?????????????????????????????

Scrollable Text Inside Of A Movie Clip
I have several movie clips that im using as part of a webpage im making.. in the movie clip the text is setup to read a .txt file. well the text will appear but the scrolling arrows will not work. im not sure if there is something in the trigger codes im not specifing right or in the button itself... can someone help me...


Jonathan

Scrollable Text Inside A Movie Clip?
I would like someone to try to break apart my code and perhaps tell me if I am doing something wrong.
I have a movie clip dragable window and I want to place a scrollable text block inside this window, but I does not seem to be working????
Could it be that the movie clips inside the widnow movie clip are not allowed to work???

I am utterly confused????

Perhaps if I could send my fla. to someone, you could tell me what is wrong???

Thanks.

Wetsocks

Loading Scrollable Text Swf/movie Into Another
Hey guys, I'm having a problem. I learn to make scrollable text and I'd like to use it as a news window inside another flash file. I thought I could make the news win in a separate swf then load it into the main swf but I could do it... the txt file didn't load.
Then I tried to make the news win inside the main swf but in a movie clip. now I can load the txt file but I can't scroll it... What can I do!?


this is in the 1rst frame of the main swf
loadVariables("data.txt", "news");

this is in the news.swf, in the uparrow button (similiar to downarrow)
on (press) {
tellTarget ("scroller") {
gotoAndPlay("up");
}
}
on (release, releaseOutside, rollOver, rollOut) {
tellTarget ("scroller") {
gotoAndStop(1);
}
}

then there is a small movie clip with only actionscript in 7 frames:

1rst stop();
2nd this._root.text.scroll = this._root.text.scroll - 1;
3rd
4th gotoAndPlay(2);
5th this._root.text.scroll = this._root.text.scroll + 1;
6th
7th gotoAndPlay("down");


Now, could anyone tell me why is it not working!?

Loading Scrollable Text Swf/movie Into Another
Hey guys, I'm having a problem. I learn to make scrollable text and I'd like to use it as a news window inside another flash file. I thought I could make the news win in a separate swf then load it into the main swf but I could do it... the txt file didn't load.
Then I tried to make the news win inside the main swf but in a movie clip. now I can load the txt file but I can't scroll it... What can I do!?

Loading Txt Files, Can It Be Done With Html?
Hi, I've created some txt files that load dynamically into a flash file. Can the same be done to html, where the contents of the txt file load in the html page? This is so i don't have to keep updating both txt and html all the time.

Thanks

Daniel Bull

Loading External HTMl Files?
I am wondering if you can load external HTMl files into your FLASH movie upon click/link ...whatever. Like you can load external .swfs into a certain place...and...if you can ...can you start your NAV/MENU at a level (say 3) and then load all external HTML files into say,...level 2??

I want to use external HTML pages for loading most of the content for a site...quick and easy..already done too. What i want to do is when I click on a FLASH link..have an animation happen where the HTML file is to load...say a door closing...then when it opens the external HTML files already visible/loaded underneath! Thanks...I hope you understand. I want to stay away from using frames!

-whispers- Is this possible??

P.S. Edit/Update...If I tried this using Frames...Could I possibly do sometig like this? OnClick of link "X" Load external Intro/Preloader.swf?..AND THEN....if that .swf use sometihng to keep looping (preloader) until HTMl pages is loaded into that FRAME?? Can you preload an HTML fle? What would you use? I have only used if frame loaded actions...maybe the KBloaded??? Someone help me out here.. Thanks! -whispers-
[Edited by whispers on 11-20-2001 at 03:58 PM]

Loading SWF Files In An HTML Site
So here it goes...

I have my project, built with Studio MX 2004, with a nav bar in HTML. I want to load my main content, SWF's, in a middle window of the page. How can I call up each seperate SWF in this middle window without having to re-build the site completely in Flash?? I read about Target and empty MC but I'm not sure if this is the path I should take. Attached is the site layout and you can clearly see were I want to load up the SWF's (the light grey area)

Thanks for the help!!

Pls HELP Loading Dynamic HTML Files
First off-hi everyone, this is a great site!

Secondly, I need help on something simple and stupid. Here's my issue:

I'm trying to do something REALLY simple: load an hmtl file into a dynamic, mulitline text file. Here's how I have it/need the scenario set up:

The HTML file will be loaded into a dynamic text box located in, say frame 2. I would like the HTML file to load as soon as the movie enters this frame. However, as of yet, I have not found any tutorials/help on how to "automatically" have this happen. So, I tried a different route shown in the book I have, which is to have a button that loads it. However, unlike in the book, I would need the button to be in a different frame (say, frame 1 or 5, or 8). My current script on the button reads:

on (press) {
myPage = HTMLpage;
}
on (press) {
gotoAndPlay(2);
}

With of course my loadVariablesNum("variables.txt", 0); code in Frame 2 (where the text should be displayed).

This should work fine, no? Well, it doesn't. When I hit my button in frame 1, it does one of two things (it's inconsistent!!!): it either loads the html file and goes back to frame 1 so quickly that i only see the html file for .2 secs, or it doesn't do anything at all. The weird thing is, SOMETIMES, when I play the movie and then rewind it, then press the button, it will load the html file and stop on frame 2 (what it's supposed to do). What the heck is up with this? Could someone help me please????

Loading Html Files Into Flash 8
I'm trying to bring in a html page from a site into flash for displaying...
this is what I found so far, but it doesn't work with an html page out on the web.

this.createTextField("news_txt", 99, 50, 50, 450, 300);
news_txt.border = true;
news_txt.html = true;
news_txt.multiline = true;
news_txt.scroll = true;
news_txt.wordWrap = true;

// Create a new style sheet and LoadVars object.
var myVars_lv:LoadVars = new LoadVars();
var styles:TextField.StyleSheet = new TextField.StyleSheet();

// Location of CSS and text files to load.
var txt_url:String = "index.html";
var css_url:String = "html_styles.css";

// Define onLoad handler and Load CSS file.
styles.onLoad = function(success:Boolean):Void {
if (success) {
/* If the style sheet loaded without error,
then assign it to the text object,
and assign the HTML text to the text field. */
news_txt.styleSheet = styles;
//news_txt.text = storyText;
} else {
trace("Unable to load CSS file.");
}
};
styles.load(css_url);

// Define onData handler and load text to display.
myVars_lv.onData = function(src:String):Void {
if (src != undefined) {
news_txt.htmlText = src;
} else {
trace("Unable to load HTML file");
}
};
myVars_lv.load(txt_url);


any help would be a great help...
originally, i wanted to bring in through <IFRAME> but i don't see that flash understands that.

Thanks in advance!

Loading HTML From External Txt Files?
Is it possible to load HTML from an external txt File?

I want to make it so that I can change certain images externally (using a .txt file, maybe with <img src=""> tag), not sure if I can do that using external .txts.

If not, is there another method of changing images externally, without having to go into the .fla?

Thanks

Russ

Loading HTML Files In Flash
Hey, i need help with getting a HTML file from a URL and placing it into a Textarea ... I also need to know how to implement JS dropdown boxes on hoverover from a JS file. The hoverovers are images.

Adam

Loading HTML Files... Complicated
This might sound like a weird request, but my gf asked me to put a horoscope flash applet on our personal web site. When the web page is loaded the flash (and PHP) is going to load up a Yahoo! page ( http://astrology.yahoo.com/astrology/love/daily/gemini ) and somehow load the daily Couples horoscope into my dynamic text box. If you look at the source of that HTML page, it has the following:


Code:
<b class="yastshdotxt">Daily Couples:</b><br>Intellectual curiosity helps keep you young at heart. Take a trip to the library together, or head out to your favorite neighborhood galleries.<br><br>
My question is, how do i get actionscript & PHP to load that horoscope into my text box? My current source is attached (in MX 2004 format).

Any help would be appreciated...
Matt

Loading HTML Files Into A Movieclip
Hey,

I want to be able to set up a site so that when you click on a button it loads up a html in to the movie clip, can anyone plz help me out here.

Cheers in advance
Jimmy

2 Swf Files, Linking And Loading Within Html
Hi,
I have 2 swf files.

One swf (alpha.swf) contains a mini-site comeplete with animations, links, etc. Works wonderfully.

The other swf (beta.swf) contains only the masthead navigation from the first swf. This is so the rest of the page can be dynamically generated, etc. (tech constraints).

I would like to be able to link the 4 primary navigation buttons in beta.swf to specific frames within alpha.swf.

These swf files are not the same physical size, and are not in the same html file.

How do I make the links from beta.swf link and load specific frames inside of alpha.swf??

Please ask any questions for clarification.

Thanks.

Loading HTML Files... Complicated
This might sound like a weird request, but my gf asked me to put a horoscope flash applet on our personal web site. When the web page is loaded the flash (and PHP) is going to load up a Yahoo! page ( http://astrology.yahoo.com/astrology/love/daily/gemini ) and somehow load the daily Couples horoscope into my dynamic text box. If you look at the source of that HTML page, it has the following:


Code:
<b class="yastshdotxt">Daily Couples:</b><br>Intellectual curiosity helps keep you young at heart. Take a trip to the library together, or head out to your favorite neighborhood galleries.<br><br>
My question is, how do i get actionscript & PHP to load that horoscope into my text box? My current source is attached (in MX 2004 format).

Any help would be appreciated...
Matt

Txt Files: Html Text Not Loading
99% of the time it works fine, but sometimes my text files does not load. why is that? How can I prevent this?

Loading External Movie Clip With A Button Inside Another Movie Clip Help
Hi,

I am working on a scrolling thumbnail movie clip, that when you click on the thumbnail button inside the movie clip it will load an external movie clip. I have an empty movie clip on the main stage, and have been trying all sorts of code, but for some reason it doesn't like that I am inside a movie clip using buttons. It can't seem to find the external swf.

I have tried:

on (release) {
loadMovie (ithink.swf, "loader");

and

on (release) }
if (firstTime == true) {
loadMovie("ithink.swf", _root.loader);
firstTime = false;
} else {
_root.clicked = "ithink.swf";
_root.loader.gotoAndPlay("goback");
}
}

and so far nothing, for some reaosn when I click on a button outside of the movie clip with the above code it loads... and than the other works too, but if I click on the buttons inside the scolling movie clip first they won't work.

Any suggests or ideas!!?

I would really appreciate it... I am beyond frusterated!!

Loading Text- Or Html Files In Flash?
How do I "load" text into areas on my Flash-site?

Like if I have my website, and the site layout is all in flash. The navigation bar is on at the top, and below I have a "box" where I want the content to display. How can I easily "put" the content of a .html or .txt file in that "box", so that updates of the content can be done without changing the swf file?

Hope you understand my problem

Loading Multi HTML Files Into 1 Text Box
just a query...it's probably obvious to everyone else but...

I'm aware you can do HTML formatting on text in a text box. But is it possible to do a full flash site interface with links to each section etc and have each link point to different HTML file that when clicked, open up in the same central scrollable text box?

Its kinda hard to explain..but hopefully you'll know what i mean. My end goal is to have flash interface that opens up a HTML file for each link....so that i only have to change the HTML files in a WYSIWYG editor when i need to update the site.

How do get the flash scroll bar customised for the length of each section?

Can you have pictures and java script enabled in the HTML file or does it have to just be HTML formatted text?

Loading HTML-formatted Text Files (a La PHP)?
I don't know much about PHP, but in the past I've used it to load text files with HTML coding in the body of my webpages.

I'm more or less switching over to Flash, now, though. AFAIK, since my webpages won't be mixed Flash / HTML, I could simply use links to acheive the same effect.

However, I wanted to avoid refreshing the page to give it that effect that it's integrated into Flash. If it has to refresh, it simply doesn't flow well with the rest of my webpage.

Basically I'm just looking for a simple way to load the content of my pages without refreshing (and without the use of frames). Can anyone point me towards what I'm looking for?

Thanks!

Loading Txternal Txt Files Containing Html Tags From A Btn
I am still struggling to make the following work

I need to load external txt files from a series of buttons

the txt files must contain html tags [see attached]

Does anyone know how to do this?

Loading Specific Files From A Separate Html Doc
I have a swf menu in one html doc and i want to load a new html doc with different swfs.

the structure of the new html doc loads a main swf that uses the single frame method of loading into empty MC's, including a new nav (that loads ALL content into the single frame).

eg.//when it loads
_root.loadMovie("nav.swf");
_root.loadMovie("content1.swf");

How can i call specific load content comands from one html menu to the single frame swf in the other html doc?

hope it makes sense.
ps. using V8

Rat

Loading External HTML Files Into A Movieclip
Hi,
Im making a website for a client and he wants me to set it up so that when you click on a button it will load up a html file into a flash Movieclip. Does anyone know how to do this, if so could they please help me. Thankyou !

Jimmy

Loading External HTML Files Into A Movieclip
Hey,
I need to know how it is possible to make a button so that when you click on it, it will load a external HTML file into a movieclip. If anyone knows how to do this could they please help right away, cause if been tryin to figure it out for weeks and my client needs to see a copy of it tommorow. Please, please help

Thankyou in advance Jimmy

Loading Random .swf Files Into Html Document
Desired scenario: I have a site which I want random .swf files to load into index page each time a user refreshes or visits the site.

Solution: I used a Javascript array solution in the .html page. Note: it works perfectly in Firefox and Safari.
The javascript code for that is listed below.


Problem: In IE, the page which is supposed to load the random .swfs in blank.

I tried to solve the problem by using an IE conditional statement with a single .swf embedded (so at least visitor could have interactive experience). Here's the code I used for that:


<!--[if IE]>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="

Loading Random .swf Files Into .html Document
Desired outcome:
When person goes to site (http://www.jayminnickinteractive.com) they are presented with a different .swf file each time they visit or refresh the page - currently I have three different .swf files that can served up.

What I've done so far to make this outcome a reality:
I included a javascript array in the .html document that selects one of three .swf files to present in the page. Here is the javascript:
<script language="javascript">
<!--
files = new Array();
files[0] = "crayolas_pre.swf";
files[1] = "ice_cream_pre.swf";
files[2] = "drinks_pre.swf";
index = Math.floor(Math.random() * files.length);
movie = files[index];
// now write out the object and embed tags replacing the filename with the variable movie
document.write('<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width=800 height=600>');
document.write('<param name=movie value="' + movie + '"> <param name=quality value=high> <param name=bgcolor value=#ffffff> <param name="menu" value="false">');
document.write('<embed src="' + movie + '" quality=high bgcolor=#ffffff menu=false width=800 height=600 type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>');
document.write('</object>');
//-->
</script>

Problem: This works fine if you are using Firefox, Safari, etc. HOWEVER, if you are using IE then the page is completely blank. I tried using a if IE conditional statement to serve up another .swf if the browser was IE, but that didn't work either.
Here's the code for that as well:
<!--[if IE]>
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="800" height="600">
<param name="movie" value="drinks_pre.swf" />
<param name="quality" value="high" />
<embed src="drinks_pre.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="800" height="600"></embed>
</object>
<script type="text/javascript" src="fixit.js"></script>
<![endif]-->

Error Loading Big HTML Files In Flash 8
Hello

I load a text (*.txt) file with html tags content using the LoadVars() class. it goes ok until the loaded file comes up with the bullet tag <li>, after it shows up the bullet, every new line or parragraph appears with a bullet, even if the tag isnt included.

The code i use to load the file is:

function setText(who:String){

var file:String="txt/"+generateFileName()+".txt";

myData = new LoadVars();
//im overriding the onData function
myData.onData = function (src:String){
_root["textF"+who].html = true;
_root["textF"+who].htmlText = src;
}
myData.load(file);
}

the function setText is called whenever i want to load some text (according to the generateFileName() function)


i dont know why, but after i call a file with bullets, it makes flash to add bullets to every file loaded.

Importing .txt Files And Making Them Scrollable
Looking for a tutorial on how to import a .txt file into your flash file and also making the .txt file scollable ... able to move up and down depending on length of .txt

Spanks!!!

Troubles In Loading Txt Files On Clip Events
Here is the situation I have a movie clip with my text box and scroll items on the main timeline. In the instance of the movie clip I have my scripts for scrolling, sizing, and more importantly my text variable.

In the past I defined my text within flash but it is becoming to much so I am trying to load external text files but can not get them to load on clip events. It only works on buttons (ie. release, press, etc)

What is my problem, need help here is the code.


//Text Scroll Instance textbox

onClipEvent (load) {
daTextBox = HTMLDATA; //have a variable named HTMLDATA in text File but will not load on clip events it works only when I call it from a button.
}


Thanks in advance
onClipEvent (load) {
scrolling = 0;
frameCounter = 1;
speedFactor = 3;
}
onClipEvent (mouseDown) {
if (up.hitTest(_root._xmouse, _root._ymouse)) {
scrolling = "up";
frameCounter = speedFactor;
up.gotoAndStop(2);
}
if (down.hitTest(_root._xmouse, _root._ymouse)) {
scrolling = "down";
frameCounter = speedFactor;
down.gotoAndStop(2);
}
updateAfterEvent();
}
onClipEvent (mouseUp) {
scrolling = 0;
up.gotoAndStop(1);
down.gotoAndStop(1);
updateAfterEvent();
}
onClipEvent (enterFrame) {
if (frameCounter%speedFactor == 0) {
if (scrolling == "up" && daTextBox.scroll>1) {
daTextBox.scroll--;
} else if (scrolling == "down" && daTextBox.scroll<daTextBox.maxscroll) {
daTextBox.scroll++;
}
frameCounter = 0;
}
frameCounter++;
}

Loading Seperate Html Files In Frames With Flash
i need usability and speed, and with the skill that i have making a full flash site takes away both. so im making an htmml/flash hybrid(for lack of a better term). it will have a flash header with buttons on it..with an html frame under, all in a separate html page. this is probably very easy but i cannot figure out how to script theflash buttons so that they gourl to an html page, in the html frame, and not in the flash frame. could someone perhaps provide a sample of this type of script? thank you.

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