Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [HTML][Flash AS3]Przycisk
Suule
post
Post #1





Grupa: Zarejestrowani
Postów: 30
Pomógł: 0
Dołączył: 11.01.2009

Ostrzeżenie: (0%)
-----


Witojcie.

Mam maluteńki problem z menu we flash'u.
Ostatni czasem postanowiłem zrobić stronę w której, menu będzie zrobione we flash'u, a reszta w HTML'u.
I z takim zamiarem parłem do przodu niczym lokomotywa, ^^ ale wykoleiłem się najeżdżając na mały kamień.
A mianowicie:
Po dołączeniu do plików html, menu stworzonego we flashu i 'odpowiednio' go zaprogramowanego, następuje mały błąd. Po pierwszym wciśnięciu przycisku, otwiera mi stronę w nowej karcie. Ale jest to tylko jednorazowy błąd, inaczej mówiąc, po drugim wciśniecu przycisku wszystko jest ok, czyli otwiera sie w bieżącej karcie.


Kod
home_mc.addEventListener(MouseEvent.CLICK, idzHome);
function idzAbout(e:MouseEvent):void
{
    var url:String = "about.html";
    var req:URLRequest = new URLRequest(url);
    navigateToURL(req, 'self');
}


Tak wyglądają funkcja we flashu.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
wookieb
post
Post #2





Grupa: Moderatorzy
Postów: 8 989
Pomógł: 1550
Dołączył: 8.08.2008
Skąd: Słupsk/Gdańsk




A manual?
Cytat
window:String (default = null) — The browser window or HTML frame in which to display the document indicated by the request parameter. You can enter the name of a specific window or use one of the following values:
  • "_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.
Go to the top of the page
+Quote Post

Posty w temacie
- Suule   [HTML][Flash AS3]Przycisk   10.08.2009, 21:27:58
- - wookieb   A manual? Cytatwindow:String (default = null) ...   10.08.2009, 21:33:51


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 3.10.2025 - 09:10