ActionScript 3.0 :: Button In Flash Have Its URL In External XML Doc?
Jun 4, 2009
I have a swf movie at the end has an button. I want to have the URL that the button goes to be inside of an external XML file so that it can be easily changes for different languages without going back into the flash to change it.
I am an uber n00b to flash AS3. And it is not my intention to sound like a complete moron, but honestly, I have had a hard enough time figuring out just how to load an external .swf into my main file! add a button within the external .swf which will unload itself and load a new on in its place.
Right now in my project I have a main SWF that loads an external SWF that contains a youtube chromeless player. My issue right now is that the main+loaded swf are embedded in HTML and there is an effect on the site that moves the flash. I have the video controls in html/javascript but since I can't externally call fullscreen unless its a flash button the controls have a "hole" in the bar to allow a button in flash to poke through for fullscreen. Issue is that when the flash moves, so does the fullscreen button. Basically can a separate embedded flash swf just act as a fullscreen button for another embedded flash object?
I have a flash application in which there is a button. On clicking that button, a pps file should play. What I did is published the flash file in a projector format (.exe), created a folder named 'fscommand' and put the pps file inside that folder, and tried to launch the file lying inside that folder from this flash file by using following codes:
on (release) { fscommand ("exec", "file.pps"); }
Another way I tried which I found is:created a .bat file named launch.bat, put it in that folder & tried to launch the pps file via this .bat file using following codes:
I'm really new to using actionscript and am trying to figure out something that seems like it should be really simple. I have eight images on my screen and each one links to an external page.[code]...
Those eight images fade out one at a time while at the same time a new image is fading in with a different external link. This works great the first time through. But, when the first image fades back in, when you click on it, it links to the link of the second image. If you reset your cookies, it fixes itself for the first round again, but how can I make this work all the time?
[URL]I have: main.swf (a menu) and I have module.swf (content)If you navigate to Subsea Wellhead Systems/SS-15 BigBore II and click on that I have it load an external swf which covers most of the parent. So far so good. My problem is unloading the loaded 'Child' swf with the button provided on the loaded 'Child' swf.below is the code I used to load the file but I cant, for the life of me, find a way to unload it.
var bigboreLoader:Loader = new Loader();btnbb2.addEventListener(MouseEvent.MOUSE_UP, bigborecontent); function bigborecontent(event:MouseEvent):void{var bigboreRequest:URLRequest = new URLRequest("moduletemplate.swf"); bigboreLoader.load(bigboreRequest); stage.addChild(bigboreLoader);
I am certain it requires the Child to communicate with the parent somehow but I am at a loss. If I could get a bit of advice or a link to something deal with this, it would be a big help. I just need to have my links load my modules and the remove them when the close buttong is hit on the loaded swf. I promise I have done searches and I admit I have found asnwers but still they are not working. I found the code below:
Main FLA: function removeF() { removeChild(bigboreLoader); }
I used to do this fine with AS2 and now i'm struggling to get it to work in AS3.my code is as follows:
PW1.addEventListener( MouseEvent.CLICK,loader1 ); //==================== PS function ============================================= var ldr:Loader = new Loader();
I am trying to get a nav button in one movie (main_nav.swf) to target a my main movie (index.swf) and load a sub nav movie (metals_subnav_infinite.swf) into it. The sub nav movie will do a similar task - loading a portfolio swf into main movie (index.swf). Here is the file breakdown of my working files:index.swf - main final movie which loads "main_nav_infinite3.swf" on startmain_nav_infinite3.swf - loads main nav "main_nav.swf" and scrolls it infinitely (infinite menu)main_nav.swf - main nav with buttons that trigger sub nav "metals_subnav_infinite.swf" to load into index.swfmetals_subnav_infinite.swf - loads sub nav "metals_subnav.swf" and scrolls it infinitelymetals_subnav.swf - sub nav with buttons that trigger "folio.swf" (have not created this file yet!) to load into "index.swf"The script I was focusing on is in main_nav.fla and it is:
I am working on a project where I require to load an external swf movie in a container at frame3 when I click on a button at frame1. And at he same time the movie should fit exactly into that container. And at the end of the movie it should bring back me to the frame1, where all my buttons are there. Another thing is my first frame of the external movies which I have to load is blank so I want to load a movie directly from frame2 or a specific frame.
I have created a button in flash 8 to act as a play button for mp3 files on a website in drupal. I however am having trouble, since am new to ActionScript, to make the button load an external mp3 file without hardcoding it in the flash.
I have this following class attached to some of my buttons to simply control the roll over and out states, as well as the click event. But i want to use the same class on my buttons but would like to control a movieclip outside of the button somewhere else on the stage etc.
put simply: Clicking my button 'moveLeft' will move a movieclip left let say:
- 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.
Basically I have a swf portfolio site. I have to load anexternal swf that's the same size as the main swf site, which meansthat the close button (for the external swf) needs to be on theexternal swf. I have the load and unload code on the main swf, butI'm getting a 1120 error - it's not recognizing the instance of theexternal button....and I don't see how it would recognize it,unless there was some other way of linking the filesbtw - I'm fairly new to AS3 & AS2, but they're at leastmore fun than the Pascal & TSR-80 basic I remember fromelementary & middle school...:0)
I am loading swfs into a movie clip. However, the contact button is not a loaded swf any longer. It's in the main flash page. This is what I want to do. All the buttons load the external swfs except when I click on the contact button that is in the main flash page. I need to get the other buttons to load after I click the contact flash button. Below is the code for the contact button and the one under for one of the other buttons.
I recently created a site using the "Transitions between External SWFs" tutorial for Flash MX 2004. I use this to load the sections of my site into the main movie file. Each section is an External SWF file. When a viewer clicks on a navigation button, the specific external swf move will load and play. Currently, a viewer would need to click on another navigation option to close the current external swf file. I would like to add a close button to each of the external swfs so that a view has the option to close the window without clicking on a naviagtion link.
I want to use a button I've downloaded from an external web. They gave me this button in .fla format, and I want to use it on my own fla file, because I'm building a website entirely in flash.
I don't know the best way to modify that button ( text, link, actions, etc) and embed it on my own fla:
Should I load it individually on another flash session, modify it, export in swf format and then import it as a library for the other project to be able to use it ?
Or perhaps I'm able to import directly to my fla ?
I spent almost a week trying to figure out how to unload a currently loaded swf using its button and loading a new swf... I have three files, a main.fla, file1.fla and file2.fla. In my main.fla, I have a code which loads the other two files. If i will click the "unload" button in the file1.swf, I would like the main.fla to unload the file1.swf and load the other file, file2.swf. Here is the code to load the file1.swf:
[FMX] I am having trouble loading an XML file on an external server into my flash movie when it is uploaded. The data loads in fine when the flash file is on my local computer with the xml file on a server. As soon as the flash file is uploaded the XML data will not load in.
randomLoader.swf - It has two layers. One being movieclip layer for loading the external .swf files to. The other is the script layer with the following code:
Now if I just embed randomX.swf into HTML they work fine. But if I embed randomLoader.swf in the HTML to load a different randomX.swf file everytime the page loads/refreshes the button seems to show up but does not function. I get the hand but clicking it does not take you to the URL.
Should I be using Java or PHP instead to load the randomX.swf files? I like how well what I have already is working and I don't have to touch the page to update it to show new randomX.swf files. Just need to get Z buttons to work
I'm new here, so let's introduce myself at first: My name is Bram, I live in Holland. I am 16 years old and currently working on a little project for school. In the project you can click on stuff, and that loads an external SWF. Here is how I did that:
[Code]...
Okay. That all works, but now I want to make a button that removes the external SWF (and brings you back to the original SWF). how to do that? If you need my FLA, tell me; i'll upload it. PS: I did use search, but couldn't find anything.
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?
I'm working on a Flash project (which will eventually be published as an .exe - not sure if that makes any difference) which has buttons which need to open up external files.The external file will vary in type (there will be at least one button each for .pdf, .exe and .swf).I've managed to get this from various online help things:
Code: function f_testURLOpener() { var url:String = "BWorking.exe"; var request:URLRequest=new URLRequest(url); navigateToURL(request); }
I've tested it with about 5 different file types and it only seems to work if the url String begins with "http://". Even local htm/ html files don't open.