I have no clue, I rarely work with components so I don’t know much about how they work.
_root.bStore = “window1”;
_root.****.loadMovie (“macom-f1.swf”, window);
Are there a way to load the mc without using the empty mc? I mean load the mc into the level.
I tried using this but the window doesn’t play…
_root.bStore = “window1”;
_root.loadMovie (“macom-f1.swf”, window);
Why’s that?
You can load into a level using loadMovieNum
[AS]loadMovieNum(“url”, levelNumber)[/AS]
[edit]_root.bStore = “window1”;
_root.loadMovie (“macom-f1.swf”, window);
And that doesn’t work because of how you have it set up… you have it targeting both the _root and the window, so its confused.
_root.window.loadMovie(“macom-f1.swf”)
or
loadMovie(“macom-f1.swf”, _root.window)
should be how it is written.
[/edit]
function launchSite(y){
var x = y.getSelectedItem().data;
_root.bStore = “window1”;
loadMovie(x, _root.window)
//loadMovieNum(x, _root.window);
}
list.setChangeHandler(“launchSite”);
The above Action Script suppose to take the link to the external file and place it into x. However, it doesn’t play the window mc.
The first one doesn’t load the movie.
_root.window.loadMovie(“macom-f1.swf”)
or
The second one loads the movie but doesn’t play the mc.
loadMovie(“macom-f1.swf”, _root.window)
Any ideas?
_root.window.loadMovie(“macom-f1.swf”)
and
loadMovie(“macom-f1.swf”, _root.window)
are the same code, I can’t see one not working and the other working fine. I use the first method all the time (I personally don’t like the second method)
And as for the window not playing, that has nothing to do with the loadMovie code, it has to do with setting the value of the variable, are you sure the variable exists on the _root timeline?
Other than that, I have no clue whats up.
These **** level and telltarget are really pissing me off…
I have another project due tomorrow. But because of this level crap, certain part works and certain doesn’t…
Hey lostinbeta, I’m sure you can help me with this problem. It’s pretty much almost complete.
Below is the code for playing a mc from frame 1 name reset.
on (release) {
_parent._parent.stigma.gotoAndPlay (“reset”);
}
The above code works… However, the below action script doesn’t work well.
_parent._parent.stigma.gotoAndPlay (“inspiration”);
I basically have 4 motion tweens within that stigma movie clip.
As you can see, the first motion tween is called through the frame inspiration. The other 3 are labeled as hobbies, education, and career interest.
When clicking on a flower petal, it suppose to play that motion tween. However, it plays all of the motion tweens within that movie clip. Any ideas or suggestions on how to play only that particular motion tween?
You have to seperate your tweens. If your tweens are all in 1 clip they have to be seperated.
Since you can’t play individual layers you will have to create your tween on one layer, then create a new layer for the next tween but start it the frame after your previous tween ends.
And you will need to add a stop() action at the end of each tween so it won’t keep playing.
So do I have to create separate movie clips for each motion tween? Or keep motion tween in that one movie clip (stigma) and separate the motion tween from to different starting points?
You can keep it all in 1 movie clip, just make sure they start at different points.
Like tween 1 starts at frame 1 and goes to frame 9, then tween 2 starts on a new layer on frame 10 and plays to frame 18, etc, etc.
And the last frame in all the tweens should contain a stop() action if you don’t want it to continue playing through all the tweens.
lostinbeta,
I have tried that. It works. However, the original flower isn’t there… If I separate the motion tweens to different starting point then the original flower or the remaining petals won’t be there.
How could I set it so that the original petals that aren’t clicked will still be there?
It is all in how you set up your frames. You have to think about how the timeline works.
Each frame plays in succession, and the objects on each layer at that specific frame show all at the same time.
So when your shape isn’t tweening you will still need the frames showing, so you have frames without tweens there.
Check my attachment to see what I mean.
I have gotten it the motion tweens to work. However, there are flaws to calling the tweens from different starting points. If it starts from beginning to end, then if the user goes from end to beginning then it won’t work.
Are there a way to allow the user to view the tweens in any order? Even the example that you have shown me only goes from layer 1 to 4 in order. It can’t go backwards or randomly.
The timeline plays how you set it up, unless you use AS to play a certain frame.
There was a thread talking about how to play an animation forward and backward if you want to check that out…
http://www.kirupaforum.com/forums/showthread.php?s=&threadid=11427
As for randomly, you would have to use AS to choose a random frame or frame label to play at random.
Its hard for me to understand what your trying to do with an example file.
Yeh, I understand how it works… I knew it would be difficult to play start to end and vise versa without AS. It’s possible to go vise versa but a bit of work without Action Script.
Back to the list box, why doesn’t it that line of code you posted work? It doesn’t popup the window movie clip…
I already stated I very rarely ever use components so I don’t know how they work, so I don’t know why it won’t work. :sigh:
Alright, I’ll try to figure it out or have someone with component experience help me out.
Hey, can you do me a favor? Goto this address and see if there’s any bugs in my movie. http://66.92.162.121/navigation1.swf
Click on E1, and see if the movie trails your mouse. The Web administrator of my college said it trails her mouse. Oh yeh, go into the MA/COM Floor 1 building and try to click on a arrow. The admin. also said it was difficult to click on them unless you have quick reflex. I could click it fine though.
She wanted to the arrows to stop when mouse is on it. Do you know how to stop it when the mouse is over it? I know the algorithm… But not sure on the AS syntax… I could use if for mouseover and else for mouseout and set actions to gotoplay at certain frames…
The arrows were kind of hard to click on while they were moving like that. As for getting it to stop, put the tween in a movie clip symbol then use this…
[AS]on (rollOver){
this.stop();
}
on (rollOut){
this.play();
}[/AS]
Your hover captions also liked to stick around after clicking the button, perhaps removing it on(press) well as on(rollOut) will fix that? Worth a try.
The bouncing ball is harder to hit then the arrows.
When you click on Le De Forest and Thomas Edison Hall the panel that slides out is underneith the auditorium building, switching the layers should fix this.
The title in your directory section says “directo”
I think thats about it.
Hey thanks for playing around with my movie and giving me feedbacks. I have fixed majority of the problems… My college would be very please with this movie. Hopefully, I will be done within 2 months. Drawing all of these rooms, and floor pans is giving me a headache. It’s not easy task.
But my main concern is the list box. I am very close to getting it to work. Loading the movie with the list box is simple. However, incorporating the gotoplay to the nested movie clip is a bit tricky. Hope someone on this forum can give me a hand.