ActionScript 2.0 :: Calling One Swf In Another Swf?
Nov 24, 2008
I have 2 swf files A and B. In swf B there is a form in which there is a listbox control, when I run swf B it shows me the listbox, but when I try to call swf B in swf A it does not show the listbox control.
View 2 Replies
Similar Posts:
Mar 2, 2010
I'm getting stack overflow errors when I'm trying to publish() a NetStream after close()ing it. Pasted below is the error stack:[code]
View 1 Replies
Mar 17, 2009
is it possible to call a simple HTML file or use iFrame in Flash?
View 5 Replies
Feb 5, 2010
I have a banner rotator (in AS3) and works just fine. In another flash file I have this code that load's the banner rotator:
[Code]....
And really calls the banner rotator, but don't play it. I put the files for me to understand what i'm talking about.
View 3 Replies
Feb 16, 2010
I am creating a website that shows thumbnails of art. When you click the thumbnail, which is a movie clip, it calls the swf of that individual full sized image. I attached two files, the main swf and one of the full size image swf.(I took a flash course, adobe approved, that was not Can you say $1,400 wasted? He stated that you should always use movie clips instead of buttons, because in his opinion buttons are not any good.)
View 5 Replies
May 21, 2010
When the image is clicked the XML calls another swf animation that plays for about 2 minutes... and then it loops.. I need a code that says to the swf animation at the last frame to get back the 3d carousel template ....Is there a way to do this?I tried this but it doesnt work
Quote:
var request:URLRequest = new URLRequest("index.swf");
var loader:Loader = new Loader()
[code].....
View 0 Replies
Aug 20, 2009
If I have a function and I want to call a variable from another function (only 1variable), how do I do it? I know in the olden days you could set the variable to local or global, but that does not seem to work anymore. There is only 1 variable I need access to, but all the tutorials I have come across talk about making classes for multiple variables.
e.g. function2();
{
variable_b = variable_a;
}
[Code].....
View 3 Replies
Sep 25, 2009
i'm going to make a banner that's going to have some video clips.
the clips flie sizes will be big.
i'd like to call the clips in after the banner is loaded... how do i do this?
View 1 Replies
Sep 26, 2009
I have a button that uses the Load Graphic Behavior for bringing a SWF, but i want the SWF to come in a specific frame instead than starting at frame 1. For examplel; i click the button, the behavior of Load Graphic brings my SWF to stage but i want to start at frame 50, not at frame 1. How can i do that?After i use the Load Graphic Behavior i try using a gotostop frame, but doesn't work.
View 13 Replies
Nov 24, 2009
I'm having a helluva time trying to figure out why I can't load a display list object, (multiple times) at different coordinates specified in my xml file.tremendous as I am not the most accomplished with AS3. Here's the code I'm working with...
for(var i:int = 0; i < xmlLen; i++){
addChild(myCapitol);
myCapitol.name = 'capitol'+ i;
[code]....
View 1 Replies
Mar 9, 2010
I have a menu and when I click I want to add a new swf on top calling from a seperate xml doc. it seems to be calling the airplanes.swf underneath the first MC.any ideas why? Is it because I am using xml to populate the swf.[code]
View 3 Replies
May 20, 2010
i got an AS3 3d gallery that calls external swf animations...
However these animations loop...and on the last frame i need the gallery to appear again.. Is there a way (either AS2 or AS3) to put a code on the main timeline at the last frame that calls my swf gallery back? It doesn't have to load inside the swf...it just needs to appear as soon as the other one ends..
View 2 Replies
Mar 16, 2009
I have a xml file placed in server, i want to call in my flash file using varXml.Load("\servernamefolderfilename") i tried this way but it doesn't understand UNC path.
View 1 Replies
Jan 16, 2009
i have a movie clip of a square in the library exported as Square1, i place 2 instances of it on stage and push them to an array called ar i add event listeners to both ar[0] and ar[1] to do a certain function. i need flash to tell me wheter ar[0] or ar[1] called the function.
View 6 Replies
May 20, 2009
I want my Flash button to call a URL from an XML that then opens up a AJAX window (like lightbox or multibox) over the page.So the user clicks on Flash and a AJAX pop up appears.I've set up the popups, I'm using facebox (which is really nice).They way the do this is by creating an ID DIV like below:[code]now I have a Flash that can call to XML and get a URL...The problem is when I put "#world1div" in the url portion of the XML, it doesn't work.How do I call this ID from XML?
View 2 Replies
Feb 16, 2010
im creating a web page in flash and im using this code for the navigation buttons:[code]The problem is that when i publish this and place it in Dreamweaver all three buttons link to "bio.html".
View 3 Replies
Mar 24, 2010
I visited a website today and saw something that really interested me. They seem to have built a generic .swf that looks like it calls another .swf maybe from a database. I think this would be pretty slick as you would never have to touch the main page, only update with a newer .swf on the database. [URL]
View 4 Replies
Dec 26, 2010
Update: Not sure if this code would work, but couldn't get the name of the sprite where c.getChildByName(spName) is null, spName is the string name of the sprite.[code]...
View 2 Replies
Feb 12, 2009
I can't get it but, i'm coding in as3 and i can't target a function from a swf file loaded in the DisplayObject loader in any way. I don't want to create a class to make this function works. It's a simple function, made to change a picture every time the user navigates on another swf. Well. The point is, why in the name of God, the as3 cannot target another swf? How can i do it?
View 0 Replies
Jul 22, 2009
Im loading in a swf file - which works fine. However, I cant seem to call a mc from the external swf to the swf that calls in the external.
I tired pointing to a mc from the external swf using: root.inv_1.x=345; However, this doesn't work...
Heres how i'm calling in the swf:
ActionScript Code:
var Xpos:Number = 0;
var Ypos:Number = 200;
[Code].....
View 2 Replies
Nov 17, 2009
I have a main.swf with 13 nav buttons. Each calls up a different swf via this code:
var req:URLRequest = new URLRequest("scene1.swf");
var loader:Loader = new Loader();
loader.load(req);
[code]......
View 6 Replies
Dec 16, 2009
I have a problem calling an .swf inside an other .swf. This is what i have:I have 3 files organized like2) pruebaLivestream.swf3) pruebaLivestream2.swfIn the file 2 i call functions from livestreamPlayer.as and when i play this .swf it works perflectly.When i call the file 2 in file 3 it gives me this output:TypeError: Error #1009: Cannot access a property or method os a null object reference.
at com.livestream::LivestreamPlayer()
at flash.display::Sprite/constructChildren()
at flash.display::Sprite()
[code].....
View 0 Replies
Mar 7, 2011
I am creating a dynamic training module in which I create a navigation on run time using XML. The one question that I have is that when I click on the navigation button I want to change the alpha of the movie clip that it corresponds to. I know that I can put the movie clips on the stage and do a "find" command to find the instance names, but I find that to be unreliable and not very dynamic.So what I want to do is in the XML have the name of the exported class of the movie clip I want to call. So fro instance for my landing I will have a movie clip in my library with the exported class Landing(). But the xml reads this as a string.So a line of code like:Code:private var landing:xml.navButton.name= new :xml.navButton.name();Would not work.
View 1 Replies
Jan 25, 2009
I have an xml file that contains 4 children of information....
Code: Select all<?xml version="1.0" encoding="ISO-8859-1"?>
<slideshow width="480" height="280" maxAngle="10>
<image url="adventures/2009/gridiron/slides/lw-1.jpg" />
[code]....
View 3 Replies
Dec 11, 2003
the *who.say* in the following function refers to a var displayed inside a dynamic text box.
when I tryed to call the function twice, from the same MC, only with different Who's and What's, it didn't work. only one call displayed the text.
//*who is talking, what is he saying, and for how long his text is displayed**
function saythat(who, what, fortime) {
starttime = getTimer();
[Code].....
View 2 Replies
Jan 22, 2005
I am with a problem, 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:
// AS do button menu 2 chamar noticias.swf.
menu2_mc.onPress = function (){
loadMovie("noticias.swf", 1);
};
What I am using in xml is this
Code:
// noticias xml
stop ();
// System.useCodepage=true
// call xml e css
var estilo = new TextField.StyleSheet ();
[URL]
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.
View 2 Replies
Jul 10, 2005
I am trying to put an image from my database into a Flash MC using this php. The php works great in html, but i want that image to show up in a flash mc. Here is the php file content:
$products_query = tep_db_query("select pd.products_name, p.products_image from " . TABLE_PRODUCTS . " p left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['pID'] . "' and pd.language_id = '" . (int)$languages_id . "'");
$products = tep_db_fetch_array($products_query);
View 7 Replies
Mar 2, 2007
I'm writing a class that utilizes the whole screen resolution and need a movieClip to adjust itself in accordance to that. That "almost work". The problem is that I cannot call functions when the resize listener kicks (onResize = function()) in, and I don't understand why I want to call the function centreMe() from within the onResize function.
Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
import mx.utils.Delegate;
class centre {
public function centre() {
[Code] .....
View 3 Replies
Mar 19, 2009
I am calling a xml file from intranet
xmlLoad("\serverfolderfile.xml")
its gives me a error.
I am building a intranet application.
View 1 Replies
Jun 6, 2009
I am trying to make a multiplayer card game which has 6 players. Each player can hold 2 cards.
The movie clip names are :
p1c1 // Player 1 card 1
p1c2 // Player 1 card 2
[code].....
View 2 Replies