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




Adressing Movie Clips And Hybrid Sites



hi,

I am tryin to make a hybrid site with a flash navigation menu.

I dont know how to target an element on a html page from within the flash file.

On the home page there is a flash menu at the top of the page and the rest of the page is html. How do i load a frame in the page with different content by clicking the flash menu.

Also if there are 3 movies on the stage, how do u target all the timelines within the movie clips by clicking on 1 movie.

Thanks...

and thanks for the help on the preloader.



Ultrashock Forums > Flash > Flash Newbie
Posted on: 2004-07-07


View Complete Forum Thread with Replies

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

Adressing Multiple Movie Clips At Once Via AS
Okay um,

I got a few movie clips on the stage, which I want to move around when
I use the arrow keys, which isn't a problem, however instead of going
about typing in:

object1._x = object1._x - 5
object2._x = object2._x -5
object3._x = obj... and so on

I want to be able to adress ALL the movie clips I want to move around
in ONE line. I've tried placing all the object names in a array and adressing
the array._x to move them all around but that won't work for me, perhaps I'm
looking over something here...

anyone got ideas as to how I can tackle this ?

Flash/HTML Hybrid Sites
I'm wondering what the best way to create a flash&html hybrid site is? tables/frames?


tia.

How To Make Flash/html Hybrid Sites
so what's the basic concept of this?

i just want a flash menu, and all the content in html. do i have my main flash movie act as a border and load the html into a dynamic textfield? can you even load html? or does it have to be txt files?

~david

Question About Hybrid Sites (Flash And HTML).
I'm planning on making my first hybrid site. I'm going to have a top banner that's in Flash and right under that I'll have the navigation, also in Flash. All of the content will be below in HTML.

My question:
What's the best way to do this in Dreamweaver? Should I make a top and a bottom frame? Should I use iFrames, if so, how?

For an example of what I'm looking for check this out. http://soccer.org/
You'll notice the Flash navigation is at the top while all of the content is below in HTML format.

Any help would be great.

Thanks.

Movie Clips From Sites
Can someone help me?

I'm doing a presentation for uni and I was wondering if there was a way I can embed a movie clip from a website into my work as it is an important research element?

My understanding of flash is fairly standard.
I am currently using Flash 5, as that is all that is available on the uni network, I do however have access to MX at home.

If anyone could help it would be greatly appreciated.

Cheers Alex.

Question On Adressing A Loaded Movie
I have a project which requires a lot of dynamic content to be loaded based on user logins. I'm loading in several .swfs and then attempting to address them. KEY THING: _levels will not work as the whole focus on this project is dynamic creation of content, ie, draggable placement of items within a given area. so I load the external .swfs into a blank movie clip instance placeholder. what I want to know is this:

is there a way to address the loaded movie to get properties like _width and _height of that movie to resize a button instance to place over it to make it draggable? (is that clear? ) basically I have tried this:

_root.viewingplane.photo1.button1._height = _root.viewingplane.photo1.placeholder1._height;

and it does not work. I searched here, and someone said

Quote:




you can't address a loaded .swf as you would a movie clip directly.






is this true? Is there any way, through anything other than levels? I really need these clips to exist on the same level as not only each other, but the rest of the movie as well.

any help would be greatly appreciated

Adressing Maintimeline From External Movie
I have a button in an externally loaded swf that I want to tell to go to a scene "main" on the root movie timeline and play frame 260. It doesnt work!!

on (press) {
_root.gotoAndPlay(main,260);
}

The only thing that works is if I ignore scenes and find the particular frame of the root movie where that frame resides ie

on (press) {
_root.gotoAndPlay(288);
}

This will be the death of me.

Adressing Main Movie From Inside Mc
Ok, there's different ways to tackle the problem I have, you only need to answer one of the questions:

I have a button inside a movie clip, and when it's clicked, I want to advance the main timeline. How would I do this?

OR

Can you add roll-over actions to movieclips and not just buttons, coz everytime I try to it f**ks up.

How To Remove All Movie Clips/array: Movie Clips Carry Over To Next Frames/ Scenes
Hi: I am creating a small game. So far so good, but only problem I have come across is when I jump to another frame or scene, previous movieclips (using an array) that are still running carry over to the next frame/scene.

See attached if you have some time- start clicking on answers in the game, and when time runs out some movie clips that are still running will remain on top of my end frame and carry over to the next scene as well.

Is there any sort of remove all movie clips or "clear all" type of actionscript?

thanks in advance!

Any Sites With Good Flash Sites Links Organized By Catagory And Ranking?
Can anyone recommend a site that has links to a bunch of really good and inspirational flash sites, especially divided into different categories, organized by ranking, and updated regularly?

Maintaining Event Behavior For Movie Clips Nested In Movie Clips
Is there any way to maintain a clip's event callbacks when said clip is nested in a parent clip that has its own definitions for those callbacks?

In other words, if clip B has a definition for .onPress and clip A has a definition for .onPress, is there anyway to maintain clip B's definition if it is nested in clip A?

I have tried doing it by making clips into movie clip subclasses but it doesn't work... but how do components work then?

How Do I Load/stream Individual Movie Clips Within Other Movie Clips
I am using flash 5

I have a movie with a huge movie clip in it and that movie clip has lots of movie clips inside that. how do I load each one individually so when the viewer clicks on abutton it starts to laod the related movie clip.

Please help.. I'm working on borrowed time and borrowed money

Accessing To The X And Y Coordinates Of Movie Clips Inside Of Other Movie Clips
lets say I have a movie clip with an instance name of "char" and another movie clip inside it with an inctance name of "ball" and when I try this I get zero:

_root.char.ball

why?

thanks in advance because you flashkit users know everything about flash in and out.

Movie Clips Within Movie Clips: Text Link Problem
Hello.

I have a Movie Clip that is my main one with another Movie Clip inside of it. In the subordinate Movie Clip, I wish to have text linking frame (13) to frame (14) for instance. The problem that manifests is that while buttons is the subordinate Movie Clip link to frames within it with no complications, the text link from 13 to 14 with its respective code links to the last frame (would be 14) in the main Movie Clip.

Am I doomed to convert all text links to buttons in the subordinate Movie Clip or is there (what I am praying for) a code to work around this and keep frame links confined to the subordinate Movie Clip? I would appreciate any help that anyone can offer regarding this problem. Many Thanks.

Movie Clips Acting As Buttons Can't Load Other Movie Clips
Frame 1 has three movie clips on it, instance names are A, B, C. I have the following actionscript on frame 1 as well:

stop();
import flash.filters.GlowFilter;

ar = [A, B, C];

for(var z=0; z<ar.length; z++) {
ar[z].onRollOver = rollover;
ar[z].onRollOut = rollout;
}

function rollover() {
this.swapDepths(0);
this.filters = [new GlowFilter(0x333333, .20, 7, 7)];
}

function rollout() {
this.filters = null;
}

This code creates a glow, obviously, on whatever movie clip I rollover. What I want to do as well is this:

I want to click on mc "A" and have it launch a different movie clip (let's say "X") on top of everything else (so that A, B and C are still visible in the background). "X" is in a sub-folder of "A" if that makes any sense or is relevant. Same kind of action for mc's B and C. B should launch mc "Y" and C should launch mc "Z".

What is the actionscript for this? Any questions please let me know. Please respond, I need this info as soon as possible. Much appreciated!!

Text

External Movie Clips With Multiple Menu Movie Clips
It's pretty late and I don't think i have enough time to search this question in the forums but here I go. Sorry If I upset someone for making a topic that already exists.

I have a main timeline that im importing an external movie clip in. This external movie clip is named "members" it has several buttons that load other external movie clips into a window within "members" . What do I need to do to make this work. Do I need to use "this, _parent, _root, level(s) or "whatever.swf". If you can help me out that will be great. I'll make it up to you down the road. No sexual favor please.

I'm using flash mx 2004 btw.

Thanks in advanced

[fmx] Adressing
A problem accured, I believe i have the adressing wrong, but don't know how to solve it.

I have a movieClip, in it a button, in it another movieClip (activated on mouse over). When i rollOver it works normally, it stops at the 15th frame as it should. Now I have another 15 frames for the rollOut and i can't get them to play,

on(rollOut) {
_root.spin.contact.contact_mc.gotoAndPlay(16);
}

(or)

on(rollOut) {
this.contact_mc.gotoAndPlay("mark");
}


legend:
spin -> main movieClip
contact -> button in it
contact_mc -> the clip in the button (gives the button the animation)

thx

[fmx] Adressing
A problem accured, I believe i have the adressing wrong, but don't know how to solve it.

I have a movieClip, in it a button, in it another movieClip (activated on mouse over). When i rollOver it works normally, it stops at the 15th frame as it should. Now I have another 15 frames for the rollOut and i can't get them to play,

on(rollOut) {
_root.spin.contact.contact_mc.gotoAndPlay(16);
}

(or)

on(rollOut) {
this.contact_mc.gotoAndPlay("mark");
}


legend:
spin -> main movieClip
contact -> button in it
contact_mc -> the clip in the button (gives the button the animation)

thx

Full Screen Sites / Scalable Sites ... How?
Hi, these sites:

http://www.bogdanmebel.bg/bogdan-mebel-en.php

That are fullscreen and scales to fit the user browser window are very trendy these days. Anyone has an idea how they do that?

What Are Some Of The Best Movie Flash Sites You've Seen?
I'm trying to gain some inspiration. Thanks.

Flash Movie Sites
Can anybody recommend some websites that have amateur and professional time line based movies created in Flash?

Flash Movie Sites?
Hello, I was wondering if anyone here has a flash movie site, with one or only a few flash movies (ie badgerbadgerbadger.com or jibjab.com, to mention popular ones)? Is it easier to get visitors to them? Do they make you any money at all?

Is This A Bug (adressing A Function)
hi,

I start to build a game and at very beginning a face a problem. I found a workaround but i stiil want to know what is this.

You can download *.fla file and check.

problems: I simply want to triger function. I tried on three different way & get different results.

Function should put mc's on frame 5 and there is another onclipevent (Load) action that put right number in dynamic text box.



//************* v1 - this working but not fully & idont want onEnterframe at all ****************
start.onEnterFrame = function(){
zacetek();
}


//************* v2 - this is not working at all but i want to triger in this way ****************

start.onLoad = function(){
zacetek();
}

//************* v3 - this is working as should ****************

zacetek();


//******************** function ***************************

function zacetek(){
for (i=0; i<13; i++){
_root["polje"+i].gotoAndStop(5);
}
}
//end function
stop();

//************************************************** **************

My big questuion is way this is not working with v1 and v2 version.
I tried to put _root before for sake of flashMX but this isn't really
important.

thx, fot helping
matjaz

Adressing A Scene From A MC
Hi!

I can't believe I can't do this!

Anyway heres what im trying to do from a MovieClip:

The thing is, _root.gotoAndPlay(2) works fine but if i add a scene name nothing happens!







Attach Code

gotoAndPlay("Scene 2", 2);
//Yeah, it's that simple!

Relative Adressing
i have a customized sbeener gallery "g2002newyork.swf" and a main movie "v612.swf". i am loading the gallery into the main movie. the relative paths i use are:

"v6/v612.swf"
"v6/g2002newyork.swf"

the images are in the same directory as the gallery. the gallery works perfectly as standalone, but when i load it into the main swf, i get the follwing message:

Error opening URL "file:///C|/Documents%20and%20Settings/Administrator/Desktop/web%20site/new%20web%205/v6/image01.jpg"

it seems i am making a mistake with the paths, since the movie is looking for the images in the wrong directory. but i just cant see where i am going wrong...


here is the code i am using in the main movie:


ActionScript Code:
b7.onRelease = function () {    _root.createEmptyMovieClip("container", 1);    loadMovie("g2002newyork/g2002newyork.swf", "container");    container._x = 331 ;    container._y = 98 ;}



adn this is what i am using in the gallery:


ActionScript Code:
//Code written by sbeener (suprabeener)/*   i wrote this code, but you can use and abuse it however you like.   the methods are defined in the order which they occur to make it   easier to understand.*/// variables ------------------------------------------// put the path to your pics here, include the slashes (ie. "pics/")// leave it blank if they're in the same directorythis.pathToPics = "";// fill this array with your picsthis.pArray = ["image01.jpg", "image02.jpg", "image03.jpg", "image04.jpg", "image05.jpg", "image06.jpg", "image07.jpg", "image08.jpg", "image09.jpg", "image10.jpg", "image11.jpg", "image12.jpg", "image13.jpg", "image14.jpg", "image15.jpg", "image16.jpg", "image17.jpg", "image18.jpg", "image19.jpg", "image20.jpg", "image21.jpg", "image22.jpg", "image23.jpg", "image24.jpg", "image25.jpg", "image26.jpg", "image27.jpg", "image28.jpg", "image29.jpg", "image30.jpg", "image31.jpg"];this.fadeSpeed = 20;this.pIndex = 0;// MovieClip methods ----------------------------------// d=direction; should 1 or -1 but can be any number//loads an image automatically when you run animation//loadMovie(this.pathToPics+this.pArray[0], _root.photo);MovieClip.prototype.changePhoto = function(d) {    // make sure pIndex falls within pArray.length    this.pIndex = (this.pIndex+d)%this.pArray.length;    if (this.pIndex<0) {        this.pIndex += this.pArray.length;    }    this.onEnterFrame = fadeOut;};MovieClip.prototype.fadeOut = function() {    if (this.photo._alpha>this.fadeSpeed) {        this.photo._alpha -= this.fadeSpeed;    } else {        this.loadPhoto();    }};MovieClip.prototype.loadPhoto = function() {    // specify the movieclip to load images into    var p = this.photo;    //------------------------------------------    p._alpha = 0;    p.loadMovie(this.pathToPics+this.pArray[this.pIndex]);    this.onEnterFrame = loadMeter;};MovieClip.prototype.loadMeter = function() {    var i, l, t;    l = this.photo.getBytesLoaded();    t = this.photo.getBytesTotal();    if (t>0 && t == l) {        this.onEnterFrame = fadeIn;    } else {        trace(l/t);    }};MovieClip.prototype.fadeIn = function() {    if (this.photo._alpha<100-this.fadeSpeed) {        this.photo._alpha += this.fadeSpeed;    } else {        this.photo._alpha = 100;        this.onEnterFrame = null;    }};changePhoto (0);// Actions -----------------------------------------// these aren't necessary, just an example implementationthis.onKeyDown = function() {    if (Key.getCode() == Key.LEFT) {        this.changePhoto(-1);    } else if (Key.getCode() == Key.RIGHT) {        this.changePhoto(1);    }};Key.addListener(this);




thanks for any help!

Adressing A Swf With Javascript
I have a simple menu swf with basic goto and stop actionscript.
The swf is embedded in Html and there is some javascript in the head.

I have built a simple example online: http://www.animatio.com/n1.html

It works fine in IE but not in my main browser Mozilla. (the playhead remains on the first menu item)

My question: what can be done to fix this.


For sake of low kb and easy maintainance my aim is to have just one overall menu swf which can be embedded in several html pages instead of having several swfs of the menu jumping to a specific frame and highlighting the current menu item.
Completely other solutions are also welcome. (I don't want te be using a frameset.)

Relative Adressing
i have a customized sbeener gallery "g2002newyork.swf" and a main movie "v612.swf". i am loading the gallery into the main movie. the relative paths i use are:

"v6/v612.swf"
"v6/g2002newyork.swf"

the images are in the same directory as the gallery. the gallery works perfectly as standalone, but when i load it into the main swf, i get the follwing message:

Error opening URL "file:///C|/Documents%20and%20Settings/Administrator/Desktop/web%20site/new%20web%205/v6/image01.jpg"

it seems i am making a mistake with the paths, since the movie is looking for the images in the wrong directory. but i just cant see where i am going wrong...


here is the code i am using in the main movie:


ActionScript Code:
b7.onRelease = function () {    _root.createEmptyMovieClip("container", 1);    loadMovie("g2002newyork/g2002newyork.swf", "container");    container._x = 331 ;    container._y = 98 ;}



adn this is what i am using in the gallery:


ActionScript Code:
//Code written by sbeener (suprabeener)/*   i wrote this code, but you can use and abuse it however you like.   the methods are defined in the order which they occur to make it   easier to understand.*/// variables ------------------------------------------// put the path to your pics here, include the slashes (ie. "pics/")// leave it blank if they're in the same directorythis.pathToPics = "";// fill this array with your picsthis.pArray = ["image01.jpg", "image02.jpg", "image03.jpg", "image04.jpg", "image05.jpg", "image06.jpg", "image07.jpg", "image08.jpg", "image09.jpg", "image10.jpg", "image11.jpg", "image12.jpg", "image13.jpg", "image14.jpg", "image15.jpg", "image16.jpg", "image17.jpg", "image18.jpg", "image19.jpg", "image20.jpg", "image21.jpg", "image22.jpg", "image23.jpg", "image24.jpg", "image25.jpg", "image26.jpg", "image27.jpg", "image28.jpg", "image29.jpg", "image30.jpg", "image31.jpg"];this.fadeSpeed = 20;this.pIndex = 0;// MovieClip methods ----------------------------------// d=direction; should 1 or -1 but can be any number//loads an image automatically when you run animation//loadMovie(this.pathToPics+this.pArray[0], _root.photo);MovieClip.prototype.changePhoto = function(d) {    // make sure pIndex falls within pArray.length    this.pIndex = (this.pIndex+d)%this.pArray.length;    if (this.pIndex<0) {        this.pIndex += this.pArray.length;    }    this.onEnterFrame = fadeOut;};MovieClip.prototype.fadeOut = function() {    if (this.photo._alpha>this.fadeSpeed) {        this.photo._alpha -= this.fadeSpeed;    } else {        this.loadPhoto();    }};MovieClip.prototype.loadPhoto = function() {    // specify the movieclip to load images into    var p = this.photo;    //------------------------------------------    p._alpha = 0;    p.loadMovie(this.pathToPics+this.pArray[this.pIndex]);    this.onEnterFrame = loadMeter;};MovieClip.prototype.loadMeter = function() {    var i, l, t;    l = this.photo.getBytesLoaded();    t = this.photo.getBytesTotal();    if (t>0 && t == l) {        this.onEnterFrame = fadeIn;    } else {        trace(l/t);    }};MovieClip.prototype.fadeIn = function() {    if (this.photo._alpha<100-this.fadeSpeed) {        this.photo._alpha += this.fadeSpeed;    } else {        this.photo._alpha = 100;        this.onEnterFrame = null;    }};changePhoto (0);// Actions -----------------------------------------// these aren't necessary, just an example implementationthis.onKeyDown = function() {    if (Key.getCode() == Key.LEFT) {        this.changePhoto(-1);    } else if (Key.getCode() == Key.RIGHT) {        this.changePhoto(1);    }};Key.addListener(this);




thanks for any help!

Tell Target Adressing Problem
i have a movieclip in the main stage. this movicelip contains a button that should, once pressed, go to the main stage and pay a certain labe - i.e. "trading" and stop there. if i adress this with tell target i always receive an error message or the movieclips starts playing again, without jumping to the main stage to the desired label...how do i control the tell target out of a movieclip for tha main stage???

Adressing Dynamic Variables
Well, I don´t do much in flash. A small project every few month. recently I switched over to Flash MX, but still use the oldfashioned flash 5 way.

Now I encountered a new problem:
I load variables from an external txt file. But how can I adress them? (drives me crazy since last night...)

loadVariablesnum("test.txt",0);
trace(_root.bild1);
_root.feld.loadmovie(bild1);
stop();

Neither the trace ("undefined") nor the loadmovie works - why?

Thanks, Hendrik

Scenes > Adressing Problem ...
I have two scenes:

1. Preloader
2. Mainmovie

The mainmovie has only one frame, with a stop(); command.

But my script:


Quote:




_root.F1.gotoAndPlay("Los");
_root.go = 20.3;







(F1 = MovieClip + go = Variable)

causes, that the movie jumps to the preloader scene, and stays not in the mainmovie scene.

How can I tell my script to use the current scene (Mainmovie)?!


Any suggestions are welcome! Thank you!

Mika

Adressing Multiple MC's With Functions.
Hi,
I can post the .fla if you want, but id thought id explain it all first.

Im making a wierd little project with a strange flower that looks crazed and does different stuff.
One of the things it does is have moving petals, i created a random movement code that worked perfectly when applied to each petalMC (i have multiple copies of the MC containing the MC with the code attached so it works on every single one.) But now, i want it to do different things according to different events, and the only way i can see is to use lots of variables at the _root level and LOTS of 'if' checks in the movieclips, which would eat up some system speed.
I tried setting a function with the different actions i want, and applying that to the petalMC from the root level, but for some reason now it only applies to one of the petals, instead of every petal (which it should, because its adressing the MC inside the copies, so every copy should act the same?)

Any idea of how to adress those multiple petals without using lots of check statements or arrays and complicated names,

Thanks for your time,

Alex

EDIT : Oh well, ill add it anyway

Adressing Functions Within Class
OK - I am new to classes and I have really hard time adressing functions within class f.ex


Code:
class SampleClass extends MovieClip {
public function SampleClass() {

}
private function SampleFunctionA() {

}
private function SampleFunctionB()
}
so In this case from body of function SampleClass i have no problem calling function SampleFunctionA or SampleFunctionB but I find no whay how to call SampleFunctionB from body of SampleFunctionA

Adressing A Function After AttachMovie ?
Hi,

How is the swf build :

i have a movieclip in the library, called temp_mc (linkage "_temp"). This is a very simple mc, just for sake of this question. Within this movieclip i have a black square on frame 1, and a very simple function, also on the first frame.


Code:
function tracemc()
{
trace("clipje " + this);
}
So this mc is not on the stage when the swf starts...

Now i call the following function from the root of the timeline on frame 1 :


Code:
for (var i = 1; i <= 10; i++)
{
this.attachMovie("_temp", "mc" + i, i);
this["mc" + i]._x = 40 * i;
this["mc" + i].tracemc(); // <-- This line is not working
}

Now the result is only half from what i expected :

It draws the 10 squares, but I don't see any trace outputs in the output window. This is where I'm stuck... Can anyone point me in the right direction?

Thanx !!!

Adressing Question, Probably Very Simple
hi there

I've got this loop:

ActionScript Code:
_root.cubes();
   
    for(i=1; i<11; i++) {
        _root.projectCheck= ["project" + i];
        _root.blokCheck= ["blok" + i];
        trace(_root.blokCheck);


and as you see in this loop I create 2 variables:
_root.projectCheck and _root.blokCheck (is the one I need now)

The result of that one is
blok1
blok2
...
blok10


now I want to implement the result of the loop as an instancename in another script.

but this doesn't seem to work:


ActionScript Code:
if(allCubes[_root.projectCheck].animation){
            _root.blokCheck._alpha="100";
            _root.blokCheck.gotoAndStop("still");
        }else{
            _root.blokCheck._alpha="20";
            _root.blokCheck.gotoAndStop("still");
        }


what could it be, is it the instancename? the _root?
thx ahead
robin

Adressing A Javascript From A .tk Domain
Hi:

I have a flash button calling a javascript function on the html that contains it, but it doesn't work when I got to the html through a .tk domain. If I enter thorugh the subdomain of the hosting server it works fine. I guess it's for the redirecting thing, and that the path to the function changes, but I'm not sure... anyone knows a workaround this?

To see what happens, click in the top or bottom links below the character, and then in the rectangle that appears below the name (a "x" appears on rollOver), at:

www.sir-patroclo.tk <---- doesn't work
www.sirpatroclo.virtuabyte.cl/ <---works fine

Any help would be very appreciated

Thanks in advance

**edit**

To see the page I'm talking about you must be using IE, otherwise it will redirect you to another one.

Adressing All Similar Movieclips
Hi!

What i basically want to do is to edit a movieclip like when you edit it through the library, so that all copies of it changes, but through actionScript.

And if anyone has a good, non framebased alternative to hitTest, that would be appreciated aswell.

Thanks in advance

/Adbul

Adressing All Similar Movieclips
Hi!

What i basically want to do is to edit a movieclip like when you edit it through the library, so that all copies of it changes, but through actionScript.

And if anyone has a good, non framebased alternative to hitTest, that would be appreciated aswell.

Thanks in advance

/Adbul

Adressing All Similar Movieclips
Hi!

What i basically want to do is to edit a movieclip like when you edit it through the library, so that all copies of it changes, but through actionScript.

And if anyone has a good, non framebased alternative to hitTest, that would be appreciated aswell.

Thanks in advance

/Adbul

Adressing Clip Attributes
my attached clips have text boxes in them (named: r).

how can i put data in these text boxes?
i am new at flash,so i guess there is some problem with my addressing nethod.....the code was written with barn`s help

for (i=0; i<_root.g; i++) {
target = _root["mc_holder"+i];
target.attachMovie("card", "card"+i, i);
tar2 = target.card+i;
trace(tar2);
tar2.r.text = "something";
}

Adressing Textfield Problem
on the main timeline in a a movieclip, content_mc i load a external movie...

in the external movie is a textfield, txt1
and also a function to load text in textfield but it dont work

function showText() {
this.txt1.text="doesnt work";
}

if i dont put 'this' in front it works but i have to do some other things also so i think i have to know something i can put in front....

[MX04]Movie That Works Fine When Clips Apart Acts Strange When Clips Are Together.
Hi,

I have a pretty basic movie in which a ball moves along a track.

The track is made up of 3 sections & all I want the movie to do is trace an ID number (num) that is an individual property of that clip when it goes over it.

In the first movie attached below “trackOne” the whole thing works great! However in the other movie “trackTwo” I have moved the clips closer together & the whole thing has gone crazy with the following issues.

1.)The “trace” command fires on every “onEnterClip” event

2.)A text field that is used to show the ID number only changes when the ball is fully over the clip not as it first touches it, as it does in the first movie

3.)Although the ball is full off a clip it keeps tracing it’s ID number together with the new clips number?

Anybody able to help me on this?

Adressing Main Timeline From Inside Mc
Hello, basic question here.
I want to advance the main timeline from inside a movie clip.



on (release) {
_root.gotoAndPlay(11);
}

If I do this the movie goes to frame 11 in the first scene, but I want it to go to the 11th frame in another scene. What's the syntax for this?

Relative Or Absolute Adressing [fmx 2004]
Hi,

Im a bit confused about the adressing of .swf-files loaded into levels of another .swf-file.

The adressing seem to be absolute, ie. if a sub.swf (which is loaded into a super.swf from another location) uses some sort of adressing (for instance, loading an image), that adress must include the path from the super.swf.

Cant you change that somehow, so that sub.swf's can adress other stuff relatively to its own adress?

Can you do that globally (so that relative adressing is used by every .swf)?
Can you set it individually, so that adressing is relative only from the specified swf's?

Thanks

Relative Or Absolute Adressing [fmx 2004]
Hi,

Im a bit confused about the adressing of .swf-files loaded into levels of another .swf-file.

The adressing seem to be absolute, ie. if a sub.swf (which is loaded into a super.swf from another location) uses some sort of adressing (for instance, loading an image), that adress must include the path from the super.swf.

Cant you change that somehow, so that sub.swf's can adress other stuff relatively to its own adress?

Can you do that globally (so that relative adressing is used by every .swf)?
Can you set it individually, so that adressing is relative only from the specified swf's?

Thanks

Page 2 - Adressing Textfield Problem
so thats the movie your loading into another clip?

Code:


showText = function () {
for (i=0; i<3; i++) {
eval("c_txt"+i).htmlText = text_lv["txt"+i];
trace(eval("c_txt"+i)+" : "+text_lv["txt"+i]);
}
};


i altered the showtext function slightly but it seemed ok. so with php your returning something like:

txt0=pob&txt1=bill&txt2=bubba

im guessing here, am i close?

Screwy Stuff With Movie Clips Within Movie Clips
This is kind of difficult to explain but here it goes...
I have created a Barney's like slide site and have gotten it to work fine. the problem I'm having is when I take scroll text box and try to place it on the movie clip that is going to be the part of the site that is going to slide out.

The whole thing slides fine and the scroll box is visible. However, the text is not visible therefore I'm not sure if the up/down buttons are actually working.

The scroll box is a movie clip itself with "on(release)" commands on the buttons. The "onClipEvent" commands are added to the textbox when the scroller movie clip is brought into the slider movie clip.

Is this something that just isn't supposed to work or I am doing some thing dreadfully wrong?

Thanks in advance,
Fakeout

Is It Ok To Duplicate Movie Clips Inside Movie Clips?
is it ok to duplicate movie clips inside movie clips? Seems to be a problem here...

[F8] Help Making Movie Clips Load Other Movie Clips...
well i have miraculously figured out how to make my buttons grow and shrink simultaneously reacting to mouse overs... and even stay large when they are clicked on... however the only way i found to do this was by making them movie clips and not buttons...

now luckily the task at hand i'm assuming will be quite a bit easier than what i've already accomplished...

i am looking to now make those movie clip instances (when clicked on)... load photos into an empty movie clip that will be a separate swf... in the same dreamweaver file...

i have made each photo into a small movie clip that simply tweens the photo from alpha 0 to alpha 100 and back to alpha 0...

so i'm hoping for some code that will call up the first part of the movie clip (the fade up) when the corresponding movie clip is clicked on... and hold it... until another button is clicked... making the current movie clip play to end (fade out)... and then load the new movie (up to the middle... alpha 100) into the empty movie clip...

Intersecting Movie Clips/ Dividing Movie Clips
I've bee trying all day to find out how to find the intersection point on two moive clips with non linear lines in them.
If I use the Hit Test method it seems to recognise only the hit point when the imaginary rectangle arounf the two clips collide. Is there any way of determining the point where the lines themselves cross over.

If not I think I've got another method but I can't figure it all out.

I know at what x point the lines will cross over (the more horizontal of the two lines will be crossed every by one of the verticle lines every 1/108th of it's width) but I can't determine exactly where the Y co-ordinate of this line will be at the time.

I could sort this out if I was able to delete all of the more horizontal move clip except the point of intersection I'm looking for, I'd then then be able to determine the y co-ordinate at this point. But I havn't been able to determine how to delete a move clip for example from x=0 to x=51 but leave the rest of the movie clip on the screen.



Any help with this would be much appreciated.

Cheers

Scifo

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