ActionScript 2.0 :: Target A Certain Section Of External Swf?

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


Similar Posts:


ActionScript 2.0 :: Target A Certain Section Of External Swf

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

ActionScript 3.0 :: Target A Section Of A Graphic Of LineTo?

Nov 16, 2011

how would i target a section of a graphic of lineTo and make jsut that section not visible

here is my current code..

Code:
private function drawLaser():void
{
laserCanvas.graphics.clear();

[Code]....

i want to target the section between draggableVector2 and draggableVector3 and make that section not visble... and i wanat this to be inside of a hittest for whenever the line hits an "obstical"

View 13 Replies

ActionScript 2.0 :: Play A Section On The Timeline And Then Move Onto Another Section Or Scene

Mar 9, 2009

I have a button that I would like to use with the basic actionscript as follows:

on (release) {
this.gotoAndPlay("15");
}

What I would like it to do is play a section on the timeline and then move onto another section or scene.

[Code]....

I know this is incorrect, so would anyone know how to write an actionscript button that plays a section then goes somewhere else?

View 4 Replies

ActionScript 3.0 :: Unload The External .swf File When Move On To Other Section?

Nov 21, 2011

The following code provided by Mr. kglad works great in loading an external .swf file onto stage. Now, when I click on Contact (Button), the external .swf file to be removedcompletely. How to code on contact (Button) to work it out.

Gallery.addEventListener(MouseEvent.CLICK, GalleryClick);
function GalleryClick(e:Event):void{
if(currentClip != Gallery_mc){

[code].....

View 3 Replies

ActionScript 2.0 :: Loading External SWF Clicking On Section Of Menu?

Dec 27, 2009

Let me descibe the method of my website fuctionality first, The hole website builded with AS2, The menu of this website call external swf files with xml (each section have swf file and xml file). When I click on the first section of the menu the external swf file loaded perfectly but when I call the second one the first one appear again. I tried to clear the cache between each selection but the same problem exist.

View 3 Replies

ActionScript 2.0 :: Load External Swf Files Into The Middle Section?

Sep 30, 2003

i have a movie and want to load external swf files into the middle section. my navigation allows users to access from 10 buttons. i can load the swfs either thru createEmptyMovieClip, or loadmovieNum. but i can't seem to control the levels. that is previous movies can be seen underneath the new loaded movie... i need to clear previous movie clip before loading the next, here is createEmptyMovieClip code.

this.createEmptyMovieClip("generic_mc",2);
generic_mc.x=0;
generic_mc.y=62;

[Code].....

View 6 Replies

ActionScript 2.0 :: What Is The Word 'section' In _root.section

Dec 17, 2003

on [URL] what is the word 'section' in _root.section? I assume it is a movie clip instance, but can't seem to find it on the timeline.

View 2 Replies

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

ActionScript 2.0 :: Apply A Tell Target To An External Swf?

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

ActionScript 3.0 :: Use Button To Load An External Swf Into A Target?

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

ActionScript 3.0 :: Loading External SWF To Target MovieClip

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

ActionScript 2.0 :: Target Specific Frame From External Swf?

Oct 21, 2004

What is the best way to target a specific frame from an exterally loaded swf?

View 3 Replies

ActionScript 2.0 :: Target MovieClip Inside External SWF

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

ActionScript 2.0 :: Target Specific Frame From External SWF

Oct 21, 2004

What is the best way to target a specific frame from an exterally loaded swf?

View 3 Replies

ActionScript 2.0 :: Target Frames/mc's In External Swfs?

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

ActionScript 2.0 :: Set The Size Of An External Swf Loaded Into A Target Movieclip?

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

Professional :: Target Event Listener When Loading External SWF

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

ActionScript 3.0 :: Use The Event.target.name String With An External DispatchEvent?

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

ActionScript 3.0 :: Target An External File Locate Up One Level?

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

ActionScript 3.0 :: Use A Movie Clip As An Xml Target To Load An External Swf Through The Xml?

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

ActionScript 2.0 :: Target Path In External SWF Not Working Correctly

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

ActionScript 3.0 :: Target An External File Located Up One Level

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

ActionScript 3.0 :: Flash Event.target.name In External Classes?

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

ActionScript 2.0 :: External Drag And Drop - Target Not Detected On Main Swf?

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

ActionScript 2.0 :: Stop Further Items Being Dragged Onto A Target When The Target Box Is Full?

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

Flex4 :: Difference Between Target And Current Target

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

ActionScript 2.0 :: "Target Not Found" - Building Stacks Of Buttons Dynamically Then Labeling Them From An External Text File

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

ActionScript 2.0 :: External Swf Loading Into Target Movieclip Loading

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

ActionScript 3.0 :: Target Movieclip With E.target?

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







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