Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7767001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:33:59+00:00 2026-06-01T15:33:59+00:00

I build a flash video player which works fine when exported to swf. However

  • 0

I build a flash video player which works fine when exported to swf. However when I publish it (F12) does not loading the xml file. As a result video player stuck to frame 2 (where presented a List with video titles and with click on title plays the specific video). The xml link does not ends to .xml. Here is my code about xml loading. I try to change the Flash Player from 10.2 to 9 but I have the same problem.In addition some buttons in frame 2 does not works I suppose because of “Stuck” from xml loading.( Work fine when exported in swf!)

Flash Player version: 10.2, Actionscript:3.0, Flash Professional CS 5.5, fps:24, size: 850px(w)x480px(h). Code from FRAME 2 . Thanks for your time guys.

Security.allowDomain( "*" );
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.events.Event;
import fl.controls.Label;


var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.TEXT;
var request:URLRequest = new URLRequest("http://www.olympiacos.org/feeds/videos")
loader.load(request);
loader.addEventListener(Event.COMPLETE, handleComplete);
loader.addEventListener(IOErrorEvent.IO_ERROR, onIOError)
loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onSecurityError)
loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, onHTTPStatus2)    
function onIOError(evt:IOErrorEvent){
    trace("IOError: "+evt.text);
}
function onHTTPStatus2(evt:HTTPStatusEvent){
    trace("HTTPStatus: "+evt.status);
}
function onSecurityError(evt:SecurityErrorEvent){
    trace("SecurityError: "+evt.text);
}
function handleComplete(event:Event):void
{
try
{
    var rawXML:XML = new XML(event.target.data);
    trace(rawXML);
    var list:XMLList = rawXML.channel.item;
    for (var i:uint=0; i<list.length(); i++)
    {
        t_text.text = list.title.text()[i];
        var data1:String = (list[i].description);
        var srcRegExp:RegExp = /src="(.*?)"/;
        var data2:String = srcRegExp.exec(data1)[1];
        var lwr = data2.search(/1_/i);
        var her = lwr + 10;
        var data3 = data2.substring(lwr,her);
        trace("Entry Id"+i+": "+data3);
        List1.addItem({label:list.title.text()[i],data:data3});
    }
}
catch (e:TypeError)
{
    //Could not convert the data, probavlu because
    //because is not formated correctly
    trace("Could not parse the XML");
    trace(e.message);
}
}

List1.addEventListener(Event.CHANGE, itemChange);
openbtn.addEventListener(MouseEvent.CLICK, opentween);
closebtn.addEventListener(MouseEvent.CLICK, closetween);
closebtn.visible=true;
openbtn.visible=false;

function itemChange(e:Event):void
{
if ( currentFrame == 2)
{
    trace("Video selected");
    gotoAndPlay(3);
}
t_text.text = List1.selectedItem.label;
var videoslcd = List1.selectedItem.data;

}

stop();
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T15:34:00+00:00Added an answer on June 1, 2026 at 3:34 pm

    what;s your publishing setting regarding playback security? Should be “Access network only”

    FlashProfessional Publishing Settings

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to build/implement a Flash video player to play videos. I have looked
We want to build a flash video player to play FLV videos. In addition
I am working on a video player in Flash CS4. I'm trying to build
I'm trying to build an Adobe Air app not using Flash but HTML5. I
This drives me crazy...I am trying to build a youtube player with flash and
I am trying to build a Flash banner ad which will be hosted on
I need to build a Video Player in android that can play youtube HTML5
I'm trying to build a basic video player with a playlist using the OVP
We have a custom-built Flash-based video player that I maintain, and it needs to
I want to build a flash app to let me and my users snap

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.