xboxscene.org forums

Author Topic: Actionscript To Copy From Cd And To Show Menu Item  (Read 606 times)

jqcc

  • Archived User
  • Newbie
  • *
  • Posts: 8
Actionscript To Copy From Cd And To Show Menu Item
« on: March 03, 2004, 02:35:00 AM »



I am doing an installer from a CD like slayers

I have run into a number of problems including CHDMOD

? - after I copy the file say a.xml to e:\
how do I change the attributes
i have tried CHDMOD 777 e:\a.xml
can the chdmod command be used to do all the files and children files in a directory

i.e. instead of chdmod per file I will just do a chdmod on the whole directory


Second question

Can I use action scripts within the menu.xml

IF condition 1
<action>


what I want to do is only show certain menu items based on  conditions

How can  this be best implemented

Logged

BenJeremy

  • Archived User
  • Hero Member
  • *
  • Posts: 5645
Actionscript To Copy From Cd And To Show Menu Item
« Reply #1 on: March 03, 2004, 03:02:00 AM »

It's CHMOD, but ATTR would probably be better, as it acts on an entire path.

ATTR F:\GAMES RW

As for ActionScripting in the XML, you can't use it in the manner you propose... the next release will be far more flexible in the kinds of things you can do - including launching an actionscript and acting on the XML before it is used.

It may be possible to use the AutoExec actionscript to manipulate the menu's XML, though.
Logged

jqcc

  • Archived User
  • Newbie
  • *
  • Posts: 8
Actionscript To Copy From Cd And To Show Menu Item
« Reply #2 on: March 03, 2004, 05:32:00 AM »

Thanks BJ - you are a great help as usual



I am trying to create a font/exploit from a CD

Looks like attr will help me a lot

Another question though

If I have MXM running as a dash and I put in a CD with another MXM
Can I use the CD's MXM to overwrite the mxm.xml and menu.xml files


Plus
Is autoexec run everytime?

Context menus
- can I use this to solve my problems


Thanks again
Logged

BenJeremy

  • Archived User
  • Hero Member
  • *
  • Posts: 5645
Actionscript To Copy From Cd And To Show Menu Item
« Reply #3 on: March 03, 2004, 05:52:00 AM »

QUOTE (jqcc @ Mar 3 2004, 10:25 AM)
Thanks BJ - you are a great help as usual



I am trying to create a font/exploit from a CD

Looks like attr will help me a lot

Another question though

If I have MXM running as a dash and I put in a CD with another MXM
Can I use the CD's MXM to overwrite the mxm.xml and menu.xml files



Sure... the version booted from CD would be running the files local to it, not the ones from the HD.

QUOTE

Plus
Is autoexec run everytime?


Yes. There are several ways this can be done. Adding a script to your MXM.xml with the name "AutoExec" will execute following the "internal" _AutoExec script. Likewise, if MXM finds an AutoExec.xas file in the MXM execution directory, it will run that, too.

QUOTE

Context menus
- can I use this to solve my problems


I don't think so... it's intended to allow the script to have some awareness of the currently selected item, for deleting, renaming, etc...
Logged

Kthulu

  • Archived User
  • Hero Member
  • *
  • Posts: 787
Actionscript To Copy From Cd And To Show Menu Item
« Reply #4 on: March 05, 2004, 11:37:00 AM »

QUOTE
what I want to do is only show certain menu items based on conditions

you can't do that with the MXM's menu, but you can implement your own menu in actionscript and run that from the Autoexec...
Logged