ActionScript 2.0 :: Tell Target For External Swf?
Sep 25, 2004
Ok. I have a main flash movie (to be the base site actually) that loads 4 preliminary swf's.One of them is the top nav bar. Basically there are small squares on the main flash movie where the movies should load. They replace the squares and load perfectly. What i want to do though is when i press a button in a movie in one square, on release, it tells another square on the main flash to load it's movie.P.S. I did not attach the actual flash files becuase, for one they are too big, also there are way too many layers and stuff for anyone to be able to back track through my sloppy work. I did however attach the swf's and a jpeg outline of the square loaders im talking about
View 3 Replies
Similar Posts:
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
Sep 25, 2004
how to apply a tell target to an external swf. How am i asking it to be applied u ask? I have a main flash movie (to be the base site actually) that loads 4 preliminary swf's. One of them is the top nav bar. Basically there are small squares on the main flash movie where the movies should load. They replace the squares and load perfectly. What i want to do though is when i press a button in a movie in one square, on release, it tells another square on the main flash to load it's movie.
I did not attach the actual flash files becuase, for one they are too big, also there are way too many layers and stuff for anyone to be able to back track through my sloppy work. I did however attach the swf's and a jpeg outline of the square loaders im talking about.
View 3 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
Jan 20, 2011
Using a button to load an external swf into a target? Or even a layer would be fine.
I just need to have code to work with that I can edit.
View 1 Replies
Jan 16, 2010
I am trying to build a menu, that loads external swf to target movie clip, in the code below it works if I remove the line target removeChild, but then if a press the other button, just put it on top, so my actual problem is that if I don't have anything loaded in target, this code doesn't work because it can remove child?
menu.btn_avanti.addEventListener(MouseEvent.MOUSE_DOWN, goseccion);
menu.btn_professors.addEventListener(MouseEvent.MOUSE_DOWN, gofotos);
function goseccion(Event:MouseEvent):void{
var main:Loader = new Loader();
main.load(new URLRequest("seccion_basica.swf"));
target.removeChildAt(0);
target.addChild(main);
[Code] .....
View 1 Replies
Oct 21, 2004
What is the best way to target a specific frame from an exterally loaded swf?
View 3 Replies
Mar 29, 2011
I've a main movie with a container movieclip to load an external swf file. That's working fine but I want to control the movieclips of externally loaded movie. I tried the below method but not work out.
Script on the main movie
_root.holder.loadMovie ("1.swf", mytarget); // This is working fine
_root.holder.mytarget.<movieclipname of the externally loaded movie>.onRelease= function (){
// Do something.
}
But the above script not worked out.
View 1 Replies
Oct 21, 2004
What is the best way to target a specific frame from an exterally loaded swf?
View 3 Replies
Nov 28, 2002
Here's my setup. OnLoad, an MC is loaded into my master movie. Now, when the nav buttons are pressed (they reside in master also), I need to target a MC within the loaded movie.
View 1 Replies
Jun 27, 2009
how i can set the size of an external swf i have loaded into a target movieclip ive got the external swf loading into the target ok but its too big.
View 2 Replies
Jan 22, 2010
I'm looking for an alternative to using:
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyFunction);
The problem I am encountering is that eventListener above works fine on its own(stand-alone swf), but when loading an .swf externally into another .swf, the listener fails with the following error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
How can you target the event listener when loading as an external .swf differently?
View 3 Replies
Feb 7, 2010
On my stage I have an externally loaded SWF with a button. When clicked the button dispatches an event to the main stage.
On the main stage a listener then loads an SWF into a loader called gallery. The gallery loader is also being shared by buttons on the main stage which use the event.target.name String to call in SWFs with corresponding names. I am using Tweens to fade-out and -in content to the gallery when a button is pressed.
Loading the SWFs was working until I tried to create a universal button function for the dispatchEvent buttons. The problem I have is that I don't know how to define the String to tell the newSWFRequest where to find the SWF when triggered by the external buttons.
[code]...
View 11 Replies
Feb 25, 2011
I was trying to upload an external .txt file which is located up one level from my .fla file but I couldn't make it work, this is what I have...This code works just fine if I put my external .txt file in the same folder as my .fla
ActionScript Code:
var myRequest:URLRequest = new URLRequest("MaterialRef.txt");
but when I try something like... where the .txt file now is in a folder called "Materials" which is located up one level, it just doesn't work.
ActionScript Code:
var myRequest:URLRequest = new URLRequest("../Materials/MaterialRef.txt");
View 0 Replies
Aug 15, 2011
I want to know if and how I can use a movie clip to give the coordinates to load an external swf in an exact location, through an xml file?What I have is an xml menu and instead of opening web pages, I want to load external swf files in the same swf, where the menu is located, the thing is I don't know how to give the coordinates in the target of the xml file, and I want to know if and how I can use a movieclip to do this, such as _parent.mc.loader.
View 1 Replies
Jun 5, 2007
Alright, so I've tried quite a few things with no luck. I have a scrollbar that works in the swf fine, but when loaded into my mainmovie container I get this error...
Target not found: Target = "/scrolling text " Base = "_levelO.swf container"
Basically I understand this to mean that the externally loaded movie cannot find the instance name /scrolling text. The code is as follows that I have set to the scrollbar button in the externally loaded swf....
on (rollOver) {
tellTarget ("/scrollingtext") {
nextFrame();
} gotoAndStop("down1");
}
I tried changing the target to _root.scrollingtext with no luck. Also tried _parent.
View 1 Replies
Feb 25, 2011
I was trying to upload an external .txt file which is located up one level from my .fla file but I couldn't make it work, this is what I have...
This code works just fine if I put my external .txt file in the same folder as my
.fla
var myRequest:URLRequest = new URLRequest("MaterialRef.txt");
but when I try something like... where the .txt file now is in a folder called "Materials" which is located up one level, it just doesn't work.
var myRequest:URLRequest = new URLRequest("../Materials/MaterialRef.txt");
View 6 Replies
Aug 3, 2011
How do I call this function for multiple listeners without IDE timeline and frame names, using external classes? Im moving my timeline code to classes, and Im stuck with this..
View 4 Replies
Mar 30, 2012
Im trying to load my external swf which is a drop and drop swf into the main swf but when i load it only the drag works and the target is not detected so it doesn't drop.the pop up also stops working in the main swf when you type test1 or test2.heres the code i use to load swf in the main swf :
myContainer2.loadMovie("externaldrag.swf");
View 9 Replies
Sep 29, 2003
On the attached exercise, is it possible to stop further items being dragged onto a target when the target box is full?
View 1 Replies
Nov 28, 2011
What is the difference between target and currenttarget in flex?What is the difference between Target and Current Target in Flex especially in mouse events.
View 2 Replies
Dec 2, 2008
So I'm trying to get cute again by building stacks of buttons dynamically, then labeling them from an external text file. The code I have so far is as follows:
[Code]...
But I keep getting the error message: Target not found: Target="undefined" Base="_level0" I'm not sure what this means.
View 3 Replies
Apr 20, 2005
I'm trying to load a SWF movie into a target movieclip called blankmc. The SWF movie is loaded from an absolute URL (eg. [URL]/img/20042005113934movie3.swf ) My Loading Progress code fails to detect the SWF file size. However the same code works perfectly for a JPG! Essentially the .getBytesLoaded() and .getBytesTotal fail to work. Why is this and how can I get it to work for loading SWFs?
[CODE]...
View 3 Replies
Aug 30, 2010
qi have a movieclip which is added to the stage:
var profileholder:profileHolder=new profileHolder ;
inside of profileholder is another movieclip(infoBtn) that acts as a button.when the mouse is over profileholder i want to do something with infoBtn like:
//profOver is the over state of profileholder
function profOver(e:Event) {
e.target.infoBtn.alpha=1;
}
this doesn't work and brings up this error:ReferenceError: Error #1069: Property infoBtn not found on flash.display.Loader and there is no default value.
at main_fla::MainTimeline/profOver()
i also tried:
function profOver(e:Event) {
var item:profileHolder=e.target as profileHolder;
item.infoBtn.alpha=1;
}
and get this error:TypeError: Error #1009: Cannot access a property or method of a null object reference.
View 1 Replies
Mar 14, 2005
i don't know why this isn't working.i got a button. and when it's pressed, i need it to go and play a frame in a movie clip. i'll test it and then when i click on it, i get this:
Target not found: Target="whoweare" Base="_level0.instance20.instance48.instance49"
this is the code that i am using:
on (press) {
tellTarget ("whoweare") {
gotoAndPlay (51);
}
}
View 14 Replies
Feb 16, 2005
so, i'm making an animated rollover, and i get an output error that says this:
Target not found: Target="_root.icon01" Base="_level0"
i have no idea what the base="_level0" means.
View 1 Replies
May 14, 2009
Through attachMovie I have loaded an mc from the library onto the stage into "holder_mc".
myButton.onRelease = function () {
if (currentWork != "holder_mc.myWork1_mc") {
holder_mc.attachMovie("myWork_mc","myWork1_mc", getNextHighestDepth());
currentWork = "holder_mc.myWork1_mc";
}
}
This works.
However, there are a couple of buttons (mc) inside "myWork1_mc" which skips through a few slides in the myWork1_mc clip that I cannot target. I thought using:
holder_mc.myWork1_mc.buttonName_mc.onRelease = function () {
trace("MC_pressed");
}
... would work. My curser doesn't even change to the hand symbol. How do I target an dymanically loaded MC from the library which is inside an empty holder MC on the stage via attachMovie? What am i missing? Believe me, I have spent hours trying to google it.
Note: at this stage there is no other script on "holder_mc", but there will be at a later date, but I'll cross that bridge when I get to it. Also, the buttons work when I place the MC onto the stage and not use attachMovie.
View 6 Replies
Jun 17, 2009
I have a simple button that goes to a URL when clicked, but it's opening a new window. I want it to target "_self"-- but I'm getting errors. How do I properly target the same window?
[Code]..
View 1 Replies
Jun 14, 2010
Seems like AS3 is more about writing code than AS2.I would normally write the code on the button:
Code:
on(release){
getURL("http://sample.com". "_blank");
}
Instead in AS3 I have to do this for a button action:
Code:
myButton.addEventListener(MouseEvent.CLICK, myButtonFunction);
function myButtonFunction(event: MouseEvent) {
var request:URLRequest = new URLRequest("http://www.sample.com");
navigateToURL(request);
}
How do I add the _blank target function to this AS3 code. I am still trying to get use to this AS3 concept.
View 1 Replies
Jan 10, 2010
I used to use an old school method in AS2 to talk to a movieclip to go to different states like on rollover but how do I do this in AS3 now?
Code:
on (rollOver) {
with (myclip) {
gotoAndStop("on");
}
}
I know that with went out a long time ago but it worked!I know in AS3 to handle a click you have to do this:
Code:
mybtn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void {
gotoAndStop(1);
}
what I want to do with targeting a rollover with a button.
View 3 Replies