Welcome, Guest. Please login or register.
Did you miss your activation email?
02/07/12, 09:07
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  General
| |-+  Flash MX 2004 (Moderators: Flash-db, Musicman, vesa kortelainen, Ronald Wernecke, Andresss, papachan)
| | |-+  External Text issue with Flash CS2 actionScript 2.0
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: External Text issue with Flash CS2 actionScript 2.0  (Read 4015 times)
cferg
Server what's that
*
Posts: 5


View Profile Email
« on: 02/28/09, 12:54 »

Hi anyone-
I'm having a frustrating issue with loading external text, and I hope someone can help:

Background:
I've got photography site that has the main flash file ("index"). From there I load an external movie (let's say, "landscapes") into "index". My index, buttons, etc. all control the external movies. From the external movie ("landscapes"), I then load another external movie into landscapes to see the photos. So I click on thumbnail one it loads photos1 etc. All this works perfectly.

Now for my issue: in the "photos1" swf file i have some simple commands: I transition in then "stop()";. On that same actions frame I execute "this.loadVariables ("pathname");". Now when I test the movie, my photo and text load in perfectly. When I move a movie clip up and test the "landscapes" file, it loads my photos1 file and subsequently the photo and text perfectly. HOWEVER, when I go to my root index SWF file and test it, it loads all external movie clips perfectly but DOES NOT LOAD MY EXTERNAL TEXT! What on earth is going on, I have checked everything from masks to broken code, and nothing. I think it might by something in my index.swf file, but have no idea. Has anyone else had a similar issue?

Thanks for any help!
Logged
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6161


View Profile WWW Email
« Reply #1 on: 02/28/09, 13:19 »

sounds like a path issue.
Make sure you are allways using relative paths - if you are not sure, where you are right now, place a trace(this) command into the section of doubt.
Logged

happy flashing
Cool
Ronald
cferg
Server what's that
*
Posts: 5


View Profile Email
« Reply #2 on: 03/20/09, 23:29 »

Thanks for your response. Why then would it show up two movie clips down, but not three? I did trace, and it showed my levels, but I'm not loading into levels. Crazy.
Logged
Marc
Server what's that
*
Posts: 10



View Profile
« Reply #3 on: 03/21/09, 01:34 »

Are you using _root in your paths anywhere? In that case it could be a problem when you load that swf into another swf because then _root is not the same scope anymore, but the outer most timeline.

As Ronald wrote, I would also recommend relative paths.

//Marc
Logged
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6161


View Profile WWW Email
« Reply #4 on: 03/21/09, 03:40 »

It seams, you did not understand how flash loads movieclips.

Every single movieclip needs its own level - if you reuse a level, the movieclip residing there will be overwritten.

After you are using Flash 8 and AS2.0, and the next stept to AS3 has to be gone one day, dont get used to use fixed levels.

Get used to objects, containers etc. to manage your movieclips.

Even though Flash 8, AS2 still allows you using levels (if you dont use components Wink ), Flash CS3/4 ... AS3 do not support this inflexibla static addressing anymore.

At first, it takes a little more learning - but then it makes life, at least with larger sites, much easyer and managable.
Logged

happy flashing
Cool
Ronald
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!