Swf is blank?

This is a discussion on "Swf is blank?" within the Flash & Multimedia Forum section. This forum, and the thread "Swf is blank? are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jul 21st, 2007, 09:23
New Member
Join Date: Jul 2007
Location: UK
Age: 29
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Swf is blank?

Hi Guys and girls.

I'm having a problem getting my swf file to show my action script.
I have nothing on the stage, everything is being displayed using actionscript.

When I test the movie everything works fine. However, when I open the swf file its blank?

here is the website:
www.spirestest.com (it will be blank)

I have set the linkage for all of my movie clips.

Here is the code:
Code: Select all
import mx.utils.Delegate;

var numOfItems:Number;
var radiusX:Number = 165;
var radiusY:Number = 50;
var centerX:Number = Stage.width/2;
var centerY:Number = Stage.height/2;
var speed:Number = 0.05;
var prespective:Number = 110;
var home:MovieClip = this;

var tooltip:MovieClip = this.attachMovie("tooltip", "tooltip", 10000);
tooltip._alpha = 0;

var xml:XML = new XML();
xml.ignoreWhite = true;
xml.onLoad = function()
{
	var nodes = this.firstChild.childNodes;
	numOfItems = nodes.length;
	for (var i=0;i<numOfItems;i++)
	{
		var t = home.attachMovie("item_MC","item_MC"+i, i+1);
		t.angle = i * ((Math.PI*2)/numOfItems);
		t.onEnterFrame = mover;
		t.toolText = nodes[i].attributes.tooltip;
		t.icon.inner.loadMovie(nodes[i].attributes.image);
		t.r.inner.loadMovie(nodes[i].attributes.image);
		t.icon.onRollOver = over;
		t.icon.onRollOut = out;
		t.icon.onRelease = released;
	}
}

function over()
{
	home.tooltip.tipText.text = this._parent.toolText;
	home.tooltip._x = this._parent._x;
	home.tooltip._y = this._parent._y - this._parent._height/2;
	home.tooltip.onEnterFrame = Delegate.create(this,moveTip);
	homemtooltip._alpha = 0;
}

function out()
{
	delete home.tooltip.onEnterFrame
	home.tooltip._alpha = 0;
}

function released()
{
		
	getURL(this._parent.toolText,"_self");
}

function moveTip()
{
	home.tooltip._x = this._parent._x;
	home.tooltip._y = this._parent._y - this._parent._height/2;
}

xml.load("icons.xml");
function mover()
{
	this._x = Math.cos(this.angle) * radiusX + centerX;
	this._y = Math.sin(this.angle) * radiusY + centerY;
	var s  = (this._y - prespective) / (centerY+radiusY-prespective);
	this._xscale = this._yscale = s * 100;
  	this.angle += this._parent.speed;
	this.swapDepths(Math.round(this._xscale) + 100);
}

this.onMouseMove = function()
{
	speed = (this._xmouse-centerX)/2500;
}

Thanks for any help.
:-)
Reply With Quote

  #2 (permalink)  
Old Jul 21st, 2007, 11:29
Reputable Member
Join Date: Jul 2007
Location: Windsor, ON, Canada
Age: 18
Posts: 103
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Swf is blank?

Works fine for me, just takes a few seconds to load, better add a simple loading screen just to be safe, though i don't know quite how to add one of those.
Reply With Quote
  #3 (permalink)  
Old Jul 21st, 2007, 15:28
Reputable Member
Join Date: May 2006
Location: NC, USA
Age: 16
Posts: 355
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to MrMadison Send a message via MSN to MrMadison Send a message via Skype™ to MrMadison
Re: Swf is blank?

That loaded instantly for me. Although, why it doesn't show when you open the swf, could be for many reasons. The websites supposed to be about phones right?
Reply With Quote
  #4 (permalink)  
Old Jul 21st, 2007, 22:36
Up'n'Coming Member
Join Date: May 2007
Location: Tamworth
Age: 30
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to cocoonfx
Re: Swf is blank?

I sometimes experience this problems Its normally when i publish the .swf as flash 8. So for all my .swf i select flash 6 or higher and then you can see your content.
Reply With Quote
Reply

Tags
swf

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Blank Space between 2 rows JunkFood Web Page Design 1 Mar 26th, 2008 22:33
Blank line problem dartiss Web Page Design 8 Aug 6th, 2007 21:28
Blank Page azilaka PHP Forum 1 Jul 10th, 2007 15:28
CSS Completely Validated, BLANK page in IE Sulman Web Page Design 7 May 16th, 2007 06:30
leaving a node value blank Ozeona Other Programming Languages 0 Sep 12th, 2005 10:38


All times are GMT. The time now is 15:09.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43