Dynamic Map Service from ArcGIS Online?

Discussion created by maryandrews on Jun 8, 2012
Latest reply on Nov 6, 2013 by chaudhry1
Let me first admit that I have just returned from a lengthy vacation so I'm a little rusty.

I have created a "map service" via ArcGIS Online and would now like to consume them via one of the samples for Java Script.

I have a feature service id

Can I use this as my Dynamic Map Service Layer in this line of code?  I know I'm missing something just not sure what?

 var censusMapLayer = new esri.layers.ArcGISDynamicMapServiceLayer(""