Lingo Dictionary > A-C > broadcastProps

 

broadcastProps

Syntax

member(whichVectorOrFlashMember).broadcastProps
the broadcastProps of member whichVectorOrFlashMember

Description

Cast member property; controls whether changes made to a Flash or Vector shape cast member are immediately broadcast to all of its sprites currently on the Stage (TRUE) or not (FALSE).

When this property is set to FALSE, changes made to the cast member are used only as defaults for new sprites and don't affect sprites on the Stage.

The default value for this property is TRUE, and it can be both tested and set.

Example

This frame script assumes that a Flash movie cast member named Navigation Movie has been set up with its broadcastProps property set to FALSE. The script momentarily allows changes to a Flash movie cast member to be broadcast to its sprites currently on the Stage. It then sets the viewScale property of the Flash movie cast member, and that change is broadcast to its sprite. The script then prevents the Flash movie from broadcasting changes to its sprites.

Dot syntax:

on enterFrame
	member("Navigation Movie").broadcastProps = TRUE
	member("Navigation Movie").viewScale = 200
	member("Navigation Movie").broadcastProps = FALSE
end

Verbose syntax:

on enterFrame
	set the broadcastProps of member "Navigation Movie" = TRUE
	set the viewScale of member "Navigation Movie" = 200
	set the broadcastProps of member "Navigation Movie" = FALSE
end