PDA

View Full Version : Yet another Director problem Senocular.



El Phantom
May 7th, 2003, 05:46 AM
How do I get my flash movies that I import into Director to manipulate the director timeline? For example, when I click a flash button, it makes the director playhead move.

Thank you,

--EP

senocular
May 7th, 2003, 07:40 AM
There are 3 basic ways to send actions to director from flash. All involve the use of getURL and are very similar to the way you use getURL to call javascript (same principle).


method 1

getURL("event: myLingoHandler");
calls a handler you defined in director. When the above code is run, getURL sends the message to its host program, that being Director and tells it to run the event (handler) with the given name. This allows minimal programming in Flash letting you control all actions needed for that event within a handler in Director.


method 2

getURL("lingo: go to the frame + 1");
Similar to the event example, only in this case, with the lingo: command, it tells Director to execute the included lingo code. This gives you a little more control in Flash if you feel like you want to do most of the programming there and minimize whats being done in Director.


method 3

getURL("string argument");
If event: or lingo: is NOT specified, then getURL can be used solely as an event initiator that will envoke the getURL handler in Director. The paramater in Flash's getURL will then be sent to Directors getURL handler as a string. Ex:



// flash
getURL("hello erf!");



-- Director
on getURL me, str
put str -- displays "hello ref!" in the message window
end


... I typically stick to event. If there's a reason Im using Flash with Director, its for what Director can do and Flash cant so chances are the bulk of the work will be done in Director. Because of that, its nice to keep the Flash side of things basic and just evoke handlers defined in Director from Flash meaning less work in Flash itself leaving me just to deal with Director
:)

El Phantom
May 7th, 2003, 12:43 PM
Senocular, thank you so much. Lifesaver....

---EP

felipegm
March 25th, 2004, 01:08 PM
senocular

I´m trying a lot to make this work but something is wrong.
The buttons on flash have to tell director to go to a lebel frame ("video") and to load the right video. Will around 10 videos so I´d like to program it the easiest way, but don´t know how.

thanks for your help....
(the client is here with me and I have to make it work today!!!!)