Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> link do zewnetrznej www, link do zewnetrznej www
ash-poow
post
Post #1





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 29.06.2010

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


witam

jak zrobic link do strony zewnetrznej w xml ktory wyglada tak

jest to xml do menu: Home w tym momenecie wskazuje na swf a jak zrobic zeby otwieral np www.forum.php.pl:


<?xml version=”1.0” encoding=”UTF-8”?>

<myMenu>



<menu>
<name>HOME</name>
<movie>modAB.swf</movie>
<loadXML>about us/modABen.xml</loadXML>
</menu>


</myMenu>

Ten post edytował ash-poow 29.06.2010, 09:01:15
Go to the top of the page
+Quote Post
wookieb
post
Post #2





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




Podajesz http://www.forum.php.pl


--------------------
Go to the top of the page
+Quote Post
ash-poow
post
Post #3





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 29.06.2010

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


ale jaki uklad ?

nie wstawiam linku do www miedzy <movie>

?
Go to the top of the page
+Quote Post
wookieb
post
Post #4





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




Hmm nie pomyślałem.
Powiedziałeś, że aktualnie odwołuje się do SWF, czyli go wczytuje tak?
Jeżeli tak to niestety możliwość podanie zewnętrznego linku wymaga modyfikacji animacji flash.


--------------------
Go to the top of the page
+Quote Post
skowron-line
post
Post #5





Grupa: Zarejestrowani
Postów: 4 340
Pomógł: 542
Dołączył: 15.01.2006
Skąd: Olsztyn/Warszawa

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


xBase questionmark.gif

Ten post edytował skowron-line 29.06.2010, 09:08:41


--------------------
I'm so fast that last night I turned off the light switch in my hotel room and was in bed before the room was dark - Muhammad Ali.
Peg jeżeli chcesz uprawiać sex to dzieci muszą wyjść, a jeżeli chcesz żeby był dobry ty też musisz wyjść - Al Bundy.

QueryBuilder, Mootools.net, bbcradio1::MistaJam
http://www.phpbench.com/
Go to the top of the page
+Quote Post
ash-poow
post
Post #6





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 29.06.2010

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


wlasnie czytalem to i nie idze mi ...

znalazlem cos takiego

1.
<pozycja>
<nazwa>Ankieta</nazwa>
<url> HREF="http://www.w3.org/"</url>
</pozycja>


2.

<content name="OUTGOING LINK" type="Link" link="http://www.forum.php.pl" target="_blank" />


tez nie dziala
bo to sie nijak nie ma do ukladu z mojego menu

wydaje mi sie ze chodzi o ten fragent

<movie>modAB.swf</movie>
<loadXML>about us/modABen.xml</loadXML>


zamist <movie> powino byc np

<xlink> lub <url> lub <loadLink>


dobrze mysle ?


a moze w action scrip czegos nie ma
tak ony wyglada:

"function LoadFirstMovie()
{
var _loc2 = _root.btn0._name;
firstMovie = _loc2.substring(3, 5);
loadMovieNum(movies[firstMovie], 3);
} // End of the function
function btnOver()
{
this.gotoAndPlay(2);
} // End of the function
function btnOut()
{
this.gotoAndPlay(11);
} // End of the function
function btnReleased()
{
if (_root.btn0.enabled == false)
{
_root.btn0.gotoAndPlay(10);
_root.btn0.enabled = true;
} // end if
if (Selected_Old)
{
with (Selected_Old)
{
enabled = true;
gotoAndPlay(10);
} // End of with
} // end if
this.enabled = false;
Selected_Old = this;
var currentBtn = this._name;
currentMovie = currentBtn.substring(3, 5);
var myTween1 = new mx.transitions.Tween(_level3, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 0, 5.000000E-001, true);
myTween1.onMotionFinished = function ()
{
_level2.preloader_mc._visible = true;
_level2.preloader_mc.play();
loadMovieNum(movies[currentMovie], 3);
};
} // End of the function
function loadXML(loaded)
{
if (loaded)
{
_root.myLogo = this.firstChild.childNodes[0].childNodes[0].nodeValue;
_root.xPos = this.firstChild.childNodes[1].childNodes[0].nodeValue;
_root.yPos = this.firstChild.childNodes[2].childNodes[0].nodeValue;
logo_mc._x = _root.xPos;
logo_mc._y = _root.yPos;
McLogo.onLoadInit = function (target)
{
CurrentTransition = mx.transitions.TransitionManager.start(logo_mc, {type: mx.transitions.Fly, direction: mx.transitions.Transition.IN, duration: 5.000000E-001, easing: mx.transitions.easing.Strong.easeOut, startPoint: 4});
};
McLogo.loadClip(_root.myLogo, logo_mc);
}
else
{
content = "Error Loading File";
} // end else if
} // End of the function
function loadAutoplay(loaded)
{
if (loaded)
{
_root.autoplay = this.firstChild.childNodes[0].nodeValue;
sound_ctrl.gotoAndStop(_root.autoplay);
}
else
{
content = "Error Loading File";
} // end else if
} // End of the function
function loadCopyright(loaded)
{
if (loaded)
{
_root.copyright = this.firstChild.childNodes[0].nodeValue;
copyright_mc.copyright_txt.text = _root.copyright;
}
else
{
content = "Error Loading File";
} // end else if
} // End of the function
function Align(target, position)
{
var Position;
Position = position;
var xPosition = 0;
var yPosition = 0;
target.onEnterFrame = function ()
{
target._x = target._x + (xPosition - target._x);
target._y = target._y + (yPosition - target._y);
if (Position == "center")
{
xPosition = Stage.width / 2;
yPosition = Stage.height / 2;
} // end if
if (Position == "centerXX")
{
xPosition = Stage.width / 2;
yPosition = 230;
} // end if
if (Position == "top left")
{
xPosition = 0 + target._width / 2;
yPosition = 0 + target._height / 2;
} // end if
if (Position == "top right")
{
xPosition = Stage.width - target._width / 2;
yPosition = 0 + target._height / 2;
} // end if
if (Position == "bottom left")
{
xPosition = 0 + target._width / 2;
yPosition = Stage.height - target._height / 2;
} // end if
if (Position == "bottom right")
{
xPosition = Stage.width - target._width / 2;
yPosition = Stage.height - target._height / 2;
} // end if
if (Position == "bottom center")
{
xPosition = Stage.width / 2;
yPosition = Stage.height - target._height / 2;
} // end if
};
} // End of the function
stop ();
Stage.showMenu = false;
Stage.scaleMode = "noScale";
Stage.align = "TL";
startPosY = 110;
startPosX = 20;
btnHeightVal = 27;
var firstMovie;
var MainMenuXml = new XML();
MainMenuXml.ignoreWhite = true;
var movies = new Array();
var names = new Array();
var loadXMLS = new Array();
MainMenuXml.onLoad = function (status)
{
if (status)
{
var _loc3 = this.firstChild.childNodes;
len = _loc3.length;
for (i = 0; i < len; i++)
{
names.push(_loc3[i].childNodes[0].firstChild.nodeValue);
movies.push(_loc3[i].childNodes[1].firstChild.nodeValue);
loadXMLS.push(_loc3[i].childNodes[2].firstChild.nodeValue);
_root.attachMovie("button", "btn" + i, _root.getNextHighestDepth());
_root["btn" + i]._y = startPosY;
_root["btn" + i]._x = startPosX;
startPosY = startPosY + btnHeightVal;
_root["btn" + i].txt_btn_mc.nameTxt.text = names[i];
_root["btn" + i].onRollOver = btnOver;
_root["btn" + i].onRollOut = _root["btn" + i].onReleaseOutside = btnOut;
_root["btn" + i].onRelease = btnReleased;
_root.btn0.gotoAndStop(10);
_root.btn0.enabled = false;
mx.transitions.TransitionManager.start(_root["btn" + i], {type: mx.transitions.Fade, direction: mx.transitions.Transition.IN, duration: 7.000000E-001, easing: mx.transitions.easing.Regular.easeOut});
} // end of for
LoadFirstMovie();
}
else
{
errorTxt = "Error Loading Menu";
} // end else if
};
MainMenuXml.load("MAIN/main_menu.xml");
var Selected_Old = null;
var currentMovie;
Stage.scaleMode = "noScale";
Stage.align = "TL";
var McLogo = new MovieClipLoader();
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("MAIN/YOUR LOGO.xml");
var mySong = new Sound();
xmlDat = new XML();
xmlDat.ignoreWhite = true;
xmlDat.onLoad = loadAutoplay;
xmlDat.load("MAIN/AUTOPLAY.xml");
sound_ctrl.playSong.onRelease = function ()
{
mySong.loadSound("song.mp3", true);
mySong.play();
};
sound_ctrl.stopSong.onRelease = function ()
{
mySong.stop();
};
xmlD = new XML();
xmlD.ignoreWhite = true;
xmlD.onLoad = loadCopyright;
xmlD.load("MAIN/COPYRIGHT.xml");
Align(bar, "bottom left");
Align(fullscreen_btn, "bottom center");
Align(copyright_mc, "bottom left");
Align(sound_ctrl, "bottom right");
Align(preloader_mc, "centerXX");
mySong.onSoundComplete = function ()
{
mySong.start();
};



a ladowany xml wygalda tak

"
<?xml version=”1.0” encoding=”UTF-8”?>

<myMenu>


<menu>
<name>KONTAKT</name>
<movie>modCT.swf</movie>
<loadXML>contact/modCT.xml</loadXML>
</menu>

<menu>
<name>sdasdasdew</name>
<getURL><a href="http://www.cnn.com">http://www.cnn.com</a></getURL>
</menu>

</myMenu>

"
Go to the top of the page
+Quote Post
wookieb
post
Post #7





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




Tak naprawdę nie powiniśmy nic mówić i zamknąć temat za nie używanie BBcode ale dziś wyjątek. Ale pamiętaj UŻYWAJ BBCODE!

Cytat
a moze w action scrip czegos nie ma

Przecież mówiłem.
Cytat(wookieb @ 29.06.2010, 10:07:35 ) *
Jeżeli tak to niestety możliwość podanie zewnętrznego linku wymaga modyfikacji animacji flash.


Musisz rozróżnić czy link jest odnosnikiem do swf czy adresem strony. Najprosciej można to zrobić tak...
Zastapic
Kod
loadMovieNum(movies[currentMovie], 3);

na
[JAVASCRIPT] pobierz, plaintext
  1. var movieSrc:String = movies[currentMovie];
  2. if (movieSrc.substr(-4).toLowerCase() == '.swf')
  3. {
  4. loadMovieNum(movieSrc, 3);
  5. }
  6. else
  7. {
  8. getURL(movieSrc, '_BLANK');
  9. }
[JAVASCRIPT] pobierz, plaintext


Ten post edytował wookieb 30.06.2010, 08:23:08


--------------------
Go to the top of the page
+Quote Post
ash-poow
post
Post #8





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 29.06.2010

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


super dzięki działa otwiera się link

jeszcze jedno pytanie
bo link działa storna się otwiera ale storna cały czas próbuje coś wczytać

wydaje mi się ze swf alb xml

co zrobić by link działał a na stronie nic się nie ładowało albo żeby się ładowała główna

a nie zawias ://


pozdr
Go to the top of the page
+Quote Post

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

 



RSS Aktualny czas: 21.08.2025 - 12:36