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




How To Change The Content Of An Instance?



Hi!

To get a loop-animation, i move an instance A1 of movieclip A wich contents movieclip B on the stage.

With every loop, i want to change the content of A, so that movieclip C, D, ... is shown.
I don`t wanna load *.swf`s with loadMovie.

Is there any (actionscripting) way to remove B out of A and place C instead?

Pls. help me to solve this problem. Thx. in advance.

CG



FlashKit > Flash Help > Flash ActionScript
Posted on: 05-03-2002, 09:45 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Content Instance Problem
I have a rookie flash site i am building. Under normal circumstances the user would click one main menu button to access all the catagories. Well, now they want to change it all so all the catagories are on the catagory they are visiting so in turn they do not have to go to the main menu every time to browse other subjects. This is what I did.
1. Made a seperate button for each catagory.
2. Lined them up on the right side of the page.
3. used the following code to turn each content clip off on release.

on (release) {
tellTarget ("exposition") {
gotoAndPlay(1);
}
}
on (release) {
tellTarget ("mathand9_03") {
gotoAndStop(15);
}
}
on (release) {
tellTarget ("instlrmv") {
gotoAndStop(15);
}
}
on (release) {
tellTarget ("custfurn") {
gotoAndStop(15);
}
}
on (release) {
tellTarget ("specialevnts") {
gotoAndStop(15);
}
}
on (release) {
tellTarget ("audvid") {
gotoAndStop(15);
}
}
on (release) {
tellTarget ("electrical") {
gotoAndStop(15);
}
}
on (release) {
tellTarget ("custserv") {
gotoAndStop(15);
}
}
on (release) {
tellTarget ("contact") {
gotoAndStop(15);
}
}
The problem is that all the content clips write over one another. They all are loaded on the main scene and called out as intances. I will get a link up as soon as i figure that one out but to all you coders who may see this in this description. Can you please help out a rookie?

UI: Window - Instance.content.......
Hi,


Code:
instance = PopUpManager.createPopUp(_root, Window, true, {contentPath:"loadsomething", closeButton:true});
instance. ....;
instance. ....;
.....;
instance.content.textfield.text = "hello world";
I can't seem to get this part "instance.content.textfield.text = "hello world";" of the code to work.

In the flash doc it says "windowInstance.content....."

But no matter what I try, it just doesn't seem to work.

Any help would be great.

Thanks,
alex

Instance Name Of Scroll Pane Content MC
Good evening folks!

This is going to be in MX 2004 Pro.

I'm trying to attain the INSTANCE name (not the object name) of a movie clip inside a scrollpane (componant) in order to control other MC's (movie clip) inside that MC.

(alternate explanation):
The Movie Clip with the object name "pieceOfPaper" contains another movie clip with an object name of "yellowBox" and an INSTANCE name of "highlight1".
Now, "pieceOfPaper" is INSIDE a scrollpane with an instance name of "pane1". If I want to tell "highlight1" to be not visible (_visible = false from OUTSIDE the scroll pane (on the _root) what path do I need to use to tell it to do so.

Or is there a piece of code/method for getting the instance name assigned to the MC inside the scrollpane.

Thanks everyone!

Duplicate The Content Loaded Into A Loader Instance?
This is probably so simple, but I'm trying to figure out how to use the visual assets from a Loader instance multiple times.

I'm creating a square with a cutout shape (which comes from the Loader instance); but because the square (button) is made up of multiple mcs with various Layer/Erase blendmode voodoo, I need three instances of the cutout.

While I'm sure I could make it work fine if I created, say, three separate Loader instances, I'd rather not -- I mean, surely there's a way to re-use the one Loader instance?

I couldn't find the equivalent of a clone() method, and quite frankly, I'm at a loss. I'd appreciate any help anyone can provide!

Instance Change
Im making a site fully out of flash, and I have a rollover - tell target to play thing set up, but sometimes the instance that plays the rollover effect changes to 15 instead of staying 3. My button rollovers are set to set off instance 3. So you see my problem any help would be great. Thanks -Roman

Change An Instance Name
does the

setProperty(target, property, value) work with changing instance names?
would it be a

setProperty(this, _name, "newName") or is it configured differently?

[F8] How To Change The Instance Name Through AS
Hi,
I need to know how can i change the name of any instance name through AS??
I used _name property but no use, it just gives us the name


Regards,
Amir

[F8] Change Instance Name
Another quickie..

Does anybody know of a way to change the instance name of a movieclip using actionscript?

I want to use it so I can swap the instance names of 2 movieclips.

Thanks!

Instance Name... Change It With AS ?
i have web page creating in flash, and im loading external swf's into MC.
I use preloader, that have a MC and the MC have a instance name...
Now that i donw want to duplicate this preloader X external files, i want to use 1 preloader on diferent frames, but i have to change the MC istance name, to work properly.
though....
i dont know, how to do that?
How can i with AS change instance name of a MC?!
thnx!
Regards!

Fresh_ales

Change Instance Name
I am using Macromedia Flash 8 Pro.. I was wondering if there was a way to update the instance name of a clip on the stage using AS 2.0?

ie.  I have userClip3_mc and want to change it to userClip4_mc

[F8] Call Movieclip Using Variable, Not Instance Name: This[variablename].content
Hello there.

Actionscript: 2.0
Flash: 8.0

I want to access a movie clip by using a variable value, not using it's name.

this[variablename].conteudoFinal = "<font color='#185c70'>"+titulo+"</font> "+textopequeno+"<br><br>";

The problem is this:

If i use the ABSOLUTE reference to the movie clip, like this

_root.texto.contentMain[duplicacao].conteudoFinal = "<font color='#185c70'>"+titulo+"</font> "+textopequeno+"<br><br>";

it works fine.

The problem is this is an external SWF wich will be loaded into a main swf in a movie clip, so the _root would not work anymore.


I have tried this[variablename].conteudoFinal = "<font color='#185c70'>"+titulo+"</font> "+textopequeno+"<br><br>";

it doesn't put anything on the variable of the textfield called conteudoFinal.

However, the variable titulo and textopequeno have values inside. I've traced them.

Any help?!

Thanks in advance!!

Ricardo

Dynamically Change Instance Name Of Mc
is there any way to dynamically change instance name of a movie clip??

Is There A Way To Change An Instance Name With Codes?
Is there a way to change an instance's name with a certain code??

Change Instance Names
Hi..

I have a button I would like to copy from one project and put it in antoher. I would like to make several copies of this button and then change the text for each of the copies so that they will function as other buttons.

HOWEVER: When I change the text of one of the buttons, the others will also change because thier instance names are all the same.

Is ther any way to change the instances names??

Thanks
-- KevinRyan

Flash MX

Instance Name Won't Reflect Change
Hi. I have put in my properties window btn_4 for a particular button but it keeps saying instance10 in my debugger. all my other buttons are saying btn_1, etc., except for this one btn_4... Any ideas??? Thankyou much...

Change Instance Name In A Loop
I have an actionscript that imports values from an external php file, and I am trying to plug the different values into various different dynamic text fields.

There are almost 100 records I'm importing into the flash file. So I've written a loop that will place the different fields into different dynamic text fields, based on the instance name of the movie clip.

The problem is, how do I change the instance name in my loop?

Here's a small sample of what I got...

code: for(var i=0; i<this.cant; i++){
w1['date'+i] = this['date'+i];
w1['title'+i] = this['title'+i];
}

Now this works, but I want to avoid having to write a line for each field (80+). Thus the loop.

But how can I change the instance name from 'w1' to 'w2' on the second pass? etc.

Any help would be apprieciated.

(Using Flash MX 2004 Pro)

How A Variable Can Change An Instance Name
I have a moovie clip with instancename 5
and need to acces pasing the variable

p1=5
"p1".gotoAndStop(Number(p1));**//not work!!!

or if i change the instance name to x5

p1=5
"x" add p1.gotoAndStop(Number(p1));**//not work!!!

[CS3] Using Instance From Array To Change MC
trying to get the instance from an Array [ie disableButton function in CategoryButton class] to call a function.

Can't seem to make it work

categoryButton class

Code:
package
{
import flash.display.*;
import flash.events.*;
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.net.URLRequest;

public class CategoryButton extends MovieClip
{
var labels:Array;
var thisParent:*;
var thisIndex:int;
public var buttons:Array;
public var nextPageName:String;
public var newPage:Pages;

public function CategoryButton()
{
labels = this.currentLabels;
this.buttonMode = true;
this.addEventListener(MouseEvent.CLICK, disableButton);
this.addEventListener(MouseEvent.ROLL_OVER, over);
this.addEventListener(MouseEvent.ROLL_OUT, out);
this.addEventListener(Event.ADDED, setParent);
}

public function disableButton(event:MouseEvent):void
{
for(var i:int = 0; i < labels.length; i++)
{
if(labels[i].name == "disable")
{
this.gotoAndPlay("disable");
}
}
this.removeEventListener(MouseEvent.CLICK, disableButton);
this.removeEventListener(MouseEvent.ROLL_OVER, over);
this.removeEventListener(MouseEvent.ROLL_OUT, out);
enableOthers();
nextPageName = this.name;
}

function enableButton():void
{
this.addEventListener(MouseEvent.CLICK, disableButton);
this.addEventListener(MouseEvent.ROLL_OVER, over);
this.addEventListener(MouseEvent.ROLL_OUT, out);
this.gotoAndStop(1);
}

function over(event:MouseEvent):void
{
for (var j:int = 0; j < labels.length; j++)
{
if(labels[j].name == "over")
{
this.gotoAndPlay("over");
}
}
}

function out(event:MouseEvent):void
{
for (var k:int = 0; k < labels.length; k++)
{
if(labels[k].name == "out")
{
this.gotoAndPlay("out");
}
}
}

function setParent(event:Event):void
{
if (this.parent is ButtonSet)
{
thisParent=ButtonSet(this.parent);
for (var w:int=0; w < thisParent.buttons.length; w++)
{
if(this == thisParent.buttons[w])
{
thisIndex=w;
}
}
}
}

function enableOthers():void
{
for (var z:int=0; z < thisParent.buttons.length; z++)
{
if (z != thisIndex)
{
thisParent.buttons[z].enableButton();
}
}
}
}
}
Pages Class

Code:
package
{
import flash.display.*;
import flash.events.*;
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.net.URLRequest;
import CategoryButton;

public class Pages extends MovieClip
{
var myLoader:Loader = new Loader();

var myRequest:URLRequest = new URLRequest("assets/pages/designMovie.swf");
var myRequest2:URLRequest = new URLRequest("assets/pages/actionScript.swf");
var myRequest3:URLRequest = new URLRequest("assets/pages/portfolio.swf");
var myRequest4:URLRequest = new URLRequest("assets/pages/resume.swf");
var myRequest5:URLRequest = new URLRequest("assets/pages/contact.swf");

public function Pages():void
{
addChild(myLoader);
myLoader.load(myRequest3);
}

public function nextPage(thisName:String):void
{
if (thisName == "designBtn_mc")
{
addChild(myLoader);
myLoader.load(myRequest);
trace(thisName);
}
if (thisName == "actionscriptBtn_mc")
{
addChild(myLoader);
myLoader.load(myRequest2);
trace(thisName);
}
if (thisName == "portfolioBtn_mc")
{
addChild(myLoader);
myLoader.load(myRequest3);
trace(thisName);
}
if (thisName == "resumeBtn_mc")
{
addChild(myLoader);
myLoader.load(myRequest4);
trace(thisName);
}
if (thisName == "contactBtn_mc")
{
addChild(myLoader);
myLoader.load(myRequest5);
trace(thisName);
}
if (thisName == "emailBtn_mc")
{
addChild(myLoader);
myLoader.load(myRequest5);
trace(thisName);
}
}
}
}
Please if anyone knows how they can help I could really use it.

Change Color Per Instance
I have a MC that is basicly a star exploding. What i am trying for is for each instance of the MC to be a random color. This is the code i have.

this.createEmptyMovieClip ("canvas_mc",10);

MyInterval = setInterval(addstar,500);



function addstar() {
myColor = Math.round( Math.random()*0xFFFFFF );
myColoredObject = new Color (canvas_mc);
myColoredObject.setRGB(myColor)
var t:MovieClip = canvas_mc.attachMovie("star","stars"+i, canvas_mc.getNextHighestDepth());
i++
t._xscale = t._yscale = Math.random()*80 + 20;
t._x = Math.random()*600;
t._y = Math.random()*500;
t._alpha = random(70) + 30;

}

i can only get it to change canvas_mc but not the stars+i instance.
Anyhelp would be greatly appreciated.

Variable Change To Instance Name
i have a movieclip prototype function set on a frame's acitons and i want to add to it a way to change a variable stored in the _root to the name of the instance i'm rolling over


Code:
this.onRollOver = function() {
_root.variable = (this.instancename);
}
is this possible?

Change Instance Behavior On-the-fly
Is it possible to change an object's instance behavior on-the-fly? In other words, can I change the instance of a movie clip object to behave as a graphic through actionscript?

How Can I Change The Name Of A Instance Dinamically?
I am creating a photo gallery and have created 20 movie clips (called thumbHolder1 all the way to thumbHolder20) these will hold the 20 thumbnails that are loaded using MovieClipLoader.

So far no problem, but is there a way avoid having to enter the following code 20 times (and change the name every time)?

myMCL.loadClip("gallery/tn_photo" + picNum + ".jpg", this.thumbHolder1);

What i need is a way to use a for loop and add 1 at the end of the name of the instance (thumbHolder*)
I also need to use the same thing with a name of a dinamic text field

Thanks !!



[as2] How To Change Path Of MC Instance?
Hi,

I want to drag and drop mc's from within one mc to another.
Okay - more in detail:
I got the following mc(-paths):
_level0.dragfrom.mc01
_level0.dragto.mc01

In the end, I want to drag an mc from 'dragfrom.mc01' to 'dragto.mc01'.
Therefore I have to copy the content of an mc (or the mc itself) FROM somewhere TO somewhere.
What is the best way to do it?

I thought of something like this:
Use duplicateMovieClip() to duplicate the mc within its parent-mc
_level0.dragfrom.mc01 -> _level0.dragfrom.mc01_dup
and then 'relink' the duplicated mc to its new path
_level0.dragto.mc01_dup

But I dont know how to 'relink' :-(

You got me?
Or more basic: How can I realize drag'n'drop with deeply nested MC's?

cheers
uli
(btw: createEmptyMovieClip() at _level0.dragto.mc01_dup and then loading the original content is nonsense because I have to load the already loaded content again)

How To Change Movieclip Instance Direction
is there any way to change the direction of movieclip instance using action script

Using A Variable To Change An Instance Property...
I'm working on a calendar utility and I'd like to control the _alpha of some movie clip instances.

My flash file contains an array , weekendsRes_array, and a number of movie clips with instance names of "inst_weekendBackground1, inst_weekendBackground2...etc."

I'm trying to control the alpha of the instance based on the value of "i", but it's not working like I planed. Here's the code I'm having trouble with:


weekendsRes_length = weekendsRes_array.length;

for (i=0; i<weekendsRes_length; i++) {
weekendVar = weekendsRes_array[i];
instanceNum = inst_weekendBackground + i;
if(weekendVar == 0) {
instanceNum._alpha = 0;
}
}

I'm imagining it has something to do with the fact that when I declare "instanceNum", it's stored as a string, and then when I try to use it to adjust the instance's alpha value, it's not recognizing the variable as the name of the instance....

Does this make sense? Do I need to change the way the instanceNum is structured?

Thanks in advance for any help you can offer.

Is It Possible To Change ActionScrip In Instance Of Movieclip
Is it possible to change ActionScrip in a instance of a movieclip without changing the original movieclip?

I have a movieclip with embedded video inside. The video is being started by a keystroke.

I want to use the same movieclip in another place in my movie, but without the onKeystroke actionScript code.

I have tried to dublicate the movieclip and remove the onKeystroke code and that is working fine.

BUT - the file size have doubled. I have tried to use the videofiles without putting them into movieclips, but they still double the file size of the final movie.

That leads me to the conclusion that I must dublicate the movieclip and then find a way to disable the "onKeystroke" actionScript code.

I would be happy if anyone could come up with any suggestions to solve this problem.

Two Instance Listening For The Same Variable Change
I need to create two instances of the same movie clip and when the button on either one of them are pressed the other one needs to know about it as well. These two movie clip instance sit within a complex environment which makes it difficult form them to talk directly to each other so I need a variable both of them can be watching.

The basis of the code, I think, is as below but I need to know how I can assign the myInstruction varliable can be assigend to the root while the listener objects remain local:


Code:

// Create controller to allow both pages of a spread to execute instructions
var myController = new Object ();
// Add a property that tracks
myController.path = this;
myController.myInstruction = "Start";
// Write the callback function to be executed if the speed property changes
var instructionWatcher:Function = function (prop, oldVal, newVal):Void {
trace (prop+" : "+oldVal+" : "+newVal+" : "+this.path)
if(newVal == "scrollRight"){
this.path.pageMove(1)
} else if (newVal == "scrollLeft") {
this.path.pageMove(-1)
}
};
myController.watch ("myInstruction",instructionWatcher,"");
//
//_root.myController.myInstruction = "UP";
//_root.myController.myInstruction = "DOWN";
// unwatch the object
//_root.myController.unwatch("myInstruction");
Maybe this is the wrong approach so other suggestions are welcome

Thanks

Change Library Clip And Get New Instance With Changes
I have a clip in the library and I want to change the content of a dynamic text and then when creating a new instance of the library having this clip with the dynamic text changed.
I know this short code doesn't work, but I would like to know how to solve it:

this.attachMovie("mcl_test", "mc_test",2);
mc_test._x=0;
mc_test._y=0;

mc_test.str="HOLA MY FRIEND";

this.attachMovie("mcl_test", "mc_test2",22);
mc_test2._x=110;
mc_test2._y=110;


The next idea is :
1.- Having a clip base on the library.
2.- Instancing such clip and loading an external movieclip.
3.- Being able to instantiate the library clip in any part of the main movie with the contents of the alreay loaded clip into the library clip.

I have a working solution, that is insert the loadmovie instruction inside the library clip, but I would like some more open and dynamic.

Thanks a lot!

How Do You Change The Color Of An Instance With Actionscript
ok

I know how to change the color of an instance regularly with a motion tween. But how do you change the color of an instance with Actionscript? and is it possible to include a tween with that actionscript so that you can input a color and then watch it change color.

Change Property Of Button - No () Instance Name
i want my button to change it's opacity onrelease.
i know i just have to name the instance of the button and then

ActionScript Code:
setProperty("button1", _alpha, "80")
BUT i have like 50 buttons on the page and i'm not planning to name all the instances to be able to catch the property.

- can i do the same with something like

("this", _alpha, "80")
("self", _alpha, "80")

???

please help, me facing naming instances like mad )

How To Change Multiple Instance Names?
i know this may be a stupid question ...
but i just cant figure it out...

may i know how to change multimple intance names at once to the symbols which have been keyframed (instead of clicking each keyframed symbol and name it one by one...)

thanks.

Flash 8 How To Change LoadVar Via Instance Name
Hi there, its been a while since I've scripted so I'm very rusty. Can someone please point me in the right direction on how to go about the following?

I have an mc with a dynamic text box inside with script that loads in different txt files dependant on the instance name of the mc. What i'd like to do is have all the different txt files combined into one txt file and then have the code open up which ever section is needed. I didn't want to duplicate the mc unnecessarily so thought the best way was via the instance name to define which section it opens but am open to suggestions..

I'm not sure on where to begin so if this is an array thing or something else i don't mind do the research i just don't know where to start!

So far I have been using the following code:

textName = this._name;

var format = new TextField.StyleSheet();
var path = "css/flash.css";

format.load(path);
format.onLoad = function(success) {
if (success) {
output.styleSheet = format;

myLoadVar = new LoadVars();
myLoadVar.load("text/"+textName+".txt")
myLoadVar.onLoad = function (success) {
if (success == true) {

// I'd like to change the following line so that 'changeThis'
// can be changed via the mc instance name

output.htmlText=myLoadVar.changeThis;

}
}

} else {
output.text = "Error loading CSS file!";
}
}

How To Change Multiple Instance Names?
i know this may be a stupid question ...
but i just cant figure it out...

may i know how to change multimple intance names at once to the symbols which have been keyframed (instead of clicking each keyframed symbol and name it one by one...)

thanks.

Content Change
Hi!

How can i do a content changing (when pressing a button) like there but only horizontal: http://www.templatemonster.com/flash...tes/14502.html

I mean when the content is changing you can see both pages, the new and the old info.

I tried to do something with the help of other flash dudes but no good.
http://www.zone.ee/intsz/contentchange.fla

How To Change Instance Name Of Movie Clip Dynamically?
Dear,

Is there any way to change instance name of movie clip dynamically?

Suppose, there are...
Button A named 'a1'
Button B named 'b1'
Button C named 'c1'
Movie Clip named 'm1' with instance name 'm1'. (this constains button 'c1').

if I press Button A then, I want to show movie clip 'm1' with instance name 'm1'
And if I press Button B then, I want to show movie clip 'm1' with instance name 'm2'

To make a long story short, I want to change instance name of movie clip dynamically.

Is this possible?

Thanks in advance,

Yung

How I Change Lable Text On Button Instance?
in the fla file, i want to change the text on a self created button instance, which means that i could use the same button many times on the same frame, with differant lables for differant actions i want to enable through button clicking. i did not grasp the trick how to do it. the library buttons have this trick. i only managed to duplicate the symball for each lable change, and it seems to me very awkward. can you show me the way?

How Do You Change A Button Instance Without Selecting The Symbol?
I'm a noob to flash but trying to learn on my own... I want to save on file size by creating a button symbol and reusing it over again 6 times for my menu. I want each button to have a different rollover color but when I double-click the button in order to edit the "over" frame I default to editing the symbol. How do you edit button frames of an instance without editing the symbol itself?

Thanks!


ST4R,

How Change Depth Of Window Component Instance
Hello!!! I'll glad to get some help!

The details:
One window instance(win1) created by draging from 'Components' to stage.
Second window instance
created by adding follow ActionScript code:

var win2 = PopUpManager.createPopUp(_root.application, Window, false, {title:"ActionScript Window", contentPath:"sfrm.swf", closeButton:true});:

The problem:
On press title bar the win1 not came in front.
How can I set first window(win1) above the second(win2) using Action Script?

Thank's for your attention!

P.S. Excuse for mistakes.

How Could We Change The Color Of The Symbol Dynamically Not The Instance
hi guys,

i need to change the color of the Symbol(movieclip), Dynamically
i dont want to change the instances color directly...
Let me explain in details

I have a symbol name ball..its color is blue
i have around 10 instances with 10 name on the maintime line
what i need now is if i want to change the color of the symbol...so that all the instances get changed. this should happen dynamically by AS in the symbol only...

Regards,
Mohan.

Change Button Instance Color With Actionscript?
Anyone know how to change the color of a button instance with actionscript? If I pass in a default variable I want to change that particular button to a different color.

Do I Just Cut And Paste, And Change Instance And Variable Names
I like the reflection in Amen's photo gallery code, and I like the scrolling thumbnail panel in Dale's code. Both allow modification. And, the links to the files are:

Amen's: http://www.actionscript.org/resource...ial/Page1.html

Dale's: http://www.blog.noponies.com/archives/16

I think I should try to modify Amen's, as it is more like I want. Do you agree that it's the most practical decision?

How do I simply take out the hyperlinks ( 1, 2, 3) buttons in Amen's gallery and put in (replace it with) Dale's scrolling thumbnail panel. It is confusing to me to figure out how to modify Amen's code because of all the files at my finger tips. For instance, Amen uses one AS3 file, an apparent blank Flash CS3 Document (which my have a document class?) with the same name as th AS3 file name, an xml file, and an images folder. Dale uses a Flash CS3 Document, a gs folder with TweenLite and TweenFilterLite AS3 files, two XML files, a CSS file, a thumbs folder, a large pictures folder, and a fonts folder.

Of course, I plan to add my own pictures and background changes afterwards.

If you paste or attach code and brief instructions or explanations, it would be greatly appreciated.

yours sincerely






























Edited: 07/19/2008 at 06:03:49 AM by jntSpecialty

Change Instance Without Changing Original Movie Clip?
I have a scrolling text box that loads text from a text file. The text box is a movie clip that I downloaded from this site. Actionscript identifies the text file to load into the text box. I want to use the same text box several times in the same movie, but have text from different text files loaded in each one. How do I do this? I have tried several things that haven't worked. Whenever I change the action script to identify a different text file, it changes the action script for every instance of the movie clip. Any help is appreciated.

HELP Change Text On Button Instance, And Flip It Horisotally.
Hi there
I can now change text on instances of dynamic text box that was transformed into a movie clip, using frame action script saying: myinstance.mytextbox.text = "desiered text" ;
I was tought that by XFM, thanks so much!

But I need to do the trick on a self made button instance, and it doesn't work at all. Can anybody help me?

Another problem is that I NEED THE TEXT TO BE FLIPED HORISONTALLY and that doesn't work even on the movie clip! The flip works fine on a simple (static) text box, but on the dynamic text movie clip it doesn't load the text at all, not when I tried to flip the original DTbox on the original clip, and not by flipping the MC instance on the stage. Can you hlp me?

Thanks
NK

Change A Movie Clip Instance Via Actionscript With A Fade?
If I have three different boxes in my library, all with the same dimentsions, what I am trying to do on rollover of three buttons is change the box using actionscript on rollover, can anyone help me achieve this, and would it be possible to fade the change in?

Any help greatly appreciated.

How To Change ScrollPane.content
I have a Scrollpane component instance in which I use the following code to set its contents:


Code:
var GalleryMC = ScrollPane.content.createEmptyMovieClip("Gallery"+Gallery.id, i);
This works perfectly, however, later on during the movie I would like to change the content of the Scrollpane to a different, existing movie clip... Theoretically, the code would look like this:


Code:
ScrollPane.content = MCInstance;
However, this doens't work. Does anyone know how to assign a different, existing MovieClip Instance to the content of a ScrollPane?


Thanks in advance for any help!
Aaron

Change Scrollpane Content To Different Mc
Hello. I currently have my scrollpane working fine. I have a movieclip dragged onto the stage where my scrollpane is and i use this code:

Code:
mcpane.source = aboutcontent;
aboutcontent.x = -50
aboutcontent.y = 20
however, now i would like to put links at the top. When i click on the link, the content of the scrollpane changes to another movie clip.

How can i do this? Do i need to drag all of the movieclips onto the stage?

How do i remove the old content, and then load the new content from a mc into the pane?


Thank so much for any help

regards,

J

Change Movieclip Content
Hi

what's the actionscript for changing a movie in a movieclip, a movieclip from the library , not loading an external .swf!

a command like "swap"...

regards, henrik

Change Movieclip Content
Hi

what's the actionscript for changing a movie in a movieclip, a movieclip from the library , not loading an external .swf!

a command like "swap"...

regards, henrik

How To Dynamically Change The Content Of A Bitmap
The homepage of my site contains a bitmap which must change every day. The filename and the path of the new bitmap to display is in a text file.

How can i change the bitmap following the name in the textfile ?

Thanks a lot

Copyright © 2005-08 www.BigResource.com, All rights reserved