|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flagstone.transform.action.GetUrl
public final class GetUrl
GetUrl is used to display a web page or load a movie clip into the Flash Player.
In addition to the URL to be loaded, GetUrl also contains a target which is either a level in the Flash Player where the movie clip will be loaded or frame or window in the browser where the web page will be displayed. The following reserved words may be used to identify a specific frame or window in a web browser:
_blank |
opens the new page in a new window. |
_self |
opens the new page in the current window. |
_top |
opens the new page in the top level frame of the current window. |
_parent |
opens the new page in the parent frame of the frame where the Flash Player id displayed. |
"" |
(blank string) opens the new page in the current frame or window. |
To load a movie clip into the currently playing movie then the target is a string literal of the form "_leveln". The Flash Player supports the concept of virtual layers (analogous to the layers in the Display List). Higher levels are displayed in front of lower levels. The background of each level is transparent allowing movie clips on lower levels to be visible in areas not filled by the movie clip on a given level. The main movie is loaded into _level0. Movie clips are loaded into any level above this (1, 2, 3, ...). If a movie clip is loaded into a level that already contains a movie clip then the existing clip is replaced by the new one.
GetUrl2| Constructor Summary | |
|---|---|
GetUrl(GetUrl object)
Creates and initialises a GetUrl action using the values copied from another GetUrl action. |
|
GetUrl(String urlString)
Creates a GetUrl with the specified url. |
|
GetUrl(String urlString,
String targetString)
Creates a GetUrl with the specified url and target frame. |
|
GetUrl(SWFDecoder coder)
Creates and initialises a GetUrl action using values encoded in the Flash binary format. |
|
| Method Summary | |
|---|---|
GetUrl |
copy()
Creates a complete copy of this object. |
void |
encode(SWFEncoder coder,
Context context)
Encode an object to the Flash binary format. |
String |
getTarget()
Get the name of the target frame where the web page or movie clip will be displayed. |
String |
getUrl()
Get the URL from where the web page or movie clip will be loaded. |
int |
prepareToEncode(Context context)
Prepare an object for encoding, returning the expected size of an object when it is encoded. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GetUrl(SWFDecoder coder)
throws IOException
coder - an SWFDecoder object that contains the encoded Flash data.
IOException - if an error occurs while decoding the data.
public GetUrl(String urlString,
String targetString)
urlString - a fully qualified URL. Must not be null.targetString - the location (in the Flash Player or web browser) where the
contents of file retrieved via the url will be displayed. Must
not be null.public GetUrl(String urlString)
urlString - a fully qualified URL. Must not be null or an empty string.public GetUrl(GetUrl object)
object - a GetUrl action from which the values will be
copied.| Method Detail |
|---|
public String getUrl()
public String getTarget()
public GetUrl copy()
copy in interface Copyable<Action>public String toString()
toString in class Objectpublic int prepareToEncode(Context context)
prepareToEncode in interface SWFEncodeablecontext - an Context that allows information to be passed between
objects to control how they are initialised for encoding.
public void encode(SWFEncoder coder,
Context context)
throws IOException
encode in interface SWFEncodeablecoder - an SWFEncoder object.context - an Context that allows information to be passed between
objects to control how they are initialised for encoding.
IOException - if an error occurs while encoding the object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||