Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Senior Member shoffman3572's Avatar
    Join Date
    Jul 2008
    Location
    Fullerton, CA
    Posts
    137
    Member #
    16990
    I have a large SWF that requires a pre-loader. But that larger SWF requires a variable sent via the Flashvars option from the html page calling the preloader. Does any one know of a way to make sure the data I'm sending to hte preloaded gets forwarded to the larger swf file I'm loading?

    I'm trying this at the moment: where vFile is the name of the loading swf file and valueStr is the variable I want to send.

    var swfLoader:Loader = new Loader();

    var urlVariables : URLVariables = new URLVariables ();
    urlVariables['prize'] = valueStr;

    var swfURL:URLRequest = new URLRequest(vFile);

    // setting the variables it need to cary
    swfURL.data = urlVariables;

    // setting method of delivering variables ( POST or GET )
    swfURL.method = URLRequestMethod.POST;

    swfLoader.contentLoaderInfo.addEventListener(Progr essEvent.PROGRESS, onProgressHandler);
    swfLoader.contentLoaderInfo.addEventListener(Event .COMPLETE, loadProdComplete);

    swfLoader.load(swfURL);

    I think this is working - but how do I retrieve the information in the second swf file?

  2.  

  3. #2
    Junior Member
    Join Date
    Oct 2013
    Location
    Connecticut
    Posts
    8
    Member #
    37314
    Liked
    1 times
    hello

    I think this may help you:note this is in actionscript 2

    Four Ways to Transfer Data Between Flash and PHP

    thanks

    Rod
    [EDIT: fake signature removed by TheGAME1264. Please read the forum rules first. Thanks.]
    Last edited by TheGAME1264; Oct 02nd, 2013 at 06:38 AM.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search tags for this page

as3 swf data

,

as3 swf data transfer to swf

Click on a term to search for related topics.
All times are GMT -6. The time now is 10:51 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com