A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Flash MX 2004 Help

  1. #1
    Fo Shizzle nubian niht's Avatar
    Join Date
    Oct 2000
    Posts
    212

    Flash MX 2004 Help

    flash mx 2004 won't play the loaded movie.
    mine in this case is an external audio embedded swf movie.

    - i took my flash 6 files (the main movie and external audio movie) and imported them into 7
    - i saved both flash 6 files as 7 using action script 1.0 with flash 7 export settings.
    - now when i go to view my movie in the html file it won't load the external movie.

    it plays fine with mx 2004 when running test movie or if i open the swf movies locally on my hd.
    but it will not load the external swf movie when viewing it in a html page.

    i've notice another thing.
    for some reason you have to use the html file that flash mx 2004 exports in order for the loadMovie(); command to work properly.
    i cannot use my old html files that the movies were embedded onto
    why is that??

    i also keep all my swf movies in a directory.
    now if i were to use the html file that mx 2004 exported and out side the directory that main flash movie is in the loadMovie(); will not work!!!!
    what gives??

    any help on how to resolve this issue will be greatly appreciated.
    tia
    Last edited by nubian niht; 09-23-2003 at 03:05 PM.

  2. #2
    Member
    Join Date
    Sep 2002
    Posts
    91
    - is flash player 7 for your browser installed ?
    - the new html needs to have object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0

    notice 7,0,0,0 in the end for the player to be loaded



    i also keep all my swf movies in a directory.
    now if i were to use the html file that mx 2004 exported and out side the directory that main flash movie is in the loadMovie(); will not work!!!!


    this i don't understand

  3. #3
    Fo Shizzle nubian niht's Avatar
    Join Date
    Oct 2000
    Posts
    212
    sorry i that was confusing.
    what you stated above still does not work.
    i have absolutely no idea why
    what i did was the following:

    - i keep all my flash movies in a directory called flash
    - my fla file is in that same directory
    - i open flash 2004 and published both the movies (the main movie and the loaded movie) along with an html file
    - so now both html and swf flash movie are in the same directory.
    - usually when i make flash based sites and content i keep all my flash movies in it's own directory
    - now if i were to take the html file that flash 2004 exported and place it outside of the flash directory and into the root; change the path to the flash movie from main.swf to flash/main.swf the flash movie plays but won't loadMovie(); the the external swf i'm trying to load

    this is my html file after i edited the path to the main swf file:
    Code:
    [!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    [html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    [head>
    [meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    [title>main[/title>
    [/head>
    [body bgcolor="#000000">
    [!--url's used in the movie-->
    [!--text used in the movie-->
    [object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="780" height="591" align="middle">
    [param name="allowScriptAccess" value="sameDomain" />
    [param name="movie" value="flash/main.swf" />
    [param name="quality" value="high" />
    [param name="bgcolor" value="#000000" />
    [embed src="flash/main.swf" quality="high" bgcolor="#000000" width="780" height="591" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    [/object>
    [/body>
    [/html>

  4. #4
    Member
    Join Date
    Sep 2002
    Posts
    91
    ok,

    when a flash movie is loaded into a webpage, and this movie makes a request to load another movie. Then the request is passed on to the webpage, then > browser > network

    so the directories will be relative to that webpage. So if your webpage is in root and both clips are in the subdir => the 1st clip thinks its in the root => you have to load the 2nd one using the subdir


    so, loadMovie("subDir/clip2.swf,..)



    but i advise you to always put the clip(in the webpage, now clip1) and the page in the same folder, don't use subdir references in the html or it will get complicated


    epowder
    Last edited by epowder; 09-23-2003 at 07:28 PM.

  5. #5
    Fo Shizzle nubian niht's Avatar
    Join Date
    Oct 2000
    Posts
    212
    call me to stupid flasher of the year 2003!
    damn i keep forgetting that.
    messing with this new 2004 has been giving me brain farts all day.
    i know what i'm doing and all.
    i've been flashing since flash4.
    it's kinda like forgetting to tie your shoe laces at the age of 25.
    thanks powder, issue resolved.

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center