Send a behaviour to a sprite
Hello:
I have a behaviour with 1 parameter and I want to send to a
sprite.
How can I do it?
Thanks
two ways.
Assuming param is any type of variable that has been
initialized and has a
valid value, in the behavior from which you want to send the
parameter, add:
SendSprite (12, #TakeParam, param)
or
SendAllSprites (#TakeParam, param)
then in behavior on sprite 12
on TakeParam me, param
put param -- (or do something else with param)
end
If you use the second option in the behavior of the sprite
that is sending
the parameter, every sprite will be checked for the TakeParam
handler but
only those with the TakeParam behavior will actually receive
the message
(and thus the parameter). Of course, I chose sprite 12
arbitrarily.
Craig Wollman
Word of Mouth Productions
phone 212 928 9581
fax 212 928 9582
159-00 Riverside Drive West #5H-70
NY, NY 10032
www.wordofmouthpros.com
"Anne" <[email protected]> wrote in message
news:ea25nu$b5c$[email protected]..
> Hello:
>
> I have a behaviour with 1 parameter and I want to send
to a sprite.
> How can I do it?
>
> Thanks
>
Similar Messages
-
Order of behaviours on multiples sprites
When I add more than one behaviour to a sprite, the
behaviours are attached to the sprite in the correct order (the
same order as in which I add them.) However, when I make a
selection of multiple sprites, and then add the behaviours,
director has its own mind about the order, there is no way I can
influence this.
I have a case where the order of the behaviours is important,
and they have to be attached to 200 sprites, a lot of work when I
have to do it one by one. I could try attaching the behaviours
dynamicly, but before I go that way I would like to know if someone
ever stumbled into the same problem and knows a solution for it.
janHi,
You must be having the Lot-size as EX.
In this situation, For your lot size : EX, in OPI4, Activate the MTO Lot size as "1" (Lot-for-lot with Rounding).
Maintain the Rounding Value in MRP1 View.
Now the Order will be created with Multiples of your rounding Value.
Hope this helps..
Regards,
Siva -
Setting the 'Return-Path' of emails sent using the send email behaviour
Hi,
How do I set the 'Return-Path' of emails sent using the send email behaviour? I am having troubles because the emails sent from my page are being filtered out as spam when they should be coming through. the text is the following (it is the notification of an e-card to the recipient):
Dear Bart
We've decided this year to share our holiday greetings while also showing our commitment to protect the planet. Since it takes 24 mature trees to
produce one ton of greeting cards, this e-card shares our holiday wishes with both you and future generations.
Please follow the link below.
Best Wishes,
John
http://www.jdgcsfiles.com/_ecards/viewcard.php?ID_cnt=297
I suspect that it has something to do with the return path setting.
Can anyone help me on this one and get it through the spam filters of most email clients?!
Thanks,
NIkHi Nik,
so far the only "flagged as spam" reason I know of is, that ADDT curreently misses to insert the current date/time -- please try the fix mentioned in the thread http://www.adobeforums.com/webx/.3c034953/5 and see if it helps
Cheers,
Günter Schenk
Adobe Community Expert, Dreamweaver -
Hi,
I have a scenario like i need to push into my database the path with filename like this.
c:asffloder\gbn.xml
but when i use the statement like this in my orchestration
SndBkUpFilePort(Microsoft.XLANGs.BaseTypes.Address);
i get this as c:asffloder\%Sourcefilename%
i have constructed my filename for ex gbn.xml in my orchestration
when i use FILE.ReceivedFileName i only get the name like gbn .xml
how to get like this c:asffloder\gbn.xml?Hi Sujith,
So you have received the received filename property value ( when you simply use that you said you get gbn .xml).
Following statement can get the value as you want:
Replace: YourInboundMsg to your BizTalk message variable name you have defined for your inbound message
YourInboundMsg(BTS.InboundTransportLocation).Substring(0, YourInboundMsg(BTS.InboundTransportLocation).Length - 5)+YourInboundMsg(File.receivedFileName);
BTS.InboundTransportLocation will give value of your inbound message's path like "c:asffloder\*.xml"
File.receivedFileName will give the received file name ass gbn.xml.
So construct a string with these properties to get the value as you desired.
If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply. -
Score generation session and behaviours
Hi,
I'm trying to use the score generation session.
Is there a way to attach a behaviour to a sprite and have it
saved?
I tried setting it with scriptInstanceList, but it's not
saved.
The setScriptList command doesn't work.
Can anybody help me?
I'm sorry for the duplicated message.
Thank you
PaoloThe "setScriptList" command does not work inside a score
recording session. Try adding your scripts after updating the
frame. -
Send email with attachments and change calendar
hi,
2 questions,
first how can i change the datepicker icon? i want to use something slightly fresher that i have, say an image of a calendar for example?
the second question is a bit more ocmplicated.
i ahve used the send email behaviour no prolems at all, however i need to be able to on an existing site i used to build with addt have the ability to email documents that are uploaded by addt behaviours into the site?
so at the moment you can upload, delete and view the documents. the documents are displayed in a repeating table, i need to be able to have checkboxes next to each documents name and when selected when the person clicks the submit button it email the message with documents attached to an address they specify?
any help would be great.
thanksthansk gunter,
i am happy to try figure it out using addt, ill have a go with checkboxes next to the recordset, i could set the ticked value of the checkbox to the name of the document from the recordset and give it a go?
i think it would have been a cool out the box feature, if you can help at all when you can with trying to impliment i would really appreciate it and i think it will definately help other users at the same time.
i have to say i love addt, so sad it is not around as such. i have noticed a few users talking about php5.3 support and just want to let users know i found a site which has the includes file patched:
http://www.interaktonline.info/files/47-ADDT-1.0.1---PHP-5.3-compatibility-patch.html
great site and think that users should have a look at it. not sure if that solves the issues people are having or not. i just stumbled across it and be good if users could keep our heads together to try and keep this great product alive for as long as we can.
anyway i just thought i would share that with you guys.
hope it helps and hope you can help guide me gunter with the email query.
many thanks -
Hi all,
I'm having a ton of trouble with something and I truly hope
someone can help me out here...
The behaviour for 3d sprites, "Click model go to marker", is
just not working right when there are more than one of them.
In my 3d member, I have a few different buttons that I would
like the user to press and jump to a different label.
If you press model 1, you jump to frame "x", if press model
2, go to framelabel "Y" etc.
The problem is, it only works for one model. When I click on
another 3d model in the member, it doesn't want to jump!
My procedure is this:
1) drop the .w3d file onto the stage
2) drag and drop the 3d model rollover behaviour (3 of them,
1 for each model)
3) drag and drop the ""Click model go to marker" (3 of them,
1 for each model)
4) drag and drop the "mouse trigger" behaviour on it finally
to trigger the jump.
How come it only will work with one model, but not several?
I'm really stumped and really need help :(
Thank you..You might be better off just using a simple custom behaviour,
within which you can enter model names and label names into a list
variable. Here's one which will allow you to enter as many
model:label combinations as you like (attached below).
Just edit the line which assigns the model names and label
names. Note that the model names are case sensitive in this code.
This single behaviour can replace all the copies of 'click model go
to marker' behaviours you currently have on the 3d sprite.
demo here, with source:
http://www.robotduck.com/content/articles/director/3d/basics/clickModels
- Ben -
Hm this is gonna be a tough one..
Have you guys ever played a game named Grim Fandango?
Properbly not. Anyway, we are doing a game smiliar to Grim
Fandango, which means its a 3d adventure game. We've come up with
some really clever solutions for the game mechanics, but now the
source is getting so complex that we feel that we want to "split
up" the code into different behaviors with different names.
For example, when the character enters a specified area,
"Trigger_talk_bartender", we want a behavior to get activated. This
behavior will control the characters motions, overlay-text and if
the current line is to be played over and over again or if a new
line is to be played the next time the player enters this area.
Every conversation will have its own "Talk behavior". But how
should we get them to work together? Maybe something like this?;
If char.position = Trigger_talk_bartender then
Go Talk_Behavior_1 me
end
and then the behavior will be "On Talk_Behavior_1 me".
Its so complex to explain but I hope you understand
everything and go help me with problems.Hi Pelleyoo,
I do not understand why you did not animate the characters in
your 3D application. What I would of done is created animamations
in my 3D application, and then depending on if I was animating the
charcter by its bones, then I would use the bones player modifier,
or if I was animating the character through keyframes, then I would
use the keyframe player modifier. However, no matter which modifier
I did use, both of them allow you to put your animations into a
play list que as well as blending one anitmation into the next
animation that is in the play list que.
In addition, to make things easier for me when coding the
script, I would also create an invisible object such as a door for
a doorway that when the collision detection hits the invisible
object, then the script would know the user has entered a certain
room. Once the script knows that the user has entered that
piticular room, then I would have the script call a "sendSprite"
command. The arguments for a sendsprite command is as follows...
sendSprite(to which sprite you want the message to be sent
to, #messageHandler, your additional arguments)
for example, the beliow script will send the message playMe
to sprite 0, which is the frame script behaviour area, and also
send the argument of the motion's name "Speek", and which character
is suppose to speek
on collisionDetected collisionData
if collisionData.name = "BarRoom" then
sendSprite(0, #playMe, "speek", "barTender")
end if
end collisionDetected
... this line of code is part of the behaviour script that
lies on the frame behaviour script....
on playMe me, motName, CharName
notLooped = 0
startTime = 0
endTime = 60000 -- this is in milliseconds which 60000
milliseconds is equaled to one minute
member("my3dScene").model(CharName).bonesPlayer.play(motName,
notLooped, startTime, endTime)
end playMe -
How can I get the last / newest record of a table?
Hi,
I am developing an ecard app that has a create greeting page, a preview page with edit and send buttons and an edit page.
I got he insert working, and on the preview page I created a master record page (displays all records), and delete all unecessary designs. Doing it this way also gives me the 'edit' button, so people are able to edit their page.
How do I get only the last record displayed though? At the moment it loops through all records and displays them in sets of 10. I found the variable that holds the totla count of records ('$totalRows_rs7417_content1'), but how do I (re-)write the script so it ONLY diplays the last record?
I need to get the ID of this record as I am writing this into the PARAMs of the object and embed tags of my message .swf (this picks up the ID and based on that sucks the greetings text out of the database via another php script.
Also, from this page, how can I send an email to the sender (ie creator of the message) as well as the recipient? Both email addresses are in the databse so should be part of the erecord returned.
Thanks,
Nik-----
OK, So how do I recreate what I got in a non-ADDT list?
well, when you´re just about to display one certain record, the term "list" is somewhat inappropriate anyway.
What you´d simply need to do IMHO, is using DW´s native functions to create the basic "SELECT * FROM table_name ORDEr BY ID DESC" query, add "LIMIT 1" manually, and display the desired "dynamic text" placeholders in 1 table cell -- don´t think there were any need for all the fancy stuff
(sorting, filtering etc) provided by ADDT´s list, as it´s just 1 record.
It also occurred to me just now that finding the last record that has been added *may-* notbe enough if the site gets used a lot by our executives (I am thinking of a situation where 2 or three peolpe create greetings at the same time and press submit and then getting each others messges rather than their own).
in this case you might want to additionally store the respective executive´s "kt_login_id" session variable -- because it´s this unique "identifier" which should be used to show the last inserted record of the person who actually inserted it, means adding a "WHERE submitter_id" equals the session variable kt_login_id - clause to the query.
When creating a non-ADDT list that´s at some point based on detecting a user session, you´ll BTW need to insert at line 1
I can't seemt o insert it on the page as it is looking for a insert, update or delete bahaviour on the page which of course I don't have
please search these forums for several posts I made which explain my "use dummy table" approach that´s made for cases when you actually don´t have anything to insert/update/delete, but need "something" for ADDT´s send email behaviours.
Cheers,
Günter Schenk
Adobe Community Expert, Dreamweaver -
Is it possible to create a QT movie "cue" or "playlist" so that I can shuttle to the next movie without closing and re-opening the current QT window?
Thanks,
ClintRob
I think understand the process you have offered but am not
certain how to write it.
This video is one of 100, my "attempt" is below
Global gmovietime
gmovietime = "..\videos/Circuit" ???? - How do i specify
which movie I am talking about ? OR should I be setting the time
here
end
When opening the window...
On MouseUp
window.... open etc
gmovietime = 48.12 - not sure what the exact way of
describing what 48.12 seconds as MovieTime
end
On video sprite add behaviour:
on enterframe
sprite 2.movietime = gmovietime
end
Sorry if the above is total garbage !!
Mike -
Here's my scenario. It's probably really simple but i'm quite
new to Director and 3D with the Chrome Library.
This is a test piece which preceeds my next assignment for
University.
Using Director MX 2004 v10.1 and the latest Chrome Library
from this website.
I have a simple 3DSMAX phone model with a body, a screen,
three buttons and a bounding box surrounding the screen and body,
their names in max are phoneBody, screen, button01, button02,
button03 and boundingBox respectively.
I added my 3d sprite to the screen and turned dts off and
background transparency on. I add a change camera chrome library
behaviour to the sprite to change to "frontCamera" (there are three
cameras, frontCamera, leftCamera and perspectiveCamera). I left cut
and constant speed unchecked the default interpolation value.
I then added a "3D Rollover Model UI" to the sprite and the
settings are as follows, Model : Button01, Display hand : yes, no
highlight, added to W3D sprite 1 as its the only 3D sprite on the
stage and in the movie, added to behaviour 6 (this is definitely
correct!), mouse event #press and handlerCall : beginSprite() (also
tried beginSprite(). with a full stop after!).
When i try and run the movie the change camera behaviour
starts automatically and pans to the frontCamera view. When i click
on the button that the UI event was added to i get this error
"Script error: Value out of range pCamera = pMember.camera(pCamera)
-2147219496"
Any help that anyone could give in discovering the reasoning
behind all this heartache will be incredibly appreciated. Student
on a deadline here. Please help!!
Thanks
SteveHello,
Drop me a zip file with your project at: info AT sigiscarinc
DOT com
I will check your problem.
Best regards,
Karl Sigiscar.
"Urbley04" <[email protected]> a
�crit dans le message de news:
e2o0j5$kng$[email protected]..
> Here's my scenario. It's probably really simple but i'm
quite new to
> Director
> and 3D with the Chrome Library.
>
> This is a test piece which preceeds my next assignment
for University.
>
> Using Director MX 2004 v10.1 and the latest Chrome
Library from this
> website.
>
> I have a simple 3DSMAX phone model with a body, a
screen, three buttons
> and a
> bounding box surrounding the screen and body, their
names in max are
> phoneBody,
> screen, button01, button02, button03 and boundingBox
respectively.
>
> I added my 3d sprite to the screen and turned dts off
and background
> transparency on. I add a change camera chrome library
behaviour to the
> sprite
> to change to "frontCamera" (there are three cameras,
frontCamera,
> leftCamera
> and perspectiveCamera). I left cut and constant speed
unchecked the
> default
> interpolation value.
>
> I then added a "3D Rollover Model UI" to the sprite and
the settings are
> as
> follows, Model : Button01, Display hand : yes, no
highlight, added to W3D
> sprite 1 as its the only 3D sprite on the stage and in
the movie, added to
> behaviour 6 (this is definitely correct!), mouse event
#press and
> handlerCall :
> beginSprite() (also tried beginSprite(). with a full
stop after!).
>
> When i try and run the movie the change camera behaviour
starts
> automatically
> and pans to the frontCamera view. When i click on the
button that the UI
> event
> was added to i get this error "Script error: Value out
of range pCamera =
> pMember.camera(pCamera) -2147219496"
>
> Any help that anyone could give in discovering the
reasoning behind all
> this
> heartache will be incredibly appreciated. Student on a
deadline here.
> Please
> help!!
>
> Thanks
>
> Steve
> -
Tutorials on the Developer Toolbox?
Are there some useful tutorials on the Developer Toolbox?
I need to do two things.
1: Insert the data into the database, upload the image into the database.
2: Email the data and the image.
CheersHi and welcome to the ADDT forums !
1: Insert the data into the database, upload the image into the database
ADDT provides an "Upload and resize images" behaviour
(resizing is optionally of course) that´s associated with an insert or update transaction -- you´ll basically just need to provide a file field in your insert/update form and attach this behaviour to it. However, images are not stored "into the database" as BLOB, but are stored within the server´s file system.
More information on this server behaviour is available in the ADDT help :: open the Control Panel and click the Help button. The related chapter is "Image manipulation : upload and resize images"
2: Email the data and the image
ADDT provides an "Send Email" behaviour
(in several flavors BTW) which also allows attaching the file(name) that´s stored in a recordset.
More information on this server behaviour is available in the ADDT help as well -- the related chapter is "Send Mail : Send E-Mail"
Cheers,
Günter Schenk
Adobe Community Expert, Dreamweaver -
Post to a Session rather than DB via ADDT
Hello
Is there the means to Post to a Session via the ADDT ?
I've been using the extensions for a month or so and find the means to update Database values a breeze but I do not see any options for dealing with a Session value.
I've got a page the does a Horizontal Looper and displays 6 products per page. I want to have the ability to update a Session to save selected models much like a shopping cart. Then on a final checkout page I would like to display the results and then allow a checkbox for each value saved. Deselecting a checkbox removes it from the values submitted via email to a predetermined address.
I'm using a Javascript function to post the value of a selection via a URL String and then displaying that value on a pop-up page to confirm their addition to the session. So far no problems.
But now I want to take the known value and insert it into a running session that will store all the inserted values.
Do I have to hand code this or is there an extension value I am not seeing or can I specify a Session and post to that rather than the DB table?
Or is the case that I should be using a temp table in the DB to store these values and then use a recordset to display the saved values?
Basically I do not want to commit the values until I allow the user to review and manage their saved items via checkboxes.
Any tutorials on this or advice from others that have done something similar , perhaps in a shopping cart?
Regards,
Steve
PHP, MySQL DW CS3, ADDT 1.0Hi Steve,
if you want this feature added to a future version, please feel free to submit a feature request using the ADOBE wishform : http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
It´s users such as you who might get heard, not me -- I don´t have anyone´s ear when it comes to considering additional features or not.
However, dedicated shopping carts might still be the better & more professional solution IMHO -- retrieving cookies or session variables with javascript is quite insecure/unreliable in itself, I personally wouldn´t consider that.
I thought about your scenario some more, and it´s clear you would need a better and unique detection of the current user who might not even have an account at your site, means who can´t be detected via ADDT´s "kt_login_id" session variable :: when user X enters your home-made "shopping cart", you can create a random numeric ID and assign this one to a session variable -- this one can be used in whatever other cart page and finally also stored in the DB respectively (on the checkout page) used for creating the query which will send the list of ordered items and a confirmation using ADDT´s Send Email behaviour. More info on this truly interesting approach here: http://msconline.maconstate.edu/tutorials/PHP/ECommerce/php00-08.php
The Temp DB method seems like it could have problems with clean up
Is "cleaning up" really the the right thing to do ? After all, you respectively the customer might want to track his ordering transactions done in the past.
Cheers,
Günter Schenk
Adobe Community Expert, Dreamweaver -
Strange behaviour sending a text file over sockets
Hi !
Im not exactly new to Java. I discovered this behaviour when explaining to a junior.
I have a simple Server-Client architecture to send a text file. The server sends strings to client. The client checks for the string to become null, and never terminates !
Server.java
ServerSocket ss = new ServerSocket(25780);
Socket s = ss.accept();
PrintStream ps = new PrintStream(s.getOutputStream());
BufferedReader br = new BufferedReader(new InputStreamReader(s.getInputStream()));
BufferedReader fis = new BufferedReader(
new InputStreamReader(
new FileInputStream(filename)));
while((read = fis.readLine()) != null){
ps.println(read);
client.java
Socket s = new Socket(IP,port);
PrintStream ps = new PrintStream(s.getOutputStream());
BufferedReader br = new BufferedReader(new InputStreamReader(s.getInputStream()));
String read = new String();_
*while((read = br.readLine()) != null){*_
System.out.println(read);_
Can you tell me what mistake I'm making?Thank you so much for the reply !
All blocks are within try-catch. I didn't post the whole code since you would find it inconvenient !
I tried flushing the stream ! Still doesnt work !
I guess it might help to post the entire source:
CLIENT.JAVA
public static void main(String[] args) {
try{
System.out.println("Client");
int port = 25780;
String IP = new String("127.0.0.1");
Socket s = new Socket(IP,port);
PrintStream ps = new PrintStream(s.getOutputStream());
BufferedReader br = new BufferedReader(new InputStreamReader(s.getInputStream()));
String command = new String();
String filename_to_recv = "from_ser.txt";
command = "GET "+filename_to_recv;
ps.println(command);
String received = new String();
String read;
while((read = br.readLine()) != null){
System.out.println(read);
String filename_to_send = "from_cli.txt";
System.out.println("recd data from server");
command = "PUT "+filename_to_send;
ps.println(command);
BufferedReader filereader = new BufferedReader(
new InputStreamReader(
new FileInputStream(filename_to_send)));
String to_send = new String();
while((to_send = filereader.readLine()) != null){
ps.println(to_send);
try{
Thread.sleep(2000);
} catch(Exception e){
System.out.println(""+e);
e.printStackTrace();
} catch(Exception e){
System.out.println(""+e);
e.printStackTrace();
SERVER.JAVA
public static void main(String[] args) {
try{
System.out.println("Server");
ServerSocket ss = new ServerSocket(25780);
Socket s = ss.accept();
PrintStream ps = new PrintStream(s.getOutputStream());
BufferedReader br = new BufferedReader(new InputStreamReader(s.getInputStream()));
String command = br.readLine();
String filename = command.substring(command.indexOf(' ')+1);
File f = new File(filename);
BufferedReader fis = new BufferedReader(
new InputStreamReader(
new FileInputStream(filename)));
String read;
while((read = fis.readLine()) != null){
ps.println(read);
ps.flush();
System.out.println("waiting for client data");
command = br.readLine();
while((read = br.readLine()) != null){
System.out.println(read);
} catch(Exception e){
System.out.println(""+e);
e.printStackTrace();
} -
Cannot set Flash button properties from sprite behaviour
I'm puzzled...
I'd like to set Flash button properties from behaviors on the
sprite
itself (unselect all buttons with a sendAllSprites, for
example) but
only this sample script works :
on mouseEnter me
sprite(spriteNum).selected = true
end
those ones won't:
on mouseEnter me
me.selected = true
end
on mouseEnter me
selected = true
end
It must but obvious but I can't get it to work...
Thanks.
PJThe selected property is a property of the sprite. You need
to
reference the sprite specifically when you access it.
When you are using
me.selected=true
the 'me' is referring to the current instance of the
behaviour that is
running. It is not referring to the sprite itself. Therefore,
you need
to use
sprite(me.spriteNum).selected=true
so that you correctly reference the sprite.
You can use the syntax
me.property=true
only if the property in question is a property in that
*script*.
Maybe you are looking for
-
Help required for Computer idiot
I am unable to download any attachments from my email. It checks for viruses, says ok then nothing happens. Can anyone help ? Thank you
-
Use Ipad 2 or 3 or iphone as WIRELESS external monitor for DSRL Cannon?
Hey you'll, I am wondering if i can use my ipad 2 or 3 or iphone 3 as a wireless external monitor for my DSLR Cannon t2i Rebel. there has to be an app by now, hope to hear from someone soon and thanks for your help!
-
suppose i have this: <example name="myex" type="simple"> This is the example </example> i parse this doc with DocumentBuilder.parse() and i obtain a Document. How can i retreive the sentence "This is the example"? With Document.getElementByTagName("m
-
Powerbook AC adapter recall not available to Thailand?
Hello, I have gone to this website for the Ac adapter recall for my powerbook http://depot.info.apple.com/exchange/ . I have put in the serial number on my adapter and it does qualify for the recall but as soon as i click "Thailand" for my country i
-
Creating delta load infopackage
Hello All, iam loading data from PCfiles(Flatfile) to 1st level ods which i did succesfully now i need to load the data from 1st level ods to 2nd level ods i dnt know how should i do this? when i go to infosource at this level and select in