Jump to content


Photo

Actionscript To Copy From Cd And To Show Menu Item


  • Please log in to reply
4 replies to this topic

#1 jqcc

jqcc

    X-S Enthusiast

  • Members
  • 15 posts

Posted 03 March 2004 - 10:28 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



#2 BenJeremy

BenJeremy

    X-S Elysian

  • Head Moderators
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • 9,690 posts
  • Gender:Male
  • Xbox Version:v1.1
  • 360 version:v1 (xenon)

Posted 03 March 2004 - 10:55 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.

#3 jqcc

jqcc

    X-S Enthusiast

  • Members
  • 15 posts

Posted 03 March 2004 - 01:25 PM

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

#4 BenJeremy

BenJeremy

    X-S Elysian

  • Head Moderators
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • 9,690 posts
  • Gender:Male
  • Xbox Version:v1.1
  • 360 version:v1 (xenon)

Posted 03 March 2004 - 01:45 PM

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...

#5 Kthulu

Kthulu

    X-S Freak

  • XS-BANNED
  • PipPipPipPipPip
  • 1,287 posts
  • Xbox Version:v1.0
  • 360 version:unknown

Posted 05 March 2004 - 07:30 PM

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...





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users