style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
"yogibearaz" <Is
href="mailto:ssmith@bigcenter.com">ssmith@bigcenter.com> wrote in
message
href="news:f13b6e5.-1@WebX.maYIadrTaRb">news:f13b6e5.-1@WebX.maYIadrTaRb...
there any way to allow layer manipulation after the DWF file is loaded. There
does not seem to be any visible means to do this? Are there any undocumented
or hidden parameters to accomplish this? Is there any way to do this with
javascript?
--Getting Frustrated with express viewer
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
"yogibearaz" <Thank
href="mailto:ssmith@bigcenter.com">ssmith@bigcenter.com> wrote in
message
href="news:f13b6e5.1@WebX.maYIadrTaRb">news:f13b6e5.1@WebX.maYIadrTaRb...
You Peter,
I did finally find this format. I still have a problem
finding out how to set certain layers on and off.
For example your cod steps in and turns all layers off then gets the first
layer and turns it on and then loops.
What I need to find out is to how to have maybe an array store all the
layers, and then be able to turn on/off layers by an index, or have "for each
layer in adview.viewer.layer" call another function that defines an array of
predefined values for all layers and then based off of the match, set just a
single layer to false?
In whip, we could use "FindNextLayer()"
any ideas???
Appreciate all your help.
Scott
The Layers property is a
collection with properties Item, Count and ItemName. The following Java Script
should do what you are looking for.
size=2>function LayerTwoOff ()
size=2>{
size=2> AdView.Viewer.WaitForPageLoaded();
size=2>
size=2> if (
AdView.Viewer.Layers.Count >=2 )
size=2>
style="mso-spacerun: yes"> {
size=2>
AdView.Viewer.Layers.Item(2).Visible =
false;
size=2>
style="mso-spacerun: yes"> }
size=2>}
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
"yogibearaz" <Thank
href="mailto:ssmith@bigcenter.com">ssmith@bigcenter.com> wrote in
message
href="news:f13b6e5.1@WebX.maYIadrTaRb">news:f13b6e5.1@WebX.maYIadrTaRb...
You Peter,
I did finally find this format. I still have a problem
finding out how to set certain layers on and off.
For example your cod steps in and turns all layers off then gets the first
layer and turns it on and then loops.
What I need to find out is to how to have maybe an array store all the
layers, and then be able to turn on/off layers by an index, or have "for each
layer in adview.viewer.layer" call another function that defines an array of
predefined values for all layers and then based off of the match, set just a
single layer to false?
In whip, we could use "FindNextLayer()"
any ideas???
Appreciate all your help.
Scott
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
"yogibearaz" <Thank
href="mailto:ssmith@bigcenter.com">ssmith@bigcenter.com> wrote in
message
href="news:f13b6e5.1@WebX.maYIadrTaRb">news:f13b6e5.1@WebX.maYIadrTaRb...
You Peter,
I did finally find this format. I still have a problem
finding out how to set certain layers on and off.
For example your cod steps in and turns all layers off then gets the first
layer and turns it on and then loops.
What I need to find out is to how to have maybe an array store all the
layers, and then be able to turn on/off layers by an index, or have "for each
layer in adview.viewer.layer" call another function that defines an array of
predefined values for all layers and then based off of the match, set just a
single layer to false?
In whip, we could use "FindNextLayer()"
any ideas???
Appreciate all your help.
Scott