Flashblocks Flash CMS Forum
Welcome, Guest
Please Login or Register.    Lost Password?
xml editor not working?
(1 viewing) 1 Guest
Go to bottom
TOPIC: xml editor not working?
#9328
xml editor not working? 8 Months, 3 Weeks ago  
Hi guys,
I have tried to set up the xml editor the same as it is here
flashblocks.com/FlashblocksML/ReadMe.php#XMLeditors

But I can not get it to show edit file when clicked on the movieclip associated with the editblock. I also tried the menu xml option and it is not appearing in the menu either. Any ideas what i am doing wrong.

I have text boxes being edited correctly in other parts of the site, so i do believe that fb is working correctly.

My first frame looks like this

-
import flashblocks.Flashblocks;

#include "mc_tween2.as"

//More information about MC Tween can be found here:
//hosted.zeh.com.br/mctween/
if (!$addTween && !gs.TweenMax) {
if (!$addTween) trace("mc_tween2.as is not compiled into the Flash movie.")
else if (!gs.TweenMax) trace("TweenLite is not compiled into the Flash movie.")
}


loadMovie("intro.swf",emptymc);

eb.editors = {XMLeditor:[{caption:"Edit File", editorObject:{file:"projects.xml"}}]}
flashblocks.Flashblocks.menuCommand(null, {tag:"XMLeditor", editorObject:{file:"yourFile.xml"}})

stop();

-


Thanks,
Randy
 
Logged Logged
  The administrator has disabled public write access.
#9329
Re:xml editor not working? 8 Months, 3 Weeks ago  
maybe it would be best if someone could give me a sort of step by step as to how they set up an xml editor.

I really need get this working and am not sure what is going on.
I set up a test file first and copied the files over and it worked correctly in the test but not in the copied over final version. They are in the same directory. Any ideas?
 
Logged Logged
  The administrator has disabled public write access.
#9330
Re:xml editor not working? 8 Months, 3 Weeks ago  
I think I may have found what the issue was. I turned the alpha down to 0 and it doesn't show up but if i turn it to 1 then it does.
I guess if it is attached to the movieclip that is set to 0 alpha it wont work? Has anyone else had this issue.
Also is there a way to accomplish only seeing the editable clip when you are logged in.
Thanks,
Randy
 
Logged Logged
  The administrator has disabled public write access.
#9331
Re:xml editor not working? 8 Months, 3 Weeks ago  
In Flashblocks 2, if the Editblock is not visible, _visible=0, or _alpha=0 then it is disabled.

You can watch to see when a user logs in and then change that alpha of the MC
Code:


// loggedIn EVENT
// remove login button after logging in
flashblocks.Flashblocks.user.watch("loggedIn", loggedInFunction);
function loggedInFunction (prop, oldVal, newVal) {
trace("Logged In! Level:"+flashblocks.Flashblocks.user.level+" id:"+flashblocks.Flashblocks.user.id+" name:"+flashblocks.Flashblocks.user.name)
flashblocks.Flashblocks.user.unwatch("loggedIn");
btnLogin._visible = true
}

 
Logged Logged
  The administrator has disabled public write access.
#9351
Re:xml editor not working? 7 Months, 3 Weeks ago  
Thanks for this!
 
Logged Logged
  The administrator has disabled public write access.
Go to top