ActionScript 2.0 :: Loading External SWF Clicking On Section Of Menu?
Dec 27, 2009
Let me descibe the method of my website fuctionality first, The hole website builded with AS2, The menu of this website call external swf files with xml (each section have swf file and xml file). When I click on the first section of the menu the external swf file loaded perfectly but when I call the second one the first one appear again. I tried to clear the cache between each selection but the same problem exist.
View 3 Replies
Similar Posts:
Nov 19, 2010
This is the code I'm using with mp3 sound. I looking for some code when I click off, the music stops playing.[code]
View 3 Replies
Jun 23, 2011
I am creating an interactive slideshow, like a PowerPoint effect, I have a main scene, 4 Buttons, a Home Button, Play Button, Forward Button & Back Button. I want the Home Button to take me back to the start of the scene, Forward Button to Load a External swf slide and when the Forward Button is clicked again to Unload External swf and load in the next swf slide, I also want the Back Button to do a similar thing!
[Code]....
View 1 Replies
Jun 23, 2011
I am creating an interactive slideshow, like a PowerPoint effect, I have a main scene, 4 Buttons, a Home Button, Play Button, Forward Button & Back Button.I want the Home Button to take me back to the start of the scene, Forward Button to Load a External swf slide and when the Forward Button is clicked again to Unload External swf and load in the next swf slide, I also want the Back Button to do a similar thing!I keep getting External Swf pile-ups or flickering
Here's my code:
[CODE]
Play_button1.addEventListener(MouseEvent.CLICK, Play_btn1);
[code]........
View 3 Replies
Nov 6, 2009
I'm doing site menus in Flash/Action Script. Each top level menu heading is a button with a standard look and rollover/click that is highlighted. The code waits for a mouse-over and runs a function that moves the movie to a frame that displays the relevant drop down menus (with buttons) under the top level menu. When a dropdown item is clicked, the code runs a function and the appropriate URL is loaded.Everything works fine but here's my one problem (isn't there always one...?).
The top level menus always look the same on every page. It would be nice to highlight the top level button that corresponds to the page currently being displayed. For example, if the user selected About Us..History, then it would be nice to make the About Us top level button remain highlighted (over/down state) instead of reverting back to the standard look (up).1. What do you suggest as the most efficient way to do this? I know ther must be a simple way of doing it. I haven't used Flash variables but I imagine that calling the flash movie with a variable and then acting upon the value of that variable might be the way to go.2. How do I highlight a particular menu/button?Can I use code to cause it to display in over or down state instead of regular up state? Is it better to overlay a separate graphic showing the item in highlighted state?
View 1 Replies
Nov 30, 2009
Basically I have a site that will load an external .swf for each menu button to display the content for each page. I have found tried several methods to do this and all at least create a loader and display the default .swf without problem.
Heres the code...
***start code***
stop();
var xPos:Number = 0;
var yPos:Number = 125;
[code]....
My problem is I am getting the following error:
"1120: Access of undefined property event. var newSWFRequest:URLRequest = new URLRequest(event.target.name + ".swf");"
Now the buttons I have set up are text converted to a button. Not sure that matters as I have seen other instances where people create an object (retangle) covert that to a button and put the text inside of that as an instance of the retangle. I have even created a new .fla with just a single button creates with a retangle and the text as an instance of that and still get the same problem.
View 2 Replies
Feb 18, 2003
I need exact tutor for this kind of menu but instead of static text I want to incorporate a dynamic text with a scroll bar for each menu section.
P.S i found this file in flash kit.com but it doesn't explain anything.
View 2 Replies
Jun 6, 2005
I looking for and infinite menu (not exactly bcoz it stops on both side at the end) and also stops on the mouse over of the btn. I could figure out something with hover caption effect on it. bt not having like it is there in portfolio of [URL]..
View 1 Replies
Nov 8, 2006
I would like to use Sliding Menu (URL...) on my web site,how to I load the external movie when user lands on let's say slide 3 (content3)?From actions script given on page URL...Then, when user go to another slide, I would ultimately would like to unload/stop the loaded swf movie
View 2 Replies
Feb 11, 2010
My project is PC software and not related to web.It contains of Main menu and 3 external SWF (Total 4 Files).Inside the Main-Menu 3 buttons , when the user click on button # 1 or # 2 or # 3 I want a code to unload the main menu first then open external swf # 1 or #2 or #3 depending on which button user click.I use this code to load the external SWF:
Code:
var myLoader:Loader = new Loader;
addChild(myLoader);
var url:URLRequest = new URLRequest("f1.swf");
myLoader.load(url);
Its working fine but the problem it load the external swf with the main menu in the same time! what I want a code first unload Main-menu then loading external swf. and another code in external SWFs to exit to Main-Menu with ofcorse unload the swf first then exit to main-menu.
View 5 Replies
Mar 25, 2011
I'm creating an application where the user uses the Arrow Keys to navigate around the menus and Spacebar to continue. On the first screen is the main menu that launches external swf's. (I have it as an exe). When I play the external swfs individually in the Flash Player.......the navigation is perfect and runs smoothly. But when I launch the external swf's through the first screen (menu).....the loaded swf becomes very slow/sluggish to react when I hit the Arrow Keys. (E.g. have to hit the arrow key 3/4 times before it moves). The frame rate in each fla is the exact same. I use the levels to launch the external swf. I have also used the "load into an empty movieclip" and the outcome is still the same. I'm using CS5.
View 5 Replies
Jul 29, 2011
I found some handy script on xml flash menu, in which I've modified the code to how I would like everything to look and behave. Only, because I am new to this business of not having anything on the timeline, I do not know how to set the menu buttons as links to external swfs. I would like the buttons (menu items) to load an external swf into a holder on click. Then I would like the menu to collapse as it does when another main menu is clicked.
View 2 Replies
Sep 26, 2010
now we all used to disable the menu until new section of our site gets animation but how do you handle user repeatedly abusing for example back button on the browser when moving though your website?
View 1 Replies
Jun 17, 2009
I have a site that will load an external .swf for each menu button to display the content for each page. I have found tried several methods to do this and all at least create a loader and display the default .swf without problem.
Heres the code...
***start code***
stop();
var xPos:Number = 0;
var yPos:Number = 125;
[Code].....
Anyway I have no idea what else to try and cannot seem to find anymore information on the subject. Every description of the error just tells me that I haven't nammed something right but I have tripple checked every button and it looks right.
View 3 Replies
May 10, 2010
I am trying to load a menu as an external file .... and getting this :
TypeError: Error #1009: Cannot access a property or method of a null object reference. at com::menu()
Here is my code:
if(!menuLoader){
var menuRequest:URLRequest = new URLRequest("menu.swf");
var menuLoader:Loader = new Loader();
menuLoader.load(menuRequest); container.addChild(menuLoader);
menuLoader.x = 700; menuLoader.y = 50;
}
View 9 Replies
Jul 6, 2002
If i set-up a scene with buttons and interface i want to press a button to load a movie but not covering the whole page (template) just to be shown in a section, how do i got about doing that?
View 1 Replies
Feb 27, 2005
I have a problem whereby I want to, on a click of the button on the main scene, it will target a certain frame label instead of playing from the start of an external movie clip. Is it possible? Something like gotoAndPlay("Scene 2", "play"); but it is an external swf.
View 2 Replies
Feb 27, 2005
I have a problem whereby I want to, on a click of the button on the main scene, it will target a certain frame label instead of playing from the start of an external movie clip. Is it possible? Something like gotoAndPlay("Scene 2", "play"); but it is an external swf.
View 2 Replies
Mar 9, 2009
I have a button that I would like to use with the basic actionscript as follows:
on (release) {
this.gotoAndPlay("15");
}
What I would like it to do is play a section on the timeline and then move onto another section or scene.
[Code]....
I know this is incorrect, so would anyone know how to write an actionscript button that plays a section then goes somewhere else?
View 4 Replies
Aug 31, 2008
Normally I'd not post my questions in this forum but this is a exeption .Anyway how can i prevent the menu from showing up when right clicking the mouse button in flash runtime?EDIT: I learned that it's not possible to completely hide it in as3, but it's possible in as2 though, or when using html. You however can hide everythng in that list except for "settings" and "show redraw regions"
View 2 Replies
Nov 21, 2011
The following code provided by Mr. kglad works great in loading an external .swf file onto stage. Now, when I click on Contact (Button), the external .swf file to be removedcompletely. How to code on contact (Button) to work it out.
Gallery.addEventListener(MouseEvent.CLICK, GalleryClick);
function GalleryClick(e:Event):void{
if(currentClip != Gallery_mc){
[code].....
View 3 Replies
Sep 30, 2003
i have a movie and want to load external swf files into the middle section. my navigation allows users to access from 10 buttons. i can load the swfs either thru createEmptyMovieClip, or loadmovieNum. but i can't seem to control the levels. that is previous movies can be seen underneath the new loaded movie... i need to clear previous movie clip before loading the next, here is createEmptyMovieClip code.
this.createEmptyMovieClip("generic_mc",2);
generic_mc.x=0;
generic_mc.y=62;
[Code].....
View 6 Replies
Jun 29, 2009
I am having problem with flash main menu it reloads when ever you click a different button to another page on it. I am using Adobe Dreamweaver CS4 and Adobe Flash CS4 Professional. Is there any codes that can create some kind of cache so we can open next page without reloading flash?
Site:
replace (dot) with "." please
[URL]
View 1 Replies
Jul 30, 2010
I would like to be able to click a button on a flash menu, programmatically.
This means, unfortunately, that tabbing over to it or hard-coding the X and Y coordinates of the button will not work (due to using multiple threads, neither of these approaches works while running in the background).
I tried doing this with Javascript, but automating it that way does not work because the individual items are inaccessible in Flash.
The reason I'm asking is because I'm attempting to load-test our application which interacts with a flash menu in order to build a report. From what I can tell, the low-end or open-source load-testing utilities don't offer much support in the way of flash navigation.
View 1 Replies
Dec 17, 2003
on [URL] what is the word 'section' in _root.section? I assume it is a movie clip instance, but can't seem to find it on the timeline.
View 2 Replies
Mar 28, 2010
I have a problem with my slideshow script. I have embedding a flash video file into my website with this slideshow called monoslideshow, and everything seems to work perfectly. Trouble is, when I am clicking on another menu button that should jump to another frame, it still keeps playing the video and sound while displaying the new menu data.So I will probably need some code that stops the video instantly, when another menu button is clicked. But how do I write it and where do I put it?
Here is my actionscript for the video file to show:
var loaderSlide:Loader = new Loader();
var monoslideshow:Object;
loaderSlide.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoadComplete);
addChild(loaderSlide);
[Code]...
It would be great to get a solution to this problem, otherwise my website will be kinda messy ;)
View 1 Replies
Feb 19, 2007
I want to say that the code I am working with is the same found here: [URL] The code is working perfectly (pictures are displaying) when opening the file, work_diesel.swf by itself. However, my problems occur when I open default.swf, and then navigating to the section work. From there I hit advertising, and in that section DIESEL. HERE is where the problem is visible. The pictures are not loading AT ALL when doing it this way (the correct and final way).
I am just wondering if anyone can pin point the problem for me so I can change it. It must be said that the work_diesel.swf is loading from an external source into default.swf.
View 3 Replies
Oct 16, 2009
I am autoplaying a FLV in a SWF in scene 1. I have created buttons on this same scene that will do different things, and present different information. I really want that button to pause that autoplaying video when it starts those actions. How can I accomplish this?
View 6 Replies
Oct 20, 2008
I have a button on stage names voices. When it is click the video component should play voices.flv.
Here is my code.
import fl.video.FLVPlayback;
import flash.events.MouseEvent;
voices.buttonMode = true;
voices.addEventListener(MouseEvent.CLICK, video);
function video(event:MouseEvent):void {
flvplayback.source = this.event.target + ".flv";
}
I get this when I click on the button:
Error #1010: A term is undefined and has no properties.
View 1 Replies
Feb 21, 2011
Ive just created my first web site in flash.it very simple and composed of three SWF files:my html index call my main.swf file. In this first main.swf the user can select his language.Whether he selects espanol or english button in the main.swf, it loads an external swf file (espanol.swf or english.swf)
the code in my main.swf file to load the external files is[code]...
View 0 Replies