Referencing instances in loaded movie?
Hello Forum
The following code gives me an error:
1119: Access of possibly undefined property sp1 through a reference with static type flash.display:Sprite.
Not sure how to get around this issue... these things used to work in as2, I guess not anymore in as3...
Any insight is much appreciated.
Thanks
sk
loader = new BulkLoader("timelineLoader");
loader.add(ExternalFiles.TIMELINE_SWF);
loader.addEventListener(BulkLoader.COMPLETE, onCompleteHandler);
loader.start();
private function onCompleteHandler(evt : BulkProgressEvent) : void
timelineMovie = loader.getMovieClip(ExternalFiles.TIMELINE_SWF);
timelineMovie.sp1.alpha = 0; // > this is where it gets hairy...
addChild(timelineMovie);
oh to clarify....ExternalFiles.TIMELINE_SWF is a swf which I created in the flash environment. It contains among others a drawn movieClip on the stage with the instance name 's1'...
Similar Messages
-
Hotspots in a loaded movie not referencing correctly
My main movie uses an onResize function to reposition movie
clips relative to stage H & W, a movie loaded into level 1
contains the hotspots that aren't registering properly.
CODE IN MAIN MOVIE:
Stage.scaleMode = "noScale";
Stage.align = "TL";
///////////REPOSITION ELEMENTS WHEN STAGE IS
RESIZED////////////
this.onResize();
function onResize() {
newPosition();
Stage.addListener(this);
function newPosition() {
stageH = Stage.height;
stageW = Stage.width;
bkgrnd_mc._width = stageW;
bkgrnd_mc._height = stageH;
main_mc._x = (stageW- main_mc._width)/2;
main_mc._y = (stageH- main_mc._height)/2;
//loaded movie- all hotspots are inside this MC:
_level1.temp_mc._x = (stageW-_level1.temp_mc._width)/2;
_level1.temp_mc._y = ((stageH-_level1.temp_mc._height)/2);
on loading a movie into level 1 – I can see that the
hotspots contained within it are visually repositioned when browser
resized (hotspots all inside ‘_level1.temp_mc’) but the
x & y coordinates referenced during hitTest remain those of the
original loaded movie – ignoring the fact it looks as though
it has been physically repositioned!
Hit test code placed inside the loaded movie (in
‘temp_mc’) uses shapeflag method to test hits, eg:
//display readings:
_level1.temp_mc.reader_mc.onPress = function() {
this.startDrag();
_level1.temp_mc.reader_mc.onRelease = function() {
this.stopDrag();
if
(_level1.temp_mc.hotspot1_mc.hitTest(_level1.temp_mc.reader_mc._x,
_level1.temp_mc.reader_mc._y, true) {
_level1.temp_mc.temp_txt.text = " hotspot1";
else {
_level1.temp_mc.temp_txt.text = "Nothing detected";
Resize function also called in first frame pf loaded movie:
_level0.onResize();
Any help gratefully received, thanks in advance.I think I have the concept, but I can't figure out how
exactly to reference this variable.
basically, the variable is '_root.newsMov.myData.newsVar'
which works fine when i load the movie in firefox by itself.
The problem comes when I load the movie via the index movie.
If the new movie with the loadvars is loaded into level 9,
how do I reference it?
_level9.newsMov.myData.newsVar doesn't seem to work... any
other ideas?
Thanks to all who have helped so far -
Using one instance of a Movie Clip to load Graphics from library
Hi all,
another question... How would i go about loading a variable into a movie clip and have it pull different graphics from my library at different spots in the main timeline???
thanks!
PatrickHi NED! thank you for all your help so far!!!
I was wondering about the flexability of loading movies into a movie clip.
Currently, thanks to your help i am well able to load one movie into a movie "loader" clip, but thought maybe there is a way to load additional movie clips into that same "loader" clip, as i am starting to accumulate several different graphics that i need to have be inside movie clips so that i can make them change colors on the same frame when needed.
i shot from the hip and tried this code, but didnt have any luck:
mc_LCD_loader.attachMovie("hilight", "g", 1), ("header", "X", 1);
mc_LCD_loader.g._x = 0;
mc_LCD_loader.g._y = 1000;
mc_LCD_loader."X"._x = 0;
mc_LCD_loader."X"._y = 1000;
- - - where "hilight" is the identifier name of a given movie clip and "header" is the identifier of a given movie clip in the same library...
"hilight" loads fine
i dont fully understand what "g" means to the identifier...
i am just unsure of how or if it is even possible to load another MC into the same MC Loader...
is it possible? if so could you give me a hint?
thank you!
- patrick -
Having a loaded movie clip talk to another movie clip
Here's what I want to do:
Load a clip into my main movie - "loadedMovie"
at the end of the timeline in "loadedMovie" i want a
function, perhaps setColor, which will change the colour of another
movie clip which sits in the main movie.
Does this make sense? for a loaded movie clip to change the
color of an instance of another movie?
Many thanks,
Rayponch wrote:
> Here's what I want to do:
>
> Load a clip into my main movie - "loadedMovie"
>
> at the end of the timeline in "loadedMovie" i want a
function, perhaps
> setColor, which will change the colour of another movie
clip which sits in the
> main movie.
>
> Does this make sense? for a loaded movie clip to change
the color of an
> instance of another movie?
Sure make sense.
If the clip you like to target is on main timeline of the
movie than
you will use something like :
on (release) {
var my_color:Color = new Color(_root.SomeMC);
my_color.setRGB(0xFF00FF);
You can also refer to it by level:
(_level123.SomeMC);
Best Regards
Urami
!!!!!!! Merry Christmas !!!!!!!
Happy New Year
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami> -
Greetings everyone...
I have another issue. I've got a movie loading into another
movie:
http://studenthome.nku.edu/~wester/SITEtester.swf
< Main - from menu >work>2nd icon down on the left.
<project info <back
http://studenthome.nku.edu/~wester/sitenkumark2.swf
< Loaded
The 2nd file, by itself, works.
Loaded into the first file only partially works.
Isn't targeting in a loaded movie clip independent of the
main .swf?
ThanksSvedish_PIRATE wrote:
> Greetings everyone...
>
> I have another issue. I've got a movie loading into
another movie:
>
>
http://studenthome.nku.edu/~wester/SITEtester.swf
< Main - from menu
>> work>2nd icon down on the left. <project info
<back
>
http://studenthome.nku.edu/~wester/sitenkumark2.swf
< Loaded
>
> The 2nd file, by itself, works.
> Loaded into the first file only partially works.
>
> Isn't targeting in a loaded movie clip independent of
the main .swf?
That depends;
If you load movie in movie clip holder than your movie start
to share the timeline
with the host swf file. So any action using _root prefix will
automatically be mismatched
to its target.
For example your loaded movie uses
_root.MCName.gotoAndPlay(123);, once loaded in
HOLDER mc the action should change to
_root.HOLDER.MCName.gotoAndPlay(123);
The timelines remain independent and contain their own root
if you load your content in
level not in target.
Now, there is two ways to fix it. Either adjust all the paths
before loading, which
can be tedious while doing testing, or lock the root to
particular timeline using
_lockroot
Let me paste from help files details on _lockroot:
You can use _lockroot to target content as a way to solve the
scoping issues sometimes associated
with the inappropriate use of _root. Although this solves
many problems with applications, consider
_lockroot as a work-around for problems caused by using
_root. If you experience problems loading
content into a SWF file or a component instance, try applying
_lockroot to a movie clip that loads
the content. For example, if you have a movie clip called
myClip loading content, and it stops
working after it is loaded, try using the following code,
which is placed on a timeline:
this._lockroot = true;
Regards
Urami
Happy New Year guys - all the best there is in the 2006 :)
<urami>
http://www.Flashfugitive.com
</urami>
<web junk free>
http://www.firefox.com
</web junk free> -
Hi
I am having problems getting a seperate swf to load into my
main swf.
I am using the load movie num technique as follows
on (release) {
loadMovieNum("map.swf", 51);
I have this inserted this action into the frame that my
button is on but it is not working.
I have also treid to insert the code on my button but it
would not let me.
please help
thanks !Hi
I have applied this code in my frame
map.onRelease = function() {
loadMovieNum("map.swf", 51);
(map - is my instance name)
Because I cannot add the on(release) command to my button
I believe it is not working.
this is what the action panel tells me
"current selection cannot have actions applied to it"
its agravating I used the same method in flash 8 and it
worked.
any suggestions? -
Unable to load movie playlist?
I'm really starting to regret Upgrading to Director 11. I
didn't have any of these issues going from MX to MX 2004. All I'm
trying to do is make a simple projector work on a Mac and it's one
issue after another. Not to mention all this after updating a whole
boat load of Xtras 11 requires.
The new one is this;
Unable to load movie playlist. Does the INI file exsist? It
must contain a section '(Movies)' with an entry
'Movies01=pathname.dir'.
I've already read a couple of other forum post with the same
error message going on with others but can't find certain files
required to make the fix like the 'Projec32.skl',
and I don't know how to read, let alone make an .INI file.
I'll mention I got this error after updating to Shockwave 11
EVEN though I was not publishing a Shockwave movie.
I know I just need to include a certain file on my CD when I
burn one because all works great on the desk top, but I'm throwing
darts trying to figure out what the CD burn is missing.
So to make a long story short does anyone know what I might
be missing?
I'm new to making director movies for the Mac, and even using
a Mac so I might need it spelled out a little more for being a
novice.
Thanks in advance. :o)>
PS I tried making a Mac Projector from my PC with no good
results either.This is a very frustrating problem. I have run into it as well, but can't tell you exactly how I solved it, its been a while since I've seen it. It does have something to do with the length of the path to your projector when its published. I would suggest moving your movie as close as possible to the root of the drive, you may even want to restart to ensure all the internal variables have been reset and then republish the movie.
If you publish the movie from your authoring location and then copy the projector to a cd or the desktop the path length seems to be built into the projector at publishing. So that does not solve the problem. It is fairly easy to get a long path name - c:/mylocaldrive/documents and settings/yourusername/yourprojectsfolder/yourprojectname.dir has a path name length of 100 characters! I realize you are on a mac, but the same rules apply.
I also might be mistaken with the maximum path length. Perhaps its 128 characters?
Has anyone else run into this error?
Mike M -
This message comes up "This computer is already associated with an Apple ID" trying to down load movies of another computer of ICloud how do I get By?
Hi Allan, thanks for that. I've already set up a log in for my wife and that is all working fine. The problem is that when she logs in and opens iTunes and trys to associate her library with her iTunes account she gets the error message "This computer is already associated with another iTunes account". Whilst this is true, the computer is associated with my iTunes account under my separate log in, which should have nothing to do with hers. If she transfers the association to her account it will lock me out of my content on my log in for 90 days - I'm trying to work out how to associate each of the log in accounts with a separate iTunes account so we can access our music independently of one another without locking each other out. Hope that makes sense!
-
HT4352 My apple tv will no longer load movies.
My apple tv will no longer load movies that I have in iTunes. It shows them in the menu, but when I click on them I just get the spinning wheel. Music works fine. Every thing worked fine the day before.
Power cycle the ATV.
Close and relaunch iTunes on the computer or simply reboot the computer. -
After updating my Apple TV, it will no longer load movies from my iTunes library. Music works, but no movies. I've turned this puppy every which way but loose, but no joy. Is there a way to roll back an update?
Greetings,
I've never seen this issue, and I handle many iPads, of all versions. WiFi issues are generally local to the WiFi router - they are not all of the same quality, range, immunity to interference, etc. You have distance, building construction, and the biggie - interference.
At home, I use Apple routers, and have no issues with any of my WiFi enabled devices, computers, mobile devices, etc - even the lowly PeeCees. I have locations where I have Juniper Networks, as well as Aruba, and a few Netgears - all of them work as they should.
The cheaper routers, Linksys, D-Link, Seimens home units, and many other no name devices have caused issues of various kinds, and even connectivity.
I have no idea what Starbucks uses, but I always have a good connection, and I go there nearly every morning and get some work done, as well as play.
You could try changing channels, 2.4 to 5 Gigs, changing locations of the router. I have had to do all of these at one time or another over the many years that I have been a Network Engineer.
Good Luck - Cheers,
M. -
SQL Server 2012 Developer Edition will not install. Setup files don't even get copied completely. Win 8.1. ACT instance is loaded & can't be deleted. From log file: Error: Action "PreMsiTimingConfigAction" failed during execution.
Hello,
I am glad it worked.
Thank you for visiting MSDN forums!
Regards,
Alberto Morillo
SQLCoffee.com -
Can somebody help me figure this out? So before a road trip I rented a movie on my Ipad mini. The movie fully loaded before I left. It downloaded under wifi. Now that I'm in the car I tried to watch the movie but it isn't working. When I press play an error message pops up saying "could not load movie" can I not watch it with our wifi? What's going on? What can I do to watch the movie?
Having the same problem. Watched 25 minutes of a rental and it stopped with the message"unable to load video"
Using current version IPad mini.
Ios7 is HUGH PIECE OF CRAP!!!! -
I have just got a iPad yesterday and I'm having a problem
I have just bought a tv series in iTunes and downloaded it on to my iPad but every time I go to watch it it comes up (could not load movie) then takes me back to the episode list ? Can you tell me how to solve this problem pleaseHave a look at the following:
http://itunes.apple.com/sg/app/quickoffice-pro-hd-edit-office/id376212724?mt=8&l s=1
http://itunes.apple.com/sg/app/office2-hd/id364361728?mt=8&ls=1
http://itunes.apple.com/sg/app/documents-to-go-premium-office/id317107309?mt=8&l s=1
http://itunes.apple.com/sg/app/polaris-office/id513188658?mt=8&ls=1 -
Quicktime Pro Really Slow to Load Movies
Hi,
Anyone have any idea why after getting Quicktime pro it is so slow to load movies? I have an iMac with 2Gigs of Ram, less than a year old...
I read about the disk permissions thing, but it doesn't seem to have helped...
Thanks in advance!I don't know if this is still a problem for you, but I first noticed it when I upgraded to 7.2 in Tiger.
It seems that QT is loading the whole movie into RAM before it starts playing. This is really annoying with long movies, the beachball just spins until QT has loaded all 350 megs into a buffer somewhere. I've started using VLC instead. No settings that I can find will alter this behaviour, and I've tried moving various third-party plug-ins around to no avail.
Note: the behaviour persists with QT 7.3 in Tiger (10.4.10) but seems to have been fixed in Leopard (10.5). Since I'm slowly migrating to Leopard, I guess the problem is semi-solved. -
Remove loaded movie after new loadMovie has been loaded
i need to unload a movie once the new loadMovie is fully
loaded because once i click on my button to do so, my current
loaded movie goes away & the screen is white until the new
loaded movie is loaded. (i hope that made sense)well I've done it a few ways successfully.
The most recent, I dynamically create new movie clips.
see ---
http://www.13studios.com/erin
--- Its a figurative painter's portoflio, so while its oil paint it
is perhaps a bit [NSFW].
Anyway, the panning effect kinda killed my normal process, so
when you click a new button, it goes like this...
PSEudoCODE
//tickerVariable is defined on frame 1
holder.create a new movie clip with name "something +
tickerVariable"
play preloader(tickerVariable);
on completion of preloader {
holder[something+(tickerVariable-1)].unloadMovie();
//do anything else you need to do
tickerVariable++
I hope I didn't just make that more confusing.
Maybe you are looking for
-
Gestetner Aficio CS225 on iMac Intel 2Ghz Dual Core, OSX 10.4.10
Could anyone help me to setup this multifunction printer on a new iMac Intel? I've downloaded from Gestetner site the latest ppd (y. 2002, vers. 1.1), and put it into Library/Printers/PPDS/Contents/REsources/en.lproj but when trying to add a new prin
-
Certificate problem on nokia 5233
During the time of installation of july palayer and many apps its showing certificate expeired. Give me a sollution.. Device is nokia 5233 Solved! Go to Solution.
-
Keyboard lockout after screen sharing
I was doing some screen sharing from another Mac on my LAN. There's no "disconnect" feature to stop the remote control, so I simply quit the Screen Sharing "application," closed all windows, and logged out of the controlling Mac. Problem is, at the t
-
FCE Express is writing render files to startup disk not external hard drive
Hi I'm using FCE Express HD 3.5.1, with a MacBook Pro 2.4 GHz Intel Core 2 Duo, with 2 GB memory. I'm using a Lacie big disk extreme as my scratch disk, and FCE is set up to write all render files to this. However, I noticed that my startup disk was
-
Solaris 10 05/09 Update 7 - Zone shutdown issue
I have just clean installed several servers with solaris 10 update 7 (both sparc and x64, no other software installed) and I am getting the following svc error messages whenever I shutdown a zone. Aug 19 18:26:22 svc.startd[25328]: svc:/network/ipsec