Jump to content


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.

Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Help with xml html swf form


  • Please log in to reply
1 reply to this topic

#1 bobafett07

bobafett07

  • Members
  • 2 posts
  • OFFLINE
  •  
  • Local time:02:02 AM

Posted 21 April 2012 - 06:16 PM

Hello, and thanks in advance for your help, I have a swf email form with image rotator which works fine when i pull it up in localhost or just preview the swf file on my server however when I open it via the html link the logo and images wont show noob to actionscript xml/flash help pls, exp:

images and logo show via localhost and in server preview.swf

Posted Image


images wont show via html url

Posted Image


xml image code

<?xml version="1.0" encoding="utf-8"?>
<images period="3000">
<image src="images/1.jpg"/>
<image src="images/2.jpg"/>
<image src="images/3.jpg"/>
<image src="images/4.jpg"/>
<image src="images/5.jpg"/>
</images>



xml logo code


<?xml version="1.0" encoding="utf-8"?>
<Logo>
<!-- Leave this tag empty if you don't want your logo to display. -->
<LogoUrl>images/logo.png</LogoUrl>
<!-- It's Url link to your site. Leave this tag empty if you don't want logo to be clickable. -->
<SiteUrl></SiteUrl>

<LogoXScale>1</LogoXScale>
<LogoYScale>1</LogoYScale>

<LogoXPos>670</LogoXPos>
<LogoYPos>76</LogoYPos>
</Logo>


xml text code

<?xml version="1.0" encoding="utf-8"?>
<Content>

<TitleColor>0xBBBBBB</TitleColor>
<Title>Hello, Kobioshi.</Title>

<TextColor>0xEEEEEE</TextColor>
<TextSize>14</TextSize>
<InvitationText><![CDATA[Congradulations and welcome to Seireitei Unleashed! This is your personal invitation. We look forward to having you join our family. Now please click on our "Forums" button on our website and when you reach our protected page please enter your personal invitation code number. Your number is: 9zmtyumke347. <br><br>Click "Reply" button, and fill out the form so that we know you have recieved our message. ]]></InvitationText>

<!-- ----------------------------------------- -->

<DayColor>0xBBBBBB</DayColor>
<Day>04.17.2012</Day>

<TimeColor>0xBBBBBB</TimeColor>
<Time>8:00pm</Time>

</Content>






Html code


<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=koi8-r" />
<title>Invitation</title>
<script language="JavaScript" type="text/javascript">
<!--
//v1.7
// Flash Player Version Detection
// Detect Client Browser type
// Copyright 2005-2008 Adobe Systems Incorporated. All rights reserved.
var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
function ControlVersion()
{
var version;
var axo;
var e;
// NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry
try {
// version will be set for 7.X or greater players
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
version = axo.GetVariable("$version");
} catch (e) {
}
if (!version)
{
try {
// version will be set for 6.X players only
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");

// installed player is some revision of 6.0
// GetVariable("$version") crashes for versions 6.0.22 through 6.0.29,
// so we have to be careful.

// default to the first public version
version = "WIN 6,0,21,0";
// throws if AllowScripAccess does not exist (introduced in 6.0r47)
axo.AllowScriptAccess = "always";
// safe to call for 6.0r47 or greater
version = axo.GetVariable("$version");
} catch (e) {
}
}
if (!version)
{
try {
// version will be set for 4.X or 5.X player
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
version = axo.GetVariable("$version");
} catch (e) {
}
}
if (!version)
{
try {
// version will be set for 3.X player
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
version = "WIN 3,0,18,0";
} catch (e) {
}
}
if (!version)
{
try {
// version will be set for 2.X player
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
version = "WIN 2,0,0,11";
} catch (e) {
version = -1;
}
}

return version;
}
// JavaScript helper required to detect Flash Player PlugIn version information
function GetSwfVer(){
// NS/Opera version >= 3 check for Flash plugin in plugin array
var flashVer = -1;

if (navigator.plugins != null && navigator.plugins.length > 0) {
if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
var descArray = flashDescription.split(" ");
var tempArrayMajor = descArray[2].split(".");
var versionMajor = tempArrayMajor[0];
var versionMinor = tempArrayMajor[1];
var versionRevision = descArray[3];
if (versionRevision == "") {
versionRevision = descArray[4];
}
if (versionRevision[0] == "d") {
versionRevision = versionRevision.substring(1);
} else if (versionRevision[0] == "r") {
versionRevision = versionRevision.substring(1);
if (versionRevision.indexOf("d") > 0) {
versionRevision = versionRevision.substring(0, versionRevision.indexOf("d"));
}
}
var flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
}
}
// MSN/WebTV 2.6 supports Flash 4
else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
// WebTV 2.5 supports Flash 3
else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
// older WebTV supports Flash 2
else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
else if ( isIE && isWin && !isOpera ) {
flashVer = ControlVersion();
}
return flashVer;
}
// When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available
function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)
{
versionStr = GetSwfVer();
if (versionStr == -1 ) {
return false;
} else if (versionStr != 0) {
if(isIE && isWin && !isOpera) {
// Given "WIN 2,0,0,11"
tempArray = versionStr.split(" "); // ["WIN", "2,0,0,11"]
tempString = tempArray[1]; // "2,0,0,11"
versionArray = tempString.split(","); // ['2', '0', '0', '11']
} else {
versionArray = versionStr.split(".");
}
var versionMajor = versionArray[0];
var versionMinor = versionArray[1];
var versionRevision = versionArray[2];
// is the major.revision >= requested major.revision AND the minor version >= requested minor
if (versionMajor > parseFloat(reqMajorVer)) {
return true;
} else if (versionMajor == parseFloat(reqMajorVer)) {
if (versionMinor > parseFloat(reqMinorVer))
return true;
else if (versionMinor == parseFloat(reqMinorVer)) {
if (versionRevision >= parseFloat(reqRevision))
return true;
}
}
return false;
}
}
function AC_AddExtension(src, ext)
{
if (src.indexOf('?') != -1)
return src.replace(/\?/, ext+'?');
else
return src + ext;
}
function AC_Generateobj(objAttrs, params, embedAttrs)
{
var str = '';
if (isIE && isWin && !isOpera)
{
str += '<object ';
for (var i in objAttrs)
{
str += i + '="' + objAttrs[i] + '" ';
}
str += '>';
for (var i in params)
{
str += '<param name="' + i + '" value="' + params[i] + '" /> ';
}
str += '</object>';
}
else
{
str += '<embed ';
for (var i in embedAttrs)
{
str += i + '="' + embedAttrs[i] + '" ';
}
str += '> </embed>';
}
document.write(str);
}
function AC_FL_RunContent(){
var ret =
AC_GetArgs
( arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
, "application/x-shockwave-flash"
);
AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}
function AC_SW_RunContent(){
var ret =
AC_GetArgs
( arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
, null
);
AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}
function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
var ret = new Object();
ret.embedAttrs = new Object();
ret.params = new Object();
ret.objAttrs = new Object();
for (var i=0; i < args.length; i=i+2){
var currArg = args[i].toLowerCase();
switch (currArg){
case "classid":
break;
case "pluginspage":
ret.embedAttrs[args[i]] = args[i+1];
break;
case "src":
case "movie":
args[i+1] = AC_AddExtension(args[i+1], ext);
ret.embedAttrs["src"] = args[i+1];
ret.params[srcParamName] = args[i+1];
break;
case "onafterupdate":
case "onbeforeupdate":
case "onblur":
case "oncellchange":
case "onclick":
case "ondblclick":
case "ondrag":
case "ondragend":
case "ondragenter":
case "ondragleave":
case "ondragover":
case "ondrop":
case "onfinish":
case "onfocus":
case "onhelp":
case "onmousedown":
case "onmouseup":
case "onmouseover":
case "onmousemove":
case "onmouseout":
case "onkeypress":
case "onkeydown":
case "onkeyup":
case "onload":
case "onlosecapture":
case "onpropertychange":
case "onreadystatechange":
case "onrowsdelete":
case "onrowenter":
case "onrowexit":
case "onrowsinserted":
case "onstart":
case "onscroll":
case "onbeforeeditfocus":
case "onactivate":
case "onbeforedeactivate":
case "ondeactivate":
case "type":
case "codebase":
case "id":
ret.objAttrs[args[i]] = args[i+1];
break;
case "width":
case "height":
case "align":
case "vspace":
case "hspace":
case "class":
case "title":
case "accesskey":
case "name":
case "tabindex":
ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
break;
default:
ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
}
}
ret.objAttrs["classid"] = classid;
if (mimeType) ret.embedAttrs["type"] = mimeType;
return ret;
}
// -->
</script>
</head>
<body bgcolor="#000000" topmargin="0" leftmargin="0">
<!--url's used in the movie-->
<!--text used in the movie-->
<!--
<p align="center"></p>
-->
<!-- saved from url=(0013)about:internet -->
<script language="JavaScript" type="text/javascript">
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0'
'width', '100%',
'height', '100%',
'src', 'preview',
'quality', 'high',
'pluginspage', 'http://www.adobe.com/go/getflashplayer'
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'preview',
'bgcolor', '#000000',
'name', 'preview',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'preview',
'salign', ''
); //end AC code
</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="100%" height="100%" id="preview" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="preview.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /> <embed src="preview.swf" quality="high" bgcolor="#000000" width="100%" height="100%" name="preview" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
</object>
</noscript>
</body>
</html>




Swf Code



package fl.transitions.easing {

public class Strong {

public static function easeIn(_arg1:number, _arg2:number, _arg3:number, _arg4:number):number{
_arg1 = (_arg1 / _arg4);
return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeOut(_arg1:number, _arg2:number, _arg3:number, _arg4:number):number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeInOut(_arg1:number, _arg2:number, _arg3:number, _arg4:number):number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2));
}

}
}//package fl.transitions.easing
package fl.transitions {
import flash.events.*;

public class TweenEvent extends Event {

public static const MOTION_START:string = "motionStart";
public static const MOTION_STOP:string = "motionStop";
public static const MOTION_FINISH:string = "motionFinish";
public static const MOTION_CHANGE:string = "motionChange";
public static const MOTION_RESUME:string = "motionResume";
public static const MOTION_LOOP:string = "motionLoop";

public var time:number = nan;
public var position:number = nan;

public function TweenEvent(_arg1:string, _arg2:number, _arg3:number, _arg4:boolean=false, _arg5:boolean=false){
super(_arg1, _arg4, _arg5);
this.time = _arg2;
this.position = _arg3;
}
override public function clone():Event{
return (new TweenEvent(this.type, this.time, this.position, this.bubbles, this.cancelable));
}

}
}//package fl.transitions
package fl.transitions {
import flash.events.*;
import flash.utils.*;
import flash.display.*;

public class Tween extends EventDispatcher {

protected static var _mc:movieclip = new movieclip();

public var isPlaying:boolean = false;
public var obj:object = null;
public var prop:string = "";
public var func:function;
public var begin:number = nan;
public var change:number = nan;
public var useSeconds:boolean = false;
public var prevTime:number = nan;
public var prevPos:number = nan;
public var looping:boolean = false;
private var _duration:number = nan;
private var _time:number = nan;
private var _fps:number = nan;
private var _position:number = nan;
private var _startTime:number = nan;
private var _intervalID:uint = 0;
private var _finish:number = nan;
private var _timer:Timer = null;

public function Tween(_arg1:object, _arg2:string, _arg3:function, _arg4:number, _arg5:number, _arg6:number, _arg7:boolean=false){
this.func = function (_arg1:number, _arg2:number, _arg3:number, _arg4:number):number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
};
super();
if (!arguments.length){
return;
};
this.obj = _arg1;
this.prop = _arg2;
this.begin = _arg4;
this.position = _arg4;
this.duration = _arg6;
this.useSeconds = _arg7;
if ((_arg3 is function)){
this.func = _arg3;
};
this.finish = _arg5;
this._timer = new Timer(100);
this.start();
}
public function get time():number{
return (this._time);
}
public function set time(_arg1:number):void{
this.prevTime = this._time;
if (_arg1 > this.duration){
if (this.looping){
this.rewind((_arg1 - this._duration));
this.update();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_LOOP, this._time, this._position));
} else {
if (this.useSeconds){
this._time = this._duration;
this.update();
};
this.stop();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_FINISH, this._time, this._position));
};
} else {
if (_arg1 < 0){
this.rewind();
this.update();
} else {
this._time = _arg1;
this.update();
};
};
}
public function get duration():number{
return (this._duration);
}
public function set duration(_arg1:number):void{
this._duration = ((_arg1)<=0) ? infinity : _arg1;
}
public function get fps():number{
return (this._fps);
}
public function set fps(_arg1:number):void{
var _local2:boolean = this.isPlaying;
this.stopEnterFrame();
this._fps = _arg1;
if (_local2){
this.startEnterFrame();
};
}
public function get position():number{
return (this.getPosition(this._time));
}
public function set position(_arg1:number):void{
this.setPosition(_arg1);
}
public function getPosition(_arg1:number=nan):number{
if (isnan(_arg1)){
_arg1 = this._time;
};
return (this.func(_arg1, this.begin, this.change, this._duration));
}
public function setPosition(_arg1:number):void{
this.prevPos = this._position;
if (this.prop.length){
this.obj[this.prop] = (this._position = _arg1);
};
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_CHANGE, this._time, this._position));
}
public function get finish():number{
return ((this.begin + this.change));
}
public function set finish(_arg1:number):void{
this.change = (_arg1 - this.begin);
}
public function continueTo(_arg1:number, _arg2:number):void{
this.begin = this.position;
this.finish = _arg1;
if (!isnan(_arg2)){
this.duration = _arg2;
};
this.start();
}
public function yoyo():void{
this.continueTo(this.begin, this.time);
}
protected function startEnterFrame():void{
var _local1:number;
if (isnan(this._fps)){
_mc.addEventListener(Event.ENTER_FRAME, this.onenterframe, false, 0, true);
} else {
_local1 = (1000 / this._fps);
this._timer.delay = _local1;
this._timer.addEventListener(TimerEvent.TIMER, this.timerHandler, false, 0, true);
this._timer.start();
};
this.isPlaying = true;
}
protected function stopEnterFrame():void{
if (isnan(this._fps)){
_mc.removeEventListener(Event.ENTER_FRAME, this.onenterframe);
} else {
this._timer.stop();
};
this.isPlaying = false;
}
public function start():void{
this.rewind();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_START, this._time, this._position));
}
public function stop():void{
this.stopEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_STOP, this._time, this._position));
}
public function resume():void{
this.fixTime();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_RESUME, this._time, this._position));
}
public function rewind(_arg1:number=0):void{
this._time = _arg1;
this.fixTime();
this.update();
}
public function fforward():void{
this.time = this._duration;
this.fixTime();
}
public function nextframe():void{
if (this.useSeconds){
this.time = ((gettimer() - this._startTime) / 1000);
} else {
this.time = (this._time + 1);
};
}
protected function onenterframe(_arg1:Event):void{
this.nextframe();
}
protected function timerHandler(_arg1:TimerEvent):void{
this.nextframe();
_arg1.updateafterevent();
}
public function prevframe():void{
if (!this.useSeconds){
this.time = (this._time - 1);
};
}
private function fixTime():void{
if (this.useSeconds){
this._startTime = (gettimer() - (this._time * 1000));
};
}
private function update():void{
this.setPosition(this.getPosition(this._time));
}

}
}//package fl.transitions
package classes {
import flash.display.*;

public dynamic class Preloader extends movieclip {

}
}//package classes
package Invitation2_fla {
import flash.events.*;
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.utils.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import classes.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.desktop.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.globalization.*;
import flash.net.drm.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.sensors.*;
import flash.system.*;
import flash.text.ime.*;
import flash.text.engine.*;
import flash.ui.*;
import flash.xml.*;

public dynamic class Forms_mc_16 extends movieclip {

public var comment_txt:textfield;
public var name_txt:textfield;
public var iWill:movieclip;
public var status_txt:textfield;
public var iWillNot:movieclip;
public var loading:Preloader;
public var tween:Tween;

public function Forms_mc_16(){
addFrameScript(0, this.frame1);
}
public function eraseText(_arg1:MouseEvent){
_arg1.target.text = "";
_arg1.target.removeEventListener(MouseEvent.CLICK, this.eraseText);
}
public function Over(_arg1:MouseEvent):void{
_arg1.target.gotoandplay(2);
}
public function Out(_arg1:MouseEvent):void{
_arg1.target.gotoandplay(14);
}
public function iWillC(_arg1:MouseEvent):void{
if (((!((this.name_txt.text == ""))) && (!((this.name_txt.text == "Name:"))))){
this.sendMessage(" will go");
} else {
this.status_txt.text = "Oops, you forgot to enter your Name.";
};
}
public function iWillNotC(_arg1:MouseEvent):void{
if (((!((this.name_txt.text == ""))) && (!((this.name_txt.text == "Name:"))))){
this.sendMessage(" will not go");
} else {
this.status_txt.text = "Oops, you forgot to enter your Name.";
};
}
public function sendMessage(_arg1:string):void{
var choise:* = _arg1;
var vars:* = new URLVariables();
vars.choise = choise;
vars.name = this.name_txt.text;
vars.message = this.comment_txt.text;
var request:* = new URLRequest();
request.url = "sendMail.php";
request.method = URLRequestMethod.POST;
request.data = vars;
var loader:* = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.text;
loader.addEventListener(Event.COMPLETE, this.messageSent);
try {
loader.load(request);
this.loading.alpha = 1;
this.status_txt.text = " Loading...";
} catch(error:error) {
status_txt.text = "Can't send the message";
};
}
public function messageSent(_arg1:Event):void{
var _local2:URLLoader = URLLoader(_arg1.target);
var _local3:URLVariables = new URLVariables(_local2.data);
if (_local3.output == "ok"){
this.status_txt.text = " Message sent";
} else {
this.status_txt.text = "Something is wrong";
};
this.tween = new Tween(this.loading, "alpha", Strong.easeInOut, 1, 0, 2, true);
}
function frame1(){
this.name_txt.addEventListener(MouseEvent.CLICK, this.eraseText);
this.comment_txt.addEventListener(MouseEvent.CLICK, this.eraseText);
this.iWill.addEventListener(MouseEvent.ROLL_OVER, this.Over);
this.iWill.addEventListener(MouseEvent.ROLL_OUT, this.Out);
this.iWill.addEventListener(MouseEvent.CLICK, this.iWillC);
this.iWill.buttonMode = true;
this.iWillNot.addEventListener(MouseEvent.ROLL_OVER, this.Over);
this.iWillNot.addEventListener(MouseEvent.ROLL_OUT, this.Out);
this.iWillNot.addEventListener(MouseEvent.CLICK, this.iWillNotC);
this.iWillNot.buttonMode = true;
}

}
}//package Invitation2_fla
package Invitation2_fla {
import flash.display.*;

public dynamic class IwillNotGo_20 extends movieclip {

public function IwillNotGo_20(){
addFrameScript(0, this.frame1, 12, this.frame13);
}
function frame1(){
stop();
}
function frame13(){
stop();
}

}
}//package Invitation2_fla
package Invitation2_fla {
import flash.events.*;
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.display.*;
import flash.text.*;

public dynamic class MainTimeline extends movieclip {

public var container:movieclip;
public var preloader:textfield;
public var tween:Tween;

public function MainTimeline(){
addFrameScript(0, this.frame1, 1, this.frame2);
}
public function loading(_arg1:Event):void{
this.preloader.x = ((stage.stageWidth - this.preloader.width) / 2);
this.preloader.y = ((stage.stageHeight - this.preloader.height) / 2);
var _local2:number = stage.loaderInfo.bytestotal;
var _local3:number = stage.loaderInfo.bytesloaded;
this.preloader.text = (math.floor(((_local3 / _local2) * 100)) + "%");
if (_local2 == _local3){
gotoandstop(2);
this.tween = new Tween(this.preloader, "alpha", Strong.easeOut, 1, 0, 1, true);
stage.removeEventListener(Event.ENTER_FRAME, this.loading);
};
}
public function Resize(_arg1:Event):void{
this.container.x = (stage.stageWidth / 2);
this.container.y = (stage.stageHeight / 2);
}
function frame1(){
stage.scalemode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
stage.addEventListener(Event.ENTER_FRAME, this.loading);
stop();
}
function frame2(){
stage.addEventListener(Event.RESIZE, this.Resize);
this.container.x = (stage.stageWidth / 2);
this.container.y = (stage.stageHeight / 2);
stop();
}

}
}//package Invitation2_fla
package Invitation2_fla {
import flash.display.*;

public dynamic class Reply_btn_14 extends movieclip {

public function Reply_btn_14(){
addFrameScript(0, this.frame1, 9, this.frame10);
}
function frame1(){
stop();
}
function frame10(){
stop();
}

}
}//package Invitation2_fla
package Invitation2_fla {
import flash.events.*;
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.utils.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import __AS3__.vec.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.desktop.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.globalization.*;
import flash.net.drm.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.sensors.*;
import flash.system.*;
import flash.text.ime.*;
import flash.text.engine.*;
import flash.ui.*;
import flash.xml.*;

public dynamic class Rotator_mc_6 extends movieclip {

public var preloader:movieclip;
public var images_con:movieclip;
public var xml:xml;
public var imagesVector:Vector.<Loader>;
public var urlLoader:URLLoader;
public var imagesCounter:number;
public var timer:Timer;
public var indexCounter:number;
public var lastCount:int;
public var tween:Tween;
public var addTween:Tween;
public var loader:Loader;

public function Rotator_mc_6(){
addFrameScript(0, this.frame1);
}
public function loadXML(_arg1:string):void{
this.urlLoader = new URLLoader(new URLRequest(_arg1));
this.urlLoader.addEventListener(Event.COMPLETE, this.parsexml);
}
public function parsexml(_arg1:Event):void{
this.xml = new xml(_arg1.target.data);
this.timer = new Timer(this.xml.@period);
if (this.xml.children().length() == 1){
this.loadImage();
} else {
this.loadImages();
};
}
public function loadImage():void{
this.loader.load(new URLRequest(this.xml.children().@src));
this.loader.contentLoaderInfo.addEventListener(Event.COMPLETE, this.imageLoaded);
}
public function imageLoaded(_arg1:Event):void{
this.images_con.addChild(this.loader);
this.addTween = new Tween(this.loader, "alpha", Strong.easeInOut, 0, 1, 0.5, true);
this.addTween = new Tween(this.preloader, "alpha", Strong.easeInOut, 1, 0, 0.5, true);
}
public function loadImages():void{
var _local2:Loader;
var _local1:int;
while (_local1 < this.xml.children().length()) {
_local2 = new Loader();
_local2.load(new URLRequest(this.xml.children()[_local1].@src));
this.imagesVector.push(_local2);
_local2.contentLoaderInfo.addEventListener(Event.COMPLETE, this.loaderStatus);
_local1++;
};
}
public function loaderStatus(_arg1:Event):void{
this.imagesCounter++;
if (this.imagesCounter == this.imagesVector.length){
this.addImages();
this.timer.addEventListener(TimerEvent.TIMER, this.imageChange);
this.timer.start();
};
}
public function imageChange(_arg1:Event):void{
this.lastCount = this.indexCounter;
this.tween = new Tween(this.imagesVector[this.indexCounter], "alpha", Strong.easeInOut, 1, 0, 1, true);
this.tween.addEventListener(TweenEvent.MOTION_FINISH, this.returnImageDepth);
this.indexCounter++;
if (this.indexCounter == this.imagesVector.length){
this.indexCounter = 0;
};
}
public function returnImageDepth(_arg1:TweenEvent):void{
this.images_con.setChildIndex(this.imagesVector[this.lastCount], 0);
this.imagesVector[this.lastCount].alpha = 1;
}
public function returnVectorDepth(_arg1:TweenEvent):void{
var _local2 = 1;
while (_local2 < this.imagesVector.length) {
this.imagesVector[_local2].alpha = 1;
this.addTween = new Tween(this.preloader, "alpha", Strong.easeInOut, 1, 0, 0.5, true);
_local2++;
};
}
public function addImages():void{
var _local1:int = (this.imagesVector.length - 1);
while (_local1 >= 0) {
this.images_con.addChild(this.imagesVector[_local1]);
this.imagesVector[_local1].alpha = 0;
_local1--;
};
this.addTween = new Tween(this.imagesVector[this.indexCounter], "alpha", Strong.easeInOut, 0, 1, 0.5, true);
this.addTween.addEventListener(TweenEvent.MOTION_FINISH, this.returnVectorDepth);
}
function frame1(){
this.imagesVector = new Vector.<Loader>();
this.imagesCounter = 0;
this.indexCounter = 0;
this.loader = new Loader();
this.loadXML("xml/images.xml");
}

}
}//package Invitation2_fla
package Invitation2_fla {
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.desktop.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.globalization.*;
import flash.net.drm.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.sensors.*;
import flash.system.*;
import flash.text.ime.*;
import flash.text.engine.*;
import flash.ui.*;
import flash.xml.*;

public dynamic class Reply_mc_13 extends movieclip {

public var reply_btn:movieclip;

public function Reply_mc_13(){
addFrameScript(0, this.frame1);
}
public function RollOver(_arg1:MouseEvent):void{
_arg1.target.gotoandplay(2);
}
public function RollOut(_arg1:MouseEvent):void{
_arg1.target.gotoandplay(11);
}
function frame1(){
this.reply_btn.buttonMode = true;
this.reply_btn.addEventListener(MouseEvent.MOUSE_OVER, this.RollOver);
this.reply_btn.addEventListener(MouseEvent.MOUSE_OUT, this.RollOut);
}

}
}//package Invitation2_fla
package Invitation2_fla {
import flash.events.*;
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.utils.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.desktop.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.globalization.*;
import flash.net.drm.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.sensors.*;
import flash.system.*;
import flash.text.ime.*;
import flash.text.engine.*;
import flash.ui.*;
import flash.xml.*;

public dynamic class Logo_mc_3 extends movieclip {

public var logoXScale:number;
public var logoYScale:number;
public var logoXPos:number;
public var logoYPos:number;
public var siteUrl:string;
public var tween:Tween;

public function Logo_mc_3(){
addFrameScript(0, this.frame1);
}
public function loadXML(_arg1:string):void{
var _local2:* = new URLLoader(new URLRequest(_arg1));
_local2.addEventListener(Event.COMPLETE, this.parsexml);
}
public function parsexml(_arg1:Event):void{
var _local2:xml = new xml(_arg1.target.data);
this.logoXScale = _local2.LogoXScale;
this.logoYScale = _local2.LogoYScale;
this.logoXPos = _local2.LogoXPos;
this.logoYPos = _local2.LogoYPos;
this.siteUrl = _local2.SiteUrl;
if (_local2.LogoUrl != ""){
this.loadLogo(_local2.LogoUrl);
};
}
public function loadLogo(_arg1:string):void{
var _local2:* = new Loader();
_local2.load(new URLRequest(_arg1));
_local2.contentLoaderInfo.addEventListener(Event.COMPLETE, this.logoLoaded);
}
public function logoLoaded(_arg1:Event):void{
var _local2:Loader = Loader(_arg1.target.loader);
addChild(_local2);
_local2.scaleX = this.logoXScale;
_local2.scaleY = this.logoYScale;
_local2.x = this.logoXPos;
_local2.y = this.logoYPos;
_local2.alpha = 0;
if (this.siteUrl != ""){
_local2.addEventListener(MouseEvent.CLICK, this.siteLink);
buttonMode = true;
};
this.tween = new Tween(_local2, "alpha", Strong.easeOut, 0, 1, 3, true);
}
public function siteLink(_arg1:MouseEvent):void{
navigateToURL(new URLRequest(this.siteUrl));
}
function frame1(){
this.loadXML("xml/logo.xml");
}

}
}//package Invitation2_fla
package Invitation2_fla {
import flash.display.*;

public dynamic class Mute_btn_2 extends movieclip {

public function Mute_btn_2(){
addFrameScript(0, this.frame1, 16, this.frame17, 35, this.frame36);
}
function frame1(){
stop();
}
function frame17(){
stop();
}
function frame36(){
stop();
}

}
}//package Invitation2_fla
package Invitation2_fla {
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.desktop.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.globalization.*;
import flash.net.drm.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.sensors.*;
import flash.system.*;
import flash.text.ime.*;
import flash.text.engine.*;
import flash.ui.*;
import flash.xml.*;

public dynamic class Text_mc_15 extends movieclip {

public var text:textfield;
public var Title:textfield;
public var titleFormat:textformat;
public var textformat:textformat;

public function Text_mc_15(){
addFrameScript(0, this.frame1);
}
public function loadXML(_arg1:string):void{
var _local2:* = new URLLoader(new URLRequest(_arg1));
_local2.addEventListener(Event.COMPLETE, this.parsexml);
}
public function parsexml(_arg1:Event):void{
var _local2:xml = new xml(_arg1.target.data);
this.titleFormat.color = _local2.TitleColor;
this.textformat.color = _local2.textcolor;
this.textformat.size = _local2.TextSize;
this.Title.defaultTextFormat = this.titleFormat;
this.text.defaultTextFormat = this.textformat;
this.Title.text = _local2.Title;
this.text.htmltext = _local2.InvitationText;
}
function frame1(){
this.loadXML("xml/text.xml");
this.titleFormat = new textformat();
this.textformat = new textformat();
}

}
}//package Invitation2_fla
package Invitation2_fla {
import flash.events.*;
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.utils.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.desktop.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.globalization.*;
import flash.net.drm.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.sensors.*;
import flash.system.*;
import flash.text.ime.*;
import flash.text.engine.*;
import flash.ui.*;
import flash.xml.*;

public dynamic class Container_mc_1 extends movieclip {

public var mute:movieclip;
public var title_mc:movieclip;
public var text_mc:movieclip;
public var time_mc:movieclip;
public var reply_mc:movieclip;
public var forms_mc:movieclip;
public var soundTrans:SoundTransform;
public var soundCha:SoundChannel;
public var sound:sound;
public var Check:boolean;
public var tween:array;

public function Container_mc_1(){
addFrameScript(0, this.frame1, 57, this.frame58);
}
public function soundLoader():void{
var _local1:URLRequest = new URLRequest("sound.mp3");
this.sound.addEventListener(IOErrorEvent.IO_ERROR, this.soundMissing);
this.mute.addEventListener(MouseEvent.MOUSE_UP, this.onButtonClick);
this.mute.buttonMode = true;
this.sound.load(_local1);
this.soundCha = this.sound.play();
this.soundCha.addEventListener(Event.SOUND_COMPLETE, this.Replay);
}
public function Replay(_arg1:Event){
this.soundCha = this.sound.play();
this.soundCha.soundTransform = this.soundTrans;
}
public function soundMissing(_arg1:IOErrorEvent):void{
trace("There is no sound.mp3 file in the directory");
this.mute.removeEventListener(MouseEvent.MOUSE_UP, this.onButtonClick);
removeChild(this.mute);
}
public function onButtonClick(_arg1:MouseEvent):void{
if (this.Check){
this.soundTrans.volume = 0;
this.soundCha.soundTransform = this.soundTrans;
this.mute.gotoandplay(2);
this.Check = false;
} else {
this.soundTrans.volume = 1;
this.soundCha.soundTransform = this.soundTrans;
this.mute.gotoandplay(17);
this.Check = true;
};
}
public function tweenHide(_arg1:MouseEvent):void{
this.tween.push(new Tween(this.text_mc, "y", Strong.easeIn, this.text_mc.y, ((this.text_mc.y - this.text_mc.height) - 50), 1, true));
this.tween[1] = new Tween(_arg1.target, "alpha", Strong.easeInOut, 1, 0, 1, true);
this.tween[2] = new Tween(this.text_mc, "alpha", Strong.easeInOut, 1, 0, 1, true);
this.tween[0].addEventListener(TweenEvent.MOTION_FINISH, this.callForms);
_arg1.target.mouseEnabled = false;
}
public function callForms(_arg1:TweenEvent):void{
this.tween.push(new Tween(this.forms_mc, "y", Strong.easeOut, this.forms_mc.y, 115, 40));
this.tween[1] = new Tween(this.forms_mc, "alpha", Strong.easeInOut, 0, 1, 40);
this.tween[0].removeEventListener(TweenEvent.MOTION_FINISH, this.callForms);
}
function frame1(){
this.soundTrans = new SoundTransform();
this.soundTrans.volume = 0;
this.soundCha = new SoundChannel();
this.sound = new sound();
this.Check = true;
this.soundLoader();
}
function frame58(){
this.tween = new array();
this.reply_mc.reply_btn.addEventListener(MouseEvent.CLICK, this.tweenHide);
stop();
}

}
}//package Invitation2_fla
package Invitation2_fla {
import flash.display.*;

public dynamic class IwillGo_18 extends movieclip {

public function IwillGo_18(){
addFrameScript(0, this.frame1, 12, this.frame13);
}
function frame1(){
stop();
}
function frame13(){
stop();
}

}
}//package Invitation2_fla
package Invitation2_fla {
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.desktop.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.globalization.*;
import flash.net.drm.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.sensors.*;
import flash.system.*;
import flash.text.ime.*;
import flash.text.engine.*;
import flash.ui.*;
import flash.xml.*;

public dynamic class Time_mc_12 extends movieclip {

public var time:textfield;
public var day:textfield;
public var dayFormat:textformat;
public var timeFormat:textformat;

public function Time_mc_12(){
addFrameScript(0, this.frame1);
}
public function loadXML(_arg1:string):void{
var _local2:* = new URLLoader(new URLRequest(_arg1));
_local2.addEventListener(Event.COMPLETE, this.parsexml);
}
public function parsexml(_arg1:Event):void{
var _local2:xml = new xml(_arg1.target.data);
this.dayFormat.color = _local2.DayColor;
this.timeFormat.color = _local2.TimeColor;
this.day.defaultTextFormat = this.dayFormat;
this.time.defaultTextFormat = this.timeFormat;
this.day.text = _local2.Day;
this.time.text = _local2.time;
}
function frame1(){
this.loadXML("xml/text.xml");
this.dayFormat = new textformat();
this.timeFormat = new textformat();
}

}
}//package Invitation2_fla


Sorry code is so long thx for taking a look+)

Edited by bobafett07, 21 April 2012 - 06:19 PM.


BC AdBot (Login to Remove)

 


#2 boopme

boopme

    To Insanity and Beyond


  • Global Moderator
  • 62,371 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:NJ USA
  • Local time:03:02 AM

Posted 24 April 2012 - 09:48 PM

Rather than delete, can you possibly post your solution as no one was able too. It may help someone else and that's why we are her.
How do I get help? Who is helping me?
Staying Updated Calendar of Updates.
For the time will come when men will not put up with sound doctrine. Instead, to suit their own desires, they will gather around them a great number of teachers to say what their itching ears want to hear....
Become a BleepingComputer fan: Facebook Have you seen..Select Real Security




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users