PDA

Просмотр полной версии : проблема с кнопкой


Voler
24.10.2005, 14:16
:confused: Как прописать во flash-кнопке target, чтобы страница в том же окне открывалась?

Kinsler
24.10.2005, 14:24
on (press)
{
getURl("http://www.mail.ru", _parent);
}

Voler
24.10.2005, 14:27
а чтобы во фрейме открывалась, например mainFrame?

Den0k
24.10.2005, 14:27
в том же окне


on (release) {
getURL("http://www.ya.ru","_self");
}


getURL(url:String, [window:String, [method:String]]) : Void

window:String [optional] - Specifies the window or HTML frame into which the document should load. You can enter the name of a specific window or select from the following reserved target names:

_self specifies the current frame in the current window.
_blank specifies a new window.
_parent specifies the parent of the current frame.
_top specifies the top-level frame in the current window.

Voler
24.10.2005, 14:42
Я в английском не силен
То есть код такой?
on (press) { getURl ("http://www.ya.ru", ["mainFrame"]); }
или
on (press) { getURl ("http://www.ya.ru", ["mainFrame", ["_self"]]); }
????????????????????????????????????????????????????????????????