load commands

This is a discussion on "load commands" within the Flash & Multimedia Forum section. This forum, and the thread "load commands are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 15th, 2007, 11:33
acrikey's Avatar
SuperMember

SuperMember
Join Date: Mar 2007
Location: UK
Posts: 305
Thanks: 0
Thanked 0 Times in 0 Posts
load commands

At the moment I have two swf files and on a button down it changed the url. Doing it this way you get the page reloading, is there a way that the on load command can load a new swf file seamlessly or do I have to do it another way. If you can help please let me know the best way of achieving this.

My swf's are of a van, the button controls the hazard warning lights, (four way indicators). You press the btn once and the hazards come on, press again they go off, button changes from of to on. At present I go it through url control but it looks unprofessional.
Reply With Quote

  #2 (permalink)  
Old Aug 15th, 2007, 17:49
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
Re: load commands

Hmmm, this might be possible. I have an initial idea of how this might be accomplished but I need to do some testing.

Are your buttons within the flash file? Or on the HTML page? If they are within the .swf there is an easy solution.

If they are on the HTML page it may take a little more thinking...

Let me know.
Last Blog Entry: Yay!? (Oct 8th, 2007)
Reply With Quote
  #3 (permalink)  
Old Aug 15th, 2007, 17:55
acrikey's Avatar
SuperMember

SuperMember
Join Date: Mar 2007
Location: UK
Posts: 305
Thanks: 0
Thanked 0 Times in 0 Posts
Re: load commands

They are all in the swf file. If you want to see it, I'll PM it to you
Reply With Quote
  #4 (permalink)  
Old Aug 15th, 2007, 19:50
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
Re: load commands

If you want to PM it to me sure...

All this would involve is loading external .swfs into the flash file.

So you have your Van...and your seperate .swf with the flashing lights...

Create an blank movie clip, insert it onto the stage(nothing will show up) and give it an instance name of "shell"

On your button it would look something like:
Code: Select all
on (release)
{
 shell.loadmovie("lights.swf", 0);
}
You could then use the code on the OFF button to unload said movie using the unloadMovie command.

EDIT: You can then position the externally loaded .swf by adjusting the X and Y coordinates of the shell like this: (this goes below the load movie line.)
Code: Select all
shell._x = 0;
shell._y = 0;
Adjust the X and Y values accordingly knowing that 0,0 is the top left corner.

Hope this helps,

Scott
Last Blog Entry: Yay!? (Oct 8th, 2007)

Last edited by Sgaspar11; Aug 15th, 2007 at 19:54.
Reply With Quote
  #5 (permalink)  
Old Aug 15th, 2007, 20:26
acrikey's Avatar
SuperMember

SuperMember
Join Date: Mar 2007
Location: UK
Posts: 305
Thanks: 0
Thanked 0 Times in 0 Posts
Re: load commands

It's made in 2.0
Reply With Quote
  #6 (permalink)  
Old Aug 15th, 2007, 20:35
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
Re: load commands

Perfect, AS2.0 is your friend.....for now.
Last Blog Entry: Yay!? (Oct 8th, 2007)
Reply With Quote
  #7 (permalink)  
Old Aug 15th, 2007, 22:22
acrikey's Avatar
SuperMember

SuperMember
Join Date: Mar 2007
Location: UK
Posts: 305
Thanks: 0
Thanked 0 Times in 0 Posts
Re: load commands

When I do as you suggested above it throughs up error messages, like, actions can only be put on buttons, when I created the new layer and put the shell. bla bla bla
Reply With Quote
  #8 (permalink)  
Old Aug 15th, 2007, 22:51
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: load commands

i think that's as 3.0
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #9 (permalink)  
Old Aug 15th, 2007, 23:05
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
Re: load commands

You're still having that same issue? as the last couple posts? I thought we got all that figured out! Yes that is an AS3 error...:-)
Last Blog Entry: Yay!? (Oct 8th, 2007)
Reply With Quote
  #10 (permalink)  
Old Aug 16th, 2007, 14:44
acrikey's Avatar
SuperMember

SuperMember
Join Date: Mar 2007
Location: UK
Posts: 305
Thanks: 0
Thanked 0 Times in 0 Posts
Re: load commands

But i'm using AS 2.0 with this one not 3.0
Reply With Quote
  #11 (permalink)  
Old Aug 16th, 2007, 20:26
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: load commands

are you sure, if your're using flash cs3, it's the default
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #12 (permalink)  
Old Aug 17th, 2007, 08:13
acrikey's Avatar
SuperMember

SuperMember
Join Date: Mar 2007
Location: UK
Posts: 305
Thanks: 0
Thanked 0 Times in 0 Posts
Re: load commands

very sure
Reply With Quote
Reply

Tags
commands, load

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I use 'include' commands on a website? sing2trees Classic ASP 5 May 27th, 2008 15:41
onclipevent(load) Rick Flash & Multimedia Forum 4 Sep 27th, 2007 23:30
Load Last fizzgig JavaScript Forum 5 Sep 20th, 2007 20:07
system commands ktsirig PHP Forum 0 Oct 12th, 2005 13:06
PHP system commands ktsirig PHP Forum 2 Oct 3rd, 2005 12:06


All times are GMT. The time now is 20:20.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43