Variable to load movie ?

I have a problem with my actions.
on (release) {
       //load Graphic Behavior
      _root.mylocal.loadMovie("image1.jpg");
          //End Behavior
in loadmovie  "image1.jpg" I want to assign a variable with two different button.
sample: button 1 Clicking "ima"
            button 2  Clicking "ge1."          
            button 3 Clicking  "jpg"
How can this?
macromedia flash professional 8

It's still unclear, but I'll take a guess anyways.  You can assign different parts to different variables and then add them together.
var part1;
var part2;
var part3;
on (release) {
      _root.mylocal.loadMovie(part1+part2+part3);
And have your buttons define the 3 parts when you click them.

Similar Messages

  • Passing variable to a loaded movie

    Let's say, a movie
    loads an external MovieClip,
    using a MovieClipLoader, and locks
    the root, with code as the
    following:
    //I'd like to pass this variable
    var myVar = "Passed it to Shell";
    this.createEmptyMovieClip("Shell",
    this.getNextHighestDepth());
    var lo:Object = new Object();
    lo.onLoadInit = function(target_mc){
    target_mc._lockroot = true;
    var mcl:MovieClipLoader = new MovieClipLoader();
    mcl.addListener(lo);
    mcl.loadClip("ExternalMovie.swf", Shell);
    //end.
    Now, once Shell is loaded, how
    do I access myVar?
    I tried _parent.myVar, which
    doesn't work. (Since Shell has
    the _root locked.)
    I changed the onLoadInit to
    lo.onLoadInit = function(target_mc){
    target_mc.myVar = myVar;
    target_mc._lockroot = true;
    and then tried to access inside
    Shell by this.myVar, which still
    doesn't work.
    I'd appreciate any suggestions.

    myVar is defined in the
    loading movie. (On the
    first line lf the listed
    code). Actually, it
    is passed to the movie,
    which in turn loads
    external contents to a
    MovieClip named Shell.
    So how could myVar be
    accessed inside Shell?

  • Loading movie in new level from variable

    What I'm trying to do is load a movie in another level wich
    is defined by a variable (i)
    On level 0 there is this piece of code
    i = 10;
    loadMovie("Home.swf", 10); (I've entered 10 instead of i
    because otherwise I wouldn't get anything at all)
    Now every time I go to another 'chapter' it has to load a
    movie into the next level
    From Home.swf I click the button to the next chapter wich
    contains:
    on (release) {
    unloadMovie(_level0.i)
    i++
    loadMovie("chapter01.swf", _level0.i);
    This obviously doesn't work otherwise I wouldn't be posting
    here :p This whole thing does absolutely nothing :s
    Anyone any idea?
    Thanks in advance

    ur code works for me only if i use loadMovieNum instead of
    loadMovie......if u r using levels to load movie then use
    loadMovieNum and unloadMovieNum.....u use loadMovie when u ve to
    load a movie on a movieClip and loadMovieNum when u want to load on
    some level..try this m sure it ll help u

  • Using load movie and load variable

    Ok i am having a problem with my movie... when i test it
    using test movie it is fine but when i preview in HTML or run the
    SWF on it own i am having a problem... and i spotted the items i am
    having a problem with but problem is i dont know why.
    i am loading a movie dynamically in my main movie using load
    movie
    loadMovie("menu.swf",_root.i_dress2.i_content);
    and in the actual movie menu.SWF i am loading a text
    dynamically using loadvariable... but i am actually loading it into
    the movie that has already been loaded into my main movie... maybe
    it i will make sense when you see my line of script that is in the
    menu.sef movie....
    loadVariables("menu.txt",_root.i_dress2.i_content.arg.maskedText.scrollpage);
    so i guess it is like i am loadingthe txt into the text file
    after it is loaded into the main movei so that is why it is
    referring ot the text field that way...
    anyway it works fine when i go thorugh test movie but when i
    preview in HTML the text doenst come out...
    am i doing this thewrong way.? is there something i am
    missing?
    Thanks...any help will be appreciated!!

    You may be hitting a Flash 8 security issue that you cannot
    load external
    data using file:////path_to_your_movie/youmoviehtml in a web
    browser. You
    may need to use
    http://thedomain.com/yourmovie.html.
    Lon Hosford
    www.lonhosford.com
    May many happy bits flow your way!
    "batgirl_Sa" <[email protected]> wrote in
    message
    news:e2v04c$lq$[email protected]..
    Ok i am having a problem with my movie... when i test it
    using test movie
    it
    is fine but when i preview in HTML or run the SWF on it own i
    am having a
    problem... and i spotted the items i am having a problem with
    but problem is
    i
    dont know why.
    i am loading a movie dynamically in my main movie using load
    movie
    loadMovie("menu.swf",_root.i_dress2.i_content);
    and in the actual movie menu.SWF i am loading a text
    dynamically using
    loadvariable... but i am actually loading it into the movie
    that has already
    been loaded into my main movie... maybe it i will make sense
    when you see my
    line of script that is in the menu.sef movie....
    loadVariables("menu.txt",_root.i_dress2.i_content.arg.maskedText.scrollpage);
    so i guess it is like i am loadingthe txt into the text file after
    it isloaded into the main movei so that is why it is referring ot
    the text fieldthat way... anyway it works fine when i go thorugh
    test movie but when i preview inHTMLthe text doenst come out... am
    i doing this thewrong way.? is there something i am missing?
    Thanks...any help will be appreciated!!

  • Unable to load movie playlist?

    I'm really starting to regret Upgrading to Director 11. I
    didn't have any of these issues going from MX to MX 2004. All I'm
    trying to do is make a simple projector work on a Mac and it's one
    issue after another. Not to mention all this after updating a whole
    boat load of Xtras 11 requires.
    The new one is this;
    Unable to load movie playlist. Does the INI file exsist? It
    must contain a section '(Movies)' with an entry
    'Movies01=pathname.dir'.
    I've already read a couple of other forum post with the same
    error message going on with others but can't find certain files
    required to make the fix like the 'Projec32.skl',
    and I don't know how to read, let alone make an .INI file.
    I'll mention I got this error after updating to Shockwave 11
    EVEN though I was not publishing a Shockwave movie.
    I know I just need to include a certain file on my CD when I
    burn one because all works great on the desk top, but I'm throwing
    darts trying to figure out what the CD burn is missing.
    So to make a long story short does anyone know what I might
    be missing?
    I'm new to making director movies for the Mac, and even using
    a Mac so I might need it spelled out a little more for being a
    novice.
    Thanks in advance. :o)>
    PS I tried making a Mac Projector from my PC with no good
    results either.

    This is a very frustrating problem.  I have run into it as well, but can't tell you exactly how I solved it, its been a while since I've seen it.  It does have something to do with the length of the path to your projector when its published.  I would suggest moving your movie as close as possible to the root of the drive, you may even want to restart to ensure all the internal variables have been reset and then republish the movie.
    If you publish the movie from your authoring location and then copy the projector to a cd or the desktop the path length seems to be built into the projector at publishing. So that does not solve the problem.  It is fairly easy to get a long path name - c:/mylocaldrive/documents and settings/yourusername/yourprojectsfolder/yourprojectname.dir has a path name length of 100 characters!  I realize you are on a mac, but the same rules apply.
    I also might be mistaken with the maximum path length.  Perhaps its 128 characters?
    Has anyone else run into this error?
    Mike M

  • Hotspots in a loaded movie not referencing correctly

    My main movie uses an onResize function to reposition movie
    clips relative to stage H & W, a movie loaded into level 1
    contains the hotspots that aren't registering properly.
    CODE IN MAIN MOVIE:
    Stage.scaleMode = "noScale";
    Stage.align = "TL";
    ///////////REPOSITION ELEMENTS WHEN STAGE IS
    RESIZED////////////
    this.onResize();
    function onResize() {
    newPosition();
    Stage.addListener(this);
    function newPosition() {
    stageH = Stage.height;
    stageW = Stage.width;
    bkgrnd_mc._width = stageW;
    bkgrnd_mc._height = stageH;
    main_mc._x = (stageW- main_mc._width)/2;
    main_mc._y = (stageH- main_mc._height)/2;
    //loaded movie- all hotspots are inside this MC:
    _level1.temp_mc._x = (stageW-_level1.temp_mc._width)/2;
    _level1.temp_mc._y = ((stageH-_level1.temp_mc._height)/2);
    on loading a movie into level 1 – I can see that the
    hotspots contained within it are visually repositioned when browser
    resized (hotspots all inside ‘_level1.temp_mc’) but the
    x & y coordinates referenced during hitTest remain those of the
    original loaded movie – ignoring the fact it looks as though
    it has been physically repositioned!
    Hit test code placed inside the loaded movie (in
    ‘temp_mc’) uses shapeflag method to test hits, eg:
    //display readings:
    _level1.temp_mc.reader_mc.onPress = function() {
    this.startDrag();
    _level1.temp_mc.reader_mc.onRelease = function() {
    this.stopDrag();
    if
    (_level1.temp_mc.hotspot1_mc.hitTest(_level1.temp_mc.reader_mc._x,
    _level1.temp_mc.reader_mc._y, true) {
    _level1.temp_mc.temp_txt.text = " hotspot1";
    else {
    _level1.temp_mc.temp_txt.text = "Nothing detected";
    Resize function also called in first frame pf loaded movie:
    _level0.onResize();
    Any help gratefully received, thanks in advance.

    I think I have the concept, but I can't figure out how
    exactly to reference this variable.
    basically, the variable is '_root.newsMov.myData.newsVar'
    which works fine when i load the movie in firefox by itself.
    The problem comes when I load the movie via the index movie.
    If the new movie with the loadvars is loaded into level 9,
    how do I reference it?
    _level9.newsMov.myData.newsVar doesn't seem to work... any
    other ideas?
    Thanks to all who have helped so far

  • Use flash player ActiveX component to load movie from resource

    How can I use a Flash Player 9 ActiveX component to load
    movies into my application from program resources.
    Thank you in advance.

    try this:
    // Load text as variable and assign it to the
    // dynamic text field
    var features_lv:LoadVars = new LoadVars();
    features_lv.onLoad = onText();
    features_lv.load("safetyFeatures.txt");
    function onText(success:Boolean) {
    if (success) {
    myText_txt.text = features_lv.safetyfeatures;
    } else {
    myText_txt.text = "unable to load text file.";
    or this
    // Load text as variable and assign it to the
    // dynamic text field
    var features_lv:LoadVars = new LoadVars();
    features_lv.onLoad = function(success) {
    if (success) {
    myText_txt.text = features_lv.safetyfeatures;
    } else {
    myText_txt.text = "unable to load text file.";
    features_lv.load("safetyFeatures.txt");

  • This message comes up "This computer is already associated with an Apple ID" trying to down load movies of another computer of ICloud how do I get By?

    This message comes up "This computer is already associated with an Apple ID" trying to down load movies of another computer of ICloud how do I get By?

    Hi Allan, thanks for that. I've already set up a log in for my wife and that is all working fine. The problem is that when she logs in and opens iTunes and trys to associate her library with her iTunes account she gets the error message "This computer is already associated with another iTunes account". Whilst this is true, the computer is associated with my iTunes account under my separate log in, which should have nothing to do with hers. If she transfers the association to her account it will lock me out of my content on my log in for 90 days - I'm trying to work out how to associate each of the log in accounts with a separate iTunes account so we can access our music independently of one another without locking each other out. Hope that makes sense!

  • HT4352 My apple tv will no longer load movies.

    My apple tv will no longer load movies that I have in iTunes. It shows them in the menu, but when I click on them I just get the spinning wheel. Music works fine. Every thing worked fine the day before.

    Power cycle the ATV.
    Close and relaunch iTunes on the computer or simply reboot the computer.

  • HT202157 Does anyone else have a problem with the latest Apple TV update?  My Apple TV no longer can load movies from my iTunes library, including ones I've already watched or were watching.  Can I roll back this update, and if so, how?

    After updating my Apple TV, it will no longer load movies from my iTunes library.  Music works, but no movies.  I've turned this puppy every which way but loose, but no joy.  Is there a way to roll back an update?

    Greetings,
    I've never seen this issue, and I handle many iPads, of all versions. WiFi issues are generally local to the WiFi router - they are not all of the same quality, range, immunity to interference, etc. You have distance, building construction, and the biggie - interference.
    At home, I use Apple routers, and have no issues with any of my WiFi enabled devices, computers, mobile devices, etc - even the lowly PeeCees. I have locations where I have Juniper Networks, as well as Aruba, and a few Netgears - all of them work as they should.
    The cheaper routers, Linksys, D-Link, Seimens home units, and many other no name devices have caused issues of various kinds, and even connectivity.
    I have no idea what Starbucks uses, but I always have a good connection, and I go there nearly every morning and get some work done, as well as play.
    You could try changing channels, 2.4 to 5 Gigs, changing locations of the router. I have had to do all of these at one time or another over the many years that I have been a Network Engineer.
    Good Luck - Cheers,
    M.

  • I rented a movie on an iPad mini while connected to wifi. Now I'm in the car with out Internet and when I try to play the movie is says "could not load movie" what can I do? I purchased it from iTunes and let it load fully before leaving.

    Can somebody help me figure this out? So before a road trip I rented a movie on my Ipad mini. The movie fully loaded before I left. It downloaded under wifi. Now that I'm in the car I tried to watch the movie but it isn't working. When I press play an error message pops up saying "could not load movie" can I not watch it with our wifi? What's going on? What can I do to watch the movie?

    Having the same problem. Watched 25 minutes of a rental and it stopped with the message"unable to load video"
    Using current version IPad mini.
    Ios7 is  HUGH PIECE OF CRAP!!!!

  • HT1657 I have just got a iPad yesterday and I'm having a problem  I have just bought a tv series in iTunes and downloaded it on to my iPad but every time I go to watch it it comes up (could not load movie) then takes me back to the episode list ? Can you

    I have just got a iPad yesterday and I'm having a problem
    I have just bought a tv series in iTunes and downloaded it on to my iPad but every time I go to watch it it comes up (could not load movie) then takes me back to the episode list ? Can you tell me how to solve this problem please

    Have a look at the following:
    http://itunes.apple.com/sg/app/quickoffice-pro-hd-edit-office/id376212724?mt=8&l s=1
    http://itunes.apple.com/sg/app/office2-hd/id364361728?mt=8&ls=1
    http://itunes.apple.com/sg/app/documents-to-go-premium-office/id317107309?mt=8&l s=1
    http://itunes.apple.com/sg/app/polaris-office/id513188658?mt=8&ls=1

  • Passing a variable from a movie clip to the main timeline

    Hi,
    I'm having trouble passing a variable from a movie clip in my
    flash file to the main timeline.
    I have a movieclip with the instance name IntroNav which
    contains several buttons. Clicking a button sets the variable
    "page" to a specific name, i.e. page = "home"
    However, outside of the movie clip, on the main timeline I am
    unable to call this variable, and "page" seems to have no value.
    Can anyone tell me why this is and how to solve it?
    Thanks

    Umm, yes ... declare your variables correctly.
    var page:String = new String(); //proper complete
    var page:String; //strict typing
    var page:String = "home"; //stirct typing with value
    declaration
    Do not declare the variable in your buttons, you would have
    to do so in every button and be constantly resetting the value.
    Declare it on the main timeline at the lowest level. You do not
    need to use it as a _global, you just need to resolve your path
    issues. You can 'set' the variable value from a button, without any
    problem, but you have to call to the variable correctly.
    You do not 'name' a variable as "_root.page" , the '_root'
    refers to the lowest level of the SWF or the main timeline, as does
    a call to ' _level0' (that's a zero). If the variable is declared
    on the main timeline, and you're calling from the MC/button or
    anywhere you can refer to the variable by calling to it by
    the proper path of '_root.page'
    To set the variable from any of your button/MC instances
    call:
    _root.page = "value"; OR _level0.page = "value";
    But you must have the varibale declared on the main timeline,
    and only once and the playhead should be stopped or it will reset
    the value to the default upon looping.

  • Quicktime Pro Really Slow to Load Movies

    Hi,
    Anyone have any idea why after getting Quicktime pro it is so slow to load movies? I have an iMac with 2Gigs of Ram, less than a year old...
    I read about the disk permissions thing, but it doesn't seem to have helped...
    Thanks in advance!

    I don't know if this is still a problem for you, but I first noticed it when I upgraded to 7.2 in Tiger.
    It seems that QT is loading the whole movie into RAM before it starts playing. This is really annoying with long movies, the beachball just spins until QT has loaded all 350 megs into a buffer somewhere. I've started using VLC instead. No settings that I can find will alter this behaviour, and I've tried moving various third-party plug-ins around to no avail.
    Note: the behaviour persists with QT 7.3 in Tiger (10.4.10) but seems to have been fixed in Leopard (10.5). Since I'm slowly migrating to Leopard, I guess the problem is semi-solved.

  • Remove loaded movie after new loadMovie has been loaded

    i need to unload a movie once the new loadMovie is fully
    loaded because once i click on my button to do so, my current
    loaded movie goes away & the screen is white until the new
    loaded movie is loaded. (i hope that made sense)

    well I've done it a few ways successfully.
    The most recent, I dynamically create new movie clips.
    see ---
    http://www.13studios.com/erin
    --- Its a figurative painter's portoflio, so while its oil paint it
    is perhaps a bit [NSFW].
    Anyway, the panning effect kinda killed my normal process, so
    when you click a new button, it goes like this...
    PSEudoCODE
    //tickerVariable is defined on frame 1
    holder.create a new movie clip with name "something +
    tickerVariable"
    play preloader(tickerVariable);
    on completion of preloader {
    holder[something+(tickerVariable-1)].unloadMovie();
    //do anything else you need to do
    tickerVariable++
    I hope I didn't just make that more confusing.

Maybe you are looking for

  • Class oracle.xml.sql.query.OracleXMLQuery not found in import

    I tried to perform load java using a non-sys user : loadjava -user user1/passwd -v -o -r Archive.java but encountered the following error: Errors in Archive: ORA-29535: source requires recompilation Archive:11: Class oracle.xml.sql.query.OracleXMLQue

  • Is it "OK" to have a single .xml file that's identified by a specific app (Sound Studio)?

    Since I'm have trouble in getting "Amazon's Cloud" to see my music files in iTunes, I'm wondering if the peculiarity I'm noticing with the .xml file in my iTunes folder is causing a problem.  I have only one such file and alongside it is the green ic

  • Internal Order Status in delta loads

    We are using the standard BW delta extractor for Internal Orders (Data Source :0COORDER_ATTR). We have enhanced the data source to bring in a couple of extra fields including System Status. We find that a Status change in the Internal Order (e.g. fro

  • Mrp not taking materials in to consideration.

    Hello,       I am running MRP for the first time for the plant. when i run MRP its not picking all the materials in the plant.  I am using NETCH planning. but when i run MRP for each material its working good. why is this happening.  what should I do

  • Retrieve os (windows) clientside username in ADF

    hi all, i want to know how can i retrieve the clientside os username within adf, maybe with a java bean or something else. any code snippets availiable? i want to implement a simple security mechanism with the logged in user information. thank you ve