| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
|
Hey guys,
could anybody out there explain, why the output below is "String"? Should be Object... PHP Code:
Marcel |
|
|
|
|
|
#2 |
|
lala
Join Date: Feb 2002
Location: on the road
Posts: 2,859
|
MMExecute always returns a string. if you want to manipulate the objects call functions in a jsfl file (i presume u r floking around with a windowSWF), u can call a jsfl like this
ActionScript Code:
any arguments will be passed as parameters delimated by commas after the scriptname tag. also: in the jsfl function you can ofcourse go like this Code:
var arr = fl.getDocumentDOM().library.items; //where arr is an array then |
|
|
|
|
|
|
|
|
#3 |
|
Registered User
|
Hi hangalot,
thanks for your help. That was, what I tried before. My code was just a shortcut. Here is my full code. JSFL File: Code:
function getLibrary() {
return fl.getDocumentDOM().library.items;
}
Code:
var libraryItems = MMExecute("fl.runScript('"+jsflFile+"', 'getLibrary');");
output.text = "länge: " + libraryItems.length + newline;
output.text += "type: " + typeof libraryItems + newline;
output.text += "content: " + libraryItems + newline;
Screenshot Do you know what's wrong in my Script? |
|
|
|
|
|
#4 |
|
lala
Join Date: Feb 2002
Location: on the road
Posts: 2,859
|
as i said, with MMexecute you will always get a string as a return. the array object is only availible in the jsfl itself. you will have to parse that string in order to represent it in the windowSWF level.
|
|
|
|
|
|
#5 |
|
Registered User
|
Damn! Now I understand
![]() Thanks a lot!! |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|