What is a Root Timeline?
Hello All
I'm using CS3 (Mac) and I just bought a book on Actionscript (first timer with AS). What is a "root timline" and where is it at? For example the author says: "Since you've attached your script to the root timeline", and I'm thinking to myself, "I did?", where is it? LOL. I just made a car go from the left side of the stage to the right side with the car shaking and vibrating, and I did good with that. But I have no idea where this root timeline thing is at? Can anyone help me with this?
Thanks
Why_atl
the root timeline is the main timeline. it's the timeline you see when you open a newly created fla file.
Similar Messages
-
Load swf AFTER playing to end of root timeline
Don't know if this can be done or not...
I have my Home page - 5 Navigation buttons on the page. Each
button "onRelease" will load an external swf file ( a new page).
The problem i'm having is getting the the buttons to play the rest
of the root timeline (after "Stop) before it loads the external
swf. The rest of the timeline is just a short fade to Alpha 0 of
all buttons before the new page comes in.
any help?
thanks in advance.michaeltowse wrote:
> Could you not assign a variable which is then picked up
at the end of the main
> timeline. This variable could be used within a loadMovie
command. Your buttons
> would have the variable declaration and then a play()
command.
>
What you seem to need is some sort of non unloading loading
of the movie.
You got the level loading method, the movieclip loading
method and the
dedicated loader class. -
Remove child on the root timeline from within a movieclip
Hi
How do I remove a child from the root timeline from within a separate movieclip?
I've tried
MovieClip(parent).removeChild(mc1);
But I get this error
1120: Access of undefined property mc1.
I could write a function in the root timeline that just removes child and then run that from within the movieclip but is there a better way?
Thanks in advance.Thanks for replying.
I asked on Kirupa but I couldn't access the site so I asked here.
I guy answered with this
MovieClip(parent).removeChild(MovieClip(parent).getChildByName("mc1"));
It works fine, is this the best way to do it?
Not sure if I understand what you meant?
Just to be clear I have to movie clips on the stage mc1 and mc2 and i want to remove mc1 from within mc2's timeline.
Thanks again -
Controlling the root timeline from inside a MovieClip
[preface] I'll apologize in advance. I'm a designer, not a
developer. I know very little about actionscript so if you
can help me out, please pretend like I know nothing.
[/ preface]
I just need actionscript to check the value of a variable
when the end of a movie clip is reached and then call an action.
Here's what I've got and it doesn't work. Please don't laugh.
if (p == 1){
tellTarget (_root) {
play();
else if (p == 0){
stop();
(the "stop" on the "else if"
is referring to the movie clip's timeline, not the root
timeline... in case you're wondering)
Any help would be greatly appreciated. Thanks!No it's not a school project. Good guess though. It's
actually a self-promo piece for the ad agency I work for. I'm an
art director expanding my horizons. I would take a class or run
through one of the good actionscript books but unfortunately, I
don't have time.
Thanks for the help again kglad.
btw, I've used tellTarget successfully in a few projects in
the last few months. I'm using Flash 8. -
Accessing Root Timeline Button
Hi,
I think this is a fairly basic thing to do, but I can't seem
to figure it out. I have a movie clip(
mc1) with a button(
btn1) and a movie clip(
mc2) in it. The button plays this second embedded movie
clip(
mc2). In this second movie clip(
mc2), I have a button(
btn2) that, when clicked, I would like to cause the first
button(
btn1) (on the root timeline) to disappear. Is this possible,
and if so, could you help me figure out how to do so?
Thank you,
Brad
EDIT: Just so its easier to visualize, here's a hierarchy of
the relevant elements:
mc1
btn1
mc2
btn2Thank you kglad.
Unfortunately, I'm not 100% sure what you're suggesting. Are
you saying I should test to see if the btn2 will respond to a click
using hitTest? If so, I already know that I can click on btn2
because I have some actionscript that runs when I click it, and
that particular part of the code is functional. However, I'm not
sure what actionscript will allow me to modify btn1 when I click on
btn2. One snippet of code that I tried (but didn't work) was:
btn2.onRelease = function(){
_root.btn1._alpha = 0;
I'm guessing I'm doing something either wrong, or not
possible, but I'm still pretty new to actionscripting, so I
couldn't tell you. Anyway, thank you again, and I look forward to
your response.
-Brad -
Reffering to Code in root timeline
I'm very suprised I theres not an obvious answer to this
question to be found. In AS 2 I would often write most of my code
in the main timeline, and then refer to it from various other
movies etc. I dont seem to be able to do that in AS 3? how can I do
it in AS 3?
For example if i had a function on the main timeline, and
wanted to call it from the code in another movie. In that past I
would have just used _root.functionName();
RESPONCE:
_root in AS3 is now simply root (no underscore). The root
property,
however, is only available to DisplayObject instances, not
other classes.
The root reference is also null unless the DisplayObject
instance is a child
of a display list attached to the stage. For timeline scripts
within a Flash
FLA, however, where the movie clip is added to the screen
within the Flash
environment, root is always available.
A good practice for globally accessible functions, however,
would be to
define your functions as static methods in a class. Then you
can reference
those functions anywhere from any object (even non
DisplayObject instances)
using ClassName.functionName()
RESPONCE:
Ummm... I named my document class main, thinking that might
help me refer to it from child clips, but it didnt. Using root
seems to refer to main, but then I cant refer to anything on the
stage, or any function written there. From reading the help I got
the impression that function defined in the root timeline would
become publicly accessable functions that could be accessed with
dot notation. Is this not the case?
When I trace root, or main, it outputs [object main]. So then
thats the class... Why cant I refer to the functions of that class
from another movie?
Are you suggesting I write a document class with my functions
in it? could I still refer to objects on the stage if I do that.
I've read over these subjects alot in the documentation and its
really not clear... perhaps someone could write a tutorial._root in AS3 is now simply root (no underscore). The root
property,
however, is only available to DisplayObject instances, not
other classes.
The root reference is also null unless the DisplayObject
instance is a child
of a display list attached to the stage. For timeline scripts
within a Flash
FLA, however, where the movie clip is added to the screen
within the Flash
environment, root is always available.
A good practice for globally accessible functions, however,
would be to
define your functions as static methods in a class. Then you
can reference
those functions anywhere from any object (even non
DisplayObject instances)
using ClassName.functionName()
"smazr123" <[email protected]> wrote in
message
news:f29rrb$4nl$[email protected]..
> I'm very suprised I theres not an obvious answer to this
question to be
> found.
> In AS 2 I would often write most of my code in the main
timeline, and then
> refer to it from various other movies etc. I dont seem
to be able to do
> that in
> AS 3? how can I do it in AS 3?
>
> For example if i had a function on the main timeline,
and wanted to call
> it
> from the code in another movie. In that past I would
have just used
> _root.functionName();
> -
Controll the ROOT timeline from externally loaded movie clip?
does anyone know how to controll the root timeline from an
externally loaded movie clip?
I have loaded a movie clip, which has buttons on it that I
would like to controll the main original website timeline with.
something like this.parent.parent?
thanks a lot
harkyfeedmeapples <[email protected]> wrote:
> does anyone know how to controll the root timeline from
an externally
> loaded movie clip?
>
> I have loaded a movie clip, which has buttons on it that
I would like
> to controll the main original website timeline with.
>
> something like this.parent.parent?
_root.doStuff;
Freundliche Grüße,
Franz Marksteiner -
I have 4 mc's on a root timeline. I'd like each, when clicked, to animate individually. Currently with the code I have, when I click one, they all play. 3 of these mc's are identical mc's (they have instance names, but aren't called out in the code, not sure how to). The fourth mc is a different mc altogether, yet this particular mc along with the other 3 (identical) all play at once.
I thought using "this" would only have the mc I click on play. Not the case. I also tried putting the instance name (i.e. onoff1) bofore "this." and after "this." and no luck.
Thanks for any help, and I regret to say that I'm not savvy in AS2, so I hope you don't mind spelling things out for me because this a bit over my head.
Also, wanted to say, that the mc's timeline do have a stop at the beginning and end. So when you export the swf (currently) the mc is stopped, and when you click on it they all play to the next stop. So they act like I want them, just that they're all animating at once no matter which one I click.
onClipEvent(mouseUp) {
this.gotoAndPlay(1);Wow! You are the man!!!!! Karma points! Thanks so much.
I've only used on(release) for buttons, and have always used onClipEvent(mouseUp) for mcs. I didn't know you could use on(release) for mcs, didn't think you could.
I know enough AS3, more than AS2. I got a gig that asks for AS2 and I had to learn it from the ground up. I miss using the function command in AS3, I think I used it for everything.
Thanks again. -
what is system root?
It depends on whether you mean the 'root' user account, also know as the "Super User". Logins to this account are disabled, but the account exists, as many of the privileged background processes are owned by the root account. NOTE: This is NOT the same as an "Admin" user.
Or do you mean the file system 'root' directory, which on a Unix system is represented by /. In the Finder, it is generally the "Devices" item with your boot disk name, such as "Macintosh HD", unless you renamed it. -
Refering to a class imported on the root timeline?
This is probably ueber basic, but I don't know how to do it.
I am importing tweenlite on the root timeline like this:
import gs.TweenLite;
I now want animate things in other MCs. I tried something like this, but it did not seem to work.
_parent.TweenLite.to(text1, 3, {_alpha:100, overwrite:0});
How would I do this?
Thanks a lot for any help with this!!!it's easiest to not even bother with the import statement and always use:
gs.TweenLite.to();
or
gs.TweenLite.from()
from any timeline. -
Adobe Media Encoder exports different video than what appears in CS4 timeline
I'm using Premiere CS4 to edit a short skiing video. All shots were taken using a GoPro @ 60fps, 720p. All of the clips were converted into slow motion by using "Interpret Footage" and setting the frame rate to 24. I used the sequence preset "AVCHD 720p 24", and editing seemed to work fine. The video played smoothly and correctly. However, after exporting in Adobe media encoder, the video was far different than what I previewed in the timeline. It seems as though each clip shows up at the correct time, but it disregarded any trimming I did to the clips and each one is played from the very beginning. Also, each clip plays extremely slowly, and there is signifigant ghosting (frame blending issue?). I can also see that the preview window that shows up while I set the export settings displays the incorrect video as well. However, if i change it from "source" to "output", it displays it correctly. I tried exporting using H.264 720 24p and the youtube HD widescreen preset, both of which failed. I am somewhat new to HD video, but I cannot seem to come up with any reason why my video will not export correctly. Any thoughts?
PC Specs:
Intel Q6700 quad core @ 2.66gh
4gb ddr2 ram
1tb 7200rmp hard drive
GeForce gt240 graphics card w/ 1gb dedicated video mem
windows 7 ultimate 64
All updates to premiere installedI don't think AVCHD is the correct preset... but I use CS5 so not 100% sure
Flip or GoPro video http://forums.adobe.com/thread/437535?tstart=0
- And http://forums.adobe.com/thread/668369?tstart=0
- And http://blogs.adobe.com/VideoRoad/2009/12/using_a_flip_minohd_camera_wit.html
- Says to use the XDCAM EX 720p 30p (or 60p?) setting for Flip (maybe GoPro?) -
I have a situation with members and clubs where I want (yes I'm a newbie)
club
member
club
member
member
member
club
member
member
I currently have this code which shows my JTree root but I've inadvertently made it a vector...
MyTreeModel t = new MyTreeModel();
DefaultMutableTreeNode top = new DefaultMutableTreeNode(t.getRoot());
MyTreeModel treeModel = new MyTreeModel();
JTree tree = new JTree(treeModel);my question then is what should I be using for root? And if I just use a node called root how do I link my clubs and members to it?
Any advice would be appreciated as I'm a bit clueless on how to proceed.Any advice would be appreciated as I'm a bit clueless on how to proceed. Read the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html]How to Use Trees for a working example.
-
In what order are root hint DNS servers used?
Hey guys, I was wondering how the list of root hints were actually used when the DNS server performs iterative queries.
Since it's a list that seems to be in alphabetical order, does it simple use a.root-servers.net. first until it is unavailable, and go down the list? That seems unlikely since that one root would receive disproportional load compared to the others. I am
aware that most of the roots use anycasting, so multiple servers are behind each entry.
Maybe it's round-robin?
I suppose I can capture packets and see what is actually going on... I might do that if no one replies!Hi Anton2,
Thank you for posting here.
I searched many articles about root hints, but it seems that there is not similar articles which mentioned the used order of root servers.
As you said above, I captured packets in my lab. The DNS server didn’t use the alphabetical order to query these root servers. And I didn’t find the round robin phenomenon.
Capturing packets is a good method to verify your ideas. Just do it.
For more details about cache.dns file, please refer to the article below,
DNS-related files
http://technet.microsoft.com/en-us/library/cc757806(v=ws.10).aspx
Best Regards,
Tina
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] -
Quicktime export is different than what's in the timeline
I'm editing a demo reel for an actor friend. One of the scenes is from a television show, but the scene she's in is not with any of the shows' more recognizable stars, so I wanted to put a little bit of the title sequence/music in front of it to make sure people knew what show it was. So I put about 3 seconds worth of it in. It looks great in the sequence, but when I do an export to quicktime (broadband medium) that title sequence is slightly askew... instead of the 3 second chunk that's clearly in the timeline, it's a 3-second chunk about 10 seconds prior to what is in the sequence. This is driving me insane. Any idea what could be causing this?
Oh, I just upgraded to Studio 2, if that makes a difference.I thought of that too, but it was ripped from a (non-copy protected) DVD, and the title sequence is its own chapter. So of course, the little chunk I need to use is pretty much at the tail end... I don't have 10 seconds after it.
Thanks for the suggestion, though! -
What is a root folder and how to find folders afte...
Can someone tell me what a 'root folder' is and how to find icons once you've moved it there?
It's actually my boyfriend's phone and he uses it for construction site pictures and this morning he woke me up as he couldn't find it anymore. He needs to locate the folder asap as he needs to download pics onto the computer and send them to clients straightaway in batches.
I connected the phone to the computer using the usb cord and it asks for options on the mass storage transfer. I selected 'images' and then on the control panel of windows, select digital still camera. At this point, the computer stalls as it is trying to search for the pictures folder but cannot locate.
I'll never move anything to this 'root folder' again. I was just trying to put the icon on the main menu (the way you can do with a blackberry)
He's already gone for work so took the phone with him, so I thought of giving this forum a try.
Thanks for help in advanceHi there!
Well If what you did is you transfered the Pictures from one folder to another using your phone, the Root folder is the main folder so lets say you transfered it to the memory card the root folder is the memory card.
Hope tis' help!
"If you think this post is helpful, please click on the green button"
Maybe you are looking for
-
Photo Gallery start up problem
I have a glitch and it's probably me … but here's what I know. About Don Booth's Photo Gallery: It's great. Everything is good - integrated with my CSS - looks nice. When the page loads all is well except the first image in the Gallery does not displ
-
Ammount formating num{$z,zzz,zz9.99}
Hi All Need help in formating the amount fields. Currently I am using num{$z,zzz,zz9.99} Its working fine for positive ammount value. But for negative amount its giving output as $-18,970.50 Expected out is -$18,970.50 need '-' sign before $ Thanks,
-
Error indicate 007 when run F110proposal
Hi, Yesterday I runned F110 for down payment request against PO of vendor 10000 with error message "No valid payment method " before vendor 10000 master data was maintained. And today I runned another F110 proposal which also include this vendor
-
Remove wine trash from context menu
If I right-click on most files in linux, there is all kinds of wine options there that I do not want. Namely, notepad (2 instances), Internet Explorer, etc. How do I get rid of it without uninstalling wine? I am using XFCE with PCMANFM as desktop man
-
Hi Experts, I want to make color to parrticular line when it satisfies the condition in ALV report. I am not using SLIS. so is there any alternavite to clolor row on specific condition like...NETWR > 10000, that row shold be in RED color. Please give