Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,258 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,181 people online right now. Registration is fast and FREE... Join Now!




Problem sending variables with loadMovieNum

 
Reply to this topicStart new topic

Problem sending variables with loadMovieNum

copenhagen
11 Oct, 2008 - 08:18 AM
Post #1

New D.I.C Head
*

Joined: 16 Mar, 2008
Posts: 32

Hi there smile.gif

I have a problem sending variables with loadMovieNum();

I have two movies:
Movie 1 and Movie 2
In movie one I have this code:
CODE

var ida = "59000";
button_btn.onRelease = function() {
loadMovieNum("C:\ htdocs\ phpflash\ ch08\ movie2.swf",1,"POST");
};


And in movie 2 I have this code:
CODE

kaj = ida;

The dynamic text box in movie 2`s var field in the property inspector is called kaj.

Each time I push the button in movie 1, movie 2 open inside movie 1 as it is supposed to, but the dynamic textfield says undefined?????? how come crazy.gif

User is offlineProfile CardPM
+Quote Post

BetaWar
RE: Problem Sending Variables With LoadMovieNum
11 Oct, 2008 - 08:26 AM
Post #2

#include <soul.h>
Group Icon

Joined: 7 Sep, 2006
Posts: 2,020



Thanked: 81 times
Dream Kudos: 1175
My Contributions
I believe that this is because flash movies aren't allowed to talk between one another (I know this is true if you have multiple on a webpage at once, unless you have something connecting to two of them) What I would suggest is creating a shared object (it is like a cookie for flash) so you don't have to worry about passing variables between the 2 movies, you just have to open the shared object between the 2 of them.

Hope that makes sense.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 04:33AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month