ActionScript 1/2 :: Defining A GetURL From An External XML File Into Flash

Feb 25, 2011

I'm stuck with defining a getURL function while loading an external XML file.
 
I have a Flash AS2.0 file and I've made it CMS driven. The content for everything in the SWF file is loaded from an XML file which resides on the same server. I've defined all other XML variables and I'm able to successfully parse them inside a holder MC I have in my Flash file. Some of the many variables I have are name, caption, thumbnail img, large img, etc... I've also defined the XML file with a 'Link' that points to a URL relative to each image it loads.
 
I'm unable to define the function in Flash to retrieve the URL from 'Link' parsing value stored in my XML file.
 
I tried defining a function called getLink in actions layer of my Flash file:

getLink = function () {
getURL('Link[ID]','_blank');
};
 
The ID is loaded in the beginning of the Flash file - based on the number of values available in XML file. All other functions work, except this getURL function.

View 1 Replies


Similar Posts:


ActionScript 1/2 :: GetURL From An External Text File?

Aug 7, 2009

At the end of the flash movie I want it to getURL from an external text file.Is it kinda like the way you do it with a button?

View 3 Replies

ActionScript 2.0 :: Have A Button Load It's GetURL() Deal From An External File. XML?

Aug 2, 2005

I need to have a button load it's GetURL() deal from an external file. XML? Txt?

View 2 Replies

IDE :: Use External Parameters In Defining An Swf Object In Html?

Jul 5, 2009

is ist still possible to use external parameters in defining an swf object in html?

[Code]...

View 3 Replies

ActionScript 3.0 :: Defining Functions In A Separate .as File?

May 5, 2010

I would like to know if this is actually possible in AS3. I'm not really fluent in Java-style programming, but very used to C++'s .cpp and .h file system. Right now my functions are defined where my class is defined, so as you can imagine, my classes look incredibly untidy and disorganized.

[Code]...

View 6 Replies

Actionscript :: Open Swf File In Stand Alone Flash Player From GetURL() Action?

May 26, 2010

I would like to open a separate swf file from with in flash, but by default, it opens the swf in a browser. I would like this file to open in a stand alone player not in the browser.How can I achive this? Right now I'm using the getURL() action. Is there a separate function for opening a file at a specified filepath?

View 1 Replies

ActionScript 2.0 :: GetURL With Loaded External Swfs?

Jan 10, 2010

I have a swf (a.swf), which loads another swf (b.swf) into it.b.swf then has a getURL call in it.

Code:
on (release) {
getURL ("http://www.google.com/", "_blank");

[code]......

View 1 Replies

ActionScript 2.0 :: Call External Js Function With Time Dealy On GetURL?

Feb 9, 2009

I have a simple getURL below and have been looking around for a way to #1 - set a time a time delay#2 - call an external js function#3 - load my page

butMov.onRelease = function () {
getURL("http://www.mysite.com"+myURL);
}

View 4 Replies

ActionScript 3.0 :: Remove / Unload External Swf File(s) From The Main Flash File And Load A New Swf File And Garbage Collection From Memory?

Sep 12, 2009

I can't seem to remove / unload the external swf files e.g when the carousel.swf (portfolio) is displayed and I press the about button the about content is overlapping the carousel (portfolio) . How can I remove / unload an external swf file from the main flash file and load a new swf file, while at the same time removing garbage collection from memory?

View 15 Replies

ActionScript 1/2 :: GetURL() To A .doc File

Mar 22, 2010

So we have some web-based training that we are making. Using CS4 to publish to Flash 7 and then the page is running in IE 6. (Got to love them corporate policies!) We have some resource documents for the users to download. Usually we make them pdfs and use getURL() and the files work just fine. However, this time we have a file that we want to keep as a .doc type. The code is:

[Code]...

View 3 Replies

ActionScript 2.0 :: How To Execute A JS File In GetURL()

Jan 16, 2009

If I write a bunch of functions in a js file and host it on [URL], how can I use getURL() to make whoever sees my flash on the same host to execute the js file?

View 2 Replies

ActionScript 2.0 :: Execute *.bat File Using GetURL?

Jun 18, 2009

Is it possible to execute *.bat file using getURL? Like example something like: getURL(file_for_running_the_other_funcions.bat); or do you know some ways to run the bat file instead of that?

View 0 Replies

ActionScript 2.0 :: GetURL - Cannot Download Doc File In IE

Sep 22, 2006

I used getURL like this to download a .doc file, in Firefox it's oke but in IE it's doesn't work.
Code:
on(release){
getURL("[URL]", "_blank");
}

View 2 Replies

Professional :: GetURL To Link To A Local Htm File?

Sep 23, 2011

Trying to set up a getURL to link to a local htm file, NOT a page on the internet. All the tutorials I have read tell me how to link to a file on the internet I'm trying to set up an intranet site for my training college where students can access training resources etc on the local network. Therefore my getURL needs to point to a local file, not one on the internet. I'm trying to link to a .htm file that resides on my computer. Does the htm file have to be in the same folder as the .fla file?? How do I do this?? I'm working on a Mac, Os X, MX 2004, if that makes any difference.

View 1 Replies

ActionScript 2.0 :: GetURL - Getting Firefox To Open File From Exe When FF Is Set To Default Browser

Dec 21, 2006

Is there a work around to the getURL Firefox issue? I am having trouble getting Firefox to open my file from my exe when FF is set to my default browser. If FF is already open, the getURL functions fine. If FF is closed, I have to click on my button twice in order to open the file (ie, click once opens a blank window, click again and the file opens) I have FF 2.0.0.1, Flash MX 2004 Prof. I have tried setting an interval to have the getURL fire again but I can't seem to get it to work.

[Code]....

View 2 Replies

ActionScript 2.0 :: (Flash CS3) Defining Variables To Different Buttons?

Nov 24, 2010

I'm trying to assign actions to various buttons for a website I am building, however I would also like to play a little movie first each time before linking to their individual different frames. The movie is the same for each button but then, obviously each button ultimately needs to link to a different frame. I'm guessing a nifty mix of gotoandPlay and variables are the answer but I'm getting myself in knots.

The structure of the site is as follows.On the main stage I currently have 4 frames. Each frame contains a different "page" of the website. The "home" frame has the navigation bar (including a sub-menu movie which has a number of buttons nested inside it which I think is going to be tricky). At the end of the "home" movie, there is a little fade animation which is labeled/ red flagged on the timeline - and it's this little animation I would like to have playing when a button is clicked on before linking to another frame.

At the moment the best I can manage is that when the button is clicked it goes back to the beginning of it's movie (a problem with the target paths perhaps?) as opposed to a label within the parent movie.I also think where I'm getting confused is exactly where I am supposed to define all the various variables and pieces of actionscript. The little snippits of code I have are as follows: Within the button I am trying to link, so far I have:

on(release){
_level0.frame_to_goto = "artwork";
play();
}

The "artwork" tag is the frame specific to that button (this is one of the sub-buttons that is nested within a submenu movie).Then in the movie for the webpage I have the following in the last frame of the mini animation that I want to play before the button links to the artwork frame:

stop();
if(_level0.frame_to_goto != undefined){
_level0.gotoAndPlay(_level0.frame_to_goto);
}else{
trace("An error as occured!");
}

View 7 Replies

ActionScript 3.0 :: Flash Defining An Object Name From A String?

Jul 23, 2011

I think I am on the right track here but if someone could help that would be great. I have a piece of code that loops ON_ENTER_FRAME and it is used to check if a pistolBullet is hitting a barrel.

The problem I have is that I can check for collision of a barrel, if I manually type the name 'barrel', 'barrel2' etc within this code:

[Code]...

View 5 Replies

ActionScript 2.0 :: Flash File Reading An External Text File For The Content?

May 16, 2005

I turn to you for help, dear sweet Kirupa Forumites. First, let me explain the problem: I have a flash file reading an external text file for the content. Everything works perfectly for nearly everyone - you click a menu button, and the content text comes up fine. However, a couple of people have found that the text shows up as "undefined". I have checked the player versions of the people where it doesn't work, and it is the same as for those where it does work, so that ain't the problem.

I don't understand why it works perfectly for nearly everyone, but a small number of people have this "undefined" text problem. It seems to be a problem with loading the external text file, but I don't know why. I have a main flash movie, and load the text in the first frame, using the following:

var my_content = new LoadVars();
my_content.load("content.txt");
my_content.onLoad = function(success){
if (success){

[Code]...

I then have a couple of dynamic text boxes in the main movie - one called ErrorText (for displaying an error message to the user) and one called ContentText (for displaying the content). I use an external menu swf which jumps to a specific frame in the main movie, depending on which button is clicked. Actionscript on the main movie frame for the first button does the following, with the other frames similarly configured:

ContentText.htmlText = my_content.content1;
stop();

My external text file is properly configured (content1=blah blah&content2=other blah blah) etc.

Does anyone have any advice on how I can solve this particular weird problem??

View 3 Replies

ActionScript 1/2 :: Load An External .swf File Into A Precise Location On The Stage Of Existing Flash File

Nov 20, 2009

All I'm trying to do is load an external .swf file into a precise location on the stage of my existing Flash file. I've spent an hour and a half on this site search and found nothing. What do I add to my loadMovie command to place the file at specific x,y coordinates?

View 3 Replies

ActionScript 1/2 :: Importing A SWF Within Flash File From An External File

Nov 16, 2009

basically i imported a SWF within my flash file from an external file and only the randomize button works on the file none of the rest from the imported flash can anyone let me know why, if you need me to let me know and i will upload files

View 1 Replies

ActionScript 2.0 :: Loading A External Text File To Flash And According To The Number Present In The Text File

Apr 25, 2009

I'm loading a external text file to flash and according to the number present in the text file i'm trying to do a IF - ELSE command. It's not working coz the value I load from the external file is string. How can i get this as intiger.

View 2 Replies

ActionScript 2.0 :: Add GetURL() In Flash Xml?

Feb 20, 2009

I want to add getURL() to flash xml gallery images.

at present my script is loading external images fine. but i need to give images hyperlink. [code]...

View 9 Replies

Html :: Styling HTML Links Within A Flash File Without Using An External CSS File?

Mar 6, 2011

I am having a nightmare using CSS to style HTML within a dynamic textfield in my flash doc. From what i now understand after much trial and error and reading online, CSS doesn't even work properly in flash even for the tags that it does understand (which are few and far between anyway). For some reason my layout is getting completely screwed up in certain scenarios (predominantly when there are images present too) when i hover over links (which are styled in an external CSS file). If i remove the external CSS styling (which only contains the following simple code):

a:link {text-decoration: none;}
a:active {text-decoration: none;}
a:visited {text-decoration: none;}[code]....

Then everything works fine (but no links are underlined as standard or on hover). Does anyone know of any way to style the links without using an external CSS file (all i want to do is have no underline as standard and then underline them on hover). As this is from user input into a text editor I cannot place these links manually on the page in flash as they could be anywhere, I need a way of parsing the HTML and then displaying it accordingly.

View 1 Replies

Flash :: External Xml File And Loading?

Jun 28, 2006

I'm calling an external xml file and loading it into Flash. I can only pull the varables out in the onLoad function. Here it is.

var courseXML:XML = new XML();
courseXML.ignoreWhite = true;
courseXML.load("presentSlidesOne.xml");
courseXML.onLoad = function(bSuccess:Boolean):Void {

[Code]...

View 5 Replies

Professional :: External .Txt File In Flash?

Jun 9, 2010

I have a flash file .swf that uses an external .txt file. I have both documents and when I play the .swf in the player it works fine but when I import the Flash into Dreamweaver the .txt file doesn't appear in the flash.I have to get this site to launch by Friday and I have about 20 of these files to sort out.

View 5 Replies

See All External File References In Flash?

Sep 12, 2010

I need to update the dynamic text in this flash file I have and export it to SWF. I've looked at the actionscript in all the frames and symbols but the only thing I've found so far are "stop();" 's

I tried exporting this to SWF to see if the file size was the same as the current working version on the site, and it was about 15kb smaller, and does not work at all.

How can I see all external file references in flash? I need to be able to tell my boss which files are needed or at least what is missing.

View 5 Replies

Get Flash To Pull From External As File

Aug 15, 2011

What I'm trying to do is to get flash to pull the actionscript from an external as file.[code]

View 2 Replies

Flash :: Playing Swf External File?

Dec 19, 2011

I want to play a external SWF file (which is in server) in client side. It is working when I run through flash, but when double click on .swf it shows a dialog box:

Adobe Flash Player Security To let this application communicate with the internet click Settings.

So what settings do we need to change to play the swf file?

View 1 Replies

ActionScript 2.0 :: Save File From Flash Game And External Flash Subgames?

May 4, 2010

how to create save files for flash games. So far, so good. But here's the problem: To improve game loading performance, I was thinking of loading external flash files. Instead of building everything inside the same .fla file, I have one main .fla file, and one or two other .fla files loaded when needed.

The flash I want to load happens to be this mini computer used for puzzle solving and can unlock new applications. And this is my problem: I want to create a save file for the game -and- for this mini computer, which is an external flash file, so it keeps track on many apps have been unlocked. Save the progress from both the main game and the mini-computer. Is it possible? Or is it better to make everything inside the same .fla instead of multiple .flas?

TL;DR: Is it possible to create a save game for a flash game AND its external flash files being loaded in the same game? If so, how can I make it happen?

View 1 Replies

ActionScript 2.0 :: Replace Text Loaded From An External File With Text From Another External File?

Nov 9, 2005

How can I replace text loaded from an external file with text from another external file? Using setInterval and calling the .load from a function or something? In the example below I'm calling an external text file, could this also work with an .xml file with cycling through the children?

[Code]...

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved