I have imported a flash file inside director...
how can I access the variables which I used in the flash,
through director?
how can I send the variables from flash movie to the
director?
I used this command in the flash movie on a button:
on (release) {
getURL("event: FlashMouseEnter, \"hi\"");
}
but I could not send variables with this command! only the
strings
what should I do about variables?

This is how I do it (this is from my memory, so I haven't
tested this exact code):
--------------------------------------------
ACTIONSCRIPT :
//(At the start of your script)
// set up the listener that passes the event and variables to
Director...
var directorListener:Object = new Object();
directorListener.handlerName = function(evt_obj:Object):Void
{ }

//(At the end of the first frame of you script)
if (System.capabilities.playerType == "DirectorXtra") {
getURL("event:flashLoaded"); // Director can now do stuff
with the flash object!
} else {
// commands to test swf outside of Director go here...
}

--------------------------------------------
In LINGO, in the Flash sprite behaviour:

on flashLoaded me
//set up an intercept of any calls to the directorListener
function...
sp=sprite(spriteNum)
listener=sp.directorListener
sp.setCallBack(listener, "handlerName", #lingoHandler, me)
end

on lingoHandler me,directorListener,flashVariables
put flashVariables.type
put flashVariables.target._x
put flashVariables.selectedIndex
end
--------------------------------------------
Then, back in ACTIONSCRIPT, to pass Flash variables, not
string values, use this code:
--------------------------------------------
//call the function in the directorListener event
directorListener.handlerName ({type:"select", target:this,
selectedIndex:23}); //the props in the Flash assoc. array can be
anything! Add as many as you need. This is the object that gets
passed as the 3rd parameter into your Lingo hander.

For more on Flash<->Director variable passing and
events, see
this
post