"Exit" in director is ? in Flash
Another in my series of "switching from Director to Flash" questions.
Here's what I'm trying to do.
1. Allow the user to type a new in an Input Text box.
2. If the number is from 1 to 12, go to the "input" frame
3. If the number is not from 1 to 12, tell them to type a number from 1 to 12 and give them another chance.
Here's the problem. If the user types a anything that is not a number from 1 to 12, when they try again and type a number from 1 to 12, the Input Text box is cleared, and program does not advance to the "input" frame. I'm guessing that I need to exit the If/Else. In Director, I'd type "exit". What do I do for Flash?
txt_defNumber.addEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown)
var Term = ""
var Definition = ""
function reportKeyDown(event:KeyboardEvent):void {
if (event.keyCode == Keyboard.ENTER) {
var gNumber = txt_defNumber.text;
if (gNumber == "1") {
Term = "value"
Definition = "A number and unit that together represent the result of a measurement or calculation, e.g. 100 meters."
gotoAndPlay("input");
} else if (gNumber == "2") {
Term = "unit"
Definition = "A defined quantity based on a standard, e.g. meter."
gotoAndPlay("input");
} else {
txt_incorrect_number.text = "Please type a number from 1 to 12."
//What goes here?
use:
txt_defNumber.addEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown)
var Term = ""
var Definition = ""
function reportKeyDown(event:KeyboardEvent):void {
if (event.keyCode==Keyboard.ENTER) {
var gNumber=Number(txt_defNumber.text);
if(gNumber>=1 && gNumber<=12){
gotoAndPlay("input");
} else {
txt_incorrect_number.text="Please type a number from 1 to 12.";
}//What goes here?
Similar Messages
-
Load a director level into flash // is it possible?
Hi,
I am planning a complex system where eventually users will need to do immersion into 3rd dimension and also play lots of flash quizz.
I know director can load flash which makes it obvious choice for development but coding in lingo (a non POO language) maybe a little bit of regression looking the average age of the development team that iam building. So looking forward, i wonder if it's possible to make flash load director levels.
Thank youVenian,
Director used to be considered flash's big sister: http://www.adobe.com/products/director/
Btw i just found out that you can use javascript within Director making it then perfect choice for my project. -
Exit from Director with error code
Hi all!
How can I exit from director with specifyed error code by
using lingo or JavaScript syntax?
I want to catch its error code in batch file for example to
do something special.
Sample batch file I want to use:
myprojector.exe
if %ERRORLEVEL% == 10 goto GO_TO_SOMETHING_WRONG
But now, by default director quit with error code 0.
Thanks in advancelis0x90 wrote:
> How can I exit from director with specifyed error code
by using lingo
> or JavaScript syntax?
>
> I want to catch its error code in batch file for example
to do
> something special.
> Sample batch file I want to use:
>
> myprojector.exe
> if %ERRORLEVEL% == 10 goto GO_TO_SOMETHING_WRONG
>
> But now, by default director quit with error code 0.
I don't know of any way to do that, but you could get the
projector to
create a (zero byte) file if there's an error and in the
batch file check
for the existence of that file. (Not forgetting to delete
that file, if it
exists, when the projector starts.)
Andrew -
Can I import Director movies into Flash?
Hi,
Can Flash handle Director movies? I am making a presentation
of my artworks in Flash environment; I have both Flash and Director
movies. I know that I can import all my swf movies into Director
MX2004 to create a standalone projector and play both swf an ddir
movies. Does it work for the reverse?
Thanks
UtiNo, you can't import or display Director movies in Flash in
any way. Best
you can do is launch the Director executable from the Flash
movie, though
how you do this depends on which version of Flash you are
using.
Remove '_spamkiller_' to mail -
Using a director XTRA in flash actionscript: possible or
impossible?supurdupur wrote:
> Using a director XTRA in flash actionscript: possible or
impossible?
not possible
Best Regards
Urami
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami> -
Using Director projector inside Flash
I have a Director projector from a project I did a few years
ago but no longer have the .dir file. I want to be able to display
it on my website. Flash won't let me import the .exe directly. Is
there any way I can launch the .exe using ActionScript, or maybe
import the projector into a new Director file and publish it as a
shockwave file? Any help would be appreciated. Thanks.> Flash won't
> let me import the .exe directly. Is there any way I can
launch the .exe
using
> ActionScript,
No, you can't import any sort of Director content into Flash.
Come to that,
with very good reason, you can't 'launch' an EXE from a
browser at all. In
Flash, create a link to the file, which will then allow users
to download
and run it.
> maybe import the projector into a new Director file and
> publish it as a shockwave file?
No, you can't do that either I'm afraid. I don;t know of
anything that will
decompile Director projectors, and you can't import
executables into
Director.
Remove '_spamkiller_' to mail -
Can we import a Director movie into Flash ?
I'm exploring a possibility of importing a Director movie into Flash or if it is possible to import a published Director movie into Flash.
Anticipating your reply....
Thanks,
-MithunAs I may have mentioned in the other thread where you asked this, No. You can not. You can import a flash swf into Director but you can not import anything from Director into Flash.
-
Importing Director movies into Flash
My short Q, which I suspect is a FAQ though it doesn't appear
on the Director or Flash FAQs on the Macromedia (sorry, Adobe ;-))
site, is: how can you import Director movies (source .dir, or
published .dcr) into a Flash movie?
I had thought this would be simple, that Flash would have an
import filter for Shockwave movies, as after all both products come
from the same stable and you can import .swf movies into Director,
but not so, at least in my copy of Flash 8. Neither can Director
export as a .swf - the only export format that might just work is
.avi but I'm damned if I want to create a big video file just to
reuse a snippet from a Director movie. I did a quick Google search
for DCR->SWF converters but couldn't see anything obvious to
use.
The reason I'm bothered about this is that we've produced a
lot of e-learning material in Director (a good third of our
learning objects at
http://www.nottingham.ac.uk/nursing/sonet/rlos/rlolist.html
use Shockwave movies) and although we've now moved on to Flash,
occasionally we want to be able to reuse snippets from Director
movies in Flash movies. It would be disappointing, to put it
mildly, were we not able to move content between software
applications produced by the same company...
TIA for any answers/suggestions.
Cheers
Fred
School of Nursing, University of NottinghamI feel your pain an don't know what's going to happen with
Director now that Adobe is involved.
You mentioned that you could export as avi, could you copy
the scenes in which you want to use into a new director file,
export that as an avi and conver t that to an flv?
Just a thought. -
An old question but as 11 is about to be released I thought
I'd ask.
I have several interactive movies made in Director I'd like
to import or use in a Flash project.
With 11 will there be a way to to use the director files I
have made in Flash?embalse wrote:
> An old question but as 11 is about to be released I
thought I'd ask.
>
> I have several interactive movies made in Director I'd
like to import or use
> in a Flash project.
> With 11 will there be a way to to use the director files
I have made in Flash?
Hi embalse,
Exporting to swf from Director would be a complicated feature
as it would mean
translating so many things that are outside of Flash, let
alone the use of Xtras.
You can put your money on D11 not being any better at
exporting to Flash than D10.
The only way you can export to Flash is if you export your
Director animation as a
video and then import that into Flash. Of course, that woudl
remove all
interactivity,
regards
Dean
Director Lecturer / Consultant / Director Enthusiast
http://www.deansdirectortutorials.com/
http://www.multimediacreative.com.au
email: [email protected] -
Integrate Director Movie into Flash CS5
Hi,
I have couple of interactive media pieces created in Director MX 2004. I would like to know if the latest Flash CS5 can handle
Director Movies. Kindly advise the best way to create a portfolio (consisting of Dorector and Flash Movies) that can be showcased in a website
as well as in a CD-R.
Also, a tutorial or direction to creating an Adobe Director website whereby the swf movies can be integrated would be useful.
Any direction would be appreciated.
Thank youYou cannot place a Director file inside a Flash - you can put Flash into Director, but not the opposite.
-
Director MX 2004 + Flash MX 2004 - Problema con formulario flash con combos dentro de director
Buenas,
He desarrollado una aplicacion con base Director, que lleva
dentro un
formulario flash con varios combos tirando del componente
combobox del
mismo. Hasta ahora lo habia usado en otras aplicaciones con
una integracion
similar sin problemas, pero en este caso me ha surgido algo
realmente
extra�o, esto es, si pulso muchas veces en los combos
hay momentos en los
que estos se vuelven locos y se quedan como colgados (de
hecho la aplicacion
esta como colgada cuando pasa esto). Esto pasa mas a menudo
en windows 2000
por no decir la mayoria de las veces, y en XP pasa en
determinadas
circunstancias. He probado a quitar el direct to stage del
sprite flash,
ademas de quitarle la "animacion" que realiza al desplegarse,
y creo que en
xp el problema esta resuelto, pero en win 2000 me parece que
estamos en las
mismas.
El problema es que necesito combos para ese formulario, y no
me valen los
que trae Director por defecto, basicamente por el aspecto.
Tampoco puedo
permitirme el lujo de cambiar todo el formulario a Director
aunque usara un
xtra o un behavior, ya que esto lo entrego ma�ana y
tengo que matizar mas
cosas. Alguien ha hecho algo parecido, o ha tenido un
problema similar?
Muchas gracias y saludos a tod@sBuen dia, el problema que tienes radica en la version de xtra
que
utiliza director para mostrar la info que hasta el momento
esta en la
version 7, lo que debes hacer es exportar los ficheros a una
version 7y funcionaran perfectamente.
"Tony" <[email protected]> escribi� en el
mensaje
news:e85ovc$s0j$[email protected]..
> Buenas,
>
> tengo una aplicaci�n hecha en Director MX que
necesita abrir ficheros
> flash. El problema radica que si estan hecho con la
versi�n 8 no me los
> abre. Alguien sabe por qu�? en PC tengo instalado
la �ltima versi�n del
> Flash player.
>
> Salu2 y gracias de antemano.
>
> -
Director Array to Flash Array?
I'd like to be able to create an array in Director, and then
pass that array object into Flash and use it there. I can use
Director to manipulate a Flash array, but I haven't been successful
in passing an array object.
Any help?If you have the new (at least more recent) Director 10.1
update with the
new Flash Asset Xtra, you can use the brand spankin new
convert() method
to do just that.
Here is a technote (pdf) about how to use it:
http://www.adobe.com/support/director/flash_8_asset_xtra.pdf -
Hi,
A quick question, is it possible to detect motion via a
webcam in Director which triggers a Flash animation? Thanking you
in advance for your help.Yes, that would be possible.
Dave -
Head Developer
www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/ -
Director 11 and flash cs3 editing
Hi,
Since the last version of director, i worked fine with it and
the feature of flash editing from director (you know, double click
in flash member and the flash movie opens from director. Then you
can update from flash in one only click).
Well, now i've installed dir11 and flash cs3 (without
uninstall dir10 and flash8, because i know that flash 8 doesn't
work with dir11, so I'm looked for profiting this feature with the
old dir10 and flash8 and dir11 and flashCS3). Ok, this feature
doesn't work anymore. When i try to edit from dir11, flash CS3
opens the SWF file!!!!. The same occurs with dir10 and flash8!!
After this, i've tried all possibles combinations,
uninstalling flash8 and reinstalling flashCS3, and the same with
directors. Finally, i found that the versions of macromedia
products doesn't uninstall completely, (even after removing
manually all the registry references of both products). When i
uninstall dir10 and then i install dir11, the .dir files is not
associated with director anymore(even with the rebootings), the
system ask to me the proper application. The .dir icons are white.
To solve this, i need reinstall dir10 and the icons back. Then, i
reinstall dir11 and the icons change properly.
All this adventure with director versions is just the same
with Flash 8 and CS3, with one big difference. Now i'm unable to
install CS3 properly to edit from dir11. All that i get is the SWF
editing but not the fla, and the .fla icons disappears. Not
associated anymore.
I've tried with the CS3 cleaning tool from adobe and
reinstalling applications, and no success. So, i think that maybe
the problem can solve doing a complete clean uninstall of
macromedia programs, but at this time i don't find the way to do
it.
I little help is needed, please...
Thks.quote:
Originally posted by:
wherold
Flash is NOT automatically added in the Editor list
two things.
1. you must setup external editor for flash in D11
Edit -> Preferences -> Editors..
2. you'll have to add the source fla for every swf in the
proprty inspector by hand.
you can find this handling also in the D11 live docs at
http://help.adobe.com/en_US/Director/11.0/help.html?content=10_Using_Flash_Interactive_005 .html#70861
Wolfgang
Thanks, i know this. But this is not the problem. The
external editor (flash cs3) is located by director, and the path of
the fla file is correct. Director finds the file but opens the
swf!!, but the fla. -
Flash sprite in Director: slow, slow!
It's not a new problem but maybe there's a new solution?...
I have a Flash game in a Director projector. The Flash games
works fine by itself (not embedded in Director), but inside
Director, everything runs much slower. Is there any ways to speed
things up?
Thanks
SergeYea Flash tends to run a bit slower in director, be sure the
default
direct to stage flash member property is set.
Mx 2004 has an updated flash xtra that runs a little more
effeciently,
with an option to run multiple flash sprites in the same
memory space.
There's a downloadable director update for flash 8.0
Maybe you are looking for
-
Report painter performance problem...
I have a client which runs a report group consists of 14 reports... When we run this program... It takes about 20 minutes to get results... I was assigned to optimize this report... This is what I've done so far (this is a SAP generated program)...
-
Payment Wizard :outgoing payments for customers
Hi, it would be very nice if the payment wizard could handle outgoing payments for customers. I can pay a credit memo for customers manually but not by payment wizard. For example: 1 invoice +1000u20AC 1 credit note -1500u20AC total = -500u20AC --> p
-
Want to run OWB mappings thru Autosys Job Schedule
How can I execute OWB mapping (pl/sql code) thru the Autosys Job scheduler? Can you please provide some examples. Thanks, in advance Carol-Ann
-
Firefox is open but will not appear on monitor
I tried to drag to second monitor...now it has disappeared and I cannot locate. It is open. I have tried uninstall re install...still seems to be lost somewhere that is not visible. Could I please get some suggestions. Thank you
-
Computer goes to sleep when unplugged and won't charge...
I've only had my laptop for a year and change, and all of a sudden this evening something weird started happening. It says the battery is completely dead even though I keep it on the charger. Last night I shut it down for the first time in a few week