Is this going to be possible?

  • papalazarou78
  • Newbie
  • Newbie
  • papalazarou78
  • Posts: 8

Post 3+ Months Ago

Hi

I'm using code in my first frame to position a mov containing 3 sections into the right place. Example of code;

Code:
btn2.onRelease = function() {
var club:Tween = new Tween(movs, "_x", Regular.easeOut, movs._x, -632, 1, true);
_root.movs.portfolio.gotoAndPlay("startport");
};
I then have a portfolio section which has external swfs loading into an empty container and then moving to the second frame. In the external swf I have a back button to get back to the portfolio screen with the following code;

Code:
on (release) {
import mx.transitions.Tween;
import mx.transitions.easing.*;
_root.container.unloadMovie("port-shimano-carp.swf");
_root.gotoAndStop("home");

var club:Tween = new Tween(movs, "_x", Regular.easeOut, movs._x, -632, 1, true);
_root.movs.portfolio.gotoAndPlay("startport");

}
Which unloads the movie, then goes back to frame 1. And thats it. Rather than then pushing the movie strip to the right position. Am I right in thinking that because its going to the first frame its then not reading the rest of the code? If so, is there a way round this, and is it possible?

If it helps the files are downloadable from here;
http://www.fullfatdesigns.co.uk/files.zip

I'm still a bit new to actionscript, so any help would be greatly received.

Cheers
Wayne
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • IceCold
  • Guru
  • Guru
  • User avatar
  • Posts: 1254
  • Loc: Ro

Post 3+ Months Ago

sure it's possible. Just give it a try.
  • papalazarou78
  • Newbie
  • Newbie
  • papalazarou78
  • Posts: 8

Post 3+ Months Ago

IceCold wrote:
sure it's possible. Just give it a try.


Do you have any tips on where I'm going wrong with my code? I've been trying to get it to work, with no luck so far.

Cheers
  • IceCold
  • Guru
  • Guru
  • User avatar
  • Posts: 1254
  • Loc: Ro

Post 3+ Months Ago

well, just think about the structure of the flash objects. For that, you can use implemented debug to view variables.
_root->movieclip_holder->movieclip_loaded->....
In rest, do the same as you would do for a movieclip which already exists.
You can have relative paths and absolute paths to access the variables/movieclips inside a structure, i prefer using relative paths.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 24 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.