ActionScript 2.0 :: To Call Swf External Xml Does Not Appear

Jan 22, 2005

I have my main file that has the normal menu that he would be principal.swf, I is using this to call the other .swf that he would be noticias.swf, that would have a project of the news in xml.[code]my problem is following, when I compels my file noticias.swf it appears normal with the news, but when I am in the file principal.swf and click in button 2 menu it brings me the file noticias.swf but without xml, xml does not appear no way, somebody knows as I can fixed this?

View 2 Replies


Similar Posts:


ActionScript 3.0 :: External Interface Call Doesn't Work With Function That Is On External JS File

Apr 17, 2012

I am using in AS3 "External Interface ". When I call the JS function that is on the same page as swf everything works fine.

I added a link in the html page to an external JS file, when I move the JS function to the external JS file the website crushes.

I would prefer to have all my JS functions on an external file so I can use them in the future in other project and it also makes it easier for me to update the site.

how to call a JS function that is on an external file from AS3?

View 6 Replies

Javascript :: Reference The Html Object That Made The Call To SomeFunction Directly Using The ExternalInterface.call Call?

Jun 28, 2011

i have some actionscript that makes a

ExternalInterface.call('someFunction');

call.is it possible to reference the html object that made the call to someFunction directly using the ExternalInterface.call call?

Assume that the object that makes the call also has some Callbacks (via ExternalInterface.addCallback) that are accessible via javascript.

Currently:

Actionscript source
ExternalInterface.call("someFunction");
ExternalInterface.addCallback("someCallback",someASfunction);

[code]....

View 1 Replies

Javascript :: External - Call A Function By URL

Apr 12, 2011

I have an ActionScript program that I want to access some external JavaScript functions. By external, I mean that the ActionScript/swf aren't going to be loaded via the HTML/JavaScript. Everything I see recommends ExternalInterface, but that seems to imply that your JS loads your swf. Is there a way to call a JavaScript function by URL?

View 2 Replies

Php :: Protect Files From An External Call?

Jul 26, 2011

I've got a Zend Framework project with an admin area. In the admin area is a Adobe Flex (Flash) application to create, save and open pdf files. The pdfs are stored in http://localhost/public/pdf/.Is it possible that only the flex application (logged admin) has the permission to open the generated pdf files?How can i protected the files from a direct external browser call eg. through http://localhost/public/pdf/mysecret.pdf

View 2 Replies

Actionscript 3 :: How To Call And Use An External Class

Mar 19, 2012

I have this cool As3 MP3pitch package, which I got from here:

package components
{
import flash.events.Event;

[code].....

View 2 Replies

ActionScript 3.0 :: How To Call External Swf's Function

Jan 13, 2009

"sayHi()" private methods and it's exposed though ExternalInterface.addCallback.As you know, i can't call that methods directly like below.

ActionScript Code:
var loader:Loader;
var req:URLRequest;

[code]....

View 5 Replies

ActionScript 2.0 :: Where To Call External .as Files

Dec 12, 2006

Im using external .as files to hold some of my functions, however if i include a function inside a movieclip, that its held in an external .as file, it needs

Code:
#include "someActionscript.as"

before it to work, surely this cant be the way to call your .as? As this means everytime I change the verison numbers on the .as file, I have to update every part of the fla which calls it...

View 3 Replies

ActionScript 3.0 :: Using A String As A Key In An External Call?

Apr 1, 2009

I am having an issue using a string as a key in an external call. Here's what's going down.I recieve an XML document, which gives me a list of ID's that refer to other objects in the database. When I pass that ID in as URLVariable, the backend doesn't recognize it and returns nothing.Say the ID was 124. I tried passing the string "124" as the key, and it worked, returning the proper resource. Confused, i do the following

Code:
trace(xml.id__ == "124"); // returns true
getResource(xml.id__); // returns nothing
getResource("124"); // returns correct resource

I know there are issues with using == as a comparator, but since it's returning true I figured it sees them both as the string "124" -- but why would it not work? I also tried String(xml.id__), Number(xml.id__), and some other stuff.

View 5 Replies

ActionScript 2.0 :: External Swf To Call On Main Swf?

Dec 10, 2010

It's at the back of my head somewhere, but I can't figure it out.I have a dropdown menu movie clip I need to make _visible = false, but calling

PHP Code:

_root.dropdown._visible = false 

from the external swf doesn't reach the main swf. How do I communicate commands from an externally loaded swf to the main swf? I tried _root and _level0 to no avail.

View 1 Replies

ActionScript 2.0 :: Preloading External Swf's To Call On Later?

Oct 15, 2004

I am trying to Preload my external swf's so that when i call them later they will be preloaded and i can go to a specific frame. I have tried that and all it does is go to the first frame of the movie. Not the Specific frame.

View 1 Replies

ActionScript 2.0 :: Call An External Script Periodically?

Aug 24, 2009

I'm using Flash CS4 and Actionscript 2 and would like to know if it's possible to call an external script (php script) or take some kind of action (like update a database, write to a file etc) at regular intervals while a video is playing?

1. Is video playing?

2. If yes and time is more than 5 mins (or some inteval) then call a script

3. Sleep and repeat from step 1

View 1 Replies

ActionScript 3.0 :: Use The Full Url Path To Call An External Jpg?

Jan 13, 2009

Is it necessary to use the full url path to call an external jpg or is it possible to have a relative url?

View 1 Replies

Professional :: AS 3.0 - Using External Interface Call To Open PDF

Oct 7, 2010

Using Flash - AS 3.0: I am trying to use ExternalInterface.call to open a .pdf file - but it is not working - nothing is happening...

ExternalInterface.call ("window.open","diagrams/v1/crh.pdf", "WindowName", params);
But this line DOES work - call an .html file to open.
ExternalInterface.call ("window.open","m5_quiz/v1/quiz.html", "WindowName", params);

I can't find any information that says this should or shouldn't work - it seems to me it should open it. To get around this - I have been using 'navigateToURL' to open the pdf file - but that triggers the pop-up blocker - using the External Interface call does not.

View 4 Replies

Call Function In Main Doc Class From External SWF?

Jul 9, 2009

I have a main.swf that loads in an external swf called home.swf. I want to be able to call a function in main.swf's doc class from the loaded swf:

Code:

function loadArtist():void { // my function }

in the main timeline of home.swf I'm calling it this way:

Code:

function timeToGo(m:MouseEvent):void {
trace("button pressed");
MovieClip(this.parent.parent).loadArtist(); }

the home.swf compiles fine but when loaded in the main.swf & the button is pressed i get this error:

TypeError: Error #1006: loadArtist is not a function.
at home_fla::MainTimeline/timeToGo()

It seems that it thinks loadArtist is a property. Ack. I've got 3 objects loaded dynamically using addChildAt(mc, 0) ...

View 2 Replies

ActionScript 3.0 :: Can't Call A Function From The Main Swf With The External Swf

Jun 23, 2010

I have one swf and this one load another one inside a MC on the stage.

Code:
function chama_movie(name:String) {
this.mcLoader.removeChild(carregador);
var carregador:Loader = new Loader();

[Code]....

View 7 Replies

ActionScript 3.0 :: Dynamic Function Call From External Swf?

Oct 12, 2010

I have an external swf(s) loaded in a main swf container. I am trying to create templates for non-coders. The main swf loads "pages" based on the currentFrame number. i.e. if on frame 12 load "m1_012.swf"I need the function call to the main swf to be dynamic.The variable function call doesn't work in the following code. The last function call does work. How can I "eval" the variable function call?

var parentObj:Object = this.parent.parent.parent;
var tempFrame:Number = parentObj.currentFrame;
var funcName:String = parentObj+"moreInfo_"+tempFrame;

[code].....

View 4 Replies

ActionScript 3.0 :: Call Buttons That Are Inside External Swf?

Jul 12, 2011

I have a flash file that load an external swf with this script, all using AS3:

var my_Loader:Loader = new Loader();
addChildAt(my_Loader, 0);
var my_url:URLRequest=new URLRequest("final-video.swf");
my_Loader.load(my_url);

Inside this external file (final-video.swf) i have buttons called for example button1, button2...What will be the path to have actions to these buttons? I tried, from the original file not the external swf (final-video.swf), this script:

button1.addEventListener(MouseEvent.CLICK, actionBtn1);

but i have this error: 1120: Access of undefined property testBtn.how can you call from the front flash file, buttons that are inside external swf?

View 1 Replies

Actionscript 3.0 :: Call Function In Child External Swf

Feb 7, 2010

how can i call a function in a child swf that has been loaded in externally? basically ive got a holder and then i loop through a list and add that many slides to the holder each slide has an external swf loaded in and one of them i need to be able to call a function from the parent

View 1 Replies

ActionScript 2.0 :: SWF Object / External Interface Call

Jul 26, 2007

I am currently just finishing a project and I am having a big time problem with an ExternalInterface call. My application runs fine but when the javascript call is being made from flash using external interface, IE is going from the "Done" message, to showing the "!" icon, with "error on page" as the message. There is no error that is showing up in Firefox.

The current error I am seeing is an 'Unterminated String Constant', which wouldn't be a problem except for that it appears on line 1... which is [URL]

View 1 Replies

ActionScript 2.0 :: Call Function On Last Frame Of External SWF

Dec 13, 2007

I have a bunch of SWF files that have x amount of frames on them..When it reaches the end, I want to call a function. The problem is I dont have access to the FLA files. I have the total number of frames by doing slideHolder._totalframes which gives me all the frames...The only thing I can think of is doing an interval that checks _currentframe against _totalframes, but I want to know is their another way to do it?

View 1 Replies

ActionScript 2.0 :: Call Main Swf From External Swf's Timeline?

Apr 17, 2008

I've got a movie with a few buttons in it. When you click on one of the buttons an external swf opens. At the same time a large, quare, white movieclip opens at the back of the external swf (the white mc is in the main movie). Okay, so for so good.
In the external swf there is a close button. When you click the button, the external swf goes to frame 14 to show a short closing animation. The last frame contains the following code:

TweenLite.to(_level0.contentback_mc,1,{_alpha:0});
this.unloadMovie();

The first line is to make shure the large white mc becomes transparent again. The second line is - ofcourse - to unload the external swf.

The problem is that the first line doens't work. When I trace the first line from the main movie, the output contains '_level0.contentback_mc;

Oh, and the external swf is loaded in an actionscript generation container (contentback_mc).

View 1 Replies

ActionScript 3.0 :: Call External Swf And Loading On A Frame Label?

Oct 2, 2009

I have a button on my main timeline that calls an external swf file into an empty container movie. How do I load external swf file and play on a particular frame label?

View 6 Replies

Dom :: Call Dynamically Created Flash External Interface In IE?

Jan 28, 2010

What I have:A swf exports a function via ExternalInterfaceJavascript creates new embed object and adds it to the documentCalling flash functions works fine in other browsersCalling flash functions will fail in IE 8Example of exporting functions in swf:

flash.external.ExternalInterface.addCallback("isActive", ...
Example of creating the embed object:
var b = document.createElement('embed');

[code].....

View 4 Replies

Flash - IE Popup Alert When Using External Interface Call

May 30, 2010

Everytime I try to do even an
ExternalInterface.call('alert','abc');
(Which will work on every browser) I get an
object doesn't support this property or method
After the alert appears. It even happens in the HTML generated by flash without me touching it...

View 1 Replies

Flash :: Call A Button Instance In An External As Script?

Dec 7, 2010

I've created a button in my stage. I've set the instance name to init and have the MainTimeline being called from an an external script[code]...

View 2 Replies

Flex :: Call An External Function From Inside A Class?

Aug 1, 2011

i want to call an external function inside a class. thats the code;

in checkConnectionStatus function,

this[_funcNameForSucceededCon].apply(); doesnt work because "this" is the class, not the Application. How can i reach Application at this time or what can i do?

package myLibrary
{
import air.net.URLMonitor;
import flash.events.Event;

[Code]....

View 1 Replies

ActionScript 2.0 :: Call Or Embed External Javascripts Within Flash?

Jan 22, 2009

how to embed external javascripts within flash with out having the scripts on the HTML.

View 0 Replies

ActionScript 2.0 :: Using External Jpgs - Call Up A Different Image Each Time

Dec 1, 2003

Is it possible to have external jpg files that can be imported if and when you want them? For example, say you have a spot set aside in your flash to display a 100x80px poster image, and you want the ability to call up a different image each time, can you have jpgs files in a directory, each set to 100x80px size, ready to be called up? I can do it with the images set up as little flash files, but I wanted to know if you do it with raw jpgs.

View 2 Replies

ActionScript 2.0 :: Call A Window.close With External Interface?

Oct 14, 2009

Currently I'm trying to call a window.close with external interface. It works fine, however, I also have a window.beforeunload call in my javascript so the close button ends up calling two windows. One is the "this page is trying to close...blah blah blah" and the other is the custom one i wrote.

Is there anyway to call onbeforeunload combined with window.close from external interface so that i only get one warning?

View 2 Replies







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