[quoted text, click to view] > I create my .swf and then pull it into a Director projector. What is
next?
The best way I have found of integrating Flash and Director communication is
via Director's setCallback. You create an empty function in your Flash movie
which can then act as a hook into Director. This function can accept as many
parameters as necessary, making this much more flexible than the
getURL("lingo:whatever"); approach.
So, in Flash
function fPassToDirector (sMyString:String, nMyNumber:Number,
bMyBoolean:Boolean) : String{
// 'Hook' function
trace ("if hook is functional, you will never see this trace");
}
var sDirectorResponse:String = fPassToDirector ("this is my string", 7,
true);
In Director, on your Flash sprite:
on beginSprite me
pSprite = the currentSpriteNum
pMember = sprite(pSprite).member.name
mySprite = sprite pSprite
myMember = member pMember
-- Create reference to Flash object
-- Note - you can hook into a class using "_level0.MyClassRef"
me.myFlashObject = getVariable(mySprite,"_level0",False)
-- Assign callbacks
mySprite.setCallback(me.myFlashObject, "fPassToDirector ",
#myDirectorMethod, me)
-- You can create multiple callbacks here
end
on myDirectorMethod me, pString, pNumber, pBoolean
return "My string is " & pString & " my number is " & pNumber & " my
Boolean is " &pBoolean
end
That's it! In Director, check documentation of
getVariable
setVariable
setCallback
[quoted text, click to view] > My client needs the final graphic to be print resolution (at least
300dpi.) I
> have tested Zinc and all it seems to do is screen capture at screen
resolution.
Well, that makes sense - you can't screen capture at greater than screen res
:) Director will be the same.
[quoted text, click to view] > Do any of these solutions allow for the capturing of images off of the
flash
> stage?
Director can certainly do this. No extensive experience of mProjector, but
when I used Screenweaver (HaXe predecessor) years ago, it could do screen
capture yes.
-------------------------------
Remove '_spamkiller_' to mail
-------------------------------