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




Loading A New Swf On The Main Page Everyday



I hope I am posting in the right forum. I am trying to figure out how to load a different swf file everyday or everytime the page is refreshed. I have been looking for a javascript but haven't found anything that will load a different swf each day.

Any help would be appreciated.



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 05-15-2005, 02:56 PM


View Complete Forum Thread with Replies

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

Loading A New Swf On The Main Page Everyday
I hope I am posting in the right forum. I am trying to figure out how to load a different swf file everyday or everytime the page is refreshed. I have been looking for a javascript but haven't found anything that will load a different swf each day.

Any help would be appreciated.

Loading .swf File Into Main Page
Hello all,
I am having a problem loading a .swf file into my main pages.
The file I am loading, loads into holder_mc, but it no longer works when it has been loaded.

The file I am loading, tests properly (it is a user registration page collecting birthdates, etc.) The combo boxes which I am using for month and day and year selections are not selectable (inactive) when I load the .swf file in to holder_mc (again they work fine when I test the file separately).

I'm sure it's probably something simple I am missing; maybe someone with more experience can help me?

Thanks,
Tatiana

Problem With Loading Movie Into A Main Flash Page
on (release) {
loadMovie ("content_aboutus.swf", dummy);
}

whats wrong with the code above?

the thing that i want it to do is to load the movie file into a target call dummy.

when the code above is executed, the movie is loaded but replaced the entire movie (the main flash page disappear and was replaced by content_aboutus.swf)

is there anything i should do?

Trouble Loading External .SWF Into My Main Page With Preloaders
Dear All,

I am working on my first Flash project with AS3.

The structure of the flash site is pretty simple. I have a stage 1165px wide x 710px height

Inside my Stage I have an horizontal bar with a menu followed by a container right under.

**** My goal is that whenever I click on one of the button on the menu, that the related external .SWF loads into

the container with a preloading bar and %. *****

I already did all my .SWF files and it is pretty frustrating at this point to be stuck at this point of development.

Please help.

-Alex










Attach Code

// In my actionscript layer, I First I add the default Page to the container:


var CurrentContent:String = ("/broadcast.swf");
// Variable that hold the current external .SWF

var ChateauContent:URLRequest;
var ChateauLoader:Loader = new Loader();
this.ChateauContent= new URLRequest (CurrentContent);
this.ChateauLoader.load(ChateauContent);
addChild(ChateauLoader);
setChildIndex(ChateauLoader,0);

// ------------------------- This code to put it under my menu.

this.ChateauLoader.x=0;
this.ChateauLoader.y=168;


// When I click on a button from the menu I would like to call a function and //pass the value of the External .SWF to load and show a % and loading bar.



// i know this works without a preloader. but how can I add one ?
// I know I'll need 1 dynamic text and a MC rectangle.

this.ChateauLoader.unload();
removeChild(this.ChateauLoader);
{CurrentContent=("/store.swf");
this.ChateauContent= new URLRequest (this.CurrentContent);
this.ChateauLoader.load(this.ChateauContent);
addChildAt(this.ChateauLoader,12);
this.ChateauLoader.x=0;
this.ChateauLoader.y=168;

Naming Of HTML Entry Page & Flash Main Page?
Hey Everyone. What is the best way to name the entry non-Flash (HTML) page - the splash or index page, whatever it's called - that is the gateway to the final Flash site, which will open in a new window? When users type in the basic web URL - for example, http://www.mysite.com - I want them to come upon an entry page that states "Click here for Flash Player 6" and "Enter if you have Flash Player 6". When the user types in the basic URL should I have the entry page called http://www.mysite.com/index.htm?

One step further... How do I configure things so that when the user comes to the entry page, Flash 6 is automatically detected. Detailed answers will be much appreciated, as well as links to tutorials.

peace out,
*< Scottie

Not Your Everyday Question,
hi everyone, i am making a site that loads other swf's into one main movie. now i have a pic in the main movie that i would also like to appear in the loaded swf without having to load it twice.

is it possible for the loaded swf to take the jpeg (in a mc) and display it, also move it around ???

thanks
protocol

Why Must I REinstall EVERYDAY?
Every day when I get to a page that requires this software, I get a message similar to this: "You don't have a flash plugin installed or javascript enabled"

If I go to the adobe site to download, it tells me that I already have it installed. I then must uninstall it and then reinstall it -- EVERYDAY?!?!?!

Does anyone know why is this is happening and how I can get it to stop?

TIA!

FMS Is Stop Everyday...
Hi,

Our FMS Server is stop 3 or 4 times everyday.
I don't know why?

Below, error log...

Fri 03:35:09 PM: Assert failed in serverTCFrameGenerator.cpp line 1660
Fri 03:40:20 PM: Core (3896) connection to admin accepted.
Fri 03:40:20 PM: Core (3896) sending register cmd to edge.

Please, fix the problem...

How To I Add Pictures To A Page, But Not Have Them Show Up On My Main Page.
Hi, I'm very new at this flash stuff and have been on the computer all day today and have tried everything...and I know it can't be hard.

Ok...

I'm creating my web page (I wish I could show it to you, but I'm not sure how).

Anyway...it starts off with the menu bar flying in. All my site will be is a bunch of photos under different catagories (personal site).

After the button flies in, I would like to simply PUSH the button and go the page I've created with the pictures. I can't figure out how to make another page, nor can I make the button push and go to that page.

Any tutorials or anyone can help me.

Thanks.
Trishy
Trishy.com

How To Move From The Intro Page To The Main Page?

Hello Everybody,

As  a flash newbie, I am  currently learning  by doing...
Currently, I am  dealing  with a  few  problems  that I do not  know  what to  do, I hope  someone can help me with these  questions.

1.- Does  anybody knows  what I must do   to move  from  the embedded intro.swf file of  my introwebpage (once the  whole thing  has been played) to the  index.html file?,

2.- How can  I create the "skip button" to  go  straight to the index.html file?
 
Thank you  so much for any help,
I'll really appreciate any comments or  suggestions.

regards





[MX] Change Frame Everyday
Hello,

I want to know if there is a way which makes the frame change everynew day.

Thanks

[F8] Load A Different Dynamic Text Everyday
can anyone help, i have a series of motivational quotes that i would like a different one loaded each day as dynamic text using actionscript

can anyone help with a script

Main Flash Loading External Swf Then Back To Main
SOLVED



Heres a rather complicated situation I am in.

I put together an after effect file and exported it as an swf. Work perfectly. There is no FLA


In my flash file, frame 1 is a preloader. Frame 2 is an Action script that says

loadMovieNum("page1.swf", 1);


And voila, the movie start to play.


Problem is, it doesn't go back to the main on frame 3.




Solution-
Using sorenson squeeze theres an option to load/unload movies that you compress into swfs. There was a stop at the end of my movie with no fla file.

How Do I Focus A Newly Opened Page Opened Through Main Flash Page.
This is the script in my flash file. I would like for it to open the new html window with the size as stated but also bring it to focus in front of all other windows and I cannot seem to find the correct script or know where to put it correctly in this existing script.

on (release) {

sUrl = "Content/Makers/Dadslide1/VDM.html";
wdth = "500";
hdth = "462";
lft = 500;
tp = 10;
getURL("javascript:window.open('"+sUrl+"','yourpag e','width="+wdth+",height="+hdth+",top="+tp+",left ="+lft+
",directories=no,location=no,menubar=no,resizable= no,status=no,toolbar=yes,scrollbars=no'); void(0);")



gotoAndPlay(1);
}


How do i make it to where this window and others will focus to the front when a new button is pressed inside the main flash swf. I am looking all over the place and keep seeing focus script and none of it seems to be working.

Please help and thank you in advanced to those who do.

Loading Main MC Inside Main MC
Hello, Can I ask a question? I have fiinsihed Lazaro Claiborne's
tutorial on "Building A Simple Website."

It works great. My question is - if this makes sense: I want
to put a main2.swf inside my main.swf. Inside of main.2, I
wanted it to have a menu that would also call a .swf file(s)?

I want to make a site on space for my kids at school. In
going to some of these sites, they get lost with overkill
of data. My kids attention level is the third grade. I can
keep their focus really good with Images as I try to teach
them this section of science.

I wanted Main to hold a menu of Planets, Nebulas, etc.

When I click Planets to open that .swf, I wanted a menu in
that .swf to show each planet close up for them to see one
by one.

I saw some things in the forum that seem to come close, but
I dont know enough yet to know if they actually fit what I am
trying to ask?

Thank You - Skyler A. 1/20/07

Loading A Movie From A Movie On Main Timeline, To A Specific Frame On Main Time Line
I need help loading a movie from a button in a movie on the main timeline. To a specific frame on the main timeline.
i.e. I have a navigation movie, in it is a load of buttons. I want to load separate movies to a blank movie on a specific frame on the main timeline.
I guess I am having target problems, I can load the movie in the main timeline, but not the frame i want it or the the blank movie in that frame.

THE MAIN PAGE DISSAPEAR
I´m designing this site ( http://www.skiswift.com/index2.html ), i'm using a index2.html that load 2 movies (background.swf in level 1 is the background, skihome.swf in level 2 is the content and skimain.swf in level3 are the buttons) everythings fina but are buttons when you go to a section (ski areas, press COLORADO or skiinstruction) when the pop up winfow comes the 3 movies disspear in all windows browsers! what can it be? in mu mac everythings look fine... well, thanks in advance for trying to help me!

Main Page Question
hello, i have a question: i created a website (not completely in flash ), where the index is in flash. there is a slight intro, but it's all text, after which, the navbar appears. all the other pages underneath the index are non-flash.

my question is, after someone has perused the site, and let's say they want to return to the home page, the text intro starts before the navbar appears (it take about 10 seconds before the nav appears). is there any way to set up that page such that if someone has visited that page once, the navbar will appear right away? or, would it be easiest if i created a second index page (index2) which is the link on the "return home" link on the navbar of the subsequent pages?

thanks in advance.

Splash Page To Main
Ok, straight to the point, I have a splash page set to load the main movie up. On the button I've used the loadMovieNum action which
seems find but, I have a feeling there is another way to jump from my splash to my Main.

Maybe a simple code?

Please could ya help

Oh, one other thing I have a preloader at the front of my movie whic contain a component. Now, know this is a problem but what could be suggested I do?


Thank you once again

Keep Refreshing The Main Page
I created a popup window so that an email form will pop up when visitor click on the link. Here is my code:
on (press) {
getURL("javascript:window.open('recommend.htm','','width=600,height=500')");
}

The problem is the main site will refresh itself and give me an error [object] on the page. The email form pop up window work just fine. I am trying to figure out why it refresh the main site when the visitior click on the link. Is there a statement I am missing that will prevent the code from refreshing the main site? The link is located on the main site.

Thanks

Home Page Main Ad Box
I have 3 main questions:

1. What would you call these flash items?
2. Where is a good and easy tutorial about how to make these?
3. Are there any pre-made ones that could be bought?

Here are the examples of what I am talking about: (links below)

http://www.air1.com/ (this is probably the best example of what I am wanting to do)
http://www.bu.edu/
http://www.mitchelsliwa.com/
http://www.jasonreedwebdesign.com/

If I just knew what to call this type of flash would help a lot. I do not believe that it is a flash gallery or flash slideshow.

Main Splash Web Page
New to flash, Im trying to setup a simple website that has a Flash introduction page then goes to the index. Html page. The question is: How do you setup a flash into page then go to the websites main page?

What Do You Guys Think Of My New Main Page?
I just remade the main laucher page on my website. I was wondering if you could tell me what you think. New Opening.

I am also having a problem with popups. If I launch the main flash page as a pop up, other pop ups dont work from that pop up. Here is the code I have on the HTML.


Code:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function Launch(page) {
OpenWin = this.open(page, "Max", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes,width=300,height=300");
}
// End -->
<!-- Begin
function OPENFLASH(page) {
OpenWin = this.open(page, "Max", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes,width=1024,height=800");
}
// End -->
</SCRIPT>

Is It Possible To Load The Main Movie From Another Page?
is it possible to load the main website while still being on the spash page? so that when the preloader on the splash page goes to 100% the main website can pop-up fully loaded.

thx, squid.

Main Page Image Size?
Hi everyone,

I got a newbie page to work. Not much to the page, but a work in progress, I guess.

What dimensions do I need to make the main page, so that it completely covers the browser?

I am just learning about the publish settings, specifically with the html file options.

If I do get the original dimensions right, what is the best setting to keep my page 100% in the browser, even if the viewer squishes and stretches it?

Thanks for any help and suggestions,

Andy

How To Get Main Page To Have No Toolbars/menu, Etc...
Hello, all.

I know this might be a stupid question but how do I get my main page to come up to be a certain size, no toolbar, scrollbar, menubar, or resizeable?

Thanks a lot. I appreciate all the help I've been able to find on this board!

Anyone Know A Cool Way To Load A Main Page?
Im trying to figure out how i want my page to load up after the index(preloader) what i mean by "load up" is if ya check out www.2advanced.com their page shows up nicely but i dont want anything that complicated. Anyone know a good way or cool way to present the main page?

and anyone know how to change the shape of your movie? but i want my movie to like, hmmm, um, be interactive and the navigation to, do i make sense lol, ill attach an example.

Flash Pop-ups Targeting Main Page
[I hope this is the correct place to ask: I accidentally post it under a different forum. Sorry.]

Flash Pop-ups Targeting Main Page
I don't know if my subject line helps, but here's a detailed description of my question:

How do I script/create a Flash, in a pop-up window, to open up a new page in the main page, or second web browser, leaving the pop-up in its own state?

IE:

User loads up a website [Main Window]. User clicks on a link that will generate a pop-up window with a Flash file. There, the user will then click on a hyperlink that will cause the Main Window to open up a new page leaving the pop-up unchanged.

It's like the pop-up controls an exisiting/opened web broswer to load up a new page - WITHOUT having to open a new window.

I hope I didn't confuse everyone! But, thanks in advance!

Popup Main Page Moves...
I've created a popup on a button with this code on (release) {

getURL("javascript:window.open('ketv.html','','wid th=320,height=240,')");

}

The popup works, but the main page naviges to javascript:window.open('ketv.html','','width=320,h eight=240,') , and by that I mean that the line "javascript:window.open('ketv.html','','width=320, height=240,')" appears in the main navigation window.

What have I done wrong. I also searched for an answer before posting, sorry if I did miss it.

J.s. To Resize Main Html Page Plz Help
hi everyone..
i'm getting in trouble with my first flash work..i have my "site.swf" movie nested in an html page, lets say "index.html". site.swf is 800x500 in size. index.html is a simple start page in full size. once users load index.html , i'd like a new browser window 800x500 in size to be opened (the same size of the movie), without scrollbars, status bars,browser's buttons etc etc.(index.html should remain opened however) i tried to search function in the forum but didnt find the right javascript code to help me. i'm sure there's someone outthere that can help me..
thanks in advance,
soren

p.s.i found some goog working code aruond the internet but it just works for internet explorer (over v.4) and not for firefox..any advice??

Change The Title Of My Main Page?
hi

could you please tell me how can I change (the easyest way) the title of my page please?

now its like: index.swf (application-x-shockwawe flash object)

thank you

Change The Title Of My Main Page?
hi

could you please tell me how can I change (the easyest way) the title of my page please?

now its like: index.swf (application-x-shockwawe flash object)

thank you

When Swf File Ends, Cut To Main Page
When swf file without navigation,that has been loaded into the main timeline, finishes, I want to quickly and automatically crossfade back to main home page with its navigation. (action script 2 CS3.) Thank you.

How To Load My .swfs / Set Up My Main Page
Hello,

I am in the process of building my Flash site. So far, I have built a sliding menu on the front page with buttons. I plan on loading external .swfs into the area above the sliding menu.

My buttons are HOME, ABOUT, PORTFOLIO, RESUME, CONTACT......Let's say my main .SWF that everything will load into is home.swf......If I place the content above the sliding menu on this .swf and click...lets say the PORTFOLIO button to load the portfolio.swf, how do I get the info on the main page to do its "outro" like the smooth external swf transitions tutorial and leave the sliding menu in place while loading the portfolio.swf?

I guess what I'm asking is how do I automatically load a .swf into my main page upon opening?

Does this make sense? I am looking for some direction. Thanks!

Getting An Swf File With MP3 To Play In Main Page
I'm making a porfolio flash site and I want to have a section that allows the user to listen to mp3s. I followed the tutorial for making a slider/volume control player and this works, but NOT when I call the swf file from my main site.

Any solutions would be very appreciated!

This Loader Works Only For The Main Page
Loader: first frame
Total = _root.getBytesTotal();
Loaded = _root.getBytesLoaded();
if (loaded>=Total) {
_root.play();
} else {
parcent = (Loaded/Total)*100;
parcent_text = Math.round(parcent);
Bar.p_Bar(parcent_text);
_root.stop();
}
Second frame:
this.gotoAndPlay(_currentframe-1);
Loading bar:
onClipEvent (enterFrame) {
function p_Bar(parcent) {
_xscale = parcent;
}
}
First frame-movie
System.useCodepage = true;
stop();



The codings work fine for the main page. But when this loader is added for all the other pages, it takes me only to the home page which opens by default on the main page.
Help!

Main Page Reloads Between Pages
I have a main swf that loads and unloads other movies. Problem is, they always go back to the main page for a second before moving on to the new page.

Can you tell me what I've done wrong?

http://www.stratfordfriends.org/index.html

http://www.stratfordfriends.org/SFSwebsite.swf

Movieclip Action To Go To Main Page
dear friend

i have a problem. I have done a animation in that in my first frame i have 3 buttons when any one clicks on buttons it will go to a particular frame and stop and in that frame thr is an Moviclip which have animation in it. in that animation i have given a button to return back to the mainpage whr 3 buttons are thr. But i tried giving actions but its not goin what should i do for this please help me out.

Thanking you,
sarfdesign.com

Preload To Main Page Php...from Flash
Ello ...i just stuck up in the code below..hope someone can clear up for me...i just want to connect to php main page from flash let's say after the status show 100% loading i want to connectto php mainpage....is it possible?then i come up with this code below..but it's seem when it connect to page..it keep open new window...for same page..so how i gonna stop this..i just want connect the page once only....


ActionScript Code:
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._width = getPercent*100;
this.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
this.getURL("www.blablabla.com/main.php", "_self");
}


any help would be great...

Main Page Scene 1 Have I Started Wrong
Hi have I started this wrong my main page is scene 1 but has yet I have no pre loader
Should I of made a pre loader has scene 1 or can this be done later
Thanks stig

A Script 2 Load Main Page On Release
Hi.
I have made a button but i cant get it 2 go 2 my main page, im tryin 2 do this


button.onRelease();
button.getURL(Home.htm,_self,Get);


It obviously isnt rite or it would work.
Can sum1 help me???

Main Flash Page To Load Movies
Im very new to flash and ive been looking for a noob tutorial on making menus that have buttons that load movies now ive made my main page and ive made my buttons but i cant seem to get a movies to load without it overlapping the main page im using Sams teach yourself flash 5 but they only show you how to make a box inside your main page to run the movies i want the main page to dissapear and load the movie over it

any links to help me out would be appreciated

heres the file http://f1.pg.briefcase.yahoo.com/bc/reznerwr/lst?.dir=/Empty&.view=l

Trying To Get Audio Player To Load On Main Page. Help
I downloaded the following audio player:

http://www.flashkit.com/movies/Sound...2437/index.php

and I adjusted it so that 8 audio files can be loaded. However I can't seem to figure out how to load this movie clip onto my main page. I tried making a blank video clip called "audio" and I would load the above audio player into that video clip. It doesn't seem to work. Can anyone help? Thanks!

Working Pop Up But Main Page Displays Blank
i got da pop up going on my site !! thanks to FRETZ for the javascript generator ! but i still got one problem !! whenever i click on the TEXT LINK the POP WORKS but the MAIN PAGE displays blank pls check the MP3 page on my site http://www.prestilo.tk and try to check what im tryin to say .. Thanks for the help FRETZ by i need u again on this problem or any one who knows how to fix it ..

Controlling Sound From Ext. Movie From Main Page
Hi, Please can someone help me, i have some external movies with sound effects loaded onto my main page and i want to control the sound on/off of these movies from the main page, sounds simple? im just not getting it

Uploading Flash File As Main Page
I am new to Flash. When using html programs I know to make a certain page my home page I title it "index.html." My question is what do I need to do to have the server recognize a flash file as my "main page" (home page) when someone types in the domain? I am using Fetch to upload...

Window.open Redirects Main Page
hey all. here is my script.

on (release) {
getURL("javascript:window.open("http://www.google.com","mywindow","width=500,height=5 00")");
}

the link opens up fine...but it opens up a tab in firefox that displays the following text.

"[object Window]"

in internet explorer it gives me the error. and won't open the window.

internet explorer cannot download.
unspecified error.

you can view it at http://www.pixelstudios.cc/Untitled1.swf and see...maybe it's just my pc??

Can I Preload A External .swf File From The Main Navigation Page.
I need to know if I can have a preloader that works from the main navigation page that will load a external .swf that is not in the the main.swf movie. Please Help!

Detailed:
I am working on a site that the navigation page is its own movie or .fla, and the scenes that the buttons call are in there own .fla (there are 9 scenes). So when I export the navigation movie it becomes index.swf, and the scenes .fla is exported (sense there are nine scenes they are export in there own swf. so I have index_one.swf (which index_one.swf is scene1 and so on).
Now when i click on the button that calls the index_one.swf from the navigation page it sits there and the user does not now if the page is not working or its loading. so can I add any type of script to the main navigation page that would let me preload the index_one.swf. I would like it to show loading on the main navigation page and when it has completed it would go, to the new .swf file.

Thanks Jason

[Edited by motiongraphics on 07-19-2001 at 10:15 AM]

Splash Page: Preloader Shows Main Flash Won't
I am hoping someone can help.
I have built a splash page in flash with two scenes. The simple preloader is in one scene and the main flash is in another scene. I have tested the movie and although the scenes don't flow one after in test mode they do work perfectly. I published and loaded the flash online and the preloader shows but the main flash doesn't follow. It is at http://home.earthlink.net/~muse_7. This is my portfolio site and I am preparing for an interview so the sooner I fix the problem the better.

Thanks in advance

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