Multithreading :: Player In A Delphi TWebBrowser Control To A Background Thread?

Dec 6, 2010

I have a Delphi 6 Pro program with a TWebBrowser component that loads a web page that embeds a Cool Iris Wall. The Cool Iris wall is an SWF object which means that when running, the execution happens inside the Adobe Flash player, an ActiveX or similar object I believe. The problem I am having is that sometimes when the Wall is loading pictures/videos from the web, it takes a big hit on the CPU on the main UI thread. I know that TWebBrowser moves most of its operations on to a background thread to keep the main UI thread happy, but something the Adobe Flash Player is doing is happening on the main UI thread and its causing my program much grief. Is there a way to move the Adobe Flash Player on to a background thread?

[UPDATE - 12/7/2010] - After a marathon probing and debugging session it turns out that the problem had to do with the Cool Iris Wall's Flickr proxy. You can interface with the Wall in two main ways: 1) You pass them special Flickr api protocol URLs and let them talk to Flickr for you, for example [URL]..loads the Wall with the results of a Flickr keyword search for puppy. The advantage to this approach is that they do all the work for you necessary to make the query to Flickr and build the Wall's contents. 2) You build an RSS media feed yourself containing the photo stream item data and feed it to the Wall.

I was using technique #1. The problem is with #1 is that when their servers have trouble building the Flickr feed for you (for whatever unknown reason), their host SWF puts a heavy load on the CPU interfering with the main UI thread's operation. I converted my entire code base to work directly with the Flickr API and create the feed myself using the second technique and the problem vanished.

View 1 Replies


Similar Posts:


Multithreading :: Flex Async I/O Operation Is On A Worker Thread?

Jan 22, 2012

I am aware that Action Script does not provide multithreading so when writing flex application we are limited to work on one thread. which is ok for rendering my UI.

However some questions arise when preferring flex over silverlight:

As a UI layer single thread is good enough but is it fair to assume that for Aync httpservice like operations in flex , internally it would use some worker threads to manage the async operation and then come back to the main thread ? it looks like it does since my UI does not freeze.Can the flex/flash player deal with multiple httpservice calls in parallel ? ( e.g more than one section of the UI loading data at the same time.)How about the animation stuff ( e.g the parallel animation ) - does flash player internally leverages some threading for accelerating graphics or is it all done on the UI thread ?

View 1 Replies

Flash :: Multithreading - Replace While() Loop With Timer To Prevent The GUI From Freezing [Multithreading]?

Jan 19, 2012

How can I use the Timer class and timer events to turn this loop into one that executes chunks at a time? My current method of just running the loop keeps freezing up the flash/air UI. I'm trying to acheive psuedo multithreading. Yes, this is from wavwriter.as:

[Code]...

View 1 Replies

ActionScript :: Multithreading - Timers And Threading In Flex 3

Jun 7, 2010

Does it run in a separate thread or the main loop? If the latter, does that mean that the Timer might not be called if the main loop is in a long-running action?More generally, what can you tell me about threads running in ActionScript? My once-a-minute Timer is called if an event-handler runs for minutes, so it is not the case that all ActionScript runs in one thread.

View 1 Replies

Flash :: Point Me To A AMF Library In Either Delphi Or FreePascal?

Dec 8, 2009

I've done a simple search on the usual suspects(Google Code, Source Forge, SO) but did not find any hints of a project for AMF or Flash/Flex remoting.

Has anyone stumbled on a project of this nature?

View 1 Replies

Flash :: Represent Data Using Animation Using Delphi?

Jun 22, 2011

I have a lot of employee data. Then i want to show to user the data using flash animation.Is it possible to be done with flash animation with delphi ?

View 1 Replies

ActionScript 3.0 :: Embedding Flash Onto Delphi Form?

Apr 19, 2011

I have designed a nice menu using AS3.. now, I want to embed it onto a delphi form flash applications run in a adobe flash window.Instead of it, I want it run on a delphi form...

View 0 Replies

Flash - Create A Custom HTTP Protocol In Delphi?

Dec 16, 2009

I build a project using Flash and Delphi. In Flash i need communication with delphi. Current i use ExternalInterface and FSCommand. Now i need Flash communication with Delphi via HTTP but it need open a custom port on Delphi and it can prevent by user's firewall. I see a product called F-IN-BOX it can implement HTTP link like [URL]

View 3 Replies

Flash :: Pass Parameters To A Movie In Delphi 2010?

Apr 26, 2010

I have imported the ShockWave flash Activex Control in my Delphi project. I can manipulate All the properties of a Flash movie file. But I need to define my own Parameters in the my own Flash file and Manipulate those parameters in the Delphi project. I know that passing parameters to a flash file is possible in the HTML script. But my project is a desktop application and i can't use it.

Is it possible to get a handle to the defined parameter of a flash file in the Delphi project? in fact All i need is passing parameter to flash file in the Delphi project.

View 1 Replies

Set Up Multiple Flash .swf Animations Simultaneously In Delphi Form?

Jan 31, 2011

ShockwaveFlashObjects_TLB works fine, but I can't see any way in which I can play multiple .swf at the same time.

View 1 Replies

ActionScript 3.0 :: Coder To Compile Incorporate The Swf With Delphi Program

May 24, 2010

i got a piece of code i really need someone to compile so i can incorporate the swf with my delphi program. since im not a Actionscript coder. im begging someone to maybe compile it for me? So what i need is the swf is to encrypt/decrypt to a thing called SimpleCrypt. This is the code to encrypt/decrypt

[Code]...

What i want someone to do is to change the code so it has two functions. both that i can call to return either a encrypted or decrypted string. also it shouldnt have a parameter for taking in a string. it should just use this global variable i will set. hopefully it will work with the delphi program This code uses [URL]

View 0 Replies

ActionScript 1/2 :: Control A Background Music Volume Using This Code?

Apr 6, 2010

I tried to control a background music volume using this code

soundInstance = new Sound();
soundInstance.attachSound("1");
soundInstance.start(0,999);[code]....

"1" is a linkage identifier. everything works perfect...music plays and volume decreases.but not only the attached sound... the whole movie volume changes even the swf I've loaded in my clip. I just need to control the background music("1" linkage) not all the sounds. what's the problem here? how can I make this happen?

View 2 Replies

ActionScript 3.0 :: Rollover A Button Control A Background Image?

Jan 28, 2009

I am trying to create a site with a 3D background image (which I converted to a MC). I created 2 buttons that, when rolled over should move the background image ('bgMC') to pan either right or left (depending on if the user rolls over the right button or left). I've attached the code I'm using below, if anyone has a better code or knows how to use btnRt or btnLeft to make bgMC pan to the X,Y coordinates in 'goLeft' and 'goRight'.

import fl.transitions.Tween;
import fl.transitions.easing.*;
import flash.geom.Point;

[code]...

View 0 Replies

ActionScript 2.0 :: Control Background Color Of A Movieclip And Stage?

Apr 27, 2005

How do you control the background color of a movie clip and the stage? i have thought about placing a mc within the mc as a backround_mc, then change the tint attribute from my main timeline, is this on the right track?

i have a movie where a user loads images into an image viewer (mc) i have craeted. If a user clicks on gallery 1, the loader appears, and load the jpg and then tells the viewer to show onceloaded. But, if a user clicks on gallery 1, then clicks on gallery 2, the movie finishes loading picture 1, before loading picture 2, is there any waqy i can force the loader to stop loading one,a dn load two immediately.

View 3 Replies

ActionScript 3.0 :: Global Control Of Text / Background Colour

Jul 28, 2009

I have tried to locate any guidance how you would go about creating a small control panel that would allow a user to adjust the size of the text, its colour and say the background colour too using actionscript 3.I understand that text formatting can be done on dynamic textfields but can this be achieved on static textfields?I am currently putting together a number of modules each a swf that contains e-learning and to comply with DDA.

View 4 Replies

ActionScript 3.0 :: Control 9 Different Background Images With 2 Smooth Moving Sliderbars

Apr 12, 2010

I am trying to figure out how I can control 9 different background images with 2 smooth moving sliderbars in three steps with actionscript.

Scenario:

slider 1, step 1 + slider 2, step 1 = picture 1
slider 1, step 1 + slider 2, step 2 = picture 2
slider 1, step 1 + slider 2, step 3 = picture 3
slider 1, step 2 + slider 2, step 1 = picture 4....

View 2 Replies

ActionScript 2.0 :: Control The Background Colour Of A Movie Clip And The Stage?

Apr 27, 2005

how do you control the backround colour of a movie clip and the stage? i have thought about placing a mc within the mc as a backround_mc, then change the tint attribute from my main timeline, is this on the right track?

i have a movie where a user loads images into an image viewer (mc) i have craeted. If a user clicks on gallery 1, the loader appears, and load the jpg and then tells the viewer to show onceloaded. But, if a user clicks on gallery 1, then clicks on gallery 2, the movie finishes loading picture 1, before loading picture 2, is there any waqy i can force the loader to stop loading one,a dn load two immediately.

I have careted a class, now, how do i assign an mc to be an object of that class, from the main timeline or the onclipevent load event

View 3 Replies

Change Background Color Of Column Header For AdvancedDataGrid Control In Flex?

Aug 21, 2009

I have below columnGroup in advancedDataGrid control and I want to show the header in red background color and also applied the style but the background color in the header does not show as red only the text color in the header is changed.[code]...

View 2 Replies

ActionScript 2.0 :: Way To Control Flv Player

Feb 5, 2009

I have a simple problem. i import a flv into flash and i want to control it with pause stop and mute buton here is the code, how can i don this?[code]...

View 3 Replies

Professional :: Flash Mp3 Player With Transparent Background

Feb 10, 2011

i've been mucking about with flash for a couple of years but only doing some animations and stuff however now i am trying to build my 1st website and i need a mp3 player with playlist and with a transparent background.i've been search the net for a freebie (although i would be willing to buy if i found the right one)or i am happy to try and build my own in flash but could use a good tutorial.

View 1 Replies

ActionScript 3.0 :: Video Player Playing In Background?

Sep 15, 2011

I have a video player program, there is a list page and a player page, once you click on an item in the list it takes you to the player page and it loads the correct video from a streaming server for you, easy peasy When each item is picked it finds the corresponding item in an XML file and loads my video player source with the XML data url
 
function beginLoad():void {      this.addChild(videoPlayer)          videoPlayer.source = myXML.video[videoIndex].@url; }
 
(it has nothing to do with this function not happening on mouse event, this is only the part that happens when it loads)My issue is that if you are fast enough and click to return to the list page before the video has started playing, the video will play in the background, even though the code actually removes the video player child from the stage the code on the button to return to the list page is
 
function navToList(e:Event):void {      videoPlayer.stop();      videoPlayer.parent.removeChild(videoPlayer); }
 
there is more code in the button but none of it relates to the videoPlayer item why on earth it continues to play is beyond me, surely if there is no videoPlayer componen on the stage (and this is the only one) then the video has no ability to play whatsoever is there a specific command to tell the videoPlayer item to stop everything and just return to a blank state, do I set its 'source' to nothing?

View 1 Replies

Professional :: How To Add File In Thread

Aug 8, 2010

how to add a file to a hread?editing a small falsh animati

View 1 Replies

Volume Control For Flash Player?

Oct 29, 2009

I got a code for a flash player but it only has a start and stop button . I would like to know how to add a volume control and a pause button.

Here is the code;

var nc:NetConnection = null;
var nsPlay:NetStream = null;
var metaDataValues:Array = new Array();

[Code].....

View 2 Replies

Flex :: Flv Player Control Time?

Nov 10, 2009

I am using the flex flv player component and i want to be able to skip 5 seconds forward and backwards , at the moment from what i understand from the documents it is not acurate because the movie can only skip to keyframes sometimes making the skip 6 or 7 seconds. the same goes to cue points which the flv might miss the actual point if there is no keyframe there/ my question is there any other way to use the player in a more accurate manner ? since i see on the web players that can do these skipps

View 2 Replies

Flash :: Player Control From Javascript Outside?

Sep 17, 2011

I am making flash player that suppose to be controlled from outside, from javascript.

I need those methods: Play/Pause and Volume level

I am stuck with volume level... I tried to add this code:

flashMovie.volume = 10;

Where flashMovie is flash instance... And it's show NO ERROR but it's NOT WORKING

[Code]...

View 3 Replies

ActionScript 3.0 :: Resource Thread Getting Started

Apr 27, 2007

While we have a dedicated AS3 forum, we know that a lot of Flex 2 users will cross back and forth across forums because while Flex's core scripting is MXML, it fully supports AS3 as well so it's confusing sometimes what forum to post in and who is best suited to offer help. A lot of topics have been covered in the last 6-8 months at a lot of the more well known guru sites and popular blogs and as we get going we will link up anything that might be of use to users in here.Url...

View 7 Replies

ActionScript 2.0 :: Calling A Movieclip With A PHP Thread?

Oct 30, 2009

In a flash movie, I'd like a user to be able to have a choice of buttons, each of which would add a movie clip. (E.g. If they click button "A" it will add a barking dog, if they click button "B" it will add a running cat, etc.)

I then want the user to be able to e-mail this movie with a PHP form (which I know how to do) but in the URL string, it will load the movie (dog/cat) that the user has selected. That way, when their friend receives the e-mail, it will take them to a page with the flash movie that shows the movieclip their friend chose.

View 3 Replies

ActionScript 3.0 :: Delete An Attachment From A Thread?

Sep 16, 2009

I posted a thread in AS3 forum and uploaded an attachment. I would like to know how to delete an attachment from a thread, after it has been posted. I've been looking for this option, but couldn't find it.

View 1 Replies

Professional :: Play Many Flvs Using Player Control?

Apr 25, 2011

I have a folder of sales training lessons (flvs) and I want to play each one of them by clicking a button and to have each one use a common playback control. When I us the follwing code I get a "1120: access of undefined property error".
 
stop();
function playAud1(evt:MouseEvent):void { player.source = "audio/The_Profession_Called_Selling.flv";}seg1_btn.addEventListener(MouseEvent.CLICK, playAud1);

[Code]....

View 1 Replies

Flash :: ActiveX Control For Player Could Not Be Registered?

Aug 1, 2011

For a month now I have been without the use of programs lke Swishmax and sothink video downloader because all of a sufdden, flash can;t be installed. I do have in in firefox but I get this error when I try to install "ActiveX control for Flash Player could not be registered" I have tried everything, but nothing works.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved