Flash Advisor logo
:: Desktop Shortcut
:: Flash Help
Advice from Experts

Closed Thread
Results 1 to 4 of 4
  1. #1

    Default external MC loading Help please

    Flash gurus is this possible????? i'm trying to load various players from external sites into one completely controlable flash box. Basicly i need to have this loaded into the MC i have created:
    Code:
    <embed src="http&#58;//this.com/flash/this_blank_player.swf" quality="high" bgcolor="#ffffff" width="178" height="400" name="blank_player_fullsize" align="middle" allowScriptAccess="always" wmode="transparent" flashvars="type=undefined&player_id=undefined&id=undefined&play_first=recent&auto_play=false&color1=65331&color2=7796080&color3=16750848&color4=16777215&color5=16777215&color6=0" type="application/x-shockwave-flash" pluginspage="http&#58;//www.macromedia.com/go/getflashplayer"></embed>
    I have been able to get the player itself to load with a
    Code:
    on &#40;release&#41; &#123;
    	loadMovie&#40;"http&#58;//this.com/flash/this_blank_player.swf", _root.movie1&#41;;
    &#125;
    but i can not get the content that is supposed to load into that player along with that. can someone please help me? i am still learning this whole thing. is this possible?

  2. # ADS
    Join Date
    Always
    Posts
    Many
     
  3. #2
    Join Date
    May 2004
    Location
    U.S.A.
    Posts
    2,890

    Default

    Hi,

    Are the different sites all yours? Flash has strict security in place about cross domain loading. Each site will need an XML cross domain policy file to allow other sites to load content from their server. Also, you will need to take into account path issues. A movie that is loaded into another movie is no longer on the _root timeline so any _root references in the movie will not work. There is a workaround with the lockroot method, but understanding paths is a big benefit. Example.......... movie B loaded into a movieclip in Movie A named "HolderMC". Say Movie B loads content into another movieclip named "content". The path to that clip in Movie B without being loaded would be...

    _root.content.

    Once it is loaded into Movie A, the path to that MC changes to...

    _root.holderMC.content

    The paths can be adapted in the movie to be loaded or, look into the lockroot method to keep the _root timeline of the loaded movies available to itself.

    _root.loadMovie("someMovie.swf")
    A mind once stretched by a new idea never regains its original dimensions.
    - Oliver Wendell Holmes

  4. #3
    Join Date
    May 2004
    Location
    U.S.A.
    Posts
    2,890

    Default

    Hi
    Ok im trying to load a premade audio player. I know it would be easier to just make my own and put it in, but i was just wondering if it would work. The thing i am trying to load has 4 audio clips and its built from a site that lets you "create" small players and embed them into a blog or something. I want to take the 'players' and load all of them into a new flash movie where you can select which one to view. I dont know if that can work or if i really just need to start and design all my own players. There are also outputs from photobucket.com that i was wondering if they could be placed into flash. I dont really know if this helps the understanding at all or really if it can be done. but thank you for your help.
    It would be much easier to construct and use your own. Sound players in Flash are pretty easy to construct. The sound object is designed specifically for loading external .mp3 files. The basics...

    mySound=new Sound(this);
    mySound.loadSound("someFile.mp3",true);

    The second parameter of the loadSound method determines whether the sound loads as event sound(must load entirely before playing) or streamed sound(plays after enough of the file has progressivly downloaded). The methods for creating player controls are described pretty well in the help files, but here is a resource site for the sound object that is pretty in depth and covers most any questions you might have about sound objects or creating sound players with Flash...

    http://www.kennybellew.com/tutorial/
    A mind once stretched by a new idea never regains its original dimensions.
    - Oliver Wendell Holmes

  5. #4

    Default thanks

    ok thanks i ended up just doing my own player.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. problems loading external swf
    By cazzy in forum General Flash
    Replies: 1
    Last Post: 06-10-2006, 10:14 PM
  2. Replies: 0
    Last Post: 03-29-2006, 03:40 PM
  3. loading external swf's sequentially
    By martink in forum Advanced Flash
    Replies: 1
    Last Post: 12-07-2005, 01:58 PM
  4. External Pics ... Loading and Resizing
    By prodigymunky in forum Design and Animation
    Replies: 1
    Last Post: 07-29-2005, 11:04 AM
  5. loading external movies from a scrollpane
    By thea in forum Flash Scripting
    Replies: 2
    Last Post: 07-22-2005, 09:53 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Sponsors
Create Speaking Characters for your website and Flash movies. 15 Day Free Trial