Flash Menu Targets Html Pages
Hi,
I'm trying to create an HTML page that is controlled by a flash menu. The buttons are animated so when the mouse is over it changes colour and when clicked they stay in that colour until another button is clicked. I've sorted the actual interaction between the buttons, now I need to know how can the buttons target different pages so the corresponding button stays "down" when the page is displayed.
Thanks,
FlashKit > Flash Help > Flash ActionScript
Posted on: 11-29-2006, 06:02 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Flash Menu With Multiple HTML Pages - How To Pass Variable To Menu On Refresh?
please note this topic is also posted at AS under this title:
Flash Menu 4 HTML pages - pass variables on page refresh
-----------------------------------------------------------------------
So the subject is a hint as to how hard it is to search on this simple idea.
Will be very greatful for some help today!
PROBLEM DETAILS:
I am building a swf menu for an HTML site. It has the following buttons:
SectionA
SectionB
SectionC
What I want to do is modify the text when the HTML page for the correspoding section is loaded. So, if I click on "SectionB", SectionB.html loads. Now I want that button "SectionB" in the swf to have a background glow.
Of course the catch is, that each time a new HTML page loads, it reloads the swf menu (No Frames please!). So, naturally I know I can just tell the swf menu to go to a certain place in the timeline where there is the glow graphic behind "SectionB". But the swf needs a variable saying it is on a Section B HTML page. (of course I could build a seperate swf for each section - but that seems stupid.)
THUS....
MY QUESTION:
How do I pass a variable from a swf on one HTML page (that is being replaced by a new HTML page!), to a swf on a new HTML page.
Can I do this with a GET/POST or something?
Thanks!
-AB
Birdsong is online now Edit/Delete Message
HTML Pages With Flash Menu
Hello everyone... i need some help
I am currently working on a html site with a flash menu on top.
I used 2 frames, the top frame with the flash menu, and the second one is the content. the buttons from flash tells the second frame what external html file to load. second frame has it's own scroll bar, so the flash menu always stays on the stage while i scroll the second frame.
Everything works fine except i want a single scroll bar for the entire site...
like here... http://www.thelastgoodnight.net/
ok i'm very new to html (i'm more of a flash developer), but i tried different techinques and nothing seems to work... (i tried percentage sizes when defining the frameset, doesnt work)
any suggestions would be gladly apreciated
thank you
HTML-pages Underneath Flash-menu
I have created a drop down menu, and I want the html-pages (partially)to load underneath the drop down menu (so just below the menubar)! With other words: I want to keep the menubar visible, all the time! How can I do this? Can I put a HTML-page on a layer or?
This is how the menubar looks like...
Or is there maybe a way u can load an html page into flash, so it will show the html-page just below the menubar?
Controlling Html Pages With Flash Menu
hi,
i want to know how a flash menu can control a html page and coexist on the same page. i want to make an interface that is similar to Liquid Intelligence
maybe it is something different (javascript/DHTML?) but i want to achieve that effect.
thanks alot.
Help With Menu And Loading Html Pages With Flash
if you go to wizradio.com and click on the searchbar, you will get a page with bars on it. I'm redoing the site and I still want to keep the searchbar in flash BUT, the page where it shows the bars I will now do in HTML. So my issue is, what code will I use if someone selects Hartford so it loads the bottom half of the site (where the bars show) as an HTML page instead of flash which the whole site currently is ?
code is:
states.setDataProvider(states_array);
function changeDetectedStates() {
if (states.getValue() != "Select a State:") {
selectedstate = states.getValue();
trace(selectedstate);
cities.setDataProvider(this[this.selectedstate]);
}
}
function changeDetectedCities() {
if (cities.getValue() != "Select a City:") {
selectedstateandcity = "You have selected "+cities.getValue();
}
// add _root
_root.gotoAndStop(cities.getValue());
}
stop();
Navigating Through Html Pages With Flash Menu
Hi!
I'm quite new to flash, went over different forums and tutorials but didn't find concrete solution. Problem:
btn menu built in flash contains animated mc_buttons that change states (from original "up") on onRollOver, onRollOut and "down". How do I keep the selected button on "down" state once I selected (released) it and html page has loaded.
I know it has to do with variables sent from html, for examle if variable selected1 is sent, than selected btn1_mc stays in "down" state.
I put actionscript on invisible_btn inside btn_mc:
ActionScript Code:
on (rollOver) {
if(clicked!= true)
gotoAndPlay("over");
}
on (rollOut){
if(clicked!= true)
gotoAndPlay("out");
}
on (release){
gotoAndStop("down");
clicked = true;
getUrl (_root.link1, "_parent");
}
Thanks,
Grega
Flash Menu Causes Html Pages To Jump
I have inserted a flash menu into the html pages in my website. I am using the same swf file and ebedding a variable name in each page eg. "menu.swf?x=about".
I then use a conditional statement in the actionscript to determine which page i am on eg
else if (x == "about")
{
mc_menu.home.scaleX = -49.3;
mc_menu.about._alpha = 50;
}........
All is working well except when you click a button to change html pages - the page flashes and jumps. Also in IE i have to click the button twice.
The code behind the button is;
on (release) {
getURL("index.html");
}
I would appreciate any help!
Flash Menu Across Multiple HTML Pages
I'd like to create a Flash menu with sections that open and close to reveal or hide subsections when the user clicks on them. So far, that's easy enough.
The tricky part, though, is that I'd like to use the menu in a hybrid Flash-HTML site, and have the menu "remember" which sections are closed and which are open across multiple pages.
In other words, if the user clicks on section1 in Flash menu on page1, I'd like that section1 to be already open on page2.
I know it would easy placing the Flash menu in a HTML frame, but I don't want to use frames.
Any idea, suggestion, or example from all the Flash gurus out there would be immensely appreciated.
Embedded Flash Menu Causes Html Pages To Jump
I have inserted a flash menu into the html pages in my website. I am using the same swf file and ebedding a variable name in each page eg. "menu.swf?x=about".
I then use a conditional statement in the actionscript to determine which page i am on eg
else if (x == "about")
{
mc_menu.about._alpha = 50;
}........
All is working well except when you click a button to change html pages - the page flashes and jumps. Also in IE i have to click the button twice.
The code behind the button is;
on (release) {
getURL("index.html");
}
I would appreciate any help!
Loading Php Pages In A Html Layer Trough A Flash Menu?
I would greatly appreciate some help on this.
I'm a real newbie if it comes to actionscript, and this is probably quite simple. Ok on to the problem:
This is what I have:
A site that is divided with 2 frames (html)
A flash menu with some buttons in frame 1
A Div layer in frame 2
This is what I want:
I want the flash menu to load PHP pages, (for example: members.php) into the DIV layer in frame 2.
Here is a shot of what I mean:
http://www.clawhammer.nl/div.jpg
Thanks alot for your help!
Flash Menu 4 HTML Pages - Pass Variables On Page Refresh
So the subject is a hint as to how hard it is to search on this simple idea.
Will be very greatful for some help today!
PROBLEM DETAILS:
I am building a swf menu for an HTML site. It has the following buttons:
SectionA
SectionB
SectionC
What I want to do is modify the text when the HTML page for the correspoding section is loaded. So, if I click on "SectionB", SectionB.html loads. Now I want that button "SectionB" in the swf to have a background glow.
Of course the catch is, that each time a new HTML page loads, it reloads the swf menu (No Frames please!). So, naturally I know I can just tell the swf menu to go to a certain place in the timeline where there is the glow graphic behind "SectionB". But the swf needs a variable saying it is on a Section B HTML page. (of course I could build a seperate swf for each section - but that seems stupid.)
THUS....
MY QUESTION:
How do I pass a variable from a swf on one HTML page (that is being replaced by a new HTML page!), to a swf on a new HTML page.
Can I do this with a GET/POST or something?
Thanks!
-AB
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 Do I Retain Menu State Between HTML Pages?
Hi
Does anybody know how to do this using Actionscript and say PHP? I'm using an drop down style flash menu which is embedded in different HTML pages. Problem is when I jump to and fro the menu goes back to it's closed state. Any ideas? Help would be very much appreciated.
regards
Toma
How Do I Retain Menu's State Across HTML Pages?
Hi
Does anybody know how to do this using Actionscript and say PHP? I'm using an drop down style flash menu which is embedded in different HTML pages. Problem is when I jump to and fro the menu goes back to it's closed state. Any ideas? Help would be very much appreciated.
regards
Toma
How Do I Retain A Menu's State When Navigating Between HTML Pages?
Hi
Does anybody know how to do this using Actionscript and say PHP? I'm using an drop down style flash menu which is embedded in different HTML pages. Problem is when I jump to and fro the menu goes back to it's closed state. Any ideas? Help would be very much appreciated.
regards
Toma
[CS3|AS2]Profound Problems With Swf Menu Based Html Pages.
Dear Flash grown-ups;
I'm trying to make a site with HTML content, but a Flash menu bar. Menu buttons should change state depending on what the current page is, e.g. if you're on the Contact Us page, the Contact Us button is dimmed out as if unavailable. Since I don't know Java, the only possible method that I saw was making a separate duplicate of the same SWF menu for every page with the exception of the corresponding button in the menu being dimmed out in each duplicate. The obvious problem was that those SWFs would need to reload on every page load, resulting in a brief but significant (and annoying enough) disappearance and reappearance of the menu bar. At that time, logic suggested that this problem could be easily fixed by loading bitmap elements into MCs externally as opposed to importing them to the library. I naturally assumed that since all SWFs use the exact same bitmap files loaded from the exact same location, the aforementioned brief flashing would go away. How naive was that? I hit the wall and the deadline is closing in like the headlight of the chu chu in the tunnel. HEEEELP!!!
In addition to this, I'm experiencing yet another unexpected problem: aside from the main menu bar SWF, I also have a price calculation SWF. These two work fine if they are loaded into separate HTML pages; when both put on the same HTML page, however, they do not load properly/completely.
Any help would be super.
Thanks
PS. I read that the SWF menu HTML page thing can be achieved through iFrames, but my concern is that some browsers, such as Netscape, don't support iFrames. If you hav any suggestions on how to approach the problem, please let me know
[CS3|AS2]Profound Problems With Swf Menu Based Html Pages.
Dear Flash grown-ups;
I know this has already been discussed before, but I'm trying to make a site with HTML content, but a Flash menu bar. Menu buttons should change state depending on what the current page is, e.g. if you're on the Contact Us page, the Contact Us button is dimmed out as if unavailable. Since I don't know Java, the only possible method that I saw was making a separate duplicate of the same SWF menu for every page with the exception of the corresponding button in the menu being dimmed out in each duplicate. The obvious problem was that those SWFs would need to reload on every page load, resulting in a brief but significant (and annoying enough) disappearance and reappearance of the menu bar. At that time, logic suggested that this problem could be easily fixed by loading bitmap elements into MCs externally as opposed to importing them to the library. I naturally assumed that since all SWFs use the exact same bitmap files loaded from the exact same location, the aforementioned brief flashing would go away. How naive was that? I hit the wall and the deadline is closing in like the headlight of the chu chu in the tunnel. HEEEELP!!! :scared:
In addition to this, I'm experiencing yet another unexpected problem: aside from the main menu bar SWF, I also have a price calculation SWF. These two work fine if they are loaded into separate HTML pages; when both put on the same HTML page, however, they do not load properly/completely.
Any help would be super.
Thanks
PS. I read that the SWF menu HTML page thing can be achieved through iFrames, but my concern is that some browsers, such as Netscape, don't support iFrames. If you hav any suggestions on how to approach the problem, please let me know
[CS3|AS2]Profound Problems With Swf Menu Based Html Pages
Dear Flash grown-ups;
I'm trying to make a site with HTML content, but a Flash menu bar. Menu buttons should change state depending on what the current page is, e.g. if you're on the Contact Us page, the Contact Us button is dimmed out as if unavailable. Since I don't know Java, the only possible method that I saw was making a separate duplicate of the same SWF menu for every page with the exception of the corresponding button in the menu being dimmed out in each duplicate. The obvious problem was that those SWFs would need to reload on every page load, resulting in a brief but significant (and annoying enough) disappearance and reappearance of the menu bar. At that time, logic suggested that this problem could be easily fixed by loading bitmap elements into MCs externally as opposed to importing them to the library. I naturally assumed that since all SWFs use the exact same bitmap files loaded from the exact same location, the aforementioned brief flashing would go away. How naive was that? I hit the wall and the deadline is closing in like the headlight of the chu chu in the tunnel. HEEEELP!!!
In addition to this, I'm experiencing yet another unexpected problem: aside from the main menu bar SWF, I also have a price calculation SWF. These two work fine if they are loaded into separate HTML pages; when both put on the same HTML page, however, they do not load properly/completely.
Any help would be super.
Thanks
PS. I read that the SWF menu HTML page thing can be achieved through iFrames, but my concern is that some browsers, such as Netscape, don't support iFrames. If you hav any suggestions on how to approach the problem, please let me know
Getting Flash To Load HTML Pages Into Iframes In A Seperate HTML Page
Hi everybody
Does anybody know how to get Flash to load HTML pages into a seperate HTML page?
I'm currently running an animation within a webpage, and my client would like to be able to have some captions in HTML on the page that go with specific parts of the animation.
He wants the captions done in seperate HTML pages so that they can be changed into different languages at a later date.
I am loading these captions (HTML pages) into <iframes> on the page.
So far so good..... however...
I need to be able to get flash to load the HTML pages into the <iframes>, in certain points within the animation.
So... Does anybody know how to get Flash to load HTML pages into a seperate HTML page?
I'm guessing getURL is used somewhere, but I don't know the exact code.
Hope you can help!
Deadhands
Getting Flash To Load HTML Pages Into Iframes In A Seperate HTML Page
Hi everybody
Does anybody know how to get Flash to load HTML pages into a seperate HTML page?
I'm currently running an animation within a webpage, and my client would like to be able to have some captions in HTML on the page that go with specific parts of the animation.
He wants the captions done in seperate HTML pages so that they can be changed into different languages at a later date.
I am loading these captions (HTML pages) into <iframes> on the page.
So far so good..... however...
I need to be able to get flash to load the HTML pages into the <iframes>, in certain points within the animation.
So... Does anybody know how to get Flash to load HTML pages into a seperate HTML page?
I'm guessing getURL is used somewhere, but I don't know the exact code.
Hope you can help!
Deadhands
Html Pages In Flash
Hi i need help with this one.
I've seen sites that have html pages or asp pages in flash and i was wondering how do i do this.
Here's an example site http://www.vulcan.com/
as you see that when you click on a link it opens an html page inthe center of the flash movie. Please can someone tell me how to do this?
Using Flash In Html Pages
In one of my application I was required to use flash in my website. The flash movie has hyperlinks in it which on clicking should be visible in my web page. I am using a frames page. I want to embed my flash movie in one frame and want the hyperlink to open in other frame within the SAME PAGE. i am not able to do the same thing. Could any one help me out in solving this problem???
Flash Between HTML Or PHP Pages
I would like to have a Flash movie play between HTML pages. So the user would be on an HTML/PHP page, click a link to go to another HTML/PHP page, and they would see the short Flash animation, and then they would go to the page they had clicked the link for. I was hoping there was a way to do this where the same animation could be reused between other pages with a variable or URL for which page to redirect to.
Fortunately I'm working with someone whose Flash programming is better than my sorry skills, but I would like to know how (if?) this could be done before I propose it.
Some vague questions I have, can you have a Flash animation play and upon completion open a webpage in the same window? Can you send the variable or URL of which page to open as a Get or Post?
I hope this makes sense, and thank you in advance for any help!
Miriam
[MX] Help Me Please For Html Pages In Flash
Hi All How Are you?
I hope You Are Very Will
My problim, i need Ths soultion for My problim!!!
HOW I View Html Pages Inside Flash Swf..
How?
Can You answer me please?
I mean can I view For exmple This web site"www.flashkit.com" In my file flash "swf"
I can View Text File Form flash, I know that
But Html Page, i cant, and i search on the web, but not found...!!!
You can Help me, give me The Script in Flash, it can view web page from inside flash, same i farm in html..
but how i Can do this In flash.. rmember Inside Flash, and you can give file example... please please please
And Thnks You
Html Pages Within Flash
I want to open html pages (not websites) within a Flash interface . There will be items on each page that are for sale via PayPal.
Whats the best way to target the html pages to open up in a defined area in Flash and can I then do the normal PayPal shopping cart on each?
Thanks
Help Please... Flash Menu And PHP Pages
Hi all,
i've got a big problem that is certainly something easy to do for the good flash users you are .. so maybe you can help me ?... here is my problem...
There are 2 parts on my pages : the top contains the Flash menu, and below, there is the PHP pages. My problem is that, i can't find how to launch a php page just below my menu :
on(press){getUrl("page.php",_.....)};
I don't know what to put here _..... to make my php page open under my menu....
Thanks a lot... hope i was clear enough !!!
ninaa
Flash Jumping Out On Html Pages
hey i was on espn the other day reading a article when all of a sudden a puck comes outta the screento make it look 3d, how did they do it when i didnt see a container for a swf movie,os this a new feature in mx any tutorials on this
Flash Jumping Out On Html Pages
Can u tellme how this is accomplished on this web page.
http://www.weather.com/index.html
there is a nextel ad done in flash on the right where a man jumps onto the page with an umbrella. If the flash is contained in the box how do they make the remainding transparent
Flash Naviagtion And Html Pages
hi
i have a flash nav , but instead of having it link to different frames on the html, can i link to Anchors?
for example different parts of the same page?
Flash Buttons To Html Pages
Hi People!
Is it possible to have a flash button that is inside a movie created with flash that link's to a HTML page when clicked ?
Thank you so much!
J
Loading Html Pages Into Flash
Is there any way to set up a flash movie to search for and show an HTML page into the movie?
Are there any restrictions; for example for frames?
Thanks
Ecinele
Tutorial For HTML Pages In Flash
Hi,
Can anyone point my to a tutorial for learning how to load an html page in my flash movie. (not to be confused with loading a flash movie on my html page). It would be a great help.
Thanks,
Cramis1
HTML Pages In The Flash Site
ok, i am doing my friends website, and i am tryint o link up the graphics in the diff frames so its like a semi border but it just isnt working. so i want to make a flash site for him, and i know how to do everything i need exept one thing. you know how u can make an embeded frame in an html window, well i want to do the same in the flash file. so it wil be a flash page, with an embeded html page that loads the html files when u click the menu buttons. and what commands would i put to the buttons to load the pages into the embeded frame?? some one please help, thank you.
Insert Html Pages Into Flash
hi all, i am khader , really i am so thanx for ur help and i am alawyes back to ur great help,
acually i nned to insert an HTML page with in flash movie , for example i need click on abutton then open a HTML page inside the flash movie.
thanx for every one
Calling Html Pages In Flash
hii 2 all,
i am using flash mx 2004 pro. i am working on a project in which i have called images. now client wants some thing i can't explain to u but the solution is that i have to put html pages in that presentation. so does flash mc 2004 support this thing. plzzz help me as deadline is coming near. can i call html pages in flash(i mean in flash player no new window)
Display HTML Or Web Pages In Flash...
Hi All,
I am building a RSS viewer (which will be free, I'm fed up with RSS readers having to be purchased!).
Doing the reader bit is easy, but I want to allow users to be able to view the RSS linked web page in the flash player.
Is it possible to open a web page IN a flash movie?
Cheers
Carl
[::TILL THE END::]
Opening Html Pages With Flash...
i'm designing a site that has flash pages and html pages... all of the pages (even the flash pages) have a html sub nav below the flash content... i was wondering if there is any way to have a link inside a flash movie load an html page into the current browser window (not into the area of the swf)...
so that the links on the flash pages don't have to open a separate browser window...
like loading into _self (if _self meant the actual html page not the swf area)...
does that make sense? and if it does... can it be done?
Create HTML Pages From Flash?
Is there a way for flash to create HTML files without using cgi or php (locally)? We've got a CD program built in flash that needs to create formatted reports, and we were thinking that it would be perfect if we could create formatted HTML pages from the flash application...
Thanks!!!
Flash Navigation & Html Pages
Hi all,
I am working on a site that has a flash swf as the navigation and the rest of the content is html. The nav has drop down states that i would like to keep open when navigating to the different pages. The problem i am running into is the page reloading each time and the swf starting over each time. i am wondering if there is a workaround other than using iframes to control the content. Any help would be greatly appreciated. Thank you in advance.
Ryan
Autogenerate HTML Pages In Flash
Hi.
I'm building a webshop and I have lots of products. If I mouseclick on an image of a product, I want a new browser window opened with fixed size containing a larger image and more details about the product.
I'm really not sure wher to start doing this. Does flash have some tools for this, or do i have to send info to a PHP page to make this work?
I would prefer to have it all done in Flash, but if that is not possible i have to do it in another way.
bmolbach
Loading Html Pages With Flash
So here is my code,
ActionScript Code:
// Scene button
btnNext.addEventListener(MouseEvent.CLICK, pg1);
function pg1(e:MouseEvent):void
{
var request:URLRequest = new URLRequest("/videos1.html");
navigateToURL(request, "_blank1");
}
I'm using that with in my flash video player to load the next page, but i want it to load the url videos1.html within the same window/tab. But it opens a new tab in firefox, and who cares what it does in IE.
You can view how it works at http://pocker.homeip.net/videos.html
If there is any way to make it load in the same window/tab that would be cool.
Loading Html Pages Into Flash?
Is it possible to loade html pages into flash right?
If so do the html pages work just like it would if it was a stanld alone webpage ,when it is inside flash?
Laste Question how would one go about doing this?
This is what I am tyring to do is make the webpag in flash but there is a big part of the website that has to be html do to ites fuctions that it prefomes on the web. butt to keep unity I would like to load the html page into flash? Keep in minde that ther are buttons inside the html page that change images, text and more.
Just Me
MadWilson
Flash Loading Html Pages
I plan to create a website with frames, with one of the frames loaded with a flash menu bar for navigation. I see this all the time, but am not sure how it is done.
How can I get the flash buttons to load different html pages into different frames? I can't simply use the getURL command, can I?
Thanks in advance.
Flash Image And Html Pages
I do have an SWF sequence of images in the main html page. In the second page I do have sections. Each section has a title of an image of the SWF file. The role of this section is to describe the image.
I trying to whenever I click on each image of the SWF in the main page, I should be directed to its description in the second page, meaning, that the second page should be loaded and its scroll down bar should go down and stop where the specific section (describing the image I’ve just clicked on) starts.
Loading Html Pages From Flash
i have created a navigation bar, i want it to be on one part of my page and i want to put an inline frame page next to it, i want the menu so when i click a link it loads up a page in the inline frame which would be called "mainframe"how do i do this?
Flash Search For HTML Pages
Does anyone know of a good tutorial where I can use a flash form (input box and search btn) to search all the HTML pages of a certain website? There is one on Kirupa for using the Atomz search, but the free one uses ads-- don't want that.
I'm trying to use a javascript search that uses an HTML form, but I don't want to use the HTML form, I want a FLash form b/c the search form is in the flash banner. I don't know how to properly send variables to the javascript function from Flash so it knows which words to search for.
If there is even a PHP search that works with FLash, that would be great. I have searched the internet for a good while. Now I come to you. Maybe I can save myself some time if someone here can help a brother out .
Until then, the search goes on................................................ ......
View HTML Pages Into Flash
Is there any way to load a html page with tables & images into flash?
I use a TextArea component to load a html page with table & images, but table & image position is ignored
I made a simple example:
Look the image, the table have 3 rows. The 2nd row is the image.
Thanks.
Once Again About Flash Navigation On HTML Pages
Hi, guys.
Probably we all face this problem at some point in our lives. I'm trying to create a site with HTML pages and Flash based navigation, which basically means that the site content itself is standard in HTML/CSS format, but the main menu bar with the buttons and all is an SWF file. Needless to say, each lit-up button on the menu bar has to dim out on release and take to the corresponding page, e.g. clicking the 'Contact Us' button would cause it to dim out (as if unavailable) and open the 'Contact Us' page. Clicking a different button afterwards, would re-light the previous button and dim-out the newly clicked button and take to the page that corresponds to the newly clicked button, etc, you get the idea. There are 4 buttons for 4 pages.
Anyway, so far I've tried two methods which have failed:
Method A.
I exported four duplicate SWFs from the same FLA, with the only difference being the one unique button dimmed out and the other three lit up (a total of 4 combinations). Then, I put a different SWF on each page. This, the 'Contact Us' page would have the copy of the SWF with the 'Contact Us' button already dimmed out; the 'Home' page would have the one with the 'Home' button dimmed out, and so on. The obvious problem with this approach is that an SWF needs to load over again every time the page changes, which results in a brief, but, nonetheless, annoying enough blink. I hoped to combat this latency issue by loading all bitmap elements in the flash files externally, as opposed importing them to the library. I assumed that since all SWF copies accessed the exact same bitmaps from the exact same location, they would be cached in the memory somehow and not need to be loaded every time, so there'd be no latency. Then again, I was two days younger. This method failed. As Eric Bogosian's character said in the movie Under Siege 2, "Assumption is the mother of all"… (you-know-what-ups).
Method B.
At a couple of other message boards, I was suggested another technique, which would require only one single SWF. A guy gave me a tiny peace of Java Script that would use a variable to inform flash about which page is called so it would know which button in the menu bar to dim out. Although this technique rid me of the necessity to use multiple SWFs, it didn't fix the nasty blinking problem AT ALL!!!
Method C.
I was also advised to "put info in a div and generate server requests to bring the appropriate info up". "You need to use ASP or PHP or some other server language" he said. Well, ASP is absolutely out for me, so I won't even consider it. As for PHP, unless there exits a very simple and straight-forward tutorial with source files, which I could very easily figure out, modify, and implement for my needs, I can't get into it because since I don't know PHP, it takes me a really long time to learn how to do a simple thing with it, which is something I can't afford right now with my deadline and all.
I'm basically down to
Method D.
I basically want to put the page contents into an iFrame window. Even all drawbacks of using iFrames considered, I still thing this is the optimal way for me. So here's where I currently am on this:
I learned how to change the iFrame content using a function. Here's a simple test example, and here are the HTML and JavaScript codes for that example:
HTML Code:
<!-- This is the iFrame.HTML file code-->
<head>
<script src="changeurl.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><style type="text/css">
<!--
body {
background-color: #343434;
}
-->
</style>
</head>
<table width="800" border="0" align="center" bordercolor="#343434">
<tr>
<td><iframe runat="server" align="top" style="border:0px dotted purple scrolling = "auto="Auto"" frameborder="0" marginheight="0" marginwidth="0" name="login"
src="http://www.psychoform.com/htmlgallery/transformers.1.htm" width="800" height="400"
id="myFrame"></iframe></td>
</tr>
</table>
<p align="center">
<input type="button" value="change url"
onclick="changeURL('http://www.psychoform.com/htmlgallery/matrix.htm')"/>
</p>
Code:
//and this is the 'changeurl.js' file code
function changeURL(towhat)
{
document.getElementById('myFrame').src=towhat;
}
What I need now is to be able to call that JavaScript function and pass it the URL argument using action script instead. This tutorial explains how to do it, but I don't fully understand it and I'd appreciate it if you or anyone could elaborate how exactly I can apply that to my case.
PS. I really appreciate your time.
Loading Html Pages From Flash
i have created a navigation bar, i want it to be on one part of my page and i want to put an inline frame page next to it, i want the menu so when i click a link it loads up a page in the inline frame which would be called "mainframe"how do i do this?
|