Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Flex > Flex 2 & 3

Reply
 
Thread Tools Rate Thread Display Modes
Old 06-29-2006, 08:51 PM   #1
pcbryant
Registered User
 
Join Date: Jun 2006
Posts: 11
Default SWSLoader problem

I have been pulling my hair out all day with this one.

I have a page with an SWFLoader in it. The contents of this loader will be changed depending on what I click on in the previous menu. The first time the I click on an item the loader shows fine. Then if I return to the previous screen and click on a different item then the loader does not show. If I go back again and choose the first item it shows it. It is like it is caching it, but I have turned all the caching parameters off for the swfloader.

Please help...
pcbryant is offline   Reply With Quote
Old 06-29-2006, 09:11 PM   #2
Paerez
Chick dig raccoons
 
Paerez's Avatar
 
Join Date: Apr 2005
Location: Maryland / Massachusetts
Posts: 1,104
Send a message via AIM to Paerez
Default

post some code. like how you are doing the loading.
Paerez is offline   Reply With Quote
Old 06-29-2006, 09:20 PM   #3
pcbryant
Registered User
 
Join Date: Jun 2006
Posts: 11
Default

I've got an swfloader component:

<mx:SWFLoader x="943" y="8" width="80" height="80" id="mediaPic" autoLoad="false" scaleContent="false" cacheAsBitmap="false" cachePolicy="off"/>

then I am using

mediaPic.load(sUrl); where sUrl is the url which I want to show

i've tried mixing everything up i.e. have autoload is true and just changing the source, setting the source as"" before loading.....

thanks in advance
pcbryant is offline   Reply With Quote
Old 06-29-2006, 09:22 PM   #4
Paerez
Chick dig raccoons
 
Paerez's Avatar
 
Join Date: Apr 2005
Location: Maryland / Massachusetts
Posts: 1,104
Send a message via AIM to Paerez
Default

what if you set the source (or loaded) the empty string "" between loads? So when you go to the menu, do a load(""), then when they click, load the clip. So it does "" between every load.
Paerez is offline   Reply With Quote
Old 06-29-2006, 09:41 PM   #5
pcbryant
Registered User
 
Join Date: Jun 2006
Posts: 11
Default

unfortunately not

There must be something that is making it not be able to load anything else but the first item.

i'll keep experimenting

thanks again
pcbryant is offline   Reply With Quote
Old 08-27-2008, 10:18 AM   #6
traustid
Registered User
 
Join Date: Jan 2007
Posts: 36
Default

Hi guys. Its a pretty old topic but I have the same problem now, and using Flex 3.
I load rss feed from youtube, when the HTTPService has loaded it I load the first video and the rss xml into a List component. By clicking an item in the List, I want to load the corresponding video into the SWFLoader but that does not work!

Code:

ActionScript Code:
<mx:Script>     <![CDATA[         private function playVideo(url:String):void {             youTubeVideo.load('');             youTubeVideo.load(url);         }             ]]> </mx:Script> <mx:HTTPService id="rssService" url="http://www.youtube.com/rss/user/gummiski/videos.rss" resultFormat="e4x" result="playVideo(event.result.channel.item[0].enclosure.@url);"/> <mx:SWFLoader id="youTubeVideo"/> <mx:List itemClick="playVideo(event.currentTarget.selectedItem.enclosure.@url)" dataProvider="{rssService.lastResult.channel.item}" labelField="title"> </mx:List>
traustid is offline   Reply With Quote
Reply


Thread Tools
Display Modes 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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Flash 8 FLVPlayer skins ~ problem in Firefox, Opera, Netscape scuze Components 3 10-05-2007 11:43 AM
Problem with component scope / calling function FarFeTTu Components 1 05-02-2006 11:19 PM
Flash Number type and c# float and decimal types. Convertion problem within Flash. maglez ActionScript 2.0 2 06-02-2005 06:14 PM
HEEELP!!! cant work out the answer to a problem case ActionScript 1.0 (and below) 1 07-30-2003 12:37 AM
global TextField Problem! Guru wonted mediaholic ActionScript 1.0 (and below) 3 07-20-2003 11:07 AM


All times are GMT. The time now is 08:26 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.