This text is replaced by the site logo. If not, try enabling javascript.
Advertise
|
About us
|
Site map
|
Syndicate
|
Search site
|
Mailing list
|
View Authors
|
Become an Author
Home
Tutorials
Forums
Articles
Blogs
Movies
Library
Employment
Press
ActionScript.org Forums
>
ActionScript Forums Group
>
ActionScript 2.0
changing var in main MC from externally loaded .swf?
User Name
Remember Me?
Password
Register
FAQ
Members List
Social Groups
Calendar
Search
Today's Posts
Mark Forums Read
Thread Tools
Rate Thread
Display Modes
06-12-2007, 09:07 AM
#
1
gratnells
Registered User
Join Date: Dec 2006
Posts: 109
changing var in main MC from externally loaded .swf?
Hi,
Is there a way that I can change a boolean variable from an AS frame on a MC that has been loaded into my main movie?
I have my var declared in my main movie. When the timeline in my externally loaded .swf gets to the end of its animation it needs to change the var.
This doesn't seem to work so I guess vars only work in their own movie.
This is my var on a frame in a mc in my main movie...
PHP Code:
var
panelPressed
:
Boolean
= new
Boolean
(
true
);
How can I do this?
Thanks.
gratnells
View Public Profile
Find More Posts by gratnells
06-12-2007, 09:16 AM
#
2
Paul Ferrie
Scottish and mad fer it!!
Join Date: Jun 2002
Location: uk/scotland/glasgow
Posts: 3,601
How is the movie being loaded into the main swf?
__________________
.:To me AS is like LEGO, Only for the big Kids :.
-
Site
-
Blog
-
Glasgow Flasher
-
Activeden
Paul Ferrie
View Public Profile
Visit Paul Ferrie's homepage!
Find More Posts by Paul Ferrie
06-12-2007, 09:21 AM
#
3
gratnells
Registered User
Join Date: Dec 2006
Posts: 109
Thanks for replying... but, I've solved it myself
I love it when that happens.
Just needed to do this...
PHP Code:
_parent
.
_parent
.
_parent
.
panelPressed
=
true
;
on the loaded .swf frame.
Thought I read somewhere that you couldn't change Vars outside their scope (not sure if that's the right term!
gratnells
View Public Profile
Find More Posts by gratnells
06-12-2007, 09:25 AM
#
4
Paul Ferrie
Scottish and mad fer it!!
Join Date: Jun 2002
Location: uk/scotland/glasgow
Posts: 3,601
Variables declared within functions cant be changed from out with the function(i think)
__________________
.:To me AS is like LEGO, Only for the big Kids :.
-
Site
-
Blog
-
Glasgow Flasher
-
Activeden
Paul Ferrie
View Public Profile
Visit Paul Ferrie's homepage!
Find More Posts by Paul Ferrie
06-12-2007, 09:43 AM
#
5
gratnells
Registered User
Join Date: Dec 2006
Posts: 109
Ohh, i see.
thanks
gratnells
View Public Profile
Find More Posts by gratnells
«
Previous Thread
|
Next Thread
»
Thread Tools
Show Printable Version
Email this Page
Display Modes
Rate This Thread
Linear Mode
Switch to Hybrid Mode
Switch to Threaded Mode
Rate This Thread
:
5 : Excellent
4 : Good
3 : Average
2 : Bad
1 : Terrible
Posting Rules
You
may not
post new threads
You
may not
post replies
You
may not
post attachments
You
may not
edit your posts
BB code
is
On
Smilies
are
On
[IMG]
code is
Off
HTML code is
Off
Forum Rules
Forum Jump
User Control Panel
Private Messages
Subscriptions
Who's Online
Search Forums
Forums Home
ActionScript Forums Group
ActionScript 3.0
ActionScript 2.0
ActionScript 1.0 (and below)
Simple Stuff (Newbies)
Flash General Questions
Flash 10 General Questions
Flash 9 General Questions
Flash 8 General Questions
Other Flash General Questions
Flex
Flex 2, 3 & 4
Flex 1
Extensions and Plugins
Components
JSFL - Extending Flash
Desktop, Mobile and non-browser Environments
AIR (Apollo)
FlashLite / Portable Devices Development
Projectors and CDs
Supporting Technologies
HTML and JavaScript
haXe
Server-Side Scripting
Flash Remoting
Flash Media Server
General
Best Practices
Gaming and Game Development
Animation and Effects
Flashants Support Forum
Community Boards
General Chat
Just for Kicks Challenges
Detention
Flash In Action
Site Check
Cool Sites
Widgets
Decommissioned
Projects and Positions
CMS Forums
Announcements Board
Content Postings / Updates
Product Review Requests
CMS Technical Questions
Process Questions
Collaboration & Suggested Articles
Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Help with "_Alpha" tween code below...
daveg_92656
ActionScript 2.0
0
04-23-2007
12:49 AM
Problem with a for...in loop in a for...in loop
VictoriaWelby
ActionScript 2.0
2
04-09-2007
11:20 PM
Changing Size Of .swf Loaded into main movie
Balus
ActionScript 2.0
0
01-02-2005
07:43 PM
Textfield scrolling in loaded .swf not working
squidz
ActionScript 1.0 (and below)
2
12-31-2004
01:56 PM
sending variable from main movie to a loaded movie
sheldonserrao
ActionScript 1.0 (and below)
2
06-06-2001
05:57 AM
All times are GMT. The time now is
10:58 AM
.
///
Categories
Tutorials
Flash
Flex
Articles
Best Practices
Product Reviews
Third Party
Press Releases
The Community
Featured Jobs
Technical Flash Artist
MADISON, USA
iPhone/iPad Developer - CREATIVE CIRCLE
Philadelphia, USA
UX DESIGNER - CREATIVE CIRCLE
Philadelphia, USA
- More ActionScript, Flash and Flex jobs in the Employment Section.
- Advertise a job for free
Contact Us
-
Home Page
-
Archive
-
Privacy Statement
-
Top
Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Ad Management plugin by
RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our
Privacy Policy and Terms of Use
.