Flash´ keyDown in Director
Hi
I've been working on a project in flash where I have used
keyDown commands. It works fine in actionscript. The problem is
that I would like to import it into director. But my keyDowns
doesn´t work in director. If I made buttons in flash it works
in director. But keyDown doesn´t work. Do anyone know why it
doesn´t work? I hope someone can help me.
Thank you.
mamo
Do this:
In your Flash movie, create a dynamic text space, place it
off the
visible area of the stage. Set the variable name to
"showText".
Add this code to your actionscript function:
keylistener.onKeyDown = function() {
showText = Key.getCode();
Then re-import the new .swf into Director.
I don't know why, but it seems that Director wants some sort
of text
action associated with keys. In any case, this will make it
work.
Rob
Rob Dillon
Adobe Community Expert
http://www.ddg-designs.com
412-243-9119
http://www.macromedia.com/software/trial/
Similar Messages
-
Urgent, DEADLINE : Editable Flash field in Director
Hi
Following problem
we have Flash Textfields in Director
At start the are not editable, then on demand they are made
editable - .
If there is some text in the field, it becames selected.
Not when I enter some text from keyboard, the text in flash
field
disappears. It looks, like it looses focus or something like
this
But when I press left or right arrow before and then enter
some text, the
text appears in the field as desired.
What can be the cause of this?
And another question - can I simulate klick on left arrow
from director to
flash field?
Any help will be appreciated
Thanx in advanceHi,
You need to use the USER_COMMAND in the ALV function module
{CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = gd_repid
i_callback_user_command = 'USER_COMMAND'
i_callback_pf_status_set = 'GUI_STAT'
*i_grid_title = outtext
is_layout = gd_layout
it_fieldcat = fieldcatalog[]
*it_special_groups = gd_tabgroup
*it_events = it_events
i_save = 'X'
*is_variant = z_template
TABLES
t_outtab = i_final
EXCEPTIONS
program_error = 1
OTHERS = 2.
then you need to write the below FORM
* FORM USER_COMMAND *
* --> U_COMM *
* --> RS_SELFIELD *
FORM user_command USING u_comm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.}
Here in the Form, Write the UPDATE statment to update the database table
Regards
Sudheer -
Flash movie in director heard but not seen... mostly not seen!
Using flash i made a flash movie to use as an intro to my
director project, I imported the flash movie into director and
placed it on the stage. When i play the director file i can hear
the audio from the flash movie but cannot see the flash movie,
untill right near the end i have an image on a motion tween in the
flash movie which i can see.
Can anybody tell me why i cannot see the rest of the flash
movie?Hi Ajrobson,
I'm guessing you're using Flash 8 and haven't updated
Director for Flash 8
compatibility.
Go to:
http://www.adobe.com/support/director/downloads.html
make sure you've downloaded and installed the 10.1 update.
Then install the 10.1.1
update. This will update your Flash support.
regards
Dean
Director Lecturer / Consultant
http://www.fbe.unsw.edu.au/learning/director
http://www.multimediacreative.com.au -
Problems with panoramic flash files in Director
i have some problems trying to put panoramic photo flash files into director.
I get this software Pano2VR to create 360 and sperical photos in flash format. So finaly i have the swf file.. but when i try put this file in director, does work.
check the flash file here
http://costaricaspirit360.com/
any help
Regards
GinodSean the file is in here:
http://costaricaspirit360.com/sampler/panoSampler.zip
This is one type of swf pano that not work good (flash 9).... but i did what you say... and works fine.
So in the app pano2vr... i export the .swf in flash 8 with no controls layer...
Next, i put this file in my web server and import from director using linking file (internet path)... WORKS FINE.
I still have to make some controls buts but that's fine by me. I'm mac user
Thank's
Ginod -
Playing Flash SWF in Director 11
I created a simple navigation slide type show in Flash CS3
and tried to use it in a portfolio that I'm creating in Director
11. I imported the Flash SWF into Director and when I go to the
file it plays automatically and keeps looping; my navigation
buttons and actionscript 3.0 that I applied in Flash do not work
(they do work in the SWF file played with Flash Player 9). I assume
that I need a sprite script for my SWF cast member in Director, but
I haven't got a clue as to what to script. I learned Director about
12 yrs. ago, but haven't used it much since then . . . and I've
just learned Flash CS3.
PLEASE HELP . . .
Thanks
weet335Thanks for the tip, Dan! Now, I've got to ask . . . how
different is AS2 from AS3? I don't know AS3 good enough to convert
it to AS2. Where might I find some help for my AS3 script?
Thanks
weet335 -
Hi guys,
Does anyone has a sample on flash remoting inside director
2004 mx?
Thanks.
Kind Regards
Jun CanonigoWell, to be clear, the DataGrid component did not come with
Director 2004. A developer can copy the SWC file over and have it
available within Director.
I can tell you that any of the Flash components which were
not included in the release of Director 2004, were left out on
purpose. The reason was because there was some degree of
incompatibility at release. Specific what that is? I don't know the
specific details.
This does not mean that the DataGrid will not function in
your project. It could simply mean that data binding doesn't work.
Test Test Test is my main suggestion.
As for using the DataGrid... You have access to all the
exposed methods and properties to any component you add to
Director. Thus you should be able to uses anything found here....
http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/js/html/wwhelp.htm?href=Part4_ASLR2. html -
Dynamic Flash text in Director MX
Hi,
I have a presentation which needs to display user-changable
messages. I have a flash file that reads from a .txt file. Every
time the flash file opens, it reads the new text, updates, and
everything is great. I'm using
loadVariablesNum("/dynamic.txt", 0);
to read the text from the file.
But, when i put that flash file in Director, the text stops
updating. I made sure the file was linked externally. I'm sure it's
a simple code fix in director, but can't figure it out.
Any help is appreciated.Hello,
The AS below works getting fresh data from a server, not sure
about locally,
you tag a random bit of text at the end of what you're
grabbing, and it
makes Flash think it's a new file everytime. I'm an AS noob,
but this might
help.
randVar=Math.random()*9999;
loadVariablesNum("/dynamic.txt?" + randVar, 0);
"Couch" <[email protected]> wrote in message
news:e61o7c$91$[email protected]..
> Hi,
> I have a presentation which needs to display
user-changable messages. I
> have a
> flash file that reads from a .txt file. Every time the
flash file opens,
> it
> reads the new text, updates, and everything is great.
I'm using
> loadVariablesNum("/dynamic.txt", 0);
> to read the text from the file.
>
> But, when i put that flash file in Director, the text
stops updating. I
> made
> sure the file was linked externally. I'm sure it's a
simple code fix in
> director, but can't figure it out.
>
> Any help is appreciated.
> -
Carriage return in TextArea Flash component in Director 11
Hello.
I have a very big problem now
Neither embedded Flash movies with textareas or standard flashcomponent TextArea from Director tool pallete do not react on keyboard button "Enter" pressings. There is no carriage return after ENTER button is pressed. The same with End and Home buttons!!
Please help with any advise.
Is that a common bug?
See attached test.dir file. Try to type something in both textareas and then press ENTER button on keyboard. You should realize then what I'm crying about(((
AlexeyI too struggled with this issue. If you're looking for a solution still I have written one. Used the attached script in your Flash document, I spent a few days going back and forth between Director and Flash to figure this one out. Basically what I do is attach a key listener to the movieclip containing the textfield object that on keyDown gets the currently focused textField (this way it will work with multiple textField objects). After that it determines if the enter key is hit and if it is inserts a "/n" break at the selection starting point. The only issue is if you select a whole word in the textField and hit enter a break will be placed at the beginning of the highlighted word and that word will not be deleted. Hopefully this helps.
-b
// BY / contempt.productions inc. 10.30.09
// Director 11.5 fix for bug where dynamic textfields don't register ENTER or RETURN key in Flash sprites
// Solution involves inserting a \n carriage return wherever cursor insertion point starts.
// In Flash this adds 2 carriage returns for every hit of the enter/return key
// In Director 11.5 it adds 1 carriage return
// Change "body_txt" to represent the dynamic textField object this script is referencing
myListener = new Object();
myListener.onKeyDown = function() {
_global.textFocus = Selection.getFocus();
// get a string of the path to the currently focused textField object
_global.selStart = Selection.getBeginIndex();
// get the insertion point, this is the start of any selection
var multiText = body_txt.text;
// get the text from the current textField object
var theKey = Key.getCode();
// get the current keyCode (13 is the keyCode for "enter/return" key)
if (eval(textFocus) == eval(body_txt)) {
// determine if focused textField and current textField are the same
if (theKey == 13) {
// enter key is pressed
var firstPart = multiText.slice(0, selStart);
// get the current textField's text from the beginning to the insertion point
var secondPart = multiText.slice(selStart, multiText.length);
// get the textField's text from the insertion point to the string's end
body_txt.text = firstPart+"\n"+secondPart;
// concatenate the first and second part of the textField's text with a carriage return
Selection.setSelection(selStart+1,selStart+1);
// place the text insertion point properly
myListener.onKeyUp = function() {
var theKey = Key.getCode();
Key.addListener(myListener); -
Help with controlling a flash video in director
I have imported a flash file into my director movie and would like a replay button but can not
find the correct lingo. The flash file is called equation. Any help appreciated!! thank youSolved using the following method:
spr = sprite("equation");
function mouseUp() {
spr.rewind();}
Thank you for all your help pretty easy in the end! -
Flash Content in Director MX 2004 10.1
I used director to create my shell or base program. This way I could make a shaped and draqgable projector. The main content with in this file is in a linked swf file. All animated buttons, Scrolling menus, rollovers, video and text hyperlinks are in this SWF. All the buttons and menu in this swf file direct it to other locations within the SWF or call out to URL's. No buttons in the director file call to the SWF or vise versa. The buttons, scrolling menus and rollovers all animate while running in director but wont control the SWF.
Any Idea'sPost an example of the ActionScript that runs when you interact with a widget in your Flash file, but isn't doing what it should.
-
Severe issues when integrating flash paper in director
I'm trying to integrate flash paper documents into director
projector, but there are 2 severe problems about usability:
1. the mouse wheel doesn't work, so i can't scroll document
with mouse
2. i see two cursor on document, the standard arrow cursor
and the simulated flash paper hand cursor; it is possible to hide
the simulated hand cursor in flash paper?
I'm referencing to integration guidelines found at
http://www.adobe.com/devnet/director/articles/flashpaper_in_director.html
Please help, thanksquote:
Originally posted by:
Chunick
if you can access a command or event in the flash paper that
will scroll the flash paper then you can try the free scrollWheel
Xtra that can be found here:
http://www.mods.com.au/xtras/default.htm
Thanks for the reply,
i've fixed the 2#, and i've come up searching at the
mousewheel xtra, and i've got your same idea: send to Flash Paper
some command to force the scrolling, but it seems that such command
doesn't exists... or maybe it is undocumented?
Someone have more informations? -
Hi,
I have a number of flash files in .swf format that I need to
incorporate into a Director Movie. I would like the user to be able
to adjust the voume of them through Director but cannot find a way
to adjust the volume of flash files through Lingo. I understand
that if I had the original .fla files then I could assign the
volume to a variable and manipulate that through Lingo but I do
not.
sound(1).volume does not work, presumably becasuse the sound
of the flash files is not being run through the director sound
channels. I'm pretty new to flash but comfortable with Lingo so is
there anything opbvious that I'm missing?
Any pointers greatfully received,
Cheers,
SiCracking! Thanks a lot for that. How does that work then? Is
thesound essentaily playing through the sprite channel and ecah
sprite channel has a voume property that can be adjusted?
Either way works like a charm!
Si -
Flash 10 in Director 11 (import)
Hello!
I want to include a Flash 10 -file (swf) in Director 11. When
I do this, Director dont play the SWF.
A Flash 9-file works without problems.
What can i do?You can pray and wait for a new version of FlashAsset Xtra
supporting
Flash 10 and possibly AS3. But for the time being Adobe is
only
pretending interest in Director and its customers base. Seems
every
bloody bum in NY metro is better supported by Salvation Army
than Adobe
is looking after Director enthusiasts.
Rgs,
Ziggi
ckaj wrote:
> Hello!
>
> I want to include a Flash 10 -file (swf) in Director 11.
When I do this, Director dont play the SWF.
> A Flash 9-file works without problems.
>
> What can i do? -
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 -
HI!
Im thinking of starting to use the SmartFoxServer for some
multiplayer games.
They have a Flash-API so you can use the flash XML-socket to
connect to the server.
Id like to do this in director/shockwave without using a
flashSprite on the stage.
this is how you import the API in flash.
import it.gotoandplay.smartfoxserver.*
and then create a SmartFoxClient object.
var smartfox:SmartFoxClient = new SmartFoxClient()
But can I do the same in director without embedding a
flashsprite?
I dont want the sprite cos youll have to have it on the stage
for on frame... and so on... and so on... bad performance... you
know...
Somethig like this in lingo would be nice.
gSmartFox = newObject("SmartFoxClient")
gSmartFox.sendAmessage("Wow!!")I would assume this would be easy for Adobe to fix.
Your assumption might be right - I don't know enough to comment. However, persuading them to actually do it, easy or not, is an altogether different matter - and frankly they don't have a great track record with either Director or Shockwave.
IOW: don't hold your breath.
Maybe you are looking for
-
Calendar has lost contact with the server
All has been working well till about 2 weeks ago. I have iPhone4S, iPhone5 and iPad mini + iMac running OSX 10.8.3. all of which were synced to iCloud Calendar. I have not changed anything (as far as I remember). Now the Calendar on the iMac returns
-
Create Word document with Java
I want to create a Word Document with Java. But I don't know how can I insert text in a Word document.
-
Every time I log in to my e-mail I see 30 to 50 "mail delivery" errors. This is very frustrating to each time having to delete those items. I have blocked and clicked on spam, but there is no change.
-
Ipod touch is stolen in school, no tracker to find, what to do??
It happens yesterday on june 16,2011. I was in english class while everybody plays xbox live, lights were off then set my bag on the desk then 5 mins later i take my bag to the side of the desk, then 5 mins later, My ipod touch is stolen! I searched
-
CIFS cannot connect to AD LDAP server or DC
Hello. I am a fairly new NetApp admin, and have very little formal training on NetApps. I was thrown into the job, and I'm trying to learn as much as possible. We have multiple NetApps in a WAN. One the of filers I have from out of state is not b