Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








How To Access Movie Into Button ?


Hi all V: Flash MX

suppose that I have A Effective movie into environment button

where the up & over & down & hit places

name of this movie is effectClip as an instance name


is there anyway to access this movie by action ?

I tried many ways to but no effect on it

something like this

myButton.onPress = function () {

this.effectClip.gotoAndPlay(2);
}

please someone help

bye




FlashKit > Flash Help > Flash ActionScript
Posted on: 10-04-2002, 02:42 AM


View Complete Forum Thread with Replies

Sponsored Links:

[Q] Disabling Parent's Button Access For Child's Button Access
Hi All,

Havent been to the forum in a long time due to an enduring school term
now that I have gotten back into it, I got into a slight problem

How do I disable the parent's onRelease attributes so that I can allow the child's onRelease function to run . It is a menuSystem where the parent shows first then the subMenu mc are attached to the main Menu.

I tried mc.enabled = false, but this disables the child button actions as well
I tried mc.onRelease = null; which doesnt seem to work
I tried delete this.onRelease BUT maybe cause of syntatical errors, theres no response

Thanks all

View Replies !    View Related
Button Within A Movie Clip Cant Access To Different Scene
i couldnt think how to fix this problem
can someone help me

the first button on the left (purple color) i set it to gotoAndPlay("Scene 2",1) but it wont move to scene 2

View Replies !    View Related
Button._focurect Disables Also Button Keyboard Access
I'm trying to make my Flash movie keyboard-accessible.
It's a search engine control panel, with a drop list for categories, a textfield and a Search button.

I have set a "halo" effect to enhance the GUI element currently under focus, for both keyboard and mouse interaction.

Everything works fine if I leave the _focusrect active, but it's really ugly and I want to eliminate it.

Unfortunatelly when I set Button._focusrect = false, the buttons recieve focus but are not "pushed" when I press the spacebar (I tried to add Key-specific triggers to a button, but that doesn't work either).

Does anybody know how to help this?

p.s. I already set all the tabIndex stuff...

View Replies !    View Related
Access To A Button
I have a .fla with 3 frames. I'm trying to access to a button ("btnAdvance") placed in the second frame at the main timeline from the document class (DC). I tried this, but don't works:

Código :


ActionScript Code:
package {
   import flash.display.*;

   public class DC extends MovieClip {
      function DC() {
         gotoAndStop(2);
         trace(getChildByName("btnAdvance"));// null
      }
   }
}

Could somebody help me with this?
Thanks.

View Replies !    View Related
Access Movie Clips From Inside Another Movie Clip
Hi!

I have some objects (movie clips) on my stage on different layers, but all in the first frame of a layer. And now I want to access this movie clips from inside another movie clip, which is also on the stage like the others.
So my question is: How can I access this movieclips so that I can do for example <movieclip_outside>.gotoandplay("in"); or something like this.

Greets, Tschouba





























Edited: 02/09/2008 at 11:09:30 AM by Tschouba

View Replies !    View Related
[help As2] How To Access Movie Clips' _y Inside A Movie Clip
i got a school flash project where i need to access the _y properties of many movie clips buttons that set with name like sel 1 sel2 sel 3 and so on

the problem is i have 2 sets of those, one on the main timeline which i can access with "for" looped _root["sel"+i]._y and one which is inside another movieclip

problem is i don't know how to access the later using for loop can someone help me with that?

this is the script that i used to access the _y on the _root.selx

Code:
for (i=1; i<numberOfButtons+1; i++) {
if ((mySelection == i)&&(this._y != _root["sel"+i]._y)) {
this._y = _root["sel"+i]._y;
}
}
anyone can help? please *begging*

View Replies !    View Related
Access Dynamic Mc's With A Button
I am having the hardest time trying to figure out how to access a group of dynamically created movieclips with a button that is outside of where they are defined. here's the code I am working with.


Code:
masterHouse = _root.housesHolder.multiHolder.attachMovie("multicom_house", ["multicom"+j], _root.housesHolder.multiHolder.getNextHighestDepth(), {_x:mX[j], _y:mY[j]});
housesHolder.multiHolder being the containing clip that the dynamic houses are placed in. I need to do something like:
button.onPress = function() {
houses.slideTo(x,y);
}

Any help would be great. Thanks!

View Replies !    View Related
Access Mc Inside Button?
MX 2004 Pro:
I need to change the color of an MC instance (Test1) that is on the UP frame of a button (btnTest).


ActionScript Code:
trace(btnTest.Test1._width)
returns "undefiend". But when I turn the button into a MovieClip:
ActionScript Code:
trace(mcTest.Test1._width)
returns a correct value, meaning, I can access Test1.

Is there a way to access MC instances inside a button?

View Replies !    View Related
Button Can't Access Its Variables?
Alright so: I created an instance of a button that I created, and in the code for that instance I put

on (press) {
trace (this._name);
}

I've also tried with this._x and this._y, and it's convinced that they don't exist because it always prints just a return in the output window.... what is going on? Why can it not access its own properties?

View Replies !    View Related
Access To A Button's Variable
I have a button who's instance is "btn_free"
I am assign a variable in my button.
Do I have access to this value outside "btn_free" or what is the best way to access a value that is assigned in a button's action script

actionscript in my button, “btn_free” that is assign a value to mystring.

PHP Code:



on (press) {    
     var myString:String;
    trace("I am at button btn_free");
    this.myString = "value from button btn_free"






In my layer1:frame1 I have the following actionscript

PHP Code:



btn_arc.onPress = function() {
    trace("hello from btn_arc")
    trace(btn_free.myString);





where I am attempting to get the value from the “btn_free”

PHP Code:



trace(btn_free.myString); 




This however, does not work.... btn_free.myString I get a undefined error.

View Replies !    View Related
Access Button In Loaded SWF
ok....

i loaded an external swf and dropped it in a SWF...

Code:
var container_mc:MovieClip = new MovieClip();
quizLoader.load(quizRequest);
container_mc.addChild(quizLoader.content);
loads just perfectly...

now...i need to access a button in that swf to add an event listener...

i have...


Code:
container_mc.submit_btn.addEventListener(MouseEvent.MOUSE_UP, funct);
i get this error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.

what am i doing wrong?? its not an empty movieclip cause i used a condition to check if container_mc.content == null...the button exsists on the external SWfs stage.

please help....thanks

View Replies !    View Related
Access Dynamic Mc's With A Button
I am having the hardest time trying to figure out how to access a group of dynamically created movieclips with a button that is outside of where they are defined. here's the code I am working with.


Code:
masterHouse = _root.housesHolder.multiHolder.attachMovie("multicom_house", ["multicom"+j], _root.housesHolder.multiHolder.getNextHighestDepth(), {_x:mX[j], _y:mY[j]});
housesHolder.multiHolder being the containing clip that the dynamic houses are placed in. I need to do something like:
button.onPress = function() {
houses.slideTo(x,y);
}

Any help would be great. Thanks!

View Replies !    View Related
Password Access Button
Hi everyb...

I hope I can find some help here.. this is my first post but not the last.
I've next problem. I'm working on a Intranet, in some area I need restriction, so, I'm using this as with a button to give access.

on (release) {
if (miUser eq "kmi" && miPass eq "Ea4gn2007") {
nextScene();
}
}

I use "==" and not "eq" but have the same problem.

I'm publishing it in ActionS 2 from flash8 and flash cs3. but when I try to access, I write access data, user and pass then I click the buton but nothing happens, no error, no message, nothing... where is the problem???

I'm using two input text boxes.

Thank you.

View Replies !    View Related
Cannot Access Button Instance
I am new to flash. I created a movie clip symbol. I instantiated the movie clip and placed a "play" button on it. I have instantiated the button as playBtn but I cannot access it from AS3. I get the error "Access of undefined property playBtn". Can someone help me?





























Edited: 05/22/2008 at 09:17:00 AM by olosko

View Replies !    View Related
Access Parent Movie From Child Movie
Hi,
Is it possible to access the Parent movie from a movie that is loaded within it?
Say i want a button in the child movie that goes to a certain frame in the parent movie?
Thanks guys..

View Replies !    View Related
Access Button Inside Movieclip
Hey Everyone,

I am not that familiar with Flash yet, so I have trouble accessing a button inside a Movieclip that I have loaded by using the loadMovie command.
code:
createEmptyMovieClip("menu",1);
menu.loadMovie("menu1.swf",1);

menu.button.onPress = function(){
trace("works");
}

My movie loads fine and my button has the instance name button. So that should not be the problem.

Thanks for any help,
Andy

View Replies !    View Related
Access A Button Within A ScrollPane (pain)
I am trying to access a button that I have in a scrollPane to change it's active state. This happens on a cuepoint in my video. Here is my script..
------
listenerObject = new Object();
listenerObject.cuePoint = function(eventObject) {
if (eventObject.cuePointName == "cp_2") {

_root.TitlesMC.button2_btn._visible = false;

trace("Cuepoint Passed");
}
};
myVideo.addEventListener("cuePoint", listenerObject);
-----

My scrollPane points to a movie clip called "TitlesMC" which contains a button called "button2_btn". I can't seem to access it.

If I put a button out in the main movie and point to it there, it works great - but the button in a movie clip within the scroll pane - can't access it.

Thanks -
Jmac1

View Replies !    View Related
AttachMovie/button Access Problem
Hi I'm trying to do something seemingly simple but it is proving really frustrating.

Basically I have a movie that fades in an image (mc_splash). Once you click on the image it moves that image off the screen and uses attachMovie to load a movie clip (mc_thumbs) with has a bunch of other movie clips (mc_thumb_00001 - mc_thumb_00015) which act as buttons (rollovers, onReleases etc.)

The problem is that if i have the attachMovie in the onRelease function of mc_splash I can not access my buttons in mc_thumbs unless i put the button functions in mc_thumbs.

However if i take the attachMovie function out of the onRelease function and just have it load at the opening of the movie it works fine with the button functions in the root.

Working:
Code in root:

Code:
_root.mc_splash.onRelease = function() {
_root.mc_splash._x = 5000;
_root.attachMovie("mc_thumbsLoader", "mc_thumbs", 1);
_root.mc_thumbs._x = 458;
_root.mc_thumbs._y = 36;

}


Code in mc_thumbs:

Code:
var thumbsPath = this;

thumbsPath.mc_thumb_00001.onRollOver = function() {
thumbsPath.mc_thumb_00001.gotoAndStop(2);
}

thumbsPath.mc_thumb_00001.onRollOut = function() {
thumbsPath.mc_thumb_00001.gotoAndStop(1);
}

thumbsPath.mc_thumb_00001.onRelease = function() {
trace ("hitting mc_thumb_00001");
_root.attachMovie("mc_imageLoader", "mc_imageLoader_00001", layerDepth);
_root.mc_imageLoader_00001.loadMovie("skin/original/images/portfolio/00001.jpg");

}


Not working:
Code on root:

Code:
_root.mc_splash.onRelease = function() {
_root.mc_splash._x = 5000;
_root.attachMovie("mc_thumbsLoader", "mc_thumbs", 1);
_root.mc_thumbs._x = 458;
_root.mc_thumbs._y = 36;

}

var thumbsPath = _root.mc_thumbs;

thumbsPath.mc_thumb_00001.onRollOver = function() {
thumbsPath.mc_thumb_00001.gotoAndStop(2);
}

thumbsPath.mc_thumb_00001.onRollOut = function() {
thumbsPath.mc_thumb_00001.gotoAndStop(1);
}

thumbsPath.mc_thumb_00001.onRelease = function() {
trace ("hitting mc_thumb_00001");
_root.attachMovie("mc_imageLoader", "mc_imageLoader_00001", layerDepth);
_root.mc_imageLoader_00001.loadMovie("skin/original/images/portfolio/00001.jpg");

}



Working but useless:
Code on root

Code:
_root.attachMovie("mc_thumbsLoader", "mc_thumbs", 1);
_root.mc_thumbs._x = 458;
_root.mc_thumbs._y = 36;

_root.mc_splash.onRelease = function() {
_root.mc_splash._x = 5000;

}

var thumbsPath = _root.mc_thumbs;

thumbsPath.mc_thumb_00001.onRollOver = function() {
thumbsPath.mc_thumb_00001.gotoAndStop(2);
}

thumbsPath.mc_thumb_00001.onRollOut = function() {
thumbsPath.mc_thumb_00001.gotoAndStop(1);
}

thumbsPath.mc_thumb_00001.onRelease = function() {
trace ("hitting mc_thumb_00001");
_root.attachMovie("mc_imageLoader", "mc_imageLoader_00001", layerDepth);
_root.mc_imageLoader_00001.loadMovie("skin/original/images/portfolio/00001.jpg");

}


I just don't understand why having the attachMovie in an OnRelease cause the it to stop working.

Any help would be great, thanks,

Eric

View Replies !    View Related
Trying To Access A Dynamic Button Within A Movieclip
Code:
if (interface_mc.btnSizer_1 == null)
{
trace ("button not found");
}
// Above returns false, works perfectly...button is found!


i = 1;
if (this['interface_mc.btnSizer_'+i] == null)
{
trace ("button not found");
}
// Above returns true, button cannot be found!

Can someone help me, because this['whatever'+i] works, it's just that when I'm trying to access it within a movieclip, it doesn't work.

I tried the following:
this['interface_mc.btnSizer_'+i] //does not work
this[interface_mc.'btnSizer_'+i] //does not work
interface_mc.this['btnSizer_'+i] //does not work

interface_mc.btnSizer_1 //works

View Replies !    View Related
Access Button In Stage(.fla File)
I have a button in my stage..ie on my fla file...The botton name is btn_pause.
I need to access that button from my class file(.as file)..I had tried Stage.btn_pause.But it is not working..Please give me a solution..with some example..

Thankyou...

View Replies !    View Related
How Access Button When Grouped In A Movieclip
hey guys! i'm a new face here, so hello everyone!

i'm coding a keyboard and created buttons for each key in flash cs3 and added an onclick-effect to each button. after grouping them into one movieclip and importing it to stage i still have the onclick-effect. now i'd like to add an eventlistener to one of the buttons in the movieclip. any hints/ideas?

View Replies !    View Related
How To Access Components Of Button Symbol?
Hi all,

I'm new in flash and I would like to get a feedback about how accessing the components (like a Label component) included in a button Symbol. The situation is the following:

Step #1: I would like to to create a dynamic button. This button should be composed of a label component (Label with instance name "vTitle"). I converted this label as "button" symbol (instance name "vButton". therfore, I'm now able to define the different appearances of my button depending on the event (mouse over, down...).

Step #2: Next, I would like to dynamically set the value of my label depending on a parameter called "title". I converted my button as "Movie Clip" and added the parameter "pTitle" as String.

So, now, I have defined what I can call the "context" of my object. Next step if the coding of the event script. When I go to the action section of my "Movie Clip" and click on the "Target' button to locate the "vTitle", I can browse to the button, but not to the title included in this button. Therefor, I checked the options in the "Accessibility" panel of the button and did not found any "Make child accessible" for this kind of symbol! So I do not understand why it is not permit.... :(

Can anybody help me about accessing the internal label of my button symbol ?

Thanks and Best Regards,
Tanguy

View Replies !    View Related
Can I Access Player Controls Thru A Button?
I would like to access the Zoom In function from the right-click menu using a button in my flash movie...

View Replies !    View Related
Can I Access Player Controls Thru A Button?
I would like to access the Zoom In function from the right-click menu using a button in my flash movie...

View Replies !    View Related
How To Access A Text Within A Button Programatically?
Hi i was using this for movie clips

LuzLetra is a MovieClip which contains a DynamicText inside with the name of texto

var nuevaLetra:LuzLetra = new LuzLetra();
nuevaLetra.texto.text = "sfsf";
this.addChild(nuevaLetra);


this works for MovieClip but it doesn't works if I use a Button so I would like to know if there's a way to make it to work using Button.

View Replies !    View Related
Access Button Inside Of Loaded Swf
Hello to all! So, i'm loading a swf (image gallery) that fills the entire index movie's stage. I created a "close" button in the swf. So, you're inside the index movie and click gallery. It loads on top of the entire index movie so it appears as an image gallery with a solid background, none of the index elements are seen, but exist behind the gallery swf. What i want to do is access the close button in the gallery swf so when it's clicked, it closes and the index stage is being viewed again. Ideas? Helpful Hints? Are the Lakers going win?

View Replies !    View Related
Dynamic Button Access Trouble
I've tried searching, but I can't find a specific answer to this question. Say I have a button on the stage with the instance name "menuButton" along side a number of buttons. Now say I want to dynamically add a listener to this button using a variable instead of hardcoding:

menuButton.addEventListener(MouseEvent.CLICK, someFxn);

when I try:

var dynamicName:String = "menuButton";
dynamicName.addEventListener(MouseEvent.CLICK, someFxn);

I get :

TypeError: Error #1006: value is not a function.

How can I achieve this with a variable? I've tried other data types, and all throw errors. Should I give in and do an epic if/else chain?

Thanks much in advance!!

View Replies !    View Related
Access A Button Label At Runtime
i am new to flash and it may sound stupid:
but I cannot find any property which allows me to set the label of a button at runtime.
What is the name of this property??
Markus

View Replies !    View Related
How To Access The Text Property In A Dynamic Button?
Flash 8 Issue.

I have a button that has a text object in it (aside from some graphic of course). I am trying to set the text dynamically and I can't seem to get it to work because I don't seem to know the proper class to call:

btn = _root.attachMovie("navButton_symbol", "myButton"+i, i);
btn._y = i *50;
btn.text = "please work this time!";

The buttons do render properly and all that other stuff works.

On the button library object the text is set to dynamic and has the name of btnLabel. But I have tried addressing it as btn.btnLabel.text and btn.btnLabel and all of the other permutations I can think of. As you can see the buttons have dynamic names so this is presenting me with this challenge. What is the proper way to address this text field so I can set the text to a value that I need?

btn.btnLabel.text = "I am totally lost!";

I tried to do this with an init object, but that seems to lead me to the same dead end.


-sed

View Replies !    View Related
Access Child SWF File Button From Parent Swf
Hi all,

I have a main.swf file in which there is a button and a movie clip.
I am loading another swf file inside this movieclip.

loadMovie("mm.swf","main.mc");

On click of a button on the main.swf I want to access the buttons on the child swf.

How to go about this?

Thanks...

View Replies !    View Related
Can't Access Main Timeline As With Imbedded Button
I have a an FLA with a movie clip that has a button inside it. Is there something special I need to do in order for that button to activate the action script in the main timeline correctly?

All of my other buttons & movie clips work fine. It's just my movieClip/Button combo symbol that won't work.

Here's the .FLA. the button I'm referring to is in the top right corner.

FYI, all of the audio is loaded externally from the library in the .AS. So, to have any sound, you'll need the 2 .mp3's as well that in this directory.

http://dev.sheridan.edu/Test/Sound/



Code:

this.createEmptyMovieClip("mcSoundHolder",this.getNextHighestDepth());
var sndAudio:Sound = new Sound(mcSoundHolder);
sndAudio.loadSound("Sound/slow_part.mp3", true); // True = Streaming, False = Event Clip totally downloaded

this.createEmptyMovieClip("mcSoundHolder",this.getNextHighestDepth());
var sndAudio2:Sound = new Sound(mcSoundHolder);
sndAudio2.loadSound("Sound/Voice.mp3", true); // True = Streaming, False = Event Clip totally downloaded

// ============ If false, then you have to check if the sound clip is loaded or not


sndAudio.onLoad = function(bSuccess:Boolean):Void {
if (bSuccess) {
this.start();
this.setVolume(100);
}
};

sndAudio2.onLoad = function(bSuccess2:Boolean):Void {
if (bSuccess2) {
this.start();
sndAudio.setVolume(20);
this.setVolume(100);

}
};


var nInterval:Number = setInterval(checkProgress, 1000);
var nInterval2:Number = setInterval(checkProgress2, 1000);

function checkProgress():Void{
var nPercent:Number = Math.round((sndAudio.getBytesLoaded()/sndAudio.getBytesTotal()) * 100)
trace ("Stuff =");
trace (nPercent);
}

function checkProgress2():Void{
var nPercent2:Number = Math.round((sndAudio2.getBytesLoaded()/sndAudio2.getBytesTotal()) * 100)
trace ("Stuff2 =");
trace (nPercent2);

}

// Production Handlers

// none

// Testing Handlers

mcPlay.onRelease = function():Void {
sndAudio.start(sndAudio.position/1000)
sndAudio.setVolume(100);
};

mcPause.onRelease = function():Void {
sndAudio.stop();
sndAudio2.stop();
};

mcPlayVoice.onRelease = function():Void {
sndAudio2.start(sndAudio2.position/1000);
sndAudio.setVolume(20);
};

mcStopVoice.onRelease = function():Void {
sndAudio2.stop();
sndAudio.setVolume(100);
};



stop();

View Replies !    View Related
How Can External Files Have Access To Button Class?
I have an interface that creates two buttons...

In the interface class:

Code:
private var nextButton_mc:NextButton;
private var prevButton_mc:PrevButton;
In the main constructor:

Code:
nextButton_mc = new NextButton;
nextButton_mc.x = 486;
nextButton_mc.y = 490;
addChild(nextButton_mc);

prevButton_mc = new PrevButton;
prevButton_mc.x = 406;
prevButton_mc.y = 490;
addChild(prevButton_mc);
I then load external files into a container MovieClip and each of those files is supposed to be able to communicate with the
buttons like this:


Code:
Interface._container.setNextButton();
(I use static vars to reference the interface movie)

This all works if I place copies of the NextButton and PrevButton inside each Library of the external files; otherwise it fails because the external files can't see these classes. What's a way to do this without adding the buttons to each and every Library? Am I stuck creating an external class file like NextPrevious.as?

View Replies !    View Related
1087 Error From Trying To Access A Button Inside A Symbol
Hey All,

I've been getting a 1087 error with regards to my attempts to access a button inside a symbol which is being referenced by a ScrollPane Component.

The basic idea is for the user to click a button in the symbol scrollable symbol, that in turn affects a movie clip outside the symbol and ScrollPane. The code I am using is as follows.


Code:
// infoPaneMC is the movie clip outside the ScrollPane that I am trying
// to activate. In a perfect world, pressing the button below would
// cause it to slide into frame (or halfway through its timeline)
infoPaneMC.stop();

// scrolltest is the movie clip symbol referenced by the ScrollPane
// 1800_R_Button is the button inside scrolltest
scrollTest.1800_R_Button.addEventListener (MouseEvent.MOUSE_UP,startClip);
function startClip(e:MouseEvent) {
infoPaneMC.play();
}

// This code is what I am using to close infoPaneMC by playing it
// out from its halfway mark
infoPaneMC.addEventListener (MouseEvent.MOUSE_UP,startClip2);
function startClip2(e:MouseEvent) {
infoPaneMC.gotoAndPlay("infoPanePause");
}
However I keep getting the following error:

1087: Syntax error: extra characters found after end of program.

The line it refers me back to is:


Code:
scrollTest.1800_R_Button.addEventListener (MouseEvent.MOUSE_UP,startClip);


Any ideas?

Thanks!

Boz

View Replies !    View Related
Document Class Access Of Button On A Specific Frame
I have a button that exists on a certain frame in my flash movie. I'm getting a null reference error when I try to compile the movie. Here's what the trace window reports:

onConnect1 running! chatService has connected.
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at MethodInfo-289()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at net.flashmog::FlashMOGService/socketConnectHandler()


The code is attached.







Attach Code

package {
import fl.controls.TextArea;
import flash.display.MovieClip;
import flash.events.*
import flash.text.TextField;
import net.flashmog.FlashMOGService;

/**
* A simple chat application.
*/
public class ChatExample extends MovieClip {
private var lastErrorMessage:String = '';
private var chatService:FlashMOGService;

public function ChatExample() {
this.stop();
chatService = new FlashMOGService('11.22.33.44', 1234, 'chatService');
configureListeners();
chatService.connect();
}

private function configureListeners():void {
chatService.addEventListener(Event.CONNECT, onConnect1);
function onConnect1(evt:Event):void {
trace('onConnect1 running! chatService has connected.');
gotoAndStop('username');


function submitClick(evt:MouseEvent) {
if (usernameText.length > 0) {
usernameStatusText.text = "Registering username with server...";
chatService.server.registerUsername(usernameText.text);
} else {
usernameStatusText.text = "You must enter a name!";
}
}
submitButton.addEventListener(MouseEvent.CLICK, submitClick);

} // onConnect
} // configureListeners
} // class ChatExample
} // package

View Replies !    View Related
Target/access Button Inside (attach) Movieclip
Hi everyone,
im new to flash and actionscript v2.
would be great if i could get a shove in the right direction.

im trying to get a button working that is inside a movie clip.
the movieclip is given a linkage identifier (container_id and name as container_mc) as it is inside the library and not on the stage.
The movie clip has three buttons inside it.
I have the following code on each of the button

Code:
_root.containerBase_mc.scrollUp_btn.onRelease = function() {
trace("scrol upn");
};
this.containerBase_mc.scrollDown_btn.onRelease = function() {
trace("scrol down");

};
this._parent.containerBase_mc.close_btn.onRelease = function():Void{
trace("close me");
}
as you can see my desperate attempts to get this working
none of the trace actions work...
any help?
thank you.

View Replies !    View Related
SharedObject -how Do I Access It From Another Movie?
I have created a Shared Object in "a.swf". I can read and write to it -no problem, but how do I access it from a movie "b.swf".

If in "b.swf" I use:

so = sharedobject.getLocal("savedPrefs");
myTextfield.text=so.data.thevar;

...Nothing happens!

Or when trying to indicate the path to the movie which created the SharedObject:

so = sharedobject.getLocal("savedPrefs","/dir/a.swf");
myTextfield.text=so.data.thevar;

-same result.

Anybody got this to work?

PS:
Again, I need to access my SharedObject not from the movie I created it in but from a DIFFERENT one.
Any help would be appreciated
[Edited by ajuly on 07-04-2002 at 06:04 PM]

View Replies !    View Related
FTP Access Via Flash Movie?
Hello and thanks for your time.

I am wondering if it is possible to upload and download to an FTP account via a GUI on either a flash movie or html page?

Any help would be greatly appreciated

Cheers

View Replies !    View Related
How Do I Access A Movie That I Have Loaded?
i have loaded using loadMovie() a swf into a MovieClip called "Target".
inside the movie i loaded i have this code :

_root.createTextField("MyTxtField", 20, 375, 142,725,500);
MyTxtField.html = true;
MyTxtField.htmlText = "<B><I>Chris</I></B>";

while i run the loaded movie as stand alone everything is ok!
but when i load it into using loadMovie() it isn't working!
i think maybe bacuse of the "_root" that maybe when it's loaded it should be used diffrently!
what to do?
thanks
Peleg

View Replies !    View Related
How Can I Access The Duplicate Movie
i have a movie named "cross". i make duplicate movies (cross2) from this movie (cross). These crosses r shown on a Map. Now i want to zoom this map as well as cross with it. But i can access duplicated movies. Can any one plz help me that how can i zoom in the duplicated movies....... in the below code i m trying to zoomin these Duplicated movies....

on (release) {
cross2._xscale = int(getProperty(cross2, _xscale)+5);
cross2._yscale = int(getProperty(cross2, _yscale)+5);
}

Plz help me...........Thanx
IFFY

View Replies !    View Related
Access External Movie
Hi:

I would like to set height after I load an external movie into a movie clip.

For example,

this.body_mc.loadMovie("body_about.swf");
_root._height = this.body_mc._height;

Does these make sense?
I always get height as 0, because body_mc is an empty movieClip.

Can anyone help me on how to access the body_about.swf height as soon as loaded the movie into the empty movie clip? Any suggesstion?

Thanks

View Replies !    View Related
SharedObject -how Do I Access It From Another Movie?
I have created a Shared Object in "a.swf". I can read and write to it -no problem, but how do I access it from a movie "b.swf".

If in "b.swf" I use:

so = sharedobject.getLocal("savedPrefs");
myTextfield.text=so.data.thevar;

...Nothing happens!

Or when trying to indicate the path to the movie which created the SharedObject:

so = sharedobject.getLocal("savedPrefs","/dir/a.swf");
myTextfield.text=so.data.thevar;

-same result.

Anybody got this to work?

Again, I need to access my SharedObject not from the movie I created it in but from a DIFFERENT one.
Any help would be much appreciated

View Replies !    View Related
Access External Movie
Hi:

I would like to set height after I load an external movie into a movie clip.

For example,

this.body_mc.loadMovie("body_about.swf");
_root._height = this.body_mc._height;

Does these make sense?
I always get height as 0, because body_mc is an empty movieClip.

Can anyone help me on how to access the body_about.swf height as soon as loaded the movie into the empty movie clip? Any suggesstion?

Thanks

View Replies !    View Related
Access External Movie
Hi:

I would like to set height after I load an external movie into a movie clip.

For example,

this.body_mc.loadMovie("body_about.swf");
_root._height = this.body_mc._height;

Does these make sense?
I always get height as 0, because body_mc is an empty movieClip.

Can anyone help me on how to access the body_about.swf height as soon as loaded the movie into the empty movie clip? Any suggesstion?

Thanks

View Replies !    View Related
How Do I Access A Movie From Another Movie (class?) ?
Hey all,

I really need some help about this. AS3's driving me crazy O.o
ok, please see the attached image. This is basically my setting (in reality more complicated, but it's basically something like this).

So based on my image, i am trying to get paul_mc to talk to stef_mc. How do I do this??

All the script on paul_mc is found in a class which is something like this (simplified):

----------------------------------------------
package {

import flash.display.*;
import flash.events.*;

public class cableListItem_mc extends MovieClip {

public function cableListItem_mc() {
addEventListener (MouseEvent.MOUSE_DOWN, swap);
}

private function swap(e:MouseEvent):void {

// talk to stef here

}
}
}
------------------------------------------------

Thanks a lot in advance...













Attached Images

View Replies !    View Related
Need To Use A Movie Clips Name To Access A Variable Help
ok..this is hard to explain, but ill try and simplify it.

ive got 3 mcs- mc1, mc2, mc3
ive got 3 variables- mc1_x, mc2_x, mc3_x (all defined in frame 1 of the main timeline)

i need to use the EXACT same actionscript with each mc. yet, each mc needs to grab the value of the variable that matches up to it (mc1 needs to access mc1_x)

so, somehow i need to get the name of the movie clip, append some characters to it, and have that whole mess be the actual variable that is defined in frame 1 of the main timeline.

View Replies !    View Related
How To Access Scenes From Movie Clips
hello

im unable to access the scenes on main stage from the

movie clip events

and also i want to capture escape key in the flash player

any suggestions...

View Replies !    View Related
Access Variables In A Loaded Movie
Hi all,
I'm stumped! I load a movie and try to access it's variables:

test.swf has a variable:
title_txt = "test";

I try:

LoadMovie ("test.swf", marker_mc);
trace (marker_mc.title_txt);

marker_mc.title_txt is undefined!

How do I use LoadMovie and get access to the variables in the loaded movie?

Thanks for reading my daft post!

View Replies !    View Related
_global Variable Access From Another Movie
I want to access the value of a global variable defined in a movie in level0, in another movie loaded into level1. Anybody know if I can do this, and if so how? cheers....

View Replies !    View Related
Buttons Access Behind Other Movie Clips
hi,

I have a button on my stage which now has a new movie clip covering it partially, when I roll over the movie clip I can still access the button underneath, is there any way to stop this while at the same time when I roll-out the area of the movie clip, I can still access the button.

hope it makes sense

Thanks

View Replies !    View Related
How Do I Access Variables In A Loaded Movie?
Hi,

Does anybody know how to access the variables within a movie you have loaded with loadmovie("movie.swf", myDropZone) where myDropZone is an instance of a movie clip i use to load movie.swf into the right place?

So, I want to update dynamic text variables in movie.swf from outside. Is that possible?

Any help is GREATLY appreciated!!!

-Laura

View Replies !    View Related
Please Help Access Variables In Loaded Movie
Hi,

Can anyone tell me how to access dynamic text variables inside an .swf that I loaded with loadMovie("movie.swf", myDropZone), where myDropZone is a movieclip that i use to ensure that movie.swf ends up in the right place on my screen?

I want to pass a string from my main movie, which loaded movie.swf into it, to movie.swf.

Is that possible?

Any help is greatly appreciated!

-Laura

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved