TextField Not Taking Parent Clip Property
Ok,
I am feeling stupid here. I want to create text fields at runtime and have them take on the properties (ie. alpha) of their parent clips.
I have a movie that fades clips in a various intervals based on a random number. However the clip that contains the textfield doesn't fade in it just shows up. Since this was a modification to an already existing movie I decided to make a very simple movie to make sure I understood how this worked. The problem is I can generate the text but when I apply rotation or anything else to its parent clip the text doesn't appear.
I can't for the life of me figure out why. The code is on a movie clip on the stage. Any help?
PHP Code:
onClipEvent (load) { //this._rotation = 90; var mytext:TextField = this.createTextField("mytext", 0, 0, 0, 100, 25); this.mytext.multiline = true; this.mytext.wordWrap = true; this.mytext.border = true; var myformat:TextFormat = new TextFormat(); myformat.font = "Toxica"; myformat.color = 0xCCCCCC; myformat.size = 20; this.mytext.text = "Dana L."; this.mytext.setTextFormat(myformat); }
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 06-17-2006, 09:07 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Using The 'parent' Property
Hey, I'm having some problems converting my AS2 code to AS3. I think i've pretty much go it all sussed except for this one problem: and i would think it's a very simple one, but alas...
From inside a symbol, i want to change the location of a MC on the main timeline.
So logically i would think that the code would be:
parent.my_MC.y = 20;
but this gives a compile error of:
1119: Access of possibly undefined property my_MC through a reference with static type flash.displayisplayObjectContainer.parent.my_MC. y = 20;
I'm sure i'm missing something obvious, but seeing it's 5:00pm on Friday arvo my brain has already switched off .
Any ideas?
AS3 Getting Textfield To Move With Parent.
I have a class Square that extends MovieClip. The Movie clip object the class is tied to is animated, it basicaly just moves from left to right on the screen. When I instantiate a new Square in my constructor I also dynaimcally add a text field as in below (this works when it is not animated). I am new to flash and want to know why my text field doesnt move with its parent it was placed in in a animation. And how do i get the below textfield to move with its parent. I assumed since it was a child of the parent it would move also but it just stays put on the screen while the parent (square) actually moves.
ActionScript Code:
var j:TextField=new TextField();
j.width=50;
j.height=50;
j.text=String(_DAY);
this.addChild(j);
Textfield Property
Hello all,
i am trying to change the font property of a textfield in actionscript.
i tried this but i am not seeing the effect of it. Actually nothing happens. What am i doing wrong?
_root.attachMovie("nav1","nav"+coun, coun);
_root["nav"+coun].textItem = "me";
myTextFormat = new TextFormat();
myTextFormat.font = Arial;
_root["nav"+coun].textItem.setTextFormat(myTextFormat);
korkor5
Taking Chunks Out Of A Movie Clip
I would like to take chunks out of a large movie clip using smaller duplicated movie clips.
For example: Having an apple then duplicating a bite shaped movie clip that takes bites out of the apple. Basically I want to be able to punch holes in a movieclip so you can see the background behind it.
Simply overlaying a shape over the movieclip to simulate a hole isn't enough. I need to be able to see the actual bg behind the movie clip as it will be moving and changing.
The only thing I cant think of is a reverse mask, where the mask shape hides part of a movieclip rather than revealing it. That however doesn't seem to exist.
Any suggestions? or alternate ways I could achieve the same effect?
I am really beat on this one.
Movie Clip Problem...They Are Taking Over
I have my site which has buttons which play mc's which open up to other mc's which are different parts of the site.
A mc loads in then the buttons appear you click on the buttons and it plays a mc and goes to that section. And the button interface slides away. This is the same for each button. Now i have a button which stays on the screen at all the its like the back button. It i sment to play the original you could call intro mc and send you back to the interface.
On the button i have
on (press, release) {
tellTarget ("_root") {
gotoAndPlay("nav_intro");
}
Which works when you click it takes you to the start of everything.
This is where the problem starts, everything works fine you can press all the buttons all the mc's play like they should. Then click the back button and everythign loads in again. However, once it has loaded in after pressing the back button i have no control over the navigation when you roll over a button it justs plays the mc without any clicking. Infact when you roll over any button it just plays button1 for examples mc.
Once you have clicked that back button you loose control over anything.
Anyone have any idea what this problem is, cuase if i cannot figure it out my whole site wont work
Scroll Property Of Textfield - What Gives?
Using F5.
It's late. I should stop now, but this is really getting me down! I have found out why some script I've written isn't working - I just can't see why it doesn't work.
I am trying to access the scroll property of a text field from the root timeline, to make a generalised scroll button. I suspect it is this function that's erroneous but can't really see where:
Code:
function outputScroll(clip){
//(simplified for brevity)
trace(clip.scroll);
}
If I supply the path (from _root to the textField) as the argument and call the outputScroll function (from _root) I thought I should get the value of scroll for the text field of interest - but I dont.
I think this is the problem as I can access the value of the scroll property of the text field using trace(myClip.nestedClip.nestedClip2.textField.scro ll);on the _root timeline.
Sorry if this seems obvious.
Thanks in advance for wise words,
oddbodjnr
Restrict TextField Property
G'Day all,
I'm using the restrict property for a text box. When I use :
tbComments.restrict = "";
it doesn't restrict anything although acording to the documentation it is supposed to restrict everything. Can someone please help, I'm trying to stop people entering things into the text box at certain times.
TextField.text Property
hey guys!!
PLz tell me if TextField.text property is only for string?? To be clear, I want to retrieve value for an Array from input text fields placed on stage.THe function is actually to get an average where I need value for variable sum.
Script I have written is below-
function average() {
var sum = 0;
var numbers = arguments.length;
i = 0;
while (i<=arguments.length) {
sum = sum+arguments[i];
i++;
}
trace(sum/numbers);
}
average(fld1.text,fld2.text,fld3.text);///here it takes input numbers in text fields (i.e. instance name txtfld1 and so on)as string and does calculation.
What do I do if I want those values as numbers???(ouchhhh...is it a stupid question??)
TextField.variable Property
hi all,
i have a problem with the TextField.variable property.
i assigned my textField with the name in "" using the variable property and the text field shows nothing.
the variable i am assigning it to is a property of a class i created.
my code line looks like this:
PHP Code:
textContainer.inTxt.variable = "game.score";
where textContainer is a MovieClip that contains the inTxt TextField.
game is an instance of a Class i made and score is a property of the class (a variable inside it that has a get function).
why doesnt it work?
is it because the variable is inside the class?
should i declare some kind of variable outside of the class that will act as a pointer to the game.score?
thanks in advance.
TextField & Margin Top Property ... If Any ...
Hello everyone,
I use very often textfield with html texts ans css. The marginLeft and marginRight properties are very familiar to me but ...
Is there any marginTop (& marginBottom) property available ? None if I read the documentation... well I probably missed something ...
So how can I specify the distance in pixels between the top of my TextField and the top of my text ?
Thanks a lot for any advice you can give me ...
Textfield.backgroundColor Property
I remember back in the day at macromedia's site on the main page there was a search box, which when in focused changing its background color smoothly.
I have found how tochange it but couldn't figure it out how to transform it, should I be defining a function which within change the background color in a sequence, maybe using tween prototypes. ?
am I on the right track, do any of the guys has any example sites around ?
Problems When Resizing The Parent Of A Textfield Object
I've created a sprite which contains a textfield instance. This instance is filled with htmltext from an xml file. Now, if I dynamically resize the container sprite (by scaling it) the text in the textfield starts "running". Words shift lines etc.
Does anybody know how I can prevent that from happening???
_alpha Property Of TextField Instance
hi there,
i have a dynamic txt-field and want to "fade in" text. i discovered the MX feature which allows instances of a dynamic text field to have an alpha property. so if i change this property now, i get some strange values like 77.734375 for example. any explanation?
every help appreciated
Please Help With TextField.html Property In Scroller
Can someone send me or post a working version of the fla (and text file) located here?
http://www.macromedia.com/support/fl...t_scrollmx.htm
Also, could you let me know which html tags can be used? Thanks
Ashley
_droptarget Property - What If It Is A Textfield? Thanks, Sarah
Hi, I have a drag and drop flash movie - it's setup ok
I can detect when the movie i have 'picked up' is
dropped over a movie clip etc;
on(release) {
stopDrag();
_root.answer1 = this._droptarget;
}
What I would like to know is:
if the value of drop target is
/grid/drs1/number
and number is a text field (dynamic) which has been filled
is it possible to access/read a variable which is in number
or if there is a text field inside the movieclip which is returned...
Thanks a million,
Sarah
Access Of Undefined Property? Textfield?
I'm creating a text field in a class and keep getting the same "1120: Access of undefined property feedback." error. What am I doing wrong?
Code:
package
{
import flash.display.Sprite;
import flash.text.*;
import flash.display.*;
import flash.text.TextField;
import flash.text.TextFieldType;
public class test extends Sprite
{
public var feedback:TextField = new TextField();
feedback.multiline = true;
feedback.width = 600;
}
}
[Textfield] No Alias Text Property?
Am I missing something here? Is there a alias text property to textfield?
Because there should be! Again (just like with the skewing thing) Macromedia forgot to implement AS for this feature, didn't they... ?
Heup!
Assign The Property 'input' To A Textfield
how is it possible that i can create a new textfiel (dynamicly) and assign the property 'input' to this textfield??
this.createTextField ("txt", 1, 15,11, 70, 15 );
this.txt.textColor = 0xFFFFFF;
this.txt.text = "";
this.txt.embedFonts = true;
this.txt.selectable = true;
this.txt.type = "input";
myformat = new TextFormat();
myformat.font = "pixelfont";
myformat.size = 8;
this.txt.setTextFormat(myformat);
i tried a lot but i did not find a solution for this problem. i hope that u can help me.
yours lionhead
Scripting A TextField.property Loop--any Success?
As far as I can determine, setting TextField field properties can't be done in the same way as using setter/getter functions for, say, TextFormat objects where a property list is applied to an object with a single method.
But in trying to build something from scratch (I'm so tired of devoting dozens of lines of the same code for each textfield), I've come this far:
PHP Code:
txtFieldPropList=new Array('.background=true','.backgroundColor=0xffffff','.type="input"')
function fieldFormat(){
for(j=0;j<arguments.length;j++){
for(i=0;i<txtFieldPropList.length;i++){
field=arguments[j]+txtFieldPropList[i];
trace(field)
}//end for...i
}// end for...j
}// end fieldFormat()...
fieldFormat('progAttribs_mc.progName_tf','progAttribs_mc.progLen_tf','progAttribs_mc.progComment_tf');
...it traces out a perfectly well-formed path for an object/property, but it doesn't actually get applied to the textfield. Has anyone figured out how to do apply TextField formatting to textfields? Is this not working because of runtime issues, or am I just missing something? (And I'm NOT talking about the TextFormat object's character formatting!! That's something else entirely...)
thanks...
Reseting Text In Textfield (using Scroll Property?)
Hello and please help.
I have a text field which I fill with text and I made a scrollbar for it following a tutorial I found in flashkit.
Everything works quite ok, but... I need to use prev and next button to change the text in the field. That's not a problem, the only problem is that after I changed the text, it remains in the same position as the previous text (I mean - if the user scrolls down, then clicks "next", the next text is scrolled down, too). Is there any property that would set the text back to it's top in the text field? Thanks a bunch!
Alpha Property Does Change Textfield Prop.
I'm switching the alpha property from 1 to 0 and back on an instance of a custom class that extends a sprite. The code works for the most part. The only thing that does not turn alpha 0 some textfields associated with buttons. I cant think of why the entire button can be alpha 0 and the textfield does not get affected. Any thoughts?
ActionScript Code:
function bsRollOver(event:MouseEvent):void { if (menuCont.getChildAt(1).alpha > 0) { menuCont.getChildAt(1).alpha = 0; } else { menuCont.getChildAt(1).alpha = 1; }}
I'm sure I'm missing simple =/
Controling An Instance In A Parent Clip From A Child Clip? ANY Help Appreciated.
I'm sure this is simple, but I'm stuck.
I have an swf file called "base.swf", in which is an instance called "nav" which I need to move around _x and _y. "base.swf" loads a child called "navbuttons.swf". I need to use a button in "navbuttons.swf" to reach back to the parent "base.swf" and interact with the "nav" instance.
I tried the following on the button in "navbuttons.swf";
Code:
on(release){
_parent.nav.xpos=670;
_parent.nav.ypos=375;
}
I was thinking that since base.swf loads navbuttons.swf that the _parent part on the button would get me back to the parent, and the .nav part into the instance I want to control... but it's not working. I tried _root instead of parent with no luck.
I'm sure this is simple, can anyone point me in the right direction?
Assign Actions To Both Parent Clip And Child Clip?
Hello, i need to find a way to add actions to both a parent and child clip.
I ultimately need the entire nav to zoom in when rolled over, and the clips inside the nav have an onRelease function assigned. Any suggestions?
(AS 2.0) Making A Clip/button Close Parent Clip?
Hi, this is probably a silly question, but I'm still fumbling around and learning, and now my employers expect me to be a genius with Flash!
Can we make something, ie a close button, that onRelease will close the parent Movieclip, regardless of the name of that parent? I'm going to need a lot of close buttons, and I don't like the idea of coding each to close the relevant MC. I've done a bit of experimenting, but not had any luck yet.
And if this works in AS3, I'm happy to know that too. Gonna get upgraded soon!
Thanks for any help,
Leia Graf
Setting Variable Property For Dynamically Created Textfield
i'm creating a completely dynamic form. i want to assign a variable name to a textfield and then pass that variable with a LoadVars() object.
here's a small piece of code i can't get working:
//create movieclip (used like a form)
_root.createEmptyMovieClip( 'dialog_body', 0 );
//create textfield input
dialog_body.createTextField( answer, 50, 500, 150, 100, 30 );
dialog_body[ answer ].type = "input";
dialog_body[ answer ].border = true;
dialog_body[ answer ].variable = "fname"; //id will be 1 - 400
// lname is a textfield created using the stage, and the properties window
// putting 'lname' as the var.
//when button is clicked
mybutton.setClickHandler( "OnClick" );
function OnClick() {
trace( dialog_body[ "fname" ] ); //traces the correct value
trace( lname ); //traces the correct value
dialog_body.removeMovieClip();
//simple test script prints all the recieved variables
getURL( 'testing.php', 0, 'post' );
}
problem / question: my test script 'testing.php' doesn't have any knowledge of dialog_body[ "fname" ], why?
it prints:
FUIComponentClass=[type Function]
FPushButtonClass=[type Function]
OnClick=[type Function]
i=0
lname=smith
--- where is fname?
bottomline: if i create a textfield using the traditional method and assign the 'var' it works fine. if i create a textfield dynamically at run time, and use the *.variable property, the variable is NOT sent...why? and how?
thanks for any (much needed) help.
Setting Variable Property For Dynamically Created Textfield
i'm creating a completely dynamic form. i want to assign a variable name to a textfield and then pass that variable with a LoadVars() object.
here's a small piece of code i can't get working:
//create movieclip (used like a form)
_root.createEmptyMovieClip( 'dialog_body', 0 );
//create textfield input
dialog_body.createTextField( answer, 50, 500, 150, 100, 30 );
dialog_body[ answer ].type = "input";
dialog_body[ answer ].border = true;
dialog_body[ answer ].variable = "fname"; //id will be 1 - 400
// lname is a textfield created using the stage, and the properties window
// putting 'lname' as the var.
//when button is clicked
mybutton.setClickHandler( "OnClick" );
function OnClick() {
trace( dialog_body[ "fname" ] ); //traces the correct value
trace( lname ); //traces the correct value
dialog_body.removeMovieClip();
//simple test script prints all the recieved variables
getURL( 'testing.php', 0, 'post' );
}
problem / question: my test script 'testing.php' doesn't have any knowledge of dialog_body[ "fname" ], why?
it prints:
FUIComponentClass=[type Function]
FPushButtonClass=[type Function]
OnClick=[type Function]
i=0
lname=smith
--- where is fname?
bottomline: if i create a textfield using the traditional method and assign the 'var' it works fine. if i create a textfield dynamically at run time, and use the *.variable property, the variable is NOT sent...why? and how?
thanks for any (much needed) help.
_alpha Property Doesn't Work With A Dynamic Textfield
Hello guyz,
i've a problem.. maybe look as a stupid problem but i cannot solve it.. :(
i've a for statment and in it a dinamically attached movieclip from library..
into this movieclip there's a dynamic textfield and i insert into it a string ..
all rights..
but my problem is to assign _alpha property to the mc ! !
for example
Code:
// container is a mc on the stage
str = "my name"
for (var i=0; i<str.length; i++) {
letterMc = container.attachMovie("mc", "mc_"+i, container.getNextHighestDepth());
letterMc._x = xpos
letterMc._alpha = 10 // this doesnt' work [/b]
letterMc.field_txt.autoSize = "left"
letterMc.field_txt.text = str.substr (i,1)
xpos += 10
}
the line letterMc._alpha = 10 doesn't work.. infact the textfield into the letterMc movie clip is always visible..
i've tested into flash debbugger and i've noticed that _alpha property of letterMc is 10 ! ! ! but the textfield is always entirely visible !!?
can depend from the type of textfield ( that's dynamic ) ??
please help me to solve
hello
tnx a lot ;)
When I Change The Width Of A Parent Sprite, The Child TextField Wont Display
Hey,
Ive got a problem that is driving me insane. I have a parent class which extends sprite, and within it I create a TextField object and add this as a child to the parent. The TextField object displays correctly if I dont change the parents width using this.width. As soon as I assign a value to the parents width, the text will not render. Any ideas?
-------- Code ---------
package
{
import flash.display.*;
import flash.text.*;
public class main extends MovieClip
{
public function main()
{
var p:Parent = new Parent();
addChild(p);
p.createchild();
}
}
}
-------
package
{
import flash.display.*;
import flash.text.*;
public class Parent extends Sprite
{
public function Parent()
{
this.width = 300; // PROBLEM POINT!!
}
public function createchild()
{
var GC:TextField = new TextField();
GC.x = 10;
GC.y = 10;
GC.text = "text";
GC.width = 50;
GC.height = 20;
this.addChild(GC);
}
}
}
-------
Thanks for any help.
Cheers.
When I Change The Width Of A Parent Sprite, The Child TextField Wont Display
Hey,
Ive got a problem that is driving me insane. I have a parent class which extends sprite, and within it I create a TextField object and add this as a child to the parent. The TextField object displays correctly if I dont change the parents width using this.width. As soon as I assign a value to the parents width, the text will not render. Any ideas?
-------- Code ---------
package
{
import flash.display.*;
import flash.text.*;
public class main extends MovieClip
{
public function main()
{
var parent = new Parent();
addChild(p);
p.createchild();
}
}
}
-------
package
{
import flash.display.*;
import flash.text.*;
public class Parent extends Sprite
{
public function Parent()
{
this.width = 300; // PROBLEM POINT!!
}
public function createchild()
{
var GC:TextField = new TextField();
GC.x = 10;
GC.y = 10;
GC.text = "text";
GC.width = 50;
GC.height = 20;
this.addChild(GC);
}
}
}
-------
Thanks for any help.
Cheers.
How To Retrieve A TextFields.height Property When TextField.autoSize Is Enabled?
I have a TextField that has the autoSize property set to TextFieldAutoSize.LEFT; and for some reason when I try and retrieve the textField's height property like this "myNumVar = textField.height" it always returns the value of 100, even though the text fields height is nothing like this. Furthermore when I input a larger or smaller amount of text into the field, the height property still returns 100.
If anyone has any ideas on how I can retrieve an accurate height value then please let me know
Dynamically REMOVING Children From Parent Containers? MovieClip(this.parent.parent...
EDIT: actually, this isn't really dynamic... it should be really simple!
I can get a nested swf to add a movie to the root timeline, but in order to replace it with a new movie, AS3 first requires that I clear the old one. I can't figure it out!
This does not work, though it is the exact same format I use to add a movie to the root successfully:
Code:
MovieClip(this.parent.parent.parent).removeChild(MovieClip(this.parent.parent.parent).loadMovie)
Any idea why this doesn't work?
Have Bright Colors Of A Child Clip "poke Through" A Darkened Parent Clip
I am not talking about masks, but was wondering if there is any way to restore, or brighten a child clip (without muddying the colors) that is inside a parent clip that has had its brightness turned down with a colorMatrixFilter?
Let's pretend:
darkBox_mc
lightBulb_mc
I put the lightBulb_mc inside the darkBox_mc, and set the box (and all of it's contents) dark by using a colorMatrixFilter, either adjusting the scale values of RGB, or the offset (still not sure how they differ).
So the lighbulb, when off, appears dark because the parent clip had its colors darkened.
Then, i would like the lightbulb to appear to turn on, essentially restoring the color value (or amplifying beyond its initial colorMatrixFilter) to its bright, natural state.
I guess the same effect I am going for is say I make a parent clip alpha 0, or.1 or something real low. Can i go through the child clips inside the near invisible parent, and make them appear normal again? Still keeping them inside the clip? Perhaps offset the alpha by overshooting the 0-1 range? alpha 3.5?
I could have sworn this was possible with some method. Convolution maybe?
Name Of Parent Movie Clip
I'm using dynamicly named movie clips and inside these movie cliips are buttons. The button when pressed, opens a link that is a variable on the movie clip. When I debug the link variable used simply as
trace(link)
doesn't work. I'm wondering if i have to define the movie when I reference the variable "link" and how I could do something like parent.link where parent is the name of the movieclip. Thanks
Nate
How To Determining The Name Of Parent Clip?
I've got a number of dynamically generated movie clips that then load external SWF files. I'd like to be able to figure out the name of the containing movieclip instance from inside the loaded SWF but am not sure how to go about doing that.
Any help is greatly appreciated.
Getting The Position Of The Parent Clip (this)
So I've created a movieClip. Inside the timeline of the movieClip I am trying to get the y position of the clip I am in - I can't figure out the syntax. I've tried:
_parent._y
this._y
parentClip._y
Could someone please help me get the syntax right on this?
How Do You Grab The Parent Clip's Name
I am creating a set of 20 variables using a for loop and some xml, and then i have a bunch of container files, named similarly to the loop variables that load .swfs with the variable's value for its name. I want to write a script that loads the appropriate clip into itself based on the value of the variable that goes with it.
for loop created variables like:
desktop0_name = davinci
desktop1_name = leo
desktop2_name = monet
etc...
movie clips with these names will have some script inside that will need to load a movie based on what its name is, so that I can make the clip named desktop0 load davinci.swf and the clip named desktop_1 load leo.swf, without creating 20 different nearly identical static clips. I would like to be able to test the clips name from inside so that the desktop0 clip will say "oh, i'm supposed to load davinci", and do so.
Does this make sense and does anyone know a simple way of doing this? Thanks!
Clip Name Property Not Set
I have the following structure for my website:
main dir --> subdir studio
gallery movie --> loading 'studio' swf's (pictures)
I load the studio swf into the gallery with a button within a MC!!!
on (press) {
loadMovie("studio/001.swf", _root.eric);
}
'eric' is the content holder MC on the main stage of the gallery movie.
If I play the gallery movie it doesn't load anything (nothing visible anyways).
The output fiels says: clip name property not set
I tried tons of stuff, but nothing seems to help!
Anyone give me a helping hand? Please?
Eric
Parent Movie Clip Referencing
How do I reference two levels above a mc?
Is is _parent._parent ?
I have a mc with a mc inside that has a mc inside. The third mc I want to talk back to the first one.
Not working for me.
Changing Parent Of A Movie Clip
Hello!
I'd like to be able to change the parent of a movie clip.
Here's the situation:
I have MCs named A, B, C, and D. They've been properly linked/exported. MC A has been manually placed on the stage.
1. A is made to be parent of B - done using attachMovie to pull it out of the library.
2. B is made to be parent of C - again using attachMovie.
Goal is to make A parent of D parent of B parent of C, without having to pull B and C from library again, and remake B as parent of C.
Usage of duplicateMovieClip would be OK, but how to change the parent of B?
Thanks,
Mike
Control Parent Clip From Child?
I have a child clip -- "base"
and a parent clip -- "form"
I want "base" (which is on "form"s frame 90) to tell form to go to frame 46.
How do I do this?
~DW~
Preloader, But With Status In Parent Clip. How?
I have a parent movie clip that has an animation which I want to play while external clips are loaded. How can I go about this?
I've tried the following.
images = blank mc which will be used to load exteral swfs.
status = movie clip animation.
so the button says this
Code:
on(release){
if(_root.images.getBytesLoaded < _root.images.getTotalBytes)
_root.status.play();
}
This doesn't work =/. Both the getBytesLoaded and getTotalBytes are always equal even in simulate download mode.
Help =)
Jesse
Parent Movie Clip Preload.....
Hello,
Is it possible to preload a movieclip (not an external swf) within the parent movie independently from the rest of the movie.
LoadMovie Clip Talking To Parent
Hi Everyone. My first post here, and its a question...
I am wondering if I can get a .swf loaded in using the 'loadMovie' method to talk to the timeline of the original .swf.
And if so, how would I do this?
I am using a preloader on the clip that is loaded in and when that clip is loaded I want to call a function on the original clip.
I consider myself pretty fluent in Actionscript so no need to hold back...
Any help much appreciated!
EDIT:
Now that I think about it...
I just want a preloader to display while the clip is loading, so the user knows what is going on, would it be better to place the preloader on the orginal clip. If so, how do I get the bytesLoaded, bytesTotal, etc info about the .swf i want to load in?
Hope that makes enough sense...
- Elliot Owen
Reference Child Clip From Parent
I'm using actionscript 2.
I have a main movie clip. In that movie clip I have 2 children movie clips. I want the 2 children clips to be able to control each other upon clicking buttons.
This code has been placed in the main movie clip:
home.map_btn.onPress = function ()
{
loadMovie("http://apsleycottage.com.au/flash/town_location.swf", movie_holder_mc);
};
The map_btn is located in a child swf called home. The home swf is dynamically called into the place holder called left_movie_holder_mc which is located within the main clip.
I want the main movie to register a click of that map_btn and replace a the movie currently in the movie_holder_mc with a new one called town_location.
What I have done does not work and I am not sure if I have referenced the the button properly from the main movie. I would appreciate any help.
The temporary page is located at:
http://apsleycottage.com.au/Apsley_Cottage3.html
Cheers
Crossy
Resizing Parent Movie Clip
Can I resize the parent/root movie clip? Basically I have one default mode that shows a ton of information, but then I'd like to be able to switch to a compact mode.
Normal mode is currently 550x550, but i'd like compact mode to be 1000x200. So how do I go about resizing the main frame? Can I?
Thanks,
Jason
|