Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> 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
 
Start new topic
Odpowiedzi
ash-poow
post
Post #2





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

Posty w temacie


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: 10.06.2026 - 18:46