Web Design and Development Forums

Bizarre issue with loading FLV files into Flash carousel

This is a discussion on "Bizarre issue with loading FLV files into Flash carousel" within the Flash & Multimedia Forum section. This forum, and the thread "Bizarre issue with loading FLV files into Flash carousel are both part of the Design Your Website category.


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

Welcome to Webforumz.com.
Register Now Register now!

Reply
 
LinkBack Thread Tools Rate Thread
Old May 2nd, 2008, 09:13   #1 (permalink)
New Member
 
Join Date: Apr 2008
Location: USA
Posts: 2
Bizarre issue with loading FLV files into Flash carousel

I've managed to get a Flash spinning-carousel system working with images referenced in an external XML file (using the tutorials at Go to and Learn dot com). However I now need to replace the images with FLV (Flash video) files whose preview frame will show on the carousel, and which will play when clicked on.

The ActionScript used within the Flash file is:

import mx.utils.Delegate;
var numOfItems:Number;
var radiusX:Number = 300;
var radiusY:Number = 30;
var centerX:Number = Stage.width / 2;
var centerY:Number = Stage.height / 2;
var speed:Number = 0.03;
var perspective:Number = 250;
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","item"+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);
home.tooltip._alpha = 100;
}
function out()
{
delete home.tooltip.onEnterFrame;
home.tooltip._alpha = 0;
}
function released()
{
trace(this._parent.toolText);
}
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 - perspective) /(centerY+radiusY-perspective);
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)/4500;
}

The XML file is this:

<icons>
<icon image="icon1.png" tooltip="Customer 1" />
<icon image="icon2.png" tooltip="Customer 2" />
<icon image="icon3.png" tooltip="Customer 3" />
<icon image="icon4.png" tooltip="Customer 4" />
</icons>

I tried changing the ActionScript code as follows (I actually need to have FLV files playing within the carousel items)

1. Replaced reference "image" with "video"
t.icon.inner.loadMovie(nodes[i].attributes.video);
t.r.inner.loadMovie(nodes[i].attributes.video);

2. Changed the XML file so I now have "video.xml" with the following code:
<?xml version="1.0" encoding="iso-8859-1"?>
<icons>
<icon video="video01.flv" tooltip="Customer 1" />
<icon video="video02.flv" tooltip="Customer 2" />
<icon video="video03.flv" tooltip="Customer 3" />
</icons>

However the SWF of the carousel now doesn't appear to load the videos (or show them, anyway), and trace() doesn't show up anything AFAICT.
Interestingly the objects do load- I can see their outlines if I do "Show redraw regions" within the SWF at runtime.

Is there a problem with displaying FLV files in this way? These appear to load as objects but will not display on the carousel…
galahad3 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Problem with Flash 8 carousel and XML galahad3 Flash & Multimedia Forum 0 Apr 9th, 2008 16:12
Flash Carousel XML link csr500 Flash & Multimedia Forum 2 Sep 12th, 2007 15:08
Playing loading MP4 files/Video Towbar Flash & Multimedia Forum 14 Sep 8th, 2007 23:38
loading flv with .js script issue in main site jaymz Flash & Multimedia Forum 1 Jun 28th, 2007 00:23
loading external images and txt files ST Flash & Multimedia Forum 9 Aug 2nd, 2005 17:20



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 19:01.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


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 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59