AS2: Can main movie itself have a class?
I know that it's possible to attach a class to a movieclip
symbol.
But how to attach a class to the main movie itself?
What I want is to create a movie called GUI that will be
loaded from a
separate movie called loader:
loader.swf is run by FPlayer and loads GUI.swf
How can I embed a class GUI for the movie GUI so that the
data of the class
GUI is compiled inside GUI.swf and not inside loader.swf?
Thank for your help
Henri
Thanks for your help.
?_lockroot?? Do you mean _root ?
"myIP" <[email protected]> a �crit
dans le message de
news:e9b3or$4ih$[email protected]..
> ?How can I embed a class GUI for the movie GUI so that
the data of the
class
> GUI is compiled inside GUI.swf and not inside
loader.swf??
>
> So I assume you understand that when GUI.swf is compiled
it will have
class
> GUI data in it. And you don?t want to have the symbol to
access class
GUI,
> correct? Then cant you created an instance of class GUI
on GUI?s timeline
like
> below?
>
> var myGUI:GUI = new GUI();
>
> If you have done that and still have problems with it
are you using
> ?_lockroot??
>
>
http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.ht
> m?context=LiveDocs_Parts&file=00002482.html
>
> Or?are you thinking that you can compile another SWF
from the
FlashPlayer?
> This I believe can?t be done. FlashPlayer is not a
compiler.
>
>
Similar Messages
-
AS2 : can main movie have a class?
I know that it's possible to attach a class to a movieclip
symbol.
But how to attach a class to the main movie itself?
What I want is to create a movie called GUI that will be
loaded from a
separate movie called loader:
loader.swf is run by FPlayer and loads GUI.swf
How can I embed a class GUI for the movie GUI so that the
data of the class
GUI is compiled inside GUI.swf and not inside loader.swf?
Thank for your help
HenriThanks for your help.
?_lockroot?? Do you mean _root ?
"myIP" <[email protected]> a �crit
dans le message de
news:e9b3or$4ih$[email protected]..
> ?How can I embed a class GUI for the movie GUI so that
the data of the
class
> GUI is compiled inside GUI.swf and not inside
loader.swf??
>
> So I assume you understand that when GUI.swf is compiled
it will have
class
> GUI data in it. And you don?t want to have the symbol to
access class
GUI,
> correct? Then cant you created an instance of class GUI
on GUI?s timeline
like
> below?
>
> var myGUI:GUI = new GUI();
>
> If you have done that and still have problems with it
are you using
> ?_lockroot??
>
>
http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.ht
> m?context=LiveDocs_Parts&file=00002482.html
>
> Or?are you thinking that you can compile another SWF
from the
FlashPlayer?
> This I believe can?t be done. FlashPlayer is not a
compiler.
>
> -
How does a loaded swf talk back to the main movie?
Hi,
I'm new to as3 and have troubles finding the right path for
swfs to "talk" to one another.
In my movie, I load an swf "news.swf" into a mc called
container_mc.
At one point I want to swap the "news.swf" to "ueberuns.swf"
via button click in my main movie, but not directly: "news.swf" has
a frame labeled "out", which builds down some elements over appr.
20 frames. In the last frame of "news.swf", I want "news.swf" to
either load the next "ueberuns.swf" into that same container_mc of
my main movie or have my main movie find out that "news.swf" is
through with it's last frame and then throw out "news.swf" and put
"ueberuns.swf" in that container_mc.
I already found out that I address "news.swf" by the
following code:
if (newsLaden.content != null) {
newsLaden.content.gotoAndPlay("out");
where newsLaden is the Loaders name. But how do I get
"news.swf" to reply?
Anyone can help? Thanks a lot!
Cheers, KarlThis is one of the biggest problems of AS3 as communication
between swfs, levels, and nested MCs has taken a completely
different path than the previous 9 versions of Flash. Both Erick's
and TheWabbit's suggestions will work but I sort of follow Erick's
approach as LocalConnection is the perfect fit for .swfs
communicating in the same HTML page not for nested. The key is
defining the timelines of MovieClips in each class when you want to
tell them to do something.
Try tera's example and see if that helps but if you
understand Erick's approach keep going. I just wanted to add that
you have to start thinking about defining the MCs you want to
communicate with in each Object Class file such as:
var _root:MovieClip = new MovieClip(parent);
and then you can always sort of define who you want to talk
to a bit easier.
THIS REALLY REALLY SUCKS for those of us who have been with
Flash since version 2 because they took away one of the best and
easiest things to do (but I'm glad telltarget is gone!! lol). Now I
fear people are going to start throwing everything back into one
LARGE SWF again thereby undoing all the work we in the Flash
community did in the first ten years to define 'best practices'
and_levels definitely was one of them along with an 'actions'
layer. I think Adobe's programmers who joined the Macromedia guys
led the product somewhere it didn't necessarily need to go. The
problem is many didn't know how to use the Flash Community's Best
practices. They were new to Flash. -
i cant export the window moves itself and wont resize. what do i do?
It sounds like you've installed language packs instead of dictionaries, because there's no South African dictionary available.
* https://addons.mozilla.org/firefox/language-tools/
This is the English (British) add-on you need installed to have a dictionary in that language:
* https://addons.mozilla.org/firefox/addon/british-english-dictionary-/
After you've installed it, right-click a text field and make sure the "Check Spelling" option is enabled. Then in the Language submenu you can find "English (United Kingdom)". You can use the following add-on to automatically switch the language for the spell checker.
* https://addons.mozilla.org/firefox/addon/dictionary-switcher/ -
If I load an external swf:
my_loader.load(new URLRequest("abc.swf"));
addChild(my_loader);
abc.swf starts playing - how do I get it to tell the main movie that it reached the end of its timeline and finished playing? Added bonus: the loaded swf is AS1 and the main movie is AS3. I'm not sure if I could convert the loaded swf to AS3.
Thanks,
SeanI have not used this component but it may work for you:
http://www.jumpeyecomponents.com/Flash-Components/Various/ActionScript-Bridge-91/ -
How do I recerence Movie Clips on the Main Timeline from inside a class?
Hey everyone, this might be a stupid question but I thought
I'd ask cause it's making me nuts. I'm all of 2 days into AS3
(coming from not using Flash at all in YEARS) so feel free to
consider me ignorant. I do have plenty of application development
experience in other areas though.
I can't seem to create a class that can reference an instance
of a movie clip on my main timeline. I'd post code of what I've
tried but I've gone through so many desperate edits & wild
guesses that it was just garbled junk before I deleted it all.
Basically here's how I figured Flash could work, though maybe
it doesn't work this way at all.
I'm assuming that with AS 3 being so big on being a true
object oriented environment, I wouldn't need to mix my code and
interface together. Preferably I'd be using the Flash authoring
tools just to design my interface. Create a button... place it
somewhere... give it an instance name. Roughly the equivilant of
Apple's InterfaceBuilder for those of you that might be familiar
with Cocoa development. I can see maybe having to put a few lines
of ActionScript onto frame 1 (though really I'm hoping Flash would
have a better method of kicking off the application at this point
that using code tied to frames) to load my classes & such, but
after that I'd like all of my code to be held in external class
files.
So maybe I've got:
Interface.fla - My interface
Button_1
Button_2
TextField_1
Main.as - My main controller class using to handle all of my
applications behavior
SomeClass.as - Some helper Class
SomeOtherClass.as - Some helper Class
Main.as would have instructions in its initialization method
to go ahead & attach events to buttons & initialize
anything else that needs to happen when the application starts.
From there on it would all be objects communicating back &
forth. Button_1 would get clicked with would fire
Main.someMethod(). Main.someMethod() would then do it's thing and
set the value of TextField_1. All very clean & code is very
separated from interface.
Unfortunately I can't for the life of me figure out how AS3
classes reference each other like that. There doesn't seem to be
any kind of a global 'root' or '_root' I can use to locate any
movie clips on the stage. I've searched the help & the web for
any kind of simple tutorial but to no avail. My job has tasked me
with building a flash app for a project but I'd really rather not
have a tone of ActionScript just shoved into frame 1. That just
seems... ugh! (::shudder::)
Can someone maybe point me in the right direction here? I'm
really willing to do my homework but I can't seem to locate the
info I need to get started. Also, is there an ActionScript IRC
channel or something maybe?
Thanks,
CliffI worked with the problem last night and the solution I
started coming to involved creating my own custom document class
based off which extends MovieClip. My thought is that way I have
access to the initialization routine of the timeline itself and
that all of the elements on the main timeline should be
"properties" of my custom class.
Is this correct? Is there a down side to doing this & if
so what is it & why?
Also, just for my reference, the last time I did anything
with ActionScript I think I was using '_root' to target the main
timeline. WHat are the global variable names in AS 3? Is it just
'root' & 'stage' or 'Root' & 'Stage' or what? -
I have a PowerBook G4 17" and need Apple discs to set it up again. Mine lost during move. Screen seems damaged, has vertical lines. Can anyone help. I can call as I have unlimited calling on my iPhone 6 anywhere in North America.
king,
If your Powerbook's serial number (do not post it here) starts with "W8" then the vertical lines are mostly likely due to a defect in the display itself. W8 is a factory code and, during the iMac G5 and PowerBook G4 timespan, that factory shipped thousands of units with the same defect. It cannot be fixed via software.
As all PowerBooks are now classed as "obsolete," an Apple Store will not work on it. They will look at it ands tell you it has vertical lines and that they cannot fix it. This Apple article shows Apple devices they curently considered obsolete:
Vintage and obsolete products - Apple Support
It is possible that some Apple Authorized Service Providers (AASP) will still work on older computes but they cannot get neededparts from Apple. As this issue was so pervassive, it wil be hard for you or an AASP to find a used/pulled display that is not effected with the "W8 Curse."
Although I love the old PowerBooks, I would not even spent the money for disks, much less the US$150-400 it would cost to replace the display, even should one be available.
If you give us a rough idea of where you are in the world, we can suggest repair shops specializing in fixing older Mac notebooks, but be aware those resources may be rather scare outside North America. -
Dear all,
I have a main movie is coding AS2 which contains a movieClip called MC_header.
And I have an external movie is coding with AS3.
My question is :
Can i loadmovie the external movieclip in the main movie????
if yes, how?
thanks
MELASNope. If the original movie is AS3 you can load in an AS2 clip and it will run as an AVM1 (ActionScript Virtual Machine 1, which understands AS1 and 2) Movie. But the AVM1 has no idea about AVM2 (which understands AS3) so you can't go the other way.
Even when you do load an AS2 into and AS3 file the communication between the main file and the loaded AVM1 movie is quite limited and you won't be able to control it the way you would if they were both of the same flavor -- if that is important to your project. -
Have multiple accounts, how can I move all products into one account?
have multiple accounts, how can I move all products into one account?
Backup Software Recommendations
Carbon Copy Cloner
Data Backup
Deja Vu
SuperDuper!
Synk Pro
Tri-Backup
Others may be found at VersionTracker or MacUpdate.
Visit The XLab FAQs and read the FAQ on backup and restore. Also read How to Back Up and Restore Your Files.
Or you can simply use the Restore option of Disk Utility to clone the drive to the backup:
Clone using Restore Option of Disk Utility
Open Disk Utility from the Utilities folder.
Select the destination volume from the left side list.
Click on the Restore tab in the DU main window.
Check the box labeled Erase destination.
Select the destination volume from the left side list and drag it to the Destination entry field.
Select the source volume from the left side list and drag it to the Source entry field.
Double-check you got it right, then click on the Restore button.
Destination means the external backup drive. Source means the internal startup drive. -
How do I get home video clips from iMovie Mac to iMovie iPad? Surely there is some degree of cross-compatibility? I have a load of clips in iMovie on my MBP that I wanna download to my iPad2 so that I can edit movies on the move. Any ideas? (The clips are in a .mov format, they have been imported / converted into this format in iMovie, original files were from a JVC camcorder in some other strange format.)
I copied the iTunes file from the external drive and it's in both places. I thought all I would need is the iTunes program (which I downloaded to new computer) and my iTunes library file. There must be something else that's missing. My iTunes library looks the same on the new computer as it does when I open it on the external drive. If I click on an iTunes library song from my new computer, it will only play if I have the external drive plugged in.
My back-up drive is a mess. I have multiple copies of music, video, photo, and document files and I don't know how that happened. ={ Obviously, I don't know how to back up stuff properly and there are back-up files extending over a 6- to 8-year period. I think all I did was just drag and drop the main folders from the back-up drive to the same main folders on the C: drive. Also (and I'm kind of fuzzy on this) Windows used to automatically save music files in a folder within my document files (which makes no sense to me). As my Jewish friends would say, "Oy Vey!" -
Hi, can I move my iTunes library to an external drive without having to consolidate it as my prehistoric computer just doesn't have enough space even though I have deleted everything possible to make room? Please help
Hi, do you know if this works if I then want to move my library to a new computer as that is my main intention bacause my old computer hasn't got enough space for me to add new albums so I want to ditch the computer (its got to be about 100 years old and doesn't seem to cope well with modern technology!!) and start using my laptop for my iTunes. I am at the point now where i'm ready to throw both my computer and iPod out the window!!!! I might point out as well that in trying to clear space on my computer I accidently deleted the Bonjour programme which is aparently needed to use the home share option, oops!!!!
Thanks, Kerry -
Hello, I installed my new Apple TV and successfully completed the configuration (Wireless network, Apple ID, and others) yet I am always in the Computers and Setting page… can’t move to the main page – any idea on what and how, please?
Welcome to the Apple Community.
Unfortunately, a number of users appear to have encountered this problem. Some of these users have reported that the problem just disappears the following day or shortly after. Other users have found various other solutions to this problem.
Firstly, are you receiving any date and time errors when you turn on your Apple TV?
Check that you are properly connected to the Internet, by ensuring that you have a proper IP address and not one starting with 169. Also check that your location for the iTunes Store is set correctly, if so you might try changing it and then changing it back.
If the problem persists try restarting the Apple TV by removing ALL the cables for 30 seconds, or resetting it using the reset option under general. You should also try restarting your router, or if this doesn't work you might like to try a restore. -
Hi how can I move the main text in the "San Fransisco CV" up.
The name thats in the "box" as the "adress" ect, is easy to move up...
But the main text please...
BR,
DDavid,
The various templates in Pages seem to have been designed by individuals without much guidance or mandate for standard approaches to layout. In a way, tha's good because you have a variety of philosophies to choose from.
The message is that you can't take what you learned here and assume that all the templates work this way. I answered your question by turning on the Layout View and looking at the Inspectors to see what controls had been used.
Jerry -
I have just created an apple id to use face time. However whenI try to log in I get the message 'email already verified' and then can't move on.
Can anyone help please.You must create the account using an Apple device, a Mac (Lion or greater) or an IOS device (IOS5 or greater). Having done that you will be able to sign in from your Windows machine.
FYI, iCal is an application that can display calendars from iCloud (and others) it is not a calendar itself, merely a calendar client. In Windows Outlook is the calendar client. -
I can not find my Download File on my Main Menu it isn't there.
I have downloading Facebook and I was told by my friend to move it from my Download file.
Well I can't/ don't have one. I have looked everywhere.
Please someone help me with some ideas.You are probably talking about the DOWNLOADS folder. When on home screen press the blackberry button to go to the full menu then look for a folder called "downloads" the facebook app should be in there. If not go back to blackberry app world and check if the app was installed correctly.
Good luck !
Kind Regards
A Ramzan
Maybe you are looking for
-
ICal and contact duplicates in my iPhone and MacBook
Hi, I have seen other discussions related to this subject but I can't seem to fix it. I have duplicates in my iPhone and MacBook of both iCal events and contacts. I am probably doing something wrong because if I add an event on my MacBook it will app
-
My Z10 only charges till 33% and no further. It's a fairly new device. I've upgraded software and rebooted. How do I fix it?
-
I keep getting a Windows Mail error when trying to run the assistant on my pc, but I don't have any email programs open.
-
Why does iBooks close as soon as I open it?
When I open iBook app it opens for a moment and then immediately closes, why?
-
I can't change the track output in Logic X
Hi, I'm running Logic X on OS X 10.9.4, 2.9GHz Intel Core i5, 8GB 1600 MHz DDR3, with various Native Instrument, iZotope and a few other plugins. My problem is that I can't chang the output on individual tracks in the Master window. I remember changi