ActionScript 2.0 :: Embedded Flash Menu Causes Html Pages To Jump?
May 14, 2007
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;
I have created a website with one flash animation banner.The banner .swf has 5 menus. Each menu goes to different movieclips inside the .swf file. and at the same time i want to load the corresponding html file when i click the menu button and place the html content into the bottom area of the main html page without refreshing the html page.
I'm using Adobe CS4 Professional flash to create the basis of the website, a photo background with an interactive menu overlay on top. Does anyone know any good tutorials for an interactive menu (roll you mouse over certain things and the sub-menu comes up which lead to other pages of the site etc.)
I'll try again, but this time I can add a link to the .fla my issue is this - I am building a website but the pages jump around - they don't stay still like they should[URL] the file is called "all files" - the main .fla is called "history" - there are two .swf's "wagon" and "band" if you test the website (CTRL+ENTER) and jump around between the pages for 20-30 seconds you will notice the pages jump around like crazy by themselves.
Is there a solution to have the background audio/music play across multiple page on a website, WITHOUT restarting on every page load.The website currently uses a frameset, but I'm looking for an alternative.
I have AMFPHP installed on my server. I have a flash app that can call it's methods. I want to create some HTML (on server created) pages which will contain HTML code and results of AMFPHP functions. How to create such thing?
I made a flash mp3 player and it works fine in any other test pages. but when i embed it onto my site it just shows blank. what do i do? my site is [URL] and the flash player i tested here [URL] and it plays. What im i doing wrong? i tryed everything. right now i just got it in a iframe but i dont want that iframe.
I'm working on a web menu, that has sub menus. I'm currently trying to get the sub menu to jump back to the main menu if the mouse is no longer inside the submenu zone.
It works if I move the mouse quickly to another part of the Flash area, but if I quickly move it out of the Flash area and onto say the html document, it doesn't update fast enough, and thus still thinks the mouse is hovering over it.
I know I can simply update the movie frame rate which does work, but I was wondering if there is any way to get Flash to check to see if the mouse IS ACTUALLY ACTIVE over it, and if not close the submenu?
I'm trying to use a button in Flash to jump to an anchor at the bottom of my php page. The swf is in a php pagetop include and the anchor is in a php pagebottom include. The code is:
btnNewsletter.addEventListener(MouseEvent.CLICK, clickHandlerContact); function clickHandlerNewsletter(event:MouseEvent):void { if(event.target == btnNewsletter) {
I have created a twitter API in flash using ActionScript 3.0 which loads the latest feeds from a user by using the screen name of the twitter user. When I test the swf locally it works fine. But the problem comes when I embed the swf in html page.The swf loads but does not show the content where it needs to access the TWITTER url to load the feeds.It doesn't load the feeds. It asks for the global settings to be changed.So, I have changed the settings and played the html page.I works fine.My question is when I will upload the files to a server the same problem will come and it will not load the feeds. How to solve this problem permanently?
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.
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:[code]What I need now is to be able to call that JavaScript function and pass it the URL argument using action script instead.
I was wondering is there a way to have an embedded swf navigate to different pages of a pdf?
Example:my swf is on page one. There are mulitple buttons in the swf, when clicked it will take you to page 3, or 5, or 7, etc.
Currently, when I click on a button, it DOES take me to say page 4, but the content on page is the SWF file from page 1, and not the content that is suppose to be on page 4.[code]...
I have continued to find a resolution and have had no luck. My website has 5 flash buttons (tabs) to take you to a new html page. Each time you go to a page the button seems to have to re-load creating a "white blinking" inside the cell. The background of the fla file is black and I have the table cell background set to black hoping thatbut to no avail. I thought once a swf is loaded it won't have to re-load. The swf files are the same on all pages
writing actionScript code. I'm not an actionScript developer and have been trying to get this to work for hours.The requirement is a script that receives a parameter via javascript. The parameter is a url for a remote html web page.The script needs to load the contents of that html page into a string variable and then call a javascript function passing it the html as parameter.
Let's say I have a plain HTML website. More than 80% of my visitors are usually from search engines like Google, Yahoo, etc. What I want to do is to make my whole website in Flash.However, search engines can't read information from Flash or JavaScript. That means my web page would lose more than half of the visitors.So how do I show show HTML pages instead of Flash to the search engines?
Note: you could reach a specific page/category/etc in Flash by using PHP GET function, for example: you can surf trough all the web pages from the homepage and link to a specific web page by typing page?id=1234.
Does anyone know of a good way to pass variables between flash movies on different html pages? Should I use a flash cookie? pass the variables in the URL of the html file and then try to get them back out on the next page?
I've found an example of this [URL] If you click on the mute button at the top, then navigate to another page, the mute button stays clicked. I have a decompiler, and pulled the code out of it. See below:
- I made a flash-based website using Flash CS3 and then embedded the file into a blank html page with Dreamweaver cs3.-All my buttons, linking, and content were made in Adobe Flash CS3 using ActionScript 2.0 (AS2).The issue I am encountering is that when i click on some buttons that have get URL codes, they will not load the html files assigned to the As2 code of the button. The html files are supposed to load in a separate browser window for each html page assigned to each button. The html files are located within subfolders in my Main Site Root Folder.All my AS2 code is Object-based; meaning I applied it directly to my button symbols.
I made a flash-based website using Flash CS3 and then embedded the file into a blank html page with Dreamweaver cs3. All my buttons, linking, and content were made in Adobe Flash CS3 using ActionScript 2.0 (AS2). The issue I am encountering is that when I click on some buttons that have get URL codes, they will not load the html files assigned to the As2 code of the button. The html files are supposed to load in a separate browser window for each html page assigned to each button. The html files are located within subfolders in my Main Site Root Folder. All my AS2 code is Object-based; meaning I applied it directly to my button symbols.
I'm trying to create a website that is basically a flash toolbar that directs the user to different HTML pages at the bottom, much like this website here.
[URL]
Do I build the bar in Flash and then the HTML portion in dreamweaver or do I build it all in Flash? Would an iFrame work for this sort of website?
I want to have a flash movie on my web page, it will have some buttons with animations. Is there posiblle to jump somewhere in the same web page (anchor) if I press button in flash. How can I make button like that.
I have made a html file in which a swf is embedded with swf object. this swf contain dynamically loaded audio files. It works fine in offline but when it is uploaded it does not show the movie(swf is not playing) I see only empty space. i thought that it may take time to load, but even after waiting for long time the swf did not play and it shows blank white space.
Right now it is making the space behind the .swf file clickable for the link, but the Flash element is not clickable.
If the right thing to do is to edit the .swf file somehow, I don't consider myself a Flash developer, but are there any resources on where to get started or how to do something this basic with an existing .swf file?
How should I change the following code if I want to put my flash object into a directory named "flash/", I tried changing the value to "flash/photo.swf" but it didn't work.
When i embed a flash video in HTML it works in IE and in Firefox but not in chrome. I've looked it up and I've found that chrome adds two attributes to the embed tag, width and height. i have already set the width and height attribute in the embed tag in pixels but from some reason chrome changes it to percentage. when i inspect the element and write pixels instead of percentage the flash is visible again.
I had a flash template with nav button menu and sub button menu, in flash player the menu and sub menu works for different pages, but sub menu do not work in web page, whatever page goes, it always load sub menu for home.
Looking for a tutorial to make individual pages (jpg or gif) into swf pages so we can add links in an on-line flip book. I have flash, but have not learned as of yet.